configure 390 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354
  1. #! /bin/sh
  2. # From configure.ac Revision: 2877 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.60.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be Bourne compatible
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  25. fi
  26. BIN_SH=xpg4; export BIN_SH # for Tru64
  27. DUALCASE=1; export DUALCASE # for MKS sh
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. # Be Bourne compatible
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  221. fi
  222. BIN_SH=xpg4; export BIN_SH # for Tru64
  223. DUALCASE=1; export DUALCASE # for MKS sh
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. # Be Bourne compatible
  231. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  232. emulate sh
  233. NULLCMD=:
  234. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  235. # is contrary to our usage. Disable this feature.
  236. alias -g '${1+"$@"}'='"$@"'
  237. setopt NO_GLOB_SUBST
  238. else
  239. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  240. fi
  241. BIN_SH=xpg4; export BIN_SH # for Tru64
  242. DUALCASE=1; export DUALCASE # for MKS sh
  243. :
  244. (as_func_return () {
  245. (exit $1)
  246. }
  247. as_func_success () {
  248. as_func_return 0
  249. }
  250. as_func_failure () {
  251. as_func_return 1
  252. }
  253. as_func_ret_success () {
  254. return 0
  255. }
  256. as_func_ret_failure () {
  257. return 1
  258. }
  259. exitcode=0
  260. if as_func_success; then
  261. :
  262. else
  263. exitcode=1
  264. echo as_func_success failed.
  265. fi
  266. if as_func_failure; then
  267. exitcode=1
  268. echo as_func_failure succeeded.
  269. fi
  270. if as_func_ret_success; then
  271. :
  272. else
  273. exitcode=1
  274. echo as_func_ret_success failed.
  275. fi
  276. if as_func_ret_failure; then
  277. exitcode=1
  278. echo as_func_ret_failure succeeded.
  279. fi
  280. if ( set x; as_func_ret_success y && test x = "$1" ); then
  281. :
  282. else
  283. exitcode=1
  284. echo positional parameters were not saved.
  285. fi
  286. test $exitcode = 0) || { (exit 1); exit 1; }
  287. (
  288. as_lineno_1=$LINENO
  289. as_lineno_2=$LINENO
  290. test "x$as_lineno_1" != "x$as_lineno_2" &&
  291. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  292. _ASEOF
  293. }; then
  294. break
  295. fi
  296. fi
  297. done
  298. if test "x$CONFIG_SHELL" != x; then
  299. for as_var in BASH_ENV ENV
  300. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  301. done
  302. export CONFIG_SHELL
  303. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  304. fi
  305. if test $as_have_required = no; then
  306. echo This script requires a shell more modern than all the
  307. echo shells that I found on your system. Please install a
  308. echo modern shell, or manually run the script under such a
  309. echo shell if you do have one.
  310. { (exit 1); exit 1; }
  311. fi
  312. fi
  313. fi
  314. (eval "as_func_return () {
  315. (exit \$1)
  316. }
  317. as_func_success () {
  318. as_func_return 0
  319. }
  320. as_func_failure () {
  321. as_func_return 1
  322. }
  323. as_func_ret_success () {
  324. return 0
  325. }
  326. as_func_ret_failure () {
  327. return 1
  328. }
  329. exitcode=0
  330. if as_func_success; then
  331. :
  332. else
  333. exitcode=1
  334. echo as_func_success failed.
  335. fi
  336. if as_func_failure; then
  337. exitcode=1
  338. echo as_func_failure succeeded.
  339. fi
  340. if as_func_ret_success; then
  341. :
  342. else
  343. exitcode=1
  344. echo as_func_ret_success failed.
  345. fi
  346. if as_func_ret_failure; then
  347. exitcode=1
  348. echo as_func_ret_failure succeeded.
  349. fi
  350. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  351. :
  352. else
  353. exitcode=1
  354. echo positional parameters were not saved.
  355. fi
  356. test \$exitcode = 0") || {
  357. echo No shell found that supports shell functions.
  358. echo Please tell autoconf@gnu.org about your system,
  359. echo including any error possibly output before this
  360. echo message
  361. }
  362. as_lineno_1=$LINENO
  363. as_lineno_2=$LINENO
  364. test "x$as_lineno_1" != "x$as_lineno_2" &&
  365. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  366. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  367. # uniformly replaced by the line number. The first 'sed' inserts a
  368. # line-number line after each line using $LINENO; the second 'sed'
  369. # does the real work. The second script uses 'N' to pair each
  370. # line-number line with the line containing $LINENO, and appends
  371. # trailing '-' during substitution so that $LINENO is not a special
  372. # case at line end.
  373. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  374. # scripts with optimization help from Paolo Bonzini. Blame Lee
  375. # E. McMahon (1931-1989) for sed's syntax. :-)
  376. sed -n '
  377. p
  378. /[$]LINENO/=
  379. ' <$as_myself |
  380. sed '
  381. s/[$]LINENO.*/&-/
  382. t lineno
  383. b
  384. :lineno
  385. N
  386. :loop
  387. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  388. t loop
  389. s/-\n.*//
  390. ' >$as_me.lineno &&
  391. chmod +x "$as_me.lineno" ||
  392. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  393. { (exit 1); exit 1; }; }
  394. # Don't try to exec as it changes $[0], causing all sort of problems
  395. # (the dirname of $[0] is not the place where we might find the
  396. # original and so on. Autoconf is especially sensitive to this).
  397. . "./$as_me.lineno"
  398. # Exit status is that of the last command.
  399. exit
  400. }
  401. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  402. as_dirname=dirname
  403. else
  404. as_dirname=false
  405. fi
  406. ECHO_C= ECHO_N= ECHO_T=
  407. case `echo -n x` in
  408. -n*)
  409. case `echo 'x\c'` in
  410. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  411. *) ECHO_C='\c';;
  412. esac;;
  413. *)
  414. ECHO_N='-n';;
  415. esac
  416. if expr a : '\(a\)' >/dev/null 2>&1 &&
  417. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  418. as_expr=expr
  419. else
  420. as_expr=false
  421. fi
  422. rm -f conf$$ conf$$.exe conf$$.file
  423. if test -d conf$$.dir; then
  424. rm -f conf$$.dir/conf$$.file
  425. else
  426. rm -f conf$$.dir
  427. mkdir conf$$.dir
  428. fi
  429. echo >conf$$.file
  430. if ln -s conf$$.file conf$$ 2>/dev/null; then
  431. as_ln_s='ln -s'
  432. # ... but there are two gotchas:
  433. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  434. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  435. # In both cases, we have to default to `cp -p'.
  436. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  437. as_ln_s='cp -p'
  438. elif ln conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s=ln
  440. else
  441. as_ln_s='cp -p'
  442. fi
  443. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  444. rmdir conf$$.dir 2>/dev/null
  445. if mkdir -p . 2>/dev/null; then
  446. as_mkdir_p=:
  447. else
  448. test -d ./-p && rmdir ./-p
  449. as_mkdir_p=false
  450. fi
  451. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  452. # systems may use methods other than mode bits to determine executability.
  453. cat >conf$$.file <<_ASEOF
  454. #! /bin/sh
  455. exit 0
  456. _ASEOF
  457. chmod +x conf$$.file
  458. if test -x conf$$.file >/dev/null 2>&1; then
  459. as_executable_p="test -x"
  460. else
  461. as_executable_p=:
  462. fi
  463. rm -f conf$$.file
  464. # Sed expression to map a string onto a valid CPP name.
  465. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  466. # Sed expression to map a string onto a valid variable name.
  467. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  468. exec 7<&0 </dev/null 6>&1
  469. # Name of the host.
  470. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  471. # so uname gets run too.
  472. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  473. #
  474. # Initializations.
  475. #
  476. ac_default_prefix=/usr/local
  477. ac_clean_files=
  478. ac_config_libobj_dir=.
  479. LIBOBJS=
  480. cross_compiling=no
  481. subdirs=
  482. MFLAGS=
  483. MAKEFLAGS=
  484. SHELL=${CONFIG_SHELL-/bin/sh}
  485. # Identity of this package.
  486. PACKAGE_NAME=
  487. PACKAGE_TARNAME=
  488. PACKAGE_VERSION=
  489. PACKAGE_STRING=
  490. PACKAGE_BUGREPORT=
  491. ac_unique_file="wraith"
  492. ac_unique_file="src/eggdrop.h"
  493. # Factoring default headers for most tests.
  494. ac_includes_default="\
  495. #include <stdio.h>
  496. #if HAVE_SYS_TYPES_H
  497. # include <sys/types.h>
  498. #endif
  499. #if HAVE_SYS_STAT_H
  500. # include <sys/stat.h>
  501. #endif
  502. #if STDC_HEADERS
  503. # include <stdlib.h>
  504. # include <stddef.h>
  505. #else
  506. # if HAVE_STDLIB_H
  507. # include <stdlib.h>
  508. # endif
  509. #endif
  510. #if HAVE_STRING_H
  511. # if !STDC_HEADERS && HAVE_MEMORY_H
  512. # include <memory.h>
  513. # endif
  514. # include <string.h>
  515. #endif
  516. #if HAVE_STRINGS_H
  517. # include <strings.h>
  518. #endif
  519. #if HAVE_INTTYPES_H
  520. # include <inttypes.h>
  521. #endif
  522. #if HAVE_STDINT_H
  523. # include <stdint.h>
  524. #endif
  525. #if HAVE_UNISTD_H
  526. # include <unistd.h>
  527. #endif"
  528. ac_subst_vars='SHELL
  529. PATH_SEPARATOR
  530. PACKAGE_NAME
  531. PACKAGE_TARNAME
  532. PACKAGE_VERSION
  533. PACKAGE_STRING
  534. PACKAGE_BUGREPORT
  535. exec_prefix
  536. prefix
  537. program_transform_name
  538. bindir
  539. sbindir
  540. libexecdir
  541. datarootdir
  542. datadir
  543. sysconfdir
  544. sharedstatedir
  545. localstatedir
  546. includedir
  547. oldincludedir
  548. docdir
  549. infodir
  550. htmldir
  551. dvidir
  552. pdfdir
  553. psdir
  554. libdir
  555. localedir
  556. mandir
  557. DEFS
  558. ECHO_C
  559. ECHO_N
  560. ECHO_T
  561. LIBS
  562. build_alias
  563. host_alias
  564. target_alias
  565. egg_ac_parameters
  566. CXX
  567. CXXFLAGS
  568. LDFLAGS
  569. CPPFLAGS
  570. ac_ct_CXX
  571. EXEEXT
  572. OBJEXT
  573. CXXCPP
  574. GREP
  575. EGREP
  576. CCDEPMODE
  577. GCC3
  578. SET_MAKE
  579. HEAD_1
  580. AWK
  581. BASENAME
  582. OBJCOPY
  583. STRIP
  584. DIFF
  585. UNAME
  586. CCACHE
  587. DISTCC
  588. CCDEBUG
  589. ZLIB
  590. LIBOBJS
  591. VERSION
  592. NUMVER
  593. MOD_UPDIR
  594. LTLIBOBJS'
  595. ac_subst_files=''
  596. ac_precious_vars='build_alias
  597. host_alias
  598. target_alias
  599. CXX
  600. CXXFLAGS
  601. LDFLAGS
  602. CPPFLAGS
  603. CCC
  604. CXXCPP'
  605. # Initialize some variables set by options.
  606. ac_init_help=
  607. ac_init_version=false
  608. # The variables have the same names as the options, with
  609. # dashes changed to underlines.
  610. cache_file=./config.cache
  611. exec_prefix=NONE
  612. no_create=
  613. no_recursion=
  614. prefix=NONE
  615. program_prefix=NONE
  616. program_suffix=NONE
  617. program_transform_name=s,x,x,
  618. silent=
  619. site=
  620. srcdir=
  621. verbose=
  622. x_includes=NONE
  623. x_libraries=NONE
  624. # Installation directory options.
  625. # These are left unexpanded so users can "make install exec_prefix=/foo"
  626. # and all the variables that are supposed to be based on exec_prefix
  627. # by default will actually change.
  628. # Use braces instead of parens because sh, perl, etc. also accept them.
  629. # (The list follows the same order as the GNU Coding Standards.)
  630. bindir='${exec_prefix}/bin'
  631. sbindir='${exec_prefix}/sbin'
  632. libexecdir='${exec_prefix}/libexec'
  633. datarootdir='${prefix}/share'
  634. datadir='${datarootdir}'
  635. sysconfdir='${prefix}/etc'
  636. sharedstatedir='${prefix}/com'
  637. localstatedir='${prefix}/var'
  638. includedir='${prefix}/include'
  639. oldincludedir='/usr/include'
  640. docdir='${datarootdir}/doc/${PACKAGE}'
  641. infodir='${datarootdir}/info'
  642. htmldir='${docdir}'
  643. dvidir='${docdir}'
  644. pdfdir='${docdir}'
  645. psdir='${docdir}'
  646. libdir='${exec_prefix}/lib'
  647. localedir='${datarootdir}/locale'
  648. mandir='${datarootdir}/man'
  649. ac_prev=
  650. ac_dashdash=
  651. for ac_option
  652. do
  653. # If the previous option needs an argument, assign it.
  654. if test -n "$ac_prev"; then
  655. eval $ac_prev=\$ac_option
  656. ac_prev=
  657. continue
  658. fi
  659. case $ac_option in
  660. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  661. *) ac_optarg=yes ;;
  662. esac
  663. # Accept the important Cygnus configure options, so we can diagnose typos.
  664. case $ac_dashdash$ac_option in
  665. --)
  666. ac_dashdash=yes ;;
  667. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  668. ac_prev=bindir ;;
  669. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  670. bindir=$ac_optarg ;;
  671. -build | --build | --buil | --bui | --bu)
  672. ac_prev=build_alias ;;
  673. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  674. build_alias=$ac_optarg ;;
  675. -cache-file | --cache-file | --cache-fil | --cache-fi \
  676. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  677. ac_prev=cache_file ;;
  678. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  679. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  680. cache_file=$ac_optarg ;;
  681. --config-cache | -C)
  682. cache_file=config.cache ;;
  683. -datadir | --datadir | --datadi | --datad)
  684. ac_prev=datadir ;;
  685. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  686. datadir=$ac_optarg ;;
  687. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  688. | --dataroo | --dataro | --datar)
  689. ac_prev=datarootdir ;;
  690. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  691. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  692. datarootdir=$ac_optarg ;;
  693. -disable-* | --disable-*)
  694. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  695. # Reject names that are not valid shell variable names.
  696. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  697. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  698. { (exit 1); exit 1; }; }
  699. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  700. eval enable_$ac_feature=no ;;
  701. -docdir | --docdir | --docdi | --doc | --do)
  702. ac_prev=docdir ;;
  703. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  704. docdir=$ac_optarg ;;
  705. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  706. ac_prev=dvidir ;;
  707. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  708. dvidir=$ac_optarg ;;
  709. -enable-* | --enable-*)
  710. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  711. # Reject names that are not valid shell variable names.
  712. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  713. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  714. { (exit 1); exit 1; }; }
  715. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  716. eval enable_$ac_feature=\$ac_optarg ;;
  717. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  718. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  719. | --exec | --exe | --ex)
  720. ac_prev=exec_prefix ;;
  721. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  722. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  723. | --exec=* | --exe=* | --ex=*)
  724. exec_prefix=$ac_optarg ;;
  725. -gas | --gas | --ga | --g)
  726. # Obsolete; use --with-gas.
  727. with_gas=yes ;;
  728. -help | --help | --hel | --he | -h)
  729. ac_init_help=long ;;
  730. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  731. ac_init_help=recursive ;;
  732. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  733. ac_init_help=short ;;
  734. -host | --host | --hos | --ho)
  735. ac_prev=host_alias ;;
  736. -host=* | --host=* | --hos=* | --ho=*)
  737. host_alias=$ac_optarg ;;
  738. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  739. ac_prev=htmldir ;;
  740. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  741. | --ht=*)
  742. htmldir=$ac_optarg ;;
  743. -includedir | --includedir | --includedi | --included | --include \
  744. | --includ | --inclu | --incl | --inc)
  745. ac_prev=includedir ;;
  746. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  747. | --includ=* | --inclu=* | --incl=* | --inc=*)
  748. includedir=$ac_optarg ;;
  749. -infodir | --infodir | --infodi | --infod | --info | --inf)
  750. ac_prev=infodir ;;
  751. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  752. infodir=$ac_optarg ;;
  753. -libdir | --libdir | --libdi | --libd)
  754. ac_prev=libdir ;;
  755. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  756. libdir=$ac_optarg ;;
  757. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  758. | --libexe | --libex | --libe)
  759. ac_prev=libexecdir ;;
  760. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  761. | --libexe=* | --libex=* | --libe=*)
  762. libexecdir=$ac_optarg ;;
  763. -localedir | --localedir | --localedi | --localed | --locale)
  764. ac_prev=localedir ;;
  765. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  766. localedir=$ac_optarg ;;
  767. -localstatedir | --localstatedir | --localstatedi | --localstated \
  768. | --localstate | --localstat | --localsta | --localst | --locals)
  769. ac_prev=localstatedir ;;
  770. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  771. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  772. localstatedir=$ac_optarg ;;
  773. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  774. ac_prev=mandir ;;
  775. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  776. mandir=$ac_optarg ;;
  777. -nfp | --nfp | --nf)
  778. # Obsolete; use --without-fp.
  779. with_fp=no ;;
  780. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  781. | --no-cr | --no-c | -n)
  782. no_create=yes ;;
  783. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  784. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  785. no_recursion=yes ;;
  786. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  787. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  788. | --oldin | --oldi | --old | --ol | --o)
  789. ac_prev=oldincludedir ;;
  790. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  791. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  792. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  793. oldincludedir=$ac_optarg ;;
  794. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  795. ac_prev=prefix ;;
  796. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  797. prefix=$ac_optarg ;;
  798. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  799. | --program-pre | --program-pr | --program-p)
  800. ac_prev=program_prefix ;;
  801. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  802. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  803. program_prefix=$ac_optarg ;;
  804. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  805. | --program-suf | --program-su | --program-s)
  806. ac_prev=program_suffix ;;
  807. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  808. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  809. program_suffix=$ac_optarg ;;
  810. -program-transform-name | --program-transform-name \
  811. | --program-transform-nam | --program-transform-na \
  812. | --program-transform-n | --program-transform- \
  813. | --program-transform | --program-transfor \
  814. | --program-transfo | --program-transf \
  815. | --program-trans | --program-tran \
  816. | --progr-tra | --program-tr | --program-t)
  817. ac_prev=program_transform_name ;;
  818. -program-transform-name=* | --program-transform-name=* \
  819. | --program-transform-nam=* | --program-transform-na=* \
  820. | --program-transform-n=* | --program-transform-=* \
  821. | --program-transform=* | --program-transfor=* \
  822. | --program-transfo=* | --program-transf=* \
  823. | --program-trans=* | --program-tran=* \
  824. | --progr-tra=* | --program-tr=* | --program-t=*)
  825. program_transform_name=$ac_optarg ;;
  826. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  827. ac_prev=pdfdir ;;
  828. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  829. pdfdir=$ac_optarg ;;
  830. -psdir | --psdir | --psdi | --psd | --ps)
  831. ac_prev=psdir ;;
  832. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  833. psdir=$ac_optarg ;;
  834. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  835. | -silent | --silent | --silen | --sile | --sil)
  836. silent=yes ;;
  837. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  838. ac_prev=sbindir ;;
  839. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  840. | --sbi=* | --sb=*)
  841. sbindir=$ac_optarg ;;
  842. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  843. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  844. | --sharedst | --shareds | --shared | --share | --shar \
  845. | --sha | --sh)
  846. ac_prev=sharedstatedir ;;
  847. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  848. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  849. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  850. | --sha=* | --sh=*)
  851. sharedstatedir=$ac_optarg ;;
  852. -site | --site | --sit)
  853. ac_prev=site ;;
  854. -site=* | --site=* | --sit=*)
  855. site=$ac_optarg ;;
  856. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  857. ac_prev=srcdir ;;
  858. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  859. srcdir=$ac_optarg ;;
  860. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  861. | --syscon | --sysco | --sysc | --sys | --sy)
  862. ac_prev=sysconfdir ;;
  863. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  864. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  865. sysconfdir=$ac_optarg ;;
  866. -target | --target | --targe | --targ | --tar | --ta | --t)
  867. ac_prev=target_alias ;;
  868. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  869. target_alias=$ac_optarg ;;
  870. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  871. verbose=yes ;;
  872. -version | --version | --versio | --versi | --vers | -V)
  873. ac_init_version=: ;;
  874. -with-* | --with-*)
  875. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  876. # Reject names that are not valid shell variable names.
  877. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  878. { echo "$as_me: error: invalid package name: $ac_package" >&2
  879. { (exit 1); exit 1; }; }
  880. ac_package=`echo $ac_package| sed 's/-/_/g'`
  881. eval with_$ac_package=\$ac_optarg ;;
  882. -without-* | --without-*)
  883. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  886. { echo "$as_me: error: invalid package name: $ac_package" >&2
  887. { (exit 1); exit 1; }; }
  888. ac_package=`echo $ac_package | sed 's/-/_/g'`
  889. eval with_$ac_package=no ;;
  890. --x)
  891. # Obsolete; use --with-x.
  892. with_x=yes ;;
  893. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  894. | --x-incl | --x-inc | --x-in | --x-i)
  895. ac_prev=x_includes ;;
  896. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  897. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  898. x_includes=$ac_optarg ;;
  899. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  900. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  901. ac_prev=x_libraries ;;
  902. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  903. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  904. x_libraries=$ac_optarg ;;
  905. -*) { echo "$as_me: error: unrecognized option: $ac_option
  906. Try \`$0 --help' for more information." >&2
  907. { (exit 1); exit 1; }; }
  908. ;;
  909. *=*)
  910. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  911. # Reject names that are not valid shell variable names.
  912. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  913. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  914. { (exit 1); exit 1; }; }
  915. eval $ac_envvar=\$ac_optarg
  916. export $ac_envvar ;;
  917. *)
  918. # FIXME: should be removed in autoconf 3.0.
  919. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  920. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  921. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  922. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  923. ;;
  924. esac
  925. done
  926. if test -n "$ac_prev"; then
  927. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  928. { echo "$as_me: error: missing argument to $ac_option" >&2
  929. { (exit 1); exit 1; }; }
  930. fi
  931. # Be sure to have absolute directory names.
  932. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  933. datadir sysconfdir sharedstatedir localstatedir includedir \
  934. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  935. libdir localedir mandir
  936. do
  937. eval ac_val=\$$ac_var
  938. case $ac_val in
  939. [\\/$]* | ?:[\\/]* ) continue;;
  940. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  941. esac
  942. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  943. { (exit 1); exit 1; }; }
  944. done
  945. # There might be people who depend on the old broken behavior: `$host'
  946. # used to hold the argument of --host etc.
  947. # FIXME: To remove some day.
  948. build=$build_alias
  949. host=$host_alias
  950. target=$target_alias
  951. # FIXME: To remove some day.
  952. if test "x$host_alias" != x; then
  953. if test "x$build_alias" = x; then
  954. cross_compiling=maybe
  955. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  956. If a cross compiler is detected then cross compile mode will be used." >&2
  957. elif test "x$build_alias" != "x$host_alias"; then
  958. cross_compiling=yes
  959. fi
  960. fi
  961. ac_tool_prefix=
  962. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  963. test "$silent" = yes && exec 6>/dev/null
  964. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  965. ac_ls_di=`ls -di .` &&
  966. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  967. { echo "$as_me: error: Working directory cannot be determined" >&2
  968. { (exit 1); exit 1; }; }
  969. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  970. { echo "$as_me: error: pwd does not report name of working directory" >&2
  971. { (exit 1); exit 1; }; }
  972. # Find the source files, if location was not specified.
  973. if test -z "$srcdir"; then
  974. ac_srcdir_defaulted=yes
  975. # Try the directory containing this script, then the parent directory.
  976. ac_confdir=`$as_dirname -- "$0" ||
  977. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  978. X"$0" : 'X\(//\)[^/]' \| \
  979. X"$0" : 'X\(//\)$' \| \
  980. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  981. echo X"$0" |
  982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  983. s//\1/
  984. q
  985. }
  986. /^X\(\/\/\)[^/].*/{
  987. s//\1/
  988. q
  989. }
  990. /^X\(\/\/\)$/{
  991. s//\1/
  992. q
  993. }
  994. /^X\(\/\).*/{
  995. s//\1/
  996. q
  997. }
  998. s/.*/./; q'`
  999. srcdir=$ac_confdir
  1000. if test ! -r "$srcdir/$ac_unique_file"; then
  1001. srcdir=..
  1002. fi
  1003. else
  1004. ac_srcdir_defaulted=no
  1005. fi
  1006. if test ! -r "$srcdir/$ac_unique_file"; then
  1007. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1008. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1009. { (exit 1); exit 1; }; }
  1010. fi
  1011. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1012. ac_abs_confdir=`(
  1013. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1014. { (exit 1); exit 1; }; }
  1015. pwd)`
  1016. # When building in place, set srcdir=.
  1017. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1018. srcdir=.
  1019. fi
  1020. # Remove unnecessary trailing slashes from srcdir.
  1021. # Double slashes in file names in object file debugging info
  1022. # mess up M-x gdb in Emacs.
  1023. case $srcdir in
  1024. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1025. esac
  1026. for ac_var in $ac_precious_vars; do
  1027. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1028. eval ac_env_${ac_var}_value=\$${ac_var}
  1029. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1030. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1031. done
  1032. #
  1033. # Report the --help message.
  1034. #
  1035. if test "$ac_init_help" = "long"; then
  1036. # Omit some internal or obsolete options to make the list less imposing.
  1037. # This message is too long to be a string in the A/UX 3.1 sh.
  1038. cat <<_ACEOF
  1039. \`configure' configures this package to adapt to many kinds of systems.
  1040. Usage: $0 [OPTION]... [VAR=VALUE]...
  1041. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1042. VAR=VALUE. See below for descriptions of some of the useful variables.
  1043. Defaults for the options are specified in brackets.
  1044. Configuration:
  1045. -h, --help display this help and exit
  1046. --help=short display options specific to this package
  1047. --help=recursive display the short help of all the included packages
  1048. -V, --version display version information and exit
  1049. -q, --quiet, --silent do not print \`checking...' messages
  1050. --cache-file=FILE cache test results in FILE [disabled]
  1051. -C, --config-cache alias for \`--cache-file=config.cache'
  1052. -n, --no-create do not create output files
  1053. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1054. Installation directories:
  1055. --prefix=PREFIX install architecture-independent files in PREFIX
  1056. [$ac_default_prefix]
  1057. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1058. [PREFIX]
  1059. By default, \`make install' will install all the files in
  1060. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1061. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1062. for instance \`--prefix=\$HOME'.
  1063. For better control, use the options below.
  1064. Fine tuning of the installation directories:
  1065. --bindir=DIR user executables [EPREFIX/bin]
  1066. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1067. --libexecdir=DIR program executables [EPREFIX/libexec]
  1068. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1069. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1070. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1071. --libdir=DIR object code libraries [EPREFIX/lib]
  1072. --includedir=DIR C header files [PREFIX/include]
  1073. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1074. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1075. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1076. --infodir=DIR info documentation [DATAROOTDIR/info]
  1077. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1078. --mandir=DIR man documentation [DATAROOTDIR/man]
  1079. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1080. --htmldir=DIR html documentation [DOCDIR]
  1081. --dvidir=DIR dvi documentation [DOCDIR]
  1082. --pdfdir=DIR pdf documentation [DOCDIR]
  1083. --psdir=DIR ps documentation [DOCDIR]
  1084. _ACEOF
  1085. cat <<\_ACEOF
  1086. _ACEOF
  1087. fi
  1088. if test -n "$ac_init_help"; then
  1089. cat <<\_ACEOF
  1090. Optional Features:
  1091. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1092. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1093. --disable-ipv6 disable IPv6 support
  1094. Some influential environment variables:
  1095. CXX C++ compiler command
  1096. CXXFLAGS C++ compiler flags
  1097. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1098. nonstandard directory <lib dir>
  1099. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1100. you have headers in a nonstandard directory <include dir>
  1101. CXXCPP C++ preprocessor
  1102. Use these variables to override the choices made by `configure' or to help
  1103. it to find libraries and programs with nonstandard names/locations.
  1104. _ACEOF
  1105. ac_status=$?
  1106. fi
  1107. if test "$ac_init_help" = "recursive"; then
  1108. # If there are subdirs, report their specific --help.
  1109. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1110. test -d "$ac_dir" || continue
  1111. ac_builddir=.
  1112. case "$ac_dir" in
  1113. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1114. *)
  1115. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1116. # A ".." for each directory in $ac_dir_suffix.
  1117. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1118. case $ac_top_builddir_sub in
  1119. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1120. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1121. esac ;;
  1122. esac
  1123. ac_abs_top_builddir=$ac_pwd
  1124. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1125. # for backward compatibility:
  1126. ac_top_builddir=$ac_top_build_prefix
  1127. case $srcdir in
  1128. .) # We are building in place.
  1129. ac_srcdir=.
  1130. ac_top_srcdir=$ac_top_builddir_sub
  1131. ac_abs_top_srcdir=$ac_pwd ;;
  1132. [\\/]* | ?:[\\/]* ) # Absolute name.
  1133. ac_srcdir=$srcdir$ac_dir_suffix;
  1134. ac_top_srcdir=$srcdir
  1135. ac_abs_top_srcdir=$srcdir ;;
  1136. *) # Relative name.
  1137. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1138. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1139. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1140. esac
  1141. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1142. cd "$ac_dir" || { ac_status=$?; continue; }
  1143. # Check for guested configure.
  1144. if test -f "$ac_srcdir/configure.gnu"; then
  1145. echo &&
  1146. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1147. elif test -f "$ac_srcdir/configure"; then
  1148. echo &&
  1149. $SHELL "$ac_srcdir/configure" --help=recursive
  1150. else
  1151. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1152. fi || ac_status=$?
  1153. cd "$ac_pwd" || { ac_status=$?; break; }
  1154. done
  1155. fi
  1156. test -n "$ac_init_help" && exit $ac_status
  1157. if $ac_init_version; then
  1158. cat <<\_ACEOF
  1159. configure
  1160. generated by GNU Autoconf 2.60
  1161. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1162. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1163. This configure script is free software; the Free Software Foundation
  1164. gives unlimited permission to copy, distribute and modify it.
  1165. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  1166. _ACEOF
  1167. exit
  1168. fi
  1169. cat >config.log <<_ACEOF
  1170. This file contains any messages produced by compilers while
  1171. running configure, to aid debugging if configure makes a mistake.
  1172. It was created by $as_me, which was
  1173. generated by GNU Autoconf 2.60. Invocation command line was
  1174. $ $0 $@
  1175. _ACEOF
  1176. exec 5>>config.log
  1177. {
  1178. cat <<_ASUNAME
  1179. ## --------- ##
  1180. ## Platform. ##
  1181. ## --------- ##
  1182. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1183. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1184. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1185. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1186. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1187. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1188. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1189. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1190. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1191. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1192. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1193. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1194. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1195. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1196. _ASUNAME
  1197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1198. for as_dir in $PATH
  1199. do
  1200. IFS=$as_save_IFS
  1201. test -z "$as_dir" && as_dir=.
  1202. echo "PATH: $as_dir"
  1203. done
  1204. IFS=$as_save_IFS
  1205. } >&5
  1206. cat >&5 <<_ACEOF
  1207. ## ----------- ##
  1208. ## Core tests. ##
  1209. ## ----------- ##
  1210. _ACEOF
  1211. # Keep a trace of the command line.
  1212. # Strip out --no-create and --no-recursion so they do not pile up.
  1213. # Strip out --silent because we don't want to record it for future runs.
  1214. # Also quote any args containing shell meta-characters.
  1215. # Make two passes to allow for proper duplicate-argument suppression.
  1216. ac_configure_args=
  1217. ac_configure_args0=
  1218. ac_configure_args1=
  1219. ac_must_keep_next=false
  1220. for ac_pass in 1 2
  1221. do
  1222. for ac_arg
  1223. do
  1224. case $ac_arg in
  1225. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1226. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1227. | -silent | --silent | --silen | --sile | --sil)
  1228. continue ;;
  1229. *\'*)
  1230. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1231. esac
  1232. case $ac_pass in
  1233. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1234. 2)
  1235. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1236. if test $ac_must_keep_next = true; then
  1237. ac_must_keep_next=false # Got value, back to normal.
  1238. else
  1239. case $ac_arg in
  1240. *=* | --config-cache | -C | -disable-* | --disable-* \
  1241. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1242. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1243. | -with-* | --with-* | -without-* | --without-* | --x)
  1244. case "$ac_configure_args0 " in
  1245. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1246. esac
  1247. ;;
  1248. -* ) ac_must_keep_next=true ;;
  1249. esac
  1250. fi
  1251. ac_configure_args="$ac_configure_args '$ac_arg'"
  1252. ;;
  1253. esac
  1254. done
  1255. done
  1256. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1257. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1258. # When interrupted or exit'd, cleanup temporary files, and complete
  1259. # config.log. We remove comments because anyway the quotes in there
  1260. # would cause problems or look ugly.
  1261. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1262. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1263. trap 'exit_status=$?
  1264. # Save into config.log some information that might help in debugging.
  1265. {
  1266. echo
  1267. cat <<\_ASBOX
  1268. ## ---------------- ##
  1269. ## Cache variables. ##
  1270. ## ---------------- ##
  1271. _ASBOX
  1272. echo
  1273. # The following way of writing the cache mishandles newlines in values,
  1274. (
  1275. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1276. eval ac_val=\$$ac_var
  1277. case $ac_val in #(
  1278. *${as_nl}*)
  1279. case $ac_var in #(
  1280. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1281. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1282. esac
  1283. case $ac_var in #(
  1284. _ | IFS | as_nl) ;; #(
  1285. *) $as_unset $ac_var ;;
  1286. esac ;;
  1287. esac
  1288. done
  1289. (set) 2>&1 |
  1290. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1291. *${as_nl}ac_space=\ *)
  1292. sed -n \
  1293. "s/'\''/'\''\\\\'\'''\''/g;
  1294. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1295. ;; #(
  1296. *)
  1297. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1298. ;;
  1299. esac |
  1300. sort
  1301. )
  1302. echo
  1303. cat <<\_ASBOX
  1304. ## ----------------- ##
  1305. ## Output variables. ##
  1306. ## ----------------- ##
  1307. _ASBOX
  1308. echo
  1309. for ac_var in $ac_subst_vars
  1310. do
  1311. eval ac_val=\$$ac_var
  1312. case $ac_val in
  1313. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1314. esac
  1315. echo "$ac_var='\''$ac_val'\''"
  1316. done | sort
  1317. echo
  1318. if test -n "$ac_subst_files"; then
  1319. cat <<\_ASBOX
  1320. ## ------------------- ##
  1321. ## File substitutions. ##
  1322. ## ------------------- ##
  1323. _ASBOX
  1324. echo
  1325. for ac_var in $ac_subst_files
  1326. do
  1327. eval ac_val=\$$ac_var
  1328. case $ac_val in
  1329. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1330. esac
  1331. echo "$ac_var='\''$ac_val'\''"
  1332. done | sort
  1333. echo
  1334. fi
  1335. if test -s confdefs.h; then
  1336. cat <<\_ASBOX
  1337. ## ----------- ##
  1338. ## confdefs.h. ##
  1339. ## ----------- ##
  1340. _ASBOX
  1341. echo
  1342. cat confdefs.h
  1343. echo
  1344. fi
  1345. test "$ac_signal" != 0 &&
  1346. echo "$as_me: caught signal $ac_signal"
  1347. echo "$as_me: exit $exit_status"
  1348. } >&5
  1349. rm -f core *.core core.conftest.* &&
  1350. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1351. exit $exit_status
  1352. ' 0
  1353. for ac_signal in 1 2 13 15; do
  1354. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1355. done
  1356. ac_signal=0
  1357. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1358. rm -f -r conftest* confdefs.h
  1359. # Predefined preprocessor variables.
  1360. cat >>confdefs.h <<_ACEOF
  1361. #define PACKAGE_NAME "$PACKAGE_NAME"
  1362. _ACEOF
  1363. cat >>confdefs.h <<_ACEOF
  1364. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1365. _ACEOF
  1366. cat >>confdefs.h <<_ACEOF
  1367. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1368. _ACEOF
  1369. cat >>confdefs.h <<_ACEOF
  1370. #define PACKAGE_STRING "$PACKAGE_STRING"
  1371. _ACEOF
  1372. cat >>confdefs.h <<_ACEOF
  1373. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1374. _ACEOF
  1375. # Let the site file select an alternate cache file if it wants to.
  1376. # Prefer explicitly selected file to automatically selected ones.
  1377. if test -n "$CONFIG_SITE"; then
  1378. set x "$CONFIG_SITE"
  1379. elif test "x$prefix" != xNONE; then
  1380. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1381. else
  1382. set x "$ac_default_prefix/share/config.site" \
  1383. "$ac_default_prefix/etc/config.site"
  1384. fi
  1385. shift
  1386. for ac_site_file
  1387. do
  1388. if test -r "$ac_site_file"; then
  1389. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1390. echo "$as_me: loading site script $ac_site_file" >&6;}
  1391. sed 's/^/| /' "$ac_site_file" >&5
  1392. . "$ac_site_file"
  1393. fi
  1394. done
  1395. if test -r "$cache_file"; then
  1396. # Some versions of bash will fail to source /dev/null (special
  1397. # files actually), so we avoid doing that.
  1398. if test -f "$cache_file"; then
  1399. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1400. echo "$as_me: loading cache $cache_file" >&6;}
  1401. case $cache_file in
  1402. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1403. *) . "./$cache_file";;
  1404. esac
  1405. fi
  1406. else
  1407. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1408. echo "$as_me: creating cache $cache_file" >&6;}
  1409. >$cache_file
  1410. fi
  1411. # Check that the precious variables saved in the cache have kept the same
  1412. # value.
  1413. ac_cache_corrupted=false
  1414. for ac_var in $ac_precious_vars; do
  1415. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1416. eval ac_new_set=\$ac_env_${ac_var}_set
  1417. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1418. eval ac_new_val=\$ac_env_${ac_var}_value
  1419. case $ac_old_set,$ac_new_set in
  1420. set,)
  1421. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1422. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1423. ac_cache_corrupted=: ;;
  1424. ,set)
  1425. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1426. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1427. ac_cache_corrupted=: ;;
  1428. ,);;
  1429. *)
  1430. if test "x$ac_old_val" != "x$ac_new_val"; then
  1431. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1432. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1433. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1434. echo "$as_me: former value: $ac_old_val" >&2;}
  1435. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1436. echo "$as_me: current value: $ac_new_val" >&2;}
  1437. ac_cache_corrupted=:
  1438. fi;;
  1439. esac
  1440. # Pass precious variables to config.status.
  1441. if test "$ac_new_set" = set; then
  1442. case $ac_new_val in
  1443. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1444. *) ac_arg=$ac_var=$ac_new_val ;;
  1445. esac
  1446. case " $ac_configure_args " in
  1447. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1448. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1449. esac
  1450. fi
  1451. done
  1452. if $ac_cache_corrupted; then
  1453. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1454. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1455. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1456. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1457. { (exit 1); exit 1; }; }
  1458. fi
  1459. ac_ext=c
  1460. ac_cpp='$CPP $CPPFLAGS'
  1461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1464. ac_config_headers="$ac_config_headers config.h"
  1465. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1466. egg_ac_parameters=
  1467. ac_prev=
  1468. for ac_arg in $ac_configure_args; do
  1469. if test -n "$ac_prev"; then
  1470. ac_prev=
  1471. continue
  1472. fi
  1473. case $ac_arg in
  1474. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1475. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1476. ac_prev=cache_file ;;
  1477. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1478. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1479. | --c=*)
  1480. ;;
  1481. --config-cache | -C)
  1482. ;;
  1483. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1484. ac_prev=srcdir ;;
  1485. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1486. ;;
  1487. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1488. esac
  1489. done
  1490. # Setup build environment
  1491. #AC_REQUIRE_CPP
  1492. ac_ext=cpp
  1493. ac_cpp='$CXXCPP $CPPFLAGS'
  1494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1497. ac_ext=cpp
  1498. ac_cpp='$CXXCPP $CPPFLAGS'
  1499. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1500. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1501. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1502. if test -z "$CXX"; then
  1503. if test -n "$CCC"; then
  1504. CXX=$CCC
  1505. else
  1506. if test -n "$ac_tool_prefix"; then
  1507. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1508. do
  1509. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1510. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1511. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1512. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1513. if test "${ac_cv_prog_CXX+set}" = set; then
  1514. echo $ECHO_N "(cached) $ECHO_C" >&6
  1515. else
  1516. if test -n "$CXX"; then
  1517. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1518. else
  1519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1520. for as_dir in $PATH
  1521. do
  1522. IFS=$as_save_IFS
  1523. test -z "$as_dir" && as_dir=.
  1524. for ac_exec_ext in '' $ac_executable_extensions; do
  1525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1526. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1527. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1528. break 2
  1529. fi
  1530. done
  1531. done
  1532. IFS=$as_save_IFS
  1533. fi
  1534. fi
  1535. CXX=$ac_cv_prog_CXX
  1536. if test -n "$CXX"; then
  1537. { echo "$as_me:$LINENO: result: $CXX" >&5
  1538. echo "${ECHO_T}$CXX" >&6; }
  1539. else
  1540. { echo "$as_me:$LINENO: result: no" >&5
  1541. echo "${ECHO_T}no" >&6; }
  1542. fi
  1543. test -n "$CXX" && break
  1544. done
  1545. fi
  1546. if test -z "$CXX"; then
  1547. ac_ct_CXX=$CXX
  1548. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1549. do
  1550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1551. set dummy $ac_prog; ac_word=$2
  1552. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1554. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1555. echo $ECHO_N "(cached) $ECHO_C" >&6
  1556. else
  1557. if test -n "$ac_ct_CXX"; then
  1558. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1559. else
  1560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1561. for as_dir in $PATH
  1562. do
  1563. IFS=$as_save_IFS
  1564. test -z "$as_dir" && as_dir=.
  1565. for ac_exec_ext in '' $ac_executable_extensions; do
  1566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1567. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1568. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1569. break 2
  1570. fi
  1571. done
  1572. done
  1573. IFS=$as_save_IFS
  1574. fi
  1575. fi
  1576. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1577. if test -n "$ac_ct_CXX"; then
  1578. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1579. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1580. else
  1581. { echo "$as_me:$LINENO: result: no" >&5
  1582. echo "${ECHO_T}no" >&6; }
  1583. fi
  1584. test -n "$ac_ct_CXX" && break
  1585. done
  1586. if test "x$ac_ct_CXX" = x; then
  1587. CXX="g++"
  1588. else
  1589. case $cross_compiling:$ac_tool_warned in
  1590. yes:)
  1591. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1592. whose name does not start with the host triplet. If you think this
  1593. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1594. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1595. whose name does not start with the host triplet. If you think this
  1596. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1597. ac_tool_warned=yes ;;
  1598. esac
  1599. CXX=$ac_ct_CXX
  1600. fi
  1601. fi
  1602. fi
  1603. fi
  1604. # Provide some information about the compiler.
  1605. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1606. ac_compiler=`set X $ac_compile; echo $2`
  1607. { (ac_try="$ac_compiler --version >&5"
  1608. case "(($ac_try" in
  1609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1610. *) ac_try_echo=$ac_try;;
  1611. esac
  1612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1613. (eval "$ac_compiler --version >&5") 2>&5
  1614. ac_status=$?
  1615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1616. (exit $ac_status); }
  1617. { (ac_try="$ac_compiler -v >&5"
  1618. case "(($ac_try" in
  1619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1620. *) ac_try_echo=$ac_try;;
  1621. esac
  1622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1623. (eval "$ac_compiler -v >&5") 2>&5
  1624. ac_status=$?
  1625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1626. (exit $ac_status); }
  1627. { (ac_try="$ac_compiler -V >&5"
  1628. case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1633. (eval "$ac_compiler -V >&5") 2>&5
  1634. ac_status=$?
  1635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1636. (exit $ac_status); }
  1637. cat >conftest.$ac_ext <<_ACEOF
  1638. /* confdefs.h. */
  1639. _ACEOF
  1640. cat confdefs.h >>conftest.$ac_ext
  1641. cat >>conftest.$ac_ext <<_ACEOF
  1642. /* end confdefs.h. */
  1643. int
  1644. main ()
  1645. {
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. ac_clean_files_save=$ac_clean_files
  1651. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1652. # Try to create an executable without -o first, disregard a.out.
  1653. # It will help us diagnose broken compilers, and finding out an intuition
  1654. # of exeext.
  1655. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1656. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1657. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1658. #
  1659. # List of possible output files, starting from the most likely.
  1660. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1661. # only as a last resort. b.out is created by i960 compilers.
  1662. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1663. #
  1664. # The IRIX 6 linker writes into existing files which may not be
  1665. # executable, retaining their permissions. Remove them first so a
  1666. # subsequent execution test works.
  1667. ac_rmfiles=
  1668. for ac_file in $ac_files
  1669. do
  1670. case $ac_file in
  1671. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1672. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1673. esac
  1674. done
  1675. rm -f $ac_rmfiles
  1676. if { (ac_try="$ac_link_default"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1682. (eval "$ac_link_default") 2>&5
  1683. ac_status=$?
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); }; then
  1686. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1687. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1688. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1689. # so that the user can short-circuit this test for compilers unknown to
  1690. # Autoconf.
  1691. for ac_file in $ac_files
  1692. do
  1693. test -f "$ac_file" || continue
  1694. case $ac_file in
  1695. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1696. ;;
  1697. [ab].out )
  1698. # We found the default executable, but exeext='' is most
  1699. # certainly right.
  1700. break;;
  1701. *.* )
  1702. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1703. then :; else
  1704. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1705. fi
  1706. # We set ac_cv_exeext here because the later test for it is not
  1707. # safe: cross compilers may not add the suffix if given an `-o'
  1708. # argument, so we may need to know it at that point already.
  1709. # Even if this section looks crufty: it has the advantage of
  1710. # actually working.
  1711. break;;
  1712. * )
  1713. break;;
  1714. esac
  1715. done
  1716. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1717. else
  1718. echo "$as_me: failed program was:" >&5
  1719. sed 's/^/| /' conftest.$ac_ext >&5
  1720. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1721. See \`config.log' for more details." >&5
  1722. echo "$as_me: error: C++ compiler cannot create executables
  1723. See \`config.log' for more details." >&2;}
  1724. { (exit 77); exit 77; }; }
  1725. fi
  1726. ac_exeext=$ac_cv_exeext
  1727. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1728. echo "${ECHO_T}$ac_file" >&6; }
  1729. # Check that the compiler produces executables we can run. If not, either
  1730. # the compiler is broken, or we cross compile.
  1731. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1732. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1733. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1734. # If not cross compiling, check that we can run a simple program.
  1735. if test "$cross_compiling" != yes; then
  1736. if { ac_try='./$ac_file'
  1737. { (case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1742. (eval "$ac_try") 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; }; then
  1746. cross_compiling=no
  1747. else
  1748. if test "$cross_compiling" = maybe; then
  1749. cross_compiling=yes
  1750. else
  1751. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1752. If you meant to cross compile, use \`--host'.
  1753. See \`config.log' for more details." >&5
  1754. echo "$as_me: error: cannot run C++ compiled programs.
  1755. If you meant to cross compile, use \`--host'.
  1756. See \`config.log' for more details." >&2;}
  1757. { (exit 1); exit 1; }; }
  1758. fi
  1759. fi
  1760. fi
  1761. { echo "$as_me:$LINENO: result: yes" >&5
  1762. echo "${ECHO_T}yes" >&6; }
  1763. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1764. ac_clean_files=$ac_clean_files_save
  1765. # Check that the compiler produces executables we can run. If not, either
  1766. # the compiler is broken, or we cross compile.
  1767. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1768. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1769. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1770. echo "${ECHO_T}$cross_compiling" >&6; }
  1771. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1772. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1773. if { (ac_try="$ac_link"
  1774. case "(($ac_try" in
  1775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1776. *) ac_try_echo=$ac_try;;
  1777. esac
  1778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1779. (eval "$ac_link") 2>&5
  1780. ac_status=$?
  1781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1782. (exit $ac_status); }; then
  1783. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1784. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1785. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1786. # `rm'.
  1787. for ac_file in conftest.exe conftest conftest.*; do
  1788. test -f "$ac_file" || continue
  1789. case $ac_file in
  1790. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1791. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1792. break;;
  1793. * ) break;;
  1794. esac
  1795. done
  1796. else
  1797. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1798. See \`config.log' for more details." >&5
  1799. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1800. See \`config.log' for more details." >&2;}
  1801. { (exit 1); exit 1; }; }
  1802. fi
  1803. rm -f conftest$ac_cv_exeext
  1804. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1805. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1806. rm -f conftest.$ac_ext
  1807. EXEEXT=$ac_cv_exeext
  1808. ac_exeext=$EXEEXT
  1809. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1810. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1811. if test "${ac_cv_objext+set}" = set; then
  1812. echo $ECHO_N "(cached) $ECHO_C" >&6
  1813. else
  1814. cat >conftest.$ac_ext <<_ACEOF
  1815. /* confdefs.h. */
  1816. _ACEOF
  1817. cat confdefs.h >>conftest.$ac_ext
  1818. cat >>conftest.$ac_ext <<_ACEOF
  1819. /* end confdefs.h. */
  1820. int
  1821. main ()
  1822. {
  1823. ;
  1824. return 0;
  1825. }
  1826. _ACEOF
  1827. rm -f conftest.o conftest.obj
  1828. if { (ac_try="$ac_compile"
  1829. case "(($ac_try" in
  1830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1831. *) ac_try_echo=$ac_try;;
  1832. esac
  1833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1834. (eval "$ac_compile") 2>&5
  1835. ac_status=$?
  1836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1837. (exit $ac_status); }; then
  1838. for ac_file in conftest.o conftest.obj conftest.*; do
  1839. test -f "$ac_file" || continue;
  1840. case $ac_file in
  1841. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1842. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1843. break;;
  1844. esac
  1845. done
  1846. else
  1847. echo "$as_me: failed program was:" >&5
  1848. sed 's/^/| /' conftest.$ac_ext >&5
  1849. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1850. See \`config.log' for more details." >&5
  1851. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1852. See \`config.log' for more details." >&2;}
  1853. { (exit 1); exit 1; }; }
  1854. fi
  1855. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1856. fi
  1857. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1858. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1859. OBJEXT=$ac_cv_objext
  1860. ac_objext=$OBJEXT
  1861. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1862. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1863. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1864. echo $ECHO_N "(cached) $ECHO_C" >&6
  1865. else
  1866. cat >conftest.$ac_ext <<_ACEOF
  1867. /* confdefs.h. */
  1868. _ACEOF
  1869. cat confdefs.h >>conftest.$ac_ext
  1870. cat >>conftest.$ac_ext <<_ACEOF
  1871. /* end confdefs.h. */
  1872. int
  1873. main ()
  1874. {
  1875. #ifndef __GNUC__
  1876. choke me
  1877. #endif
  1878. ;
  1879. return 0;
  1880. }
  1881. _ACEOF
  1882. rm -f conftest.$ac_objext
  1883. if { (ac_try="$ac_compile"
  1884. case "(($ac_try" in
  1885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1886. *) ac_try_echo=$ac_try;;
  1887. esac
  1888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1889. (eval "$ac_compile") 2>conftest.er1
  1890. ac_status=$?
  1891. grep -v '^ *+' conftest.er1 >conftest.err
  1892. rm -f conftest.er1
  1893. cat conftest.err >&5
  1894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1895. (exit $ac_status); } &&
  1896. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1897. { (case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1902. (eval "$ac_try") 2>&5
  1903. ac_status=$?
  1904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); }; } &&
  1906. { ac_try='test -s conftest.$ac_objext'
  1907. { (case "(($ac_try" in
  1908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1909. *) ac_try_echo=$ac_try;;
  1910. esac
  1911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1912. (eval "$ac_try") 2>&5
  1913. ac_status=$?
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); }; }; then
  1916. ac_compiler_gnu=yes
  1917. else
  1918. echo "$as_me: failed program was:" >&5
  1919. sed 's/^/| /' conftest.$ac_ext >&5
  1920. ac_compiler_gnu=no
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1924. fi
  1925. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1926. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1927. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1928. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1929. ac_save_CXXFLAGS=$CXXFLAGS
  1930. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1931. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1932. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1933. echo $ECHO_N "(cached) $ECHO_C" >&6
  1934. else
  1935. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1936. ac_cxx_werror_flag=yes
  1937. ac_cv_prog_cxx_g=no
  1938. CXXFLAGS="-g"
  1939. cat >conftest.$ac_ext <<_ACEOF
  1940. /* confdefs.h. */
  1941. _ACEOF
  1942. cat confdefs.h >>conftest.$ac_ext
  1943. cat >>conftest.$ac_ext <<_ACEOF
  1944. /* end confdefs.h. */
  1945. int
  1946. main ()
  1947. {
  1948. ;
  1949. return 0;
  1950. }
  1951. _ACEOF
  1952. rm -f conftest.$ac_objext
  1953. if { (ac_try="$ac_compile"
  1954. case "(($ac_try" in
  1955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1956. *) ac_try_echo=$ac_try;;
  1957. esac
  1958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1959. (eval "$ac_compile") 2>conftest.er1
  1960. ac_status=$?
  1961. grep -v '^ *+' conftest.er1 >conftest.err
  1962. rm -f conftest.er1
  1963. cat conftest.err >&5
  1964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1965. (exit $ac_status); } &&
  1966. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1967. { (case "(($ac_try" in
  1968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1969. *) ac_try_echo=$ac_try;;
  1970. esac
  1971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1972. (eval "$ac_try") 2>&5
  1973. ac_status=$?
  1974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1975. (exit $ac_status); }; } &&
  1976. { ac_try='test -s conftest.$ac_objext'
  1977. { (case "(($ac_try" in
  1978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1979. *) ac_try_echo=$ac_try;;
  1980. esac
  1981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1982. (eval "$ac_try") 2>&5
  1983. ac_status=$?
  1984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1985. (exit $ac_status); }; }; then
  1986. ac_cv_prog_cxx_g=yes
  1987. else
  1988. echo "$as_me: failed program was:" >&5
  1989. sed 's/^/| /' conftest.$ac_ext >&5
  1990. CXXFLAGS=""
  1991. cat >conftest.$ac_ext <<_ACEOF
  1992. /* confdefs.h. */
  1993. _ACEOF
  1994. cat confdefs.h >>conftest.$ac_ext
  1995. cat >>conftest.$ac_ext <<_ACEOF
  1996. /* end confdefs.h. */
  1997. int
  1998. main ()
  1999. {
  2000. ;
  2001. return 0;
  2002. }
  2003. _ACEOF
  2004. rm -f conftest.$ac_objext
  2005. if { (ac_try="$ac_compile"
  2006. case "(($ac_try" in
  2007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2008. *) ac_try_echo=$ac_try;;
  2009. esac
  2010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2011. (eval "$ac_compile") 2>conftest.er1
  2012. ac_status=$?
  2013. grep -v '^ *+' conftest.er1 >conftest.err
  2014. rm -f conftest.er1
  2015. cat conftest.err >&5
  2016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2017. (exit $ac_status); } &&
  2018. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2019. { (case "(($ac_try" in
  2020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2021. *) ac_try_echo=$ac_try;;
  2022. esac
  2023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2024. (eval "$ac_try") 2>&5
  2025. ac_status=$?
  2026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2027. (exit $ac_status); }; } &&
  2028. { ac_try='test -s conftest.$ac_objext'
  2029. { (case "(($ac_try" in
  2030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2031. *) ac_try_echo=$ac_try;;
  2032. esac
  2033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2034. (eval "$ac_try") 2>&5
  2035. ac_status=$?
  2036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2037. (exit $ac_status); }; }; then
  2038. :
  2039. else
  2040. echo "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2043. CXXFLAGS="-g"
  2044. cat >conftest.$ac_ext <<_ACEOF
  2045. /* confdefs.h. */
  2046. _ACEOF
  2047. cat confdefs.h >>conftest.$ac_ext
  2048. cat >>conftest.$ac_ext <<_ACEOF
  2049. /* end confdefs.h. */
  2050. int
  2051. main ()
  2052. {
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. rm -f conftest.$ac_objext
  2058. if { (ac_try="$ac_compile"
  2059. case "(($ac_try" in
  2060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2061. *) ac_try_echo=$ac_try;;
  2062. esac
  2063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2064. (eval "$ac_compile") 2>conftest.er1
  2065. ac_status=$?
  2066. grep -v '^ *+' conftest.er1 >conftest.err
  2067. rm -f conftest.er1
  2068. cat conftest.err >&5
  2069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2070. (exit $ac_status); } &&
  2071. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2072. { (case "(($ac_try" in
  2073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2074. *) ac_try_echo=$ac_try;;
  2075. esac
  2076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2077. (eval "$ac_try") 2>&5
  2078. ac_status=$?
  2079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); }; } &&
  2081. { ac_try='test -s conftest.$ac_objext'
  2082. { (case "(($ac_try" in
  2083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2084. *) ac_try_echo=$ac_try;;
  2085. esac
  2086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2087. (eval "$ac_try") 2>&5
  2088. ac_status=$?
  2089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); }; }; then
  2091. ac_cv_prog_cxx_g=yes
  2092. else
  2093. echo "$as_me: failed program was:" >&5
  2094. sed 's/^/| /' conftest.$ac_ext >&5
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. fi
  2098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2102. fi
  2103. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2104. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2105. if test "$ac_test_CXXFLAGS" = set; then
  2106. CXXFLAGS=$ac_save_CXXFLAGS
  2107. elif test $ac_cv_prog_cxx_g = yes; then
  2108. if test "$GXX" = yes; then
  2109. CXXFLAGS="-g -O2"
  2110. else
  2111. CXXFLAGS="-g"
  2112. fi
  2113. else
  2114. if test "$GXX" = yes; then
  2115. CXXFLAGS="-O2"
  2116. else
  2117. CXXFLAGS=
  2118. fi
  2119. fi
  2120. ac_ext=cpp
  2121. ac_cpp='$CXXCPP $CPPFLAGS'
  2122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2125. if test "${cross_compiling-x}" = "x"
  2126. then
  2127. cat << 'EOF' >&2
  2128. configure: error:
  2129. This system does not appear to have a working C compiler.
  2130. A working C compiler is required to compile Eggdrop.
  2131. EOF
  2132. exit 1
  2133. fi
  2134. if test -n "$GXX"; then
  2135. CXXFLAGS="$CXXFLAGS -O3"
  2136. fi
  2137. # Crazy machines
  2138. ac_ext=cpp
  2139. ac_cpp='$CXXCPP $CPPFLAGS'
  2140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2143. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2144. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  2145. if test -z "$CXXCPP"; then
  2146. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2147. echo $ECHO_N "(cached) $ECHO_C" >&6
  2148. else
  2149. # Double quotes because CXXCPP needs to be expanded
  2150. for CXXCPP in "$CXX -E" "/lib/cpp"
  2151. do
  2152. ac_preproc_ok=false
  2153. for ac_cxx_preproc_warn_flag in '' yes
  2154. do
  2155. # Use a header file that comes with gcc, so configuring glibc
  2156. # with a fresh cross-compiler works.
  2157. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2158. # <limits.h> exists even on freestanding compilers.
  2159. # On the NeXT, cc -E runs the code through the compiler's parser,
  2160. # not just through cpp. "Syntax error" is here to catch this case.
  2161. cat >conftest.$ac_ext <<_ACEOF
  2162. /* confdefs.h. */
  2163. _ACEOF
  2164. cat confdefs.h >>conftest.$ac_ext
  2165. cat >>conftest.$ac_ext <<_ACEOF
  2166. /* end confdefs.h. */
  2167. #ifdef __STDC__
  2168. # include <limits.h>
  2169. #else
  2170. # include <assert.h>
  2171. #endif
  2172. Syntax error
  2173. _ACEOF
  2174. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2175. case "(($ac_try" in
  2176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2177. *) ac_try_echo=$ac_try;;
  2178. esac
  2179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2180. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2181. ac_status=$?
  2182. grep -v '^ *+' conftest.er1 >conftest.err
  2183. rm -f conftest.er1
  2184. cat conftest.err >&5
  2185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2186. (exit $ac_status); } >/dev/null; then
  2187. if test -s conftest.err; then
  2188. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2189. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2190. else
  2191. ac_cpp_err=
  2192. fi
  2193. else
  2194. ac_cpp_err=yes
  2195. fi
  2196. if test -z "$ac_cpp_err"; then
  2197. :
  2198. else
  2199. echo "$as_me: failed program was:" >&5
  2200. sed 's/^/| /' conftest.$ac_ext >&5
  2201. # Broken: fails on valid input.
  2202. continue
  2203. fi
  2204. rm -f conftest.err conftest.$ac_ext
  2205. # OK, works on sane cases. Now check whether nonexistent headers
  2206. # can be detected and how.
  2207. cat >conftest.$ac_ext <<_ACEOF
  2208. /* confdefs.h. */
  2209. _ACEOF
  2210. cat confdefs.h >>conftest.$ac_ext
  2211. cat >>conftest.$ac_ext <<_ACEOF
  2212. /* end confdefs.h. */
  2213. #include <ac_nonexistent.h>
  2214. _ACEOF
  2215. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2216. case "(($ac_try" in
  2217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2218. *) ac_try_echo=$ac_try;;
  2219. esac
  2220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2221. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2222. ac_status=$?
  2223. grep -v '^ *+' conftest.er1 >conftest.err
  2224. rm -f conftest.er1
  2225. cat conftest.err >&5
  2226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2227. (exit $ac_status); } >/dev/null; then
  2228. if test -s conftest.err; then
  2229. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2230. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2231. else
  2232. ac_cpp_err=
  2233. fi
  2234. else
  2235. ac_cpp_err=yes
  2236. fi
  2237. if test -z "$ac_cpp_err"; then
  2238. # Broken: success on invalid input.
  2239. continue
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. # Passes both tests.
  2244. ac_preproc_ok=:
  2245. break
  2246. fi
  2247. rm -f conftest.err conftest.$ac_ext
  2248. done
  2249. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2250. rm -f conftest.err conftest.$ac_ext
  2251. if $ac_preproc_ok; then
  2252. break
  2253. fi
  2254. done
  2255. ac_cv_prog_CXXCPP=$CXXCPP
  2256. fi
  2257. CXXCPP=$ac_cv_prog_CXXCPP
  2258. else
  2259. ac_cv_prog_CXXCPP=$CXXCPP
  2260. fi
  2261. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2262. echo "${ECHO_T}$CXXCPP" >&6; }
  2263. ac_preproc_ok=false
  2264. for ac_cxx_preproc_warn_flag in '' yes
  2265. do
  2266. # Use a header file that comes with gcc, so configuring glibc
  2267. # with a fresh cross-compiler works.
  2268. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2269. # <limits.h> exists even on freestanding compilers.
  2270. # On the NeXT, cc -E runs the code through the compiler's parser,
  2271. # not just through cpp. "Syntax error" is here to catch this case.
  2272. cat >conftest.$ac_ext <<_ACEOF
  2273. /* confdefs.h. */
  2274. _ACEOF
  2275. cat confdefs.h >>conftest.$ac_ext
  2276. cat >>conftest.$ac_ext <<_ACEOF
  2277. /* end confdefs.h. */
  2278. #ifdef __STDC__
  2279. # include <limits.h>
  2280. #else
  2281. # include <assert.h>
  2282. #endif
  2283. Syntax error
  2284. _ACEOF
  2285. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2286. case "(($ac_try" in
  2287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2288. *) ac_try_echo=$ac_try;;
  2289. esac
  2290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2291. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } >/dev/null; then
  2298. if test -s conftest.err; then
  2299. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2300. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2301. else
  2302. ac_cpp_err=
  2303. fi
  2304. else
  2305. ac_cpp_err=yes
  2306. fi
  2307. if test -z "$ac_cpp_err"; then
  2308. :
  2309. else
  2310. echo "$as_me: failed program was:" >&5
  2311. sed 's/^/| /' conftest.$ac_ext >&5
  2312. # Broken: fails on valid input.
  2313. continue
  2314. fi
  2315. rm -f conftest.err conftest.$ac_ext
  2316. # OK, works on sane cases. Now check whether nonexistent headers
  2317. # can be detected and how.
  2318. cat >conftest.$ac_ext <<_ACEOF
  2319. /* confdefs.h. */
  2320. _ACEOF
  2321. cat confdefs.h >>conftest.$ac_ext
  2322. cat >>conftest.$ac_ext <<_ACEOF
  2323. /* end confdefs.h. */
  2324. #include <ac_nonexistent.h>
  2325. _ACEOF
  2326. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2327. case "(($ac_try" in
  2328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2329. *) ac_try_echo=$ac_try;;
  2330. esac
  2331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2332. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2333. ac_status=$?
  2334. grep -v '^ *+' conftest.er1 >conftest.err
  2335. rm -f conftest.er1
  2336. cat conftest.err >&5
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); } >/dev/null; then
  2339. if test -s conftest.err; then
  2340. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2341. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2342. else
  2343. ac_cpp_err=
  2344. fi
  2345. else
  2346. ac_cpp_err=yes
  2347. fi
  2348. if test -z "$ac_cpp_err"; then
  2349. # Broken: success on invalid input.
  2350. continue
  2351. else
  2352. echo "$as_me: failed program was:" >&5
  2353. sed 's/^/| /' conftest.$ac_ext >&5
  2354. # Passes both tests.
  2355. ac_preproc_ok=:
  2356. break
  2357. fi
  2358. rm -f conftest.err conftest.$ac_ext
  2359. done
  2360. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2361. rm -f conftest.err conftest.$ac_ext
  2362. if $ac_preproc_ok; then
  2363. :
  2364. else
  2365. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2366. See \`config.log' for more details." >&5
  2367. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2368. See \`config.log' for more details." >&2;}
  2369. { (exit 1); exit 1; }; }
  2370. fi
  2371. ac_ext=cpp
  2372. ac_cpp='$CXXCPP $CPPFLAGS'
  2373. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2374. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2375. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2376. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2377. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2378. if test "${ac_cv_path_GREP+set}" = set; then
  2379. echo $ECHO_N "(cached) $ECHO_C" >&6
  2380. else
  2381. # Extract the first word of "grep ggrep" to use in msg output
  2382. if test -z "$GREP"; then
  2383. set dummy grep ggrep; ac_prog_name=$2
  2384. if test "${ac_cv_path_GREP+set}" = set; then
  2385. echo $ECHO_N "(cached) $ECHO_C" >&6
  2386. else
  2387. ac_path_GREP_found=false
  2388. # Loop through the user's path and test for each of PROGNAME-LIST
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_prog in grep ggrep; do
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2397. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  2398. # Check for GNU ac_path_GREP and select it if it is found.
  2399. # Check for GNU $ac_path_GREP
  2400. case `"$ac_path_GREP" --version 2>&1` in
  2401. *GNU*)
  2402. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2403. *)
  2404. ac_count=0
  2405. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2406. while :
  2407. do
  2408. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2409. mv "conftest.tmp" "conftest.in"
  2410. cp "conftest.in" "conftest.nl"
  2411. echo 'GREP' >> "conftest.nl"
  2412. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2413. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2414. ac_count=`expr $ac_count + 1`
  2415. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2416. # Best one so far, save it but keep looking for a better one
  2417. ac_cv_path_GREP="$ac_path_GREP"
  2418. ac_path_GREP_max=$ac_count
  2419. fi
  2420. # 10*(2^10) chars as input seems more than enough
  2421. test $ac_count -gt 10 && break
  2422. done
  2423. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2424. esac
  2425. $ac_path_GREP_found && break 3
  2426. done
  2427. done
  2428. done
  2429. IFS=$as_save_IFS
  2430. fi
  2431. GREP="$ac_cv_path_GREP"
  2432. if test -z "$GREP"; then
  2433. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2434. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2435. { (exit 1); exit 1; }; }
  2436. fi
  2437. else
  2438. ac_cv_path_GREP=$GREP
  2439. fi
  2440. fi
  2441. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2442. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2443. GREP="$ac_cv_path_GREP"
  2444. { echo "$as_me:$LINENO: checking for egrep" >&5
  2445. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2446. if test "${ac_cv_path_EGREP+set}" = set; then
  2447. echo $ECHO_N "(cached) $ECHO_C" >&6
  2448. else
  2449. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2450. then ac_cv_path_EGREP="$GREP -E"
  2451. else
  2452. # Extract the first word of "egrep" to use in msg output
  2453. if test -z "$EGREP"; then
  2454. set dummy egrep; ac_prog_name=$2
  2455. if test "${ac_cv_path_EGREP+set}" = set; then
  2456. echo $ECHO_N "(cached) $ECHO_C" >&6
  2457. else
  2458. ac_path_EGREP_found=false
  2459. # Loop through the user's path and test for each of PROGNAME-LIST
  2460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2461. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2462. do
  2463. IFS=$as_save_IFS
  2464. test -z "$as_dir" && as_dir=.
  2465. for ac_prog in egrep; do
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2468. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  2469. # Check for GNU ac_path_EGREP and select it if it is found.
  2470. # Check for GNU $ac_path_EGREP
  2471. case `"$ac_path_EGREP" --version 2>&1` in
  2472. *GNU*)
  2473. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2474. *)
  2475. ac_count=0
  2476. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2477. while :
  2478. do
  2479. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2480. mv "conftest.tmp" "conftest.in"
  2481. cp "conftest.in" "conftest.nl"
  2482. echo 'EGREP' >> "conftest.nl"
  2483. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2484. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2485. ac_count=`expr $ac_count + 1`
  2486. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2487. # Best one so far, save it but keep looking for a better one
  2488. ac_cv_path_EGREP="$ac_path_EGREP"
  2489. ac_path_EGREP_max=$ac_count
  2490. fi
  2491. # 10*(2^10) chars as input seems more than enough
  2492. test $ac_count -gt 10 && break
  2493. done
  2494. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2495. esac
  2496. $ac_path_EGREP_found && break 3
  2497. done
  2498. done
  2499. done
  2500. IFS=$as_save_IFS
  2501. fi
  2502. EGREP="$ac_cv_path_EGREP"
  2503. if test -z "$EGREP"; then
  2504. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2505. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2506. { (exit 1); exit 1; }; }
  2507. fi
  2508. else
  2509. ac_cv_path_EGREP=$EGREP
  2510. fi
  2511. fi
  2512. fi
  2513. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2514. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2515. EGREP="$ac_cv_path_EGREP"
  2516. { echo "$as_me:$LINENO: checking for AIX" >&5
  2517. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  2518. cat >conftest.$ac_ext <<_ACEOF
  2519. /* confdefs.h. */
  2520. _ACEOF
  2521. cat confdefs.h >>conftest.$ac_ext
  2522. cat >>conftest.$ac_ext <<_ACEOF
  2523. /* end confdefs.h. */
  2524. #ifdef _AIX
  2525. yes
  2526. #endif
  2527. _ACEOF
  2528. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2529. $EGREP "yes" >/dev/null 2>&1; then
  2530. { echo "$as_me:$LINENO: result: yes" >&5
  2531. echo "${ECHO_T}yes" >&6; }
  2532. cat >>confdefs.h <<\_ACEOF
  2533. #define _ALL_SOURCE 1
  2534. _ACEOF
  2535. else
  2536. { echo "$as_me:$LINENO: result: no" >&5
  2537. echo "${ECHO_T}no" >&6; }
  2538. fi
  2539. rm -f conftest*
  2540. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2541. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  2542. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. ac_check_lib_save_LIBS=$LIBS
  2546. LIBS="-lcposix $LIBS"
  2547. cat >conftest.$ac_ext <<_ACEOF
  2548. /* confdefs.h. */
  2549. _ACEOF
  2550. cat confdefs.h >>conftest.$ac_ext
  2551. cat >>conftest.$ac_ext <<_ACEOF
  2552. /* end confdefs.h. */
  2553. /* Override any GCC internal prototype to avoid an error.
  2554. Use char because int might match the return type of a GCC
  2555. builtin and then its argument prototype would still apply. */
  2556. #ifdef __cplusplus
  2557. extern "C"
  2558. #endif
  2559. char strerror ();
  2560. int
  2561. main ()
  2562. {
  2563. return strerror ();
  2564. ;
  2565. return 0;
  2566. }
  2567. _ACEOF
  2568. rm -f conftest.$ac_objext conftest$ac_exeext
  2569. if { (ac_try="$ac_link"
  2570. case "(($ac_try" in
  2571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2572. *) ac_try_echo=$ac_try;;
  2573. esac
  2574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2575. (eval "$ac_link") 2>conftest.er1
  2576. ac_status=$?
  2577. grep -v '^ *+' conftest.er1 >conftest.err
  2578. rm -f conftest.er1
  2579. cat conftest.err >&5
  2580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2581. (exit $ac_status); } &&
  2582. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2583. { (case "(($ac_try" in
  2584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2585. *) ac_try_echo=$ac_try;;
  2586. esac
  2587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2588. (eval "$ac_try") 2>&5
  2589. ac_status=$?
  2590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2591. (exit $ac_status); }; } &&
  2592. { ac_try='test -s conftest$ac_exeext'
  2593. { (case "(($ac_try" in
  2594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2595. *) ac_try_echo=$ac_try;;
  2596. esac
  2597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2598. (eval "$ac_try") 2>&5
  2599. ac_status=$?
  2600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); }; }; then
  2602. ac_cv_lib_cposix_strerror=yes
  2603. else
  2604. echo "$as_me: failed program was:" >&5
  2605. sed 's/^/| /' conftest.$ac_ext >&5
  2606. ac_cv_lib_cposix_strerror=no
  2607. fi
  2608. rm -f core conftest.err conftest.$ac_objext \
  2609. conftest$ac_exeext conftest.$ac_ext
  2610. LIBS=$ac_check_lib_save_LIBS
  2611. fi
  2612. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2613. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  2614. if test $ac_cv_lib_cposix_strerror = yes; then
  2615. LIBS="$LIBS -lcposix"
  2616. fi
  2617. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2618. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2619. if test "${ac_cv_header_stdc+set}" = set; then
  2620. echo $ECHO_N "(cached) $ECHO_C" >&6
  2621. else
  2622. cat >conftest.$ac_ext <<_ACEOF
  2623. /* confdefs.h. */
  2624. _ACEOF
  2625. cat confdefs.h >>conftest.$ac_ext
  2626. cat >>conftest.$ac_ext <<_ACEOF
  2627. /* end confdefs.h. */
  2628. #include <stdlib.h>
  2629. #include <stdarg.h>
  2630. #include <string.h>
  2631. #include <float.h>
  2632. int
  2633. main ()
  2634. {
  2635. ;
  2636. return 0;
  2637. }
  2638. _ACEOF
  2639. rm -f conftest.$ac_objext
  2640. if { (ac_try="$ac_compile"
  2641. case "(($ac_try" in
  2642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2643. *) ac_try_echo=$ac_try;;
  2644. esac
  2645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2646. (eval "$ac_compile") 2>conftest.er1
  2647. ac_status=$?
  2648. grep -v '^ *+' conftest.er1 >conftest.err
  2649. rm -f conftest.er1
  2650. cat conftest.err >&5
  2651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2652. (exit $ac_status); } &&
  2653. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2654. { (case "(($ac_try" in
  2655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2656. *) ac_try_echo=$ac_try;;
  2657. esac
  2658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2659. (eval "$ac_try") 2>&5
  2660. ac_status=$?
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); }; } &&
  2663. { ac_try='test -s conftest.$ac_objext'
  2664. { (case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2669. (eval "$ac_try") 2>&5
  2670. ac_status=$?
  2671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2672. (exit $ac_status); }; }; then
  2673. ac_cv_header_stdc=yes
  2674. else
  2675. echo "$as_me: failed program was:" >&5
  2676. sed 's/^/| /' conftest.$ac_ext >&5
  2677. ac_cv_header_stdc=no
  2678. fi
  2679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2680. if test $ac_cv_header_stdc = yes; then
  2681. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2682. cat >conftest.$ac_ext <<_ACEOF
  2683. /* confdefs.h. */
  2684. _ACEOF
  2685. cat confdefs.h >>conftest.$ac_ext
  2686. cat >>conftest.$ac_ext <<_ACEOF
  2687. /* end confdefs.h. */
  2688. #include <string.h>
  2689. _ACEOF
  2690. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2691. $EGREP "memchr" >/dev/null 2>&1; then
  2692. :
  2693. else
  2694. ac_cv_header_stdc=no
  2695. fi
  2696. rm -f conftest*
  2697. fi
  2698. if test $ac_cv_header_stdc = yes; then
  2699. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2700. cat >conftest.$ac_ext <<_ACEOF
  2701. /* confdefs.h. */
  2702. _ACEOF
  2703. cat confdefs.h >>conftest.$ac_ext
  2704. cat >>conftest.$ac_ext <<_ACEOF
  2705. /* end confdefs.h. */
  2706. #include <stdlib.h>
  2707. _ACEOF
  2708. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2709. $EGREP "free" >/dev/null 2>&1; then
  2710. :
  2711. else
  2712. ac_cv_header_stdc=no
  2713. fi
  2714. rm -f conftest*
  2715. fi
  2716. if test $ac_cv_header_stdc = yes; then
  2717. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2718. if test "$cross_compiling" = yes; then
  2719. :
  2720. else
  2721. cat >conftest.$ac_ext <<_ACEOF
  2722. /* confdefs.h. */
  2723. _ACEOF
  2724. cat confdefs.h >>conftest.$ac_ext
  2725. cat >>conftest.$ac_ext <<_ACEOF
  2726. /* end confdefs.h. */
  2727. #include <ctype.h>
  2728. #include <stdlib.h>
  2729. #if ((' ' & 0x0FF) == 0x020)
  2730. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2731. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2732. #else
  2733. # define ISLOWER(c) \
  2734. (('a' <= (c) && (c) <= 'i') \
  2735. || ('j' <= (c) && (c) <= 'r') \
  2736. || ('s' <= (c) && (c) <= 'z'))
  2737. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2738. #endif
  2739. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2740. int
  2741. main ()
  2742. {
  2743. int i;
  2744. for (i = 0; i < 256; i++)
  2745. if (XOR (islower (i), ISLOWER (i))
  2746. || toupper (i) != TOUPPER (i))
  2747. return 2;
  2748. return 0;
  2749. }
  2750. _ACEOF
  2751. rm -f conftest$ac_exeext
  2752. if { (ac_try="$ac_link"
  2753. case "(($ac_try" in
  2754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2755. *) ac_try_echo=$ac_try;;
  2756. esac
  2757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2758. (eval "$ac_link") 2>&5
  2759. ac_status=$?
  2760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2761. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2762. { (case "(($ac_try" in
  2763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2764. *) ac_try_echo=$ac_try;;
  2765. esac
  2766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2767. (eval "$ac_try") 2>&5
  2768. ac_status=$?
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); }; }; then
  2771. :
  2772. else
  2773. echo "$as_me: program exited with status $ac_status" >&5
  2774. echo "$as_me: failed program was:" >&5
  2775. sed 's/^/| /' conftest.$ac_ext >&5
  2776. ( exit $ac_status )
  2777. ac_cv_header_stdc=no
  2778. fi
  2779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2780. fi
  2781. fi
  2782. fi
  2783. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2784. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2785. if test $ac_cv_header_stdc = yes; then
  2786. cat >>confdefs.h <<\_ACEOF
  2787. #define STDC_HEADERS 1
  2788. _ACEOF
  2789. fi
  2790. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2791. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2792. inttypes.h stdint.h unistd.h
  2793. do
  2794. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2795. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2796. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2797. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2798. echo $ECHO_N "(cached) $ECHO_C" >&6
  2799. else
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. /* confdefs.h. */
  2802. _ACEOF
  2803. cat confdefs.h >>conftest.$ac_ext
  2804. cat >>conftest.$ac_ext <<_ACEOF
  2805. /* end confdefs.h. */
  2806. $ac_includes_default
  2807. #include <$ac_header>
  2808. _ACEOF
  2809. rm -f conftest.$ac_objext
  2810. if { (ac_try="$ac_compile"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2816. (eval "$ac_compile") 2>conftest.er1
  2817. ac_status=$?
  2818. grep -v '^ *+' conftest.er1 >conftest.err
  2819. rm -f conftest.er1
  2820. cat conftest.err >&5
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); } &&
  2823. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2824. { (case "(($ac_try" in
  2825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2826. *) ac_try_echo=$ac_try;;
  2827. esac
  2828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2829. (eval "$ac_try") 2>&5
  2830. ac_status=$?
  2831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2832. (exit $ac_status); }; } &&
  2833. { ac_try='test -s conftest.$ac_objext'
  2834. { (case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2839. (eval "$ac_try") 2>&5
  2840. ac_status=$?
  2841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2842. (exit $ac_status); }; }; then
  2843. eval "$as_ac_Header=yes"
  2844. else
  2845. echo "$as_me: failed program was:" >&5
  2846. sed 's/^/| /' conftest.$ac_ext >&5
  2847. eval "$as_ac_Header=no"
  2848. fi
  2849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2850. fi
  2851. ac_res=`eval echo '${'$as_ac_Header'}'`
  2852. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2853. echo "${ECHO_T}$ac_res" >&6; }
  2854. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2855. cat >>confdefs.h <<_ACEOF
  2856. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2857. _ACEOF
  2858. fi
  2859. done
  2860. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2861. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2862. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2863. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2864. echo $ECHO_N "(cached) $ECHO_C" >&6
  2865. fi
  2866. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2867. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2868. else
  2869. # Is the header compilable?
  2870. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2871. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  2872. cat >conftest.$ac_ext <<_ACEOF
  2873. /* confdefs.h. */
  2874. _ACEOF
  2875. cat confdefs.h >>conftest.$ac_ext
  2876. cat >>conftest.$ac_ext <<_ACEOF
  2877. /* end confdefs.h. */
  2878. $ac_includes_default
  2879. #include <minix/config.h>
  2880. _ACEOF
  2881. rm -f conftest.$ac_objext
  2882. if { (ac_try="$ac_compile"
  2883. case "(($ac_try" in
  2884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2885. *) ac_try_echo=$ac_try;;
  2886. esac
  2887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2888. (eval "$ac_compile") 2>conftest.er1
  2889. ac_status=$?
  2890. grep -v '^ *+' conftest.er1 >conftest.err
  2891. rm -f conftest.er1
  2892. cat conftest.err >&5
  2893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. (exit $ac_status); } &&
  2895. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2896. { (case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901. (eval "$ac_try") 2>&5
  2902. ac_status=$?
  2903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904. (exit $ac_status); }; } &&
  2905. { ac_try='test -s conftest.$ac_objext'
  2906. { (case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2911. (eval "$ac_try") 2>&5
  2912. ac_status=$?
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); }; }; then
  2915. ac_header_compiler=yes
  2916. else
  2917. echo "$as_me: failed program was:" >&5
  2918. sed 's/^/| /' conftest.$ac_ext >&5
  2919. ac_header_compiler=no
  2920. fi
  2921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2922. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2923. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2924. # Is the header present?
  2925. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2926. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. #include <minix/config.h>
  2934. _ACEOF
  2935. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2942. ac_status=$?
  2943. grep -v '^ *+' conftest.er1 >conftest.err
  2944. rm -f conftest.er1
  2945. cat conftest.err >&5
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); } >/dev/null; then
  2948. if test -s conftest.err; then
  2949. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2950. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2951. else
  2952. ac_cpp_err=
  2953. fi
  2954. else
  2955. ac_cpp_err=yes
  2956. fi
  2957. if test -z "$ac_cpp_err"; then
  2958. ac_header_preproc=yes
  2959. else
  2960. echo "$as_me: failed program was:" >&5
  2961. sed 's/^/| /' conftest.$ac_ext >&5
  2962. ac_header_preproc=no
  2963. fi
  2964. rm -f conftest.err conftest.$ac_ext
  2965. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2966. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2967. # So? What about this header?
  2968. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2969. yes:no: )
  2970. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2971. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2972. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2973. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2974. ac_header_preproc=yes
  2975. ;;
  2976. no:yes:* )
  2977. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2978. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2979. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2980. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2981. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2982. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2983. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2984. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2985. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2986. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2987. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2988. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2989. ;;
  2990. esac
  2991. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2992. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2993. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2994. echo $ECHO_N "(cached) $ECHO_C" >&6
  2995. else
  2996. ac_cv_header_minix_config_h=$ac_header_preproc
  2997. fi
  2998. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2999. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  3000. fi
  3001. if test $ac_cv_header_minix_config_h = yes; then
  3002. MINIX=yes
  3003. else
  3004. MINIX=
  3005. fi
  3006. if test "$MINIX" = yes; then
  3007. cat >>confdefs.h <<\_ACEOF
  3008. #define _POSIX_SOURCE 1
  3009. _ACEOF
  3010. cat >>confdefs.h <<\_ACEOF
  3011. #define _POSIX_1_SOURCE 2
  3012. _ACEOF
  3013. cat >>confdefs.h <<\_ACEOF
  3014. #define _MINIX 1
  3015. _ACEOF
  3016. fi
  3017. #checkpoint
  3018. cat >confcache <<\_ACEOF
  3019. # This file is a shell script that caches the results of configure
  3020. # tests run on this system so they can be shared between configure
  3021. # scripts and configure runs, see configure's option --config-cache.
  3022. # It is not useful on other systems. If it contains results you don't
  3023. # want to keep, you may remove or edit it.
  3024. #
  3025. # config.status only pays attention to the cache file if you give it
  3026. # the --recheck option to rerun configure.
  3027. #
  3028. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3029. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3030. # following values.
  3031. _ACEOF
  3032. # The following way of writing the cache mishandles newlines in values,
  3033. # but we know of no workaround that is simple, portable, and efficient.
  3034. # So, we kill variables containing newlines.
  3035. # Ultrix sh set writes to stderr and can't be redirected directly,
  3036. # and sets the high bit in the cache file unless we assign to the vars.
  3037. (
  3038. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3039. eval ac_val=\$$ac_var
  3040. case $ac_val in #(
  3041. *${as_nl}*)
  3042. case $ac_var in #(
  3043. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3044. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3045. esac
  3046. case $ac_var in #(
  3047. _ | IFS | as_nl) ;; #(
  3048. *) $as_unset $ac_var ;;
  3049. esac ;;
  3050. esac
  3051. done
  3052. (set) 2>&1 |
  3053. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3054. *${as_nl}ac_space=\ *)
  3055. # `set' does not quote correctly, so add quotes (double-quote
  3056. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3057. sed -n \
  3058. "s/'/'\\\\''/g;
  3059. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3060. ;; #(
  3061. *)
  3062. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3063. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3064. ;;
  3065. esac |
  3066. sort
  3067. ) |
  3068. sed '
  3069. /^ac_cv_env_/b end
  3070. t clear
  3071. :clear
  3072. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3073. t end
  3074. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3075. :end' >>confcache
  3076. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3077. if test -w "$cache_file"; then
  3078. test "x$cache_file" != "x/dev/null" &&
  3079. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3080. echo "$as_me: updating cache $cache_file" >&6;}
  3081. cat confcache >$cache_file
  3082. else
  3083. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3084. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3085. fi
  3086. fi
  3087. rm -f confcache
  3088. # Speedup compile
  3089. if test -n "$GXX" && test -z "$no_wall"; then
  3090. { echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3091. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6; }
  3092. if test "${egg_cv_var_ccwall+set}" = set; then
  3093. echo $ECHO_N "(cached) $ECHO_C" >&6
  3094. else
  3095. ac_old_CXXFLAGS="$CXXFLAGS"
  3096. CXXFLAGS="$CXXFLAGS -Wall"
  3097. cat >conftest.$ac_ext <<_ACEOF
  3098. int main ()
  3099. {
  3100. return(0);
  3101. }
  3102. _ACEOF
  3103. rm -f conftest.$ac_objext
  3104. if { (ac_try="$ac_compile"
  3105. case "(($ac_try" in
  3106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3107. *) ac_try_echo=$ac_try;;
  3108. esac
  3109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3110. (eval "$ac_compile") 2>conftest.er1
  3111. ac_status=$?
  3112. grep -v '^ *+' conftest.er1 >conftest.err
  3113. rm -f conftest.er1
  3114. cat conftest.err >&5
  3115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3116. (exit $ac_status); } &&
  3117. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3118. { (case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3123. (eval "$ac_try") 2>&5
  3124. ac_status=$?
  3125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3126. (exit $ac_status); }; } &&
  3127. { ac_try='test -s conftest.$ac_objext'
  3128. { (case "(($ac_try" in
  3129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130. *) ac_try_echo=$ac_try;;
  3131. esac
  3132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3133. (eval "$ac_try") 2>&5
  3134. ac_status=$?
  3135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); }; }; then
  3137. egg_cv_var_ccwall="yes"
  3138. else
  3139. echo "$as_me: failed program was:" >&5
  3140. sed 's/^/| /' conftest.$ac_ext >&5
  3141. egg_cv_var_ccwall="no"
  3142. fi
  3143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3144. CXXFLAGS="$ac_old_CXXFLAGS"
  3145. fi
  3146. { echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3147. echo "${ECHO_T}$egg_cv_var_ccwall" >&6; }
  3148. if test "$egg_cv_var_ccwall" = "yes"; then
  3149. CXXFLAGS="$CXXFLAGS -Wall"
  3150. fi
  3151. fi
  3152. if test -n "$GXX" && test -z "$no_pipe"; then
  3153. { echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3154. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6; }
  3155. if test "${egg_cv_var_ccpipe+set}" = set; then
  3156. echo $ECHO_N "(cached) $ECHO_C" >&6
  3157. else
  3158. ac_old_CXX="$CXX"
  3159. CXX="$CXX -pipe"
  3160. cat >conftest.$ac_ext <<_ACEOF
  3161. int main ()
  3162. {
  3163. return(0);
  3164. }
  3165. _ACEOF
  3166. rm -f conftest.$ac_objext
  3167. if { (ac_try="$ac_compile"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3173. (eval "$ac_compile") 2>conftest.er1
  3174. ac_status=$?
  3175. grep -v '^ *+' conftest.er1 >conftest.err
  3176. rm -f conftest.er1
  3177. cat conftest.err >&5
  3178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3179. (exit $ac_status); } &&
  3180. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3181. { (case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3186. (eval "$ac_try") 2>&5
  3187. ac_status=$?
  3188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3189. (exit $ac_status); }; } &&
  3190. { ac_try='test -s conftest.$ac_objext'
  3191. { (case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3196. (eval "$ac_try") 2>&5
  3197. ac_status=$?
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); }; }; then
  3200. egg_cv_var_ccpipe="yes"
  3201. else
  3202. echo "$as_me: failed program was:" >&5
  3203. sed 's/^/| /' conftest.$ac_ext >&5
  3204. egg_cv_var_ccpipe="no"
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3207. CXX="$ac_old_CXX"
  3208. fi
  3209. { echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3210. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6; }
  3211. if test "$egg_cv_var_ccpipe" = "yes"; then
  3212. CXX="$CXX -pipe"
  3213. fi
  3214. fi
  3215. CCDEPMODE=gcc
  3216. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3217. if test $num = "3"; then
  3218. CCDEPMODE=gcc3
  3219. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3220. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  3221. fi
  3222. #checkpoint
  3223. cat >confcache <<\_ACEOF
  3224. # This file is a shell script that caches the results of configure
  3225. # tests run on this system so they can be shared between configure
  3226. # scripts and configure runs, see configure's option --config-cache.
  3227. # It is not useful on other systems. If it contains results you don't
  3228. # want to keep, you may remove or edit it.
  3229. #
  3230. # config.status only pays attention to the cache file if you give it
  3231. # the --recheck option to rerun configure.
  3232. #
  3233. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3234. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3235. # following values.
  3236. _ACEOF
  3237. # The following way of writing the cache mishandles newlines in values,
  3238. # but we know of no workaround that is simple, portable, and efficient.
  3239. # So, we kill variables containing newlines.
  3240. # Ultrix sh set writes to stderr and can't be redirected directly,
  3241. # and sets the high bit in the cache file unless we assign to the vars.
  3242. (
  3243. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3244. eval ac_val=\$$ac_var
  3245. case $ac_val in #(
  3246. *${as_nl}*)
  3247. case $ac_var in #(
  3248. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3249. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3250. esac
  3251. case $ac_var in #(
  3252. _ | IFS | as_nl) ;; #(
  3253. *) $as_unset $ac_var ;;
  3254. esac ;;
  3255. esac
  3256. done
  3257. (set) 2>&1 |
  3258. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3259. *${as_nl}ac_space=\ *)
  3260. # `set' does not quote correctly, so add quotes (double-quote
  3261. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3262. sed -n \
  3263. "s/'/'\\\\''/g;
  3264. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3265. ;; #(
  3266. *)
  3267. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3268. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3269. ;;
  3270. esac |
  3271. sort
  3272. ) |
  3273. sed '
  3274. /^ac_cv_env_/b end
  3275. t clear
  3276. :clear
  3277. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3278. t end
  3279. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3280. :end' >>confcache
  3281. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3282. if test -w "$cache_file"; then
  3283. test "x$cache_file" != "x/dev/null" &&
  3284. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3285. echo "$as_me: updating cache $cache_file" >&6;}
  3286. cat confcache >$cache_file
  3287. else
  3288. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3289. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3290. fi
  3291. fi
  3292. rm -f confcache
  3293. # Checks for programs
  3294. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3295. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3296. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3297. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3298. echo $ECHO_N "(cached) $ECHO_C" >&6
  3299. else
  3300. cat >conftest.make <<\_ACEOF
  3301. SHELL = /bin/sh
  3302. all:
  3303. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3304. _ACEOF
  3305. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3306. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3307. *@@@%%%=?*=@@@%%%*)
  3308. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3309. *)
  3310. eval ac_cv_prog_make_${ac_make}_set=no;;
  3311. esac
  3312. rm -f conftest.make
  3313. fi
  3314. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3315. { echo "$as_me:$LINENO: result: yes" >&5
  3316. echo "${ECHO_T}yes" >&6; }
  3317. SET_MAKE=
  3318. else
  3319. { echo "$as_me:$LINENO: result: no" >&5
  3320. echo "${ECHO_T}no" >&6; }
  3321. SET_MAKE="MAKE=${MAKE-make}"
  3322. fi
  3323. cat << 'EOF' > conftest.head
  3324. a
  3325. b
  3326. c
  3327. EOF
  3328. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3329. do
  3330. { echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3331. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6; }
  3332. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3333. echo $ECHO_N "(cached) $ECHO_C" >&6
  3334. else
  3335. if test -n "$HEAD_1"
  3336. then
  3337. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3338. else
  3339. if test "`cat conftest.head | $ac_prog`" = "a";
  3340. then
  3341. { echo "$as_me:$LINENO: result: yes" >&5
  3342. echo "${ECHO_T}yes" >&6; }
  3343. ac_cv_prog_HEAD_1=$ac_prog
  3344. else
  3345. { echo "$as_me:$LINENO: result: no" >&5
  3346. echo "${ECHO_T}no" >&6; }
  3347. fi
  3348. fi
  3349. fi
  3350. test -n "$ac_cv_prog_HEAD_1" && break
  3351. done
  3352. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3353. then
  3354. cat << 'EOF' >&2
  3355. configure: error:
  3356. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3357. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3358. EOF
  3359. exit 1
  3360. fi
  3361. rm -f conftest.head
  3362. HEAD_1=$ac_cv_prog_HEAD_1
  3363. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3364. for ac_prog in gawk mawk nawk awk
  3365. do
  3366. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3367. set dummy $ac_prog; ac_word=$2
  3368. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3369. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3370. if test "${ac_cv_prog_AWK+set}" = set; then
  3371. echo $ECHO_N "(cached) $ECHO_C" >&6
  3372. else
  3373. if test -n "$AWK"; then
  3374. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3375. else
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_exec_ext in '' $ac_executable_extensions; do
  3382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3383. ac_cv_prog_AWK="$ac_prog"
  3384. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3385. break 2
  3386. fi
  3387. done
  3388. done
  3389. IFS=$as_save_IFS
  3390. fi
  3391. fi
  3392. AWK=$ac_cv_prog_AWK
  3393. if test -n "$AWK"; then
  3394. { echo "$as_me:$LINENO: result: $AWK" >&5
  3395. echo "${ECHO_T}$AWK" >&6; }
  3396. else
  3397. { echo "$as_me:$LINENO: result: no" >&5
  3398. echo "${ECHO_T}no" >&6; }
  3399. fi
  3400. test -n "$AWK" && break
  3401. done
  3402. if test "${AWK-x}" = "x"
  3403. then
  3404. cat << 'EOF' >&2
  3405. configure: error:
  3406. This system seems to lack a working 'awk' command.
  3407. A working 'awk' command is required to compile Eggdrop.
  3408. EOF
  3409. exit 1
  3410. fi
  3411. # basename is needed for Tcl library and header checks
  3412. # Extract the first word of "basename", so it can be a program name with args.
  3413. set dummy basename; ac_word=$2
  3414. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3416. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3417. echo $ECHO_N "(cached) $ECHO_C" >&6
  3418. else
  3419. if test -n "$BASENAME"; then
  3420. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3421. else
  3422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3423. for as_dir in $PATH
  3424. do
  3425. IFS=$as_save_IFS
  3426. test -z "$as_dir" && as_dir=.
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3429. ac_cv_prog_BASENAME="basename"
  3430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3431. break 2
  3432. fi
  3433. done
  3434. done
  3435. IFS=$as_save_IFS
  3436. fi
  3437. fi
  3438. BASENAME=$ac_cv_prog_BASENAME
  3439. if test -n "$BASENAME"; then
  3440. { echo "$as_me:$LINENO: result: $BASENAME" >&5
  3441. echo "${ECHO_T}$BASENAME" >&6; }
  3442. else
  3443. { echo "$as_me:$LINENO: result: no" >&5
  3444. echo "${ECHO_T}no" >&6; }
  3445. fi
  3446. if test "${BASENAME-x}" = "x"
  3447. then
  3448. cat << 'EOF' >&2
  3449. configure: error:
  3450. This system seems to lack a working 'basename' command.
  3451. A working 'basename' command is required to compile Eggdrop.
  3452. EOF
  3453. exit 1
  3454. fi
  3455. # Extract the first word of "objcopy", so it can be a program name with args.
  3456. set dummy objcopy; ac_word=$2
  3457. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3458. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3459. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3460. echo $ECHO_N "(cached) $ECHO_C" >&6
  3461. else
  3462. if test -n "$OBJCOPY"; then
  3463. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3464. else
  3465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3466. for as_dir in $PATH
  3467. do
  3468. IFS=$as_save_IFS
  3469. test -z "$as_dir" && as_dir=.
  3470. for ac_exec_ext in '' $ac_executable_extensions; do
  3471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3472. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3473. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3474. break 2
  3475. fi
  3476. done
  3477. done
  3478. IFS=$as_save_IFS
  3479. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3480. fi
  3481. fi
  3482. OBJCOPY=$ac_cv_prog_OBJCOPY
  3483. if test -n "$OBJCOPY"; then
  3484. { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3485. echo "${ECHO_T}$OBJCOPY" >&6; }
  3486. else
  3487. { echo "$as_me:$LINENO: result: no" >&5
  3488. echo "${ECHO_T}no" >&6; }
  3489. fi
  3490. # Extract the first word of "strip", so it can be a program name with args.
  3491. set dummy strip; ac_word=$2
  3492. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3494. if test "${ac_cv_prog_STRIP+set}" = set; then
  3495. echo $ECHO_N "(cached) $ECHO_C" >&6
  3496. else
  3497. if test -n "$STRIP"; then
  3498. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3507. ac_cv_prog_STRIP="strip"
  3508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3515. fi
  3516. fi
  3517. STRIP=$ac_cv_prog_STRIP
  3518. if test -n "$STRIP"; then
  3519. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3520. echo "${ECHO_T}$STRIP" >&6; }
  3521. else
  3522. { echo "$as_me:$LINENO: result: no" >&5
  3523. echo "${ECHO_T}no" >&6; }
  3524. fi
  3525. # Extract the first word of "gdiff", so it can be a program name with args.
  3526. set dummy gdiff; ac_word=$2
  3527. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3528. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3529. if test "${ac_cv_prog_DIFF+set}" = set; then
  3530. echo $ECHO_N "(cached) $ECHO_C" >&6
  3531. else
  3532. if test -n "$DIFF"; then
  3533. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3534. else
  3535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3536. for as_dir in $PATH
  3537. do
  3538. IFS=$as_save_IFS
  3539. test -z "$as_dir" && as_dir=.
  3540. for ac_exec_ext in '' $ac_executable_extensions; do
  3541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3542. ac_cv_prog_DIFF="gdiff"
  3543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3544. break 2
  3545. fi
  3546. done
  3547. done
  3548. IFS=$as_save_IFS
  3549. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3550. fi
  3551. fi
  3552. DIFF=$ac_cv_prog_DIFF
  3553. if test -n "$DIFF"; then
  3554. { echo "$as_me:$LINENO: result: $DIFF" >&5
  3555. echo "${ECHO_T}$DIFF" >&6; }
  3556. else
  3557. { echo "$as_me:$LINENO: result: no" >&5
  3558. echo "${ECHO_T}no" >&6; }
  3559. fi
  3560. # Extract the first word of "uname", so it can be a program name with args.
  3561. set dummy uname; ac_word=$2
  3562. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3564. if test "${ac_cv_prog_UNAME+set}" = set; then
  3565. echo $ECHO_N "(cached) $ECHO_C" >&6
  3566. else
  3567. if test -n "$UNAME"; then
  3568. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3569. else
  3570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3571. for as_dir in $PATH
  3572. do
  3573. IFS=$as_save_IFS
  3574. test -z "$as_dir" && as_dir=.
  3575. for ac_exec_ext in '' $ac_executable_extensions; do
  3576. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3577. ac_cv_prog_UNAME="uname"
  3578. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3579. break 2
  3580. fi
  3581. done
  3582. done
  3583. IFS=$as_save_IFS
  3584. fi
  3585. fi
  3586. UNAME=$ac_cv_prog_UNAME
  3587. if test -n "$UNAME"; then
  3588. { echo "$as_me:$LINENO: result: $UNAME" >&5
  3589. echo "${ECHO_T}$UNAME" >&6; }
  3590. else
  3591. { echo "$as_me:$LINENO: result: no" >&5
  3592. echo "${ECHO_T}no" >&6; }
  3593. fi
  3594. # Extract the first word of "ccache", so it can be a program name with args.
  3595. set dummy ccache; ac_word=$2
  3596. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3597. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3598. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3599. echo $ECHO_N "(cached) $ECHO_C" >&6
  3600. else
  3601. if test -n "$CCACHE"; then
  3602. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3611. ac_cv_prog_CCACHE="ccache"
  3612. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3613. break 2
  3614. fi
  3615. done
  3616. done
  3617. IFS=$as_save_IFS
  3618. fi
  3619. fi
  3620. CCACHE=$ac_cv_prog_CCACHE
  3621. if test -n "$CCACHE"; then
  3622. { echo "$as_me:$LINENO: result: $CCACHE" >&5
  3623. echo "${ECHO_T}$CCACHE" >&6; }
  3624. else
  3625. { echo "$as_me:$LINENO: result: no" >&5
  3626. echo "${ECHO_T}no" >&6; }
  3627. fi
  3628. # Extract the first word of "distcc", so it can be a program name with args.
  3629. set dummy distcc; ac_word=$2
  3630. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3631. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3632. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3633. echo $ECHO_N "(cached) $ECHO_C" >&6
  3634. else
  3635. if test -n "$DISTCC"; then
  3636. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3645. ac_cv_prog_DISTCC="distcc"
  3646. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. fi
  3653. fi
  3654. DISTCC=$ac_cv_prog_DISTCC
  3655. if test -n "$DISTCC"; then
  3656. { echo "$as_me:$LINENO: result: $DISTCC" >&5
  3657. echo "${ECHO_T}$DISTCC" >&6; }
  3658. else
  3659. { echo "$as_me:$LINENO: result: no" >&5
  3660. echo "${ECHO_T}no" >&6; }
  3661. fi
  3662. # Test the os and set the module linking settings
  3663. EGG_CYGWIN=no
  3664. { echo "$as_me:$LINENO: checking system type" >&5
  3665. echo $ECHO_N "checking system type... $ECHO_C" >&6; }
  3666. if test "${egg_cv_var_system_type+set}" = set; then
  3667. echo $ECHO_N "(cached) $ECHO_C" >&6
  3668. else
  3669. egg_cv_var_system_type=`$UNAME -s`
  3670. fi
  3671. { echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3672. echo "${ECHO_T}$egg_cv_var_system_type" >&6; }
  3673. { echo "$as_me:$LINENO: checking system release" >&5
  3674. echo $ECHO_N "checking system release... $ECHO_C" >&6; }
  3675. if test "${egg_cv_var_system_release+set}" = set; then
  3676. echo $ECHO_N "(cached) $ECHO_C" >&6
  3677. else
  3678. egg_cv_var_system_release=`$UNAME -r`
  3679. fi
  3680. { echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3681. echo "${ECHO_T}$egg_cv_var_system_release" >&6; }
  3682. { echo "$as_me:$LINENO: checking system machine" >&5
  3683. echo $ECHO_N "checking system machine... $ECHO_C" >&6; }
  3684. if test "${egg_cv_var_system_machine+set}" = set; then
  3685. echo $ECHO_N "(cached) $ECHO_C" >&6
  3686. else
  3687. egg_cv_var_system_machine=`$UNAME -m`
  3688. fi
  3689. { echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3690. echo "${ECHO_T}$egg_cv_var_system_machine" >&6; }
  3691. case "$egg_cv_var_system_machine" in
  3692. i*)
  3693. CXX="$CXX -march=i486"
  3694. ;;
  3695. *)
  3696. ;;
  3697. esac
  3698. case "$egg_cv_var_system_type" in
  3699. BSD/OS)
  3700. ;;
  3701. CYGWI*)
  3702. { echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3703. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6; }
  3704. WIN32FLAGS=
  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. int
  3712. main ()
  3713. {
  3714. #ifndef WIN32
  3715. # ifndef _WIN32
  3716. # error WIN32 or _WIN32 not defined
  3717. # endif
  3718. #endif
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. rm -f conftest.$ac_objext
  3724. if { (ac_try="$ac_compile"
  3725. case "(($ac_try" in
  3726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3727. *) ac_try_echo=$ac_try;;
  3728. esac
  3729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3730. (eval "$ac_compile") 2>conftest.er1
  3731. ac_status=$?
  3732. grep -v '^ *+' conftest.er1 >conftest.err
  3733. rm -f conftest.er1
  3734. cat conftest.err >&5
  3735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3736. (exit $ac_status); } &&
  3737. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3738. { (case "(($ac_try" in
  3739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3740. *) ac_try_echo=$ac_try;;
  3741. esac
  3742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3743. (eval "$ac_try") 2>&5
  3744. ac_status=$?
  3745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); }; } &&
  3747. { ac_try='test -s conftest.$ac_objext'
  3748. { (case "(($ac_try" in
  3749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3750. *) ac_try_echo=$ac_try;;
  3751. esac
  3752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3753. (eval "$ac_try") 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; }; then
  3757. { echo "$as_me:$LINENO: result: present by default" >&5
  3758. echo "${ECHO_T}present by default" >&6; }
  3759. else
  3760. echo "$as_me: failed program was:" >&5
  3761. sed 's/^/| /' conftest.$ac_ext >&5
  3762. ac_compile_save="$ac_compile"
  3763. save_CXX="$CXX"
  3764. ac_compile="$ac_compile -mwin32"
  3765. CXX="$CXX -mwin32"
  3766. cat >conftest.$ac_ext <<_ACEOF
  3767. /* confdefs.h. */
  3768. _ACEOF
  3769. cat confdefs.h >>conftest.$ac_ext
  3770. cat >>conftest.$ac_ext <<_ACEOF
  3771. /* end confdefs.h. */
  3772. int
  3773. main ()
  3774. {
  3775. #ifndef WIN32
  3776. # ifndef _WIN32
  3777. # error WIN32 or _WIN32 not defined
  3778. # endif
  3779. #endif
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. rm -f conftest.$ac_objext
  3785. if { (ac_try="$ac_compile"
  3786. case "(($ac_try" in
  3787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3788. *) ac_try_echo=$ac_try;;
  3789. esac
  3790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3791. (eval "$ac_compile") 2>conftest.er1
  3792. ac_status=$?
  3793. grep -v '^ *+' conftest.er1 >conftest.err
  3794. rm -f conftest.er1
  3795. cat conftest.err >&5
  3796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3797. (exit $ac_status); } &&
  3798. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3799. { (case "(($ac_try" in
  3800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3801. *) ac_try_echo=$ac_try;;
  3802. esac
  3803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3804. (eval "$ac_try") 2>&5
  3805. ac_status=$?
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); }; } &&
  3808. { ac_try='test -s conftest.$ac_objext'
  3809. { (case "(($ac_try" in
  3810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3811. *) ac_try_echo=$ac_try;;
  3812. esac
  3813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3814. (eval "$ac_try") 2>&5
  3815. ac_status=$?
  3816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. (exit $ac_status); }; }; then
  3818. { echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3819. echo "${ECHO_T}found via -mwin32" >&6; }
  3820. ac_compile="$ac_compile_save"
  3821. CXX="$save_CXX"
  3822. WIN32FLAGS="-mwin32"
  3823. else
  3824. echo "$as_me: failed program was:" >&5
  3825. sed 's/^/| /' conftest.$ac_ext >&5
  3826. ac_compile="$ac_compile_save"
  3827. CXX="$save_CXX"
  3828. { echo "$as_me:$LINENO: result: not found" >&5
  3829. echo "${ECHO_T}not found" >&6; }
  3830. fi
  3831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3832. fi
  3833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3834. CXX="$CXX $WIN32FLAGS"
  3835. EGG_CYGWIN="yes"
  3836. if test $EGG_CYGWIN = "yes"; then
  3837. { echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3838. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6; }
  3839. if test -r /usr/lib/binmode.o; then
  3840. { echo "$as_me:$LINENO: result: yes" >&5
  3841. echo "${ECHO_T}yes" >&6; }
  3842. LIBS="$LIBS /usr/lib/binmode.o"
  3843. else
  3844. { echo "$as_me:$LINENO: result: no" >&5
  3845. echo "${ECHO_T}no" >&6; }
  3846. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3847. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3848. fi
  3849. fi
  3850. cat >>confdefs.h <<\_ACEOF
  3851. #define CYGWIN_HACKS 1
  3852. _ACEOF
  3853. cat >>confdefs.h <<\_ACEOF
  3854. #define WIN32_LEAN_AND_MEAN 1
  3855. _ACEOF
  3856. ;;
  3857. IRIX)
  3858. ;;
  3859. HP-UX)
  3860. cat >>confdefs.h <<\_ACEOF
  3861. #define MD32_XARRAY 1
  3862. _ACEOF
  3863. ;;
  3864. Ultrix)
  3865. SHELL=/bin/sh5
  3866. ;;
  3867. SINIX*)
  3868. ;;
  3869. BeOS)
  3870. ;;
  3871. Linux)
  3872. ;;
  3873. Lynx)
  3874. ;;
  3875. QNX)
  3876. ;;
  3877. OSF1)
  3878. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3879. V*)
  3880. if test "$AWK" = "gawk"
  3881. then
  3882. AWK=awk
  3883. fi
  3884. ;;
  3885. 1.0|1.1|1.2)
  3886. cat >>confdefs.h <<\_ACEOF
  3887. #define OSF1_HACKS 1
  3888. _ACEOF
  3889. ;;
  3890. 1.*)
  3891. cat >>confdefs.h <<\_ACEOF
  3892. #define OSF1_HACKS 1
  3893. _ACEOF
  3894. ;;
  3895. *)
  3896. ;;
  3897. esac
  3898. cat >>confdefs.h <<\_ACEOF
  3899. #define STOP_UAC 1
  3900. _ACEOF
  3901. cat >>confdefs.h <<\_ACEOF
  3902. #define BROKEN_SNPRINTF 1
  3903. _ACEOF
  3904. ;;
  3905. SunOS)
  3906. SUNOS="yes"
  3907. ;;
  3908. *BSD)
  3909. # FreeBSD/OpenBSD/NetBSD
  3910. ;;
  3911. *)
  3912. { echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3913. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6; }
  3914. if test -r /mach
  3915. then
  3916. { echo "$as_me:$LINENO: result: yes" >&5
  3917. echo "${ECHO_T}yes" >&6; }
  3918. cat >>confdefs.h <<\_ACEOF
  3919. #define BORGCUBES 1
  3920. _ACEOF
  3921. else
  3922. { echo "$as_me:$LINENO: result: no" >&5
  3923. echo "${ECHO_T}no" >&6; }
  3924. { echo "$as_me:$LINENO: checking if system is QNX" >&5
  3925. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6; }
  3926. if test -r /cmds
  3927. then
  3928. { echo "$as_me:$LINENO: result: yes" >&5
  3929. echo "${ECHO_T}yes" >&6; }
  3930. else
  3931. { echo "$as_me:$LINENO: result: no" >&5
  3932. echo "${ECHO_T}no" >&6; }
  3933. { echo "$as_me:$LINENO: result: Something unknown!" >&5
  3934. echo "${ECHO_T}Something unknown!" >&6; }
  3935. { echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3936. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  3937. fi
  3938. fi
  3939. ;;
  3940. esac
  3941. # Check for IPv6 support
  3942. #EGG_IPV6_SUPPORTED
  3943. { echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3944. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6; }
  3945. # Check whether --enable-ipv6 was given.
  3946. if test "${enable_ipv6+set}" = set; then
  3947. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3948. { echo "$as_me:$LINENO: result: yes" >&5
  3949. echo "${ECHO_T}yes" >&6; }
  3950. else
  3951. ac_cv_dipv6="no"
  3952. if test "$egg_cv_ipv6_supported" = "no"; then
  3953. ac_cv_dipv6="no"
  3954. fi
  3955. { echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3956. echo "${ECHO_T}$ac_cv_dipv6" >&6; }
  3957. fi
  3958. if ! test "$EGG_CYGWIN" = "yes"; then
  3959. if test "$ac_cv_dipv6" = "no"; then
  3960. cat >>confdefs.h <<\_ACEOF
  3961. #define USE_IPV6 1
  3962. _ACEOF
  3963. fi
  3964. fi
  3965. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3966. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3967. if test "${egg_cv_socklen_t+set}" = set; then
  3968. echo $ECHO_N "(cached) $ECHO_C" >&6
  3969. else
  3970. if test "$cross_compiling" = yes; then
  3971. egg_cv_socklen_t=no
  3972. else
  3973. cat >conftest.$ac_ext <<_ACEOF
  3974. /* confdefs.h. */
  3975. _ACEOF
  3976. cat confdefs.h >>conftest.$ac_ext
  3977. cat >>conftest.$ac_ext <<_ACEOF
  3978. /* end confdefs.h. */
  3979. #include <unistd.h>
  3980. #include <sys/types.h>
  3981. #include <sys/socket.h>
  3982. #include <netinet/in.h>
  3983. #include <arpa/inet.h>
  3984. int main()
  3985. {
  3986. socklen_t test = sizeof(int);
  3987. return 0;
  3988. }
  3989. _ACEOF
  3990. rm -f conftest$ac_exeext
  3991. if { (ac_try="$ac_link"
  3992. case "(($ac_try" in
  3993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3994. *) ac_try_echo=$ac_try;;
  3995. esac
  3996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3997. (eval "$ac_link") 2>&5
  3998. ac_status=$?
  3999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4000. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4001. { (case "(($ac_try" in
  4002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4003. *) ac_try_echo=$ac_try;;
  4004. esac
  4005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4006. (eval "$ac_try") 2>&5
  4007. ac_status=$?
  4008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009. (exit $ac_status); }; }; then
  4010. egg_cv_socklen_t=yes
  4011. else
  4012. echo "$as_me: program exited with status $ac_status" >&5
  4013. echo "$as_me: failed program was:" >&5
  4014. sed 's/^/| /' conftest.$ac_ext >&5
  4015. ( exit $ac_status )
  4016. egg_cv_socklen_t=no
  4017. fi
  4018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4019. fi
  4020. fi
  4021. if test "$egg_cv_socklen_t" = "yes"; then
  4022. cat >>confdefs.h <<\_ACEOF
  4023. #define HAVE_SOCKLEN_T 1
  4024. _ACEOF
  4025. { echo "$as_me:$LINENO: result: yes" >&5
  4026. echo "${ECHO_T}yes" >&6; }
  4027. else
  4028. { echo "$as_me:$LINENO: result: no" >&5
  4029. echo "${ECHO_T}no" >&6; }
  4030. fi
  4031. # Check for inconsistent random() functions
  4032. { echo "$as_me:$LINENO: checking for random limit" >&5
  4033. echo $ECHO_N "checking for random limit... $ECHO_C" >&6; }
  4034. case "$egg_cv_var_system_type" in
  4035. SunOS) RMAX=0x7FFFFFFF
  4036. ;;
  4037. *) RMAX=RAND_MAX
  4038. ;;
  4039. esac
  4040. { echo "$as_me:$LINENO: result: $RMAX" >&5
  4041. echo "${ECHO_T}$RMAX" >&6; }
  4042. cat >>confdefs.h <<_ACEOF
  4043. #define RANDOM_MAX $RMAX
  4044. _ACEOF
  4045. # Create static binaries
  4046. if test -z "$no_static"
  4047. then
  4048. if test -n "$GXX"
  4049. then
  4050. { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4051. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
  4052. if test "${egg_cv_var_ccstatic+set}" = set; then
  4053. echo $ECHO_N "(cached) $ECHO_C" >&6
  4054. else
  4055. ac_old_CXX="$CXX"
  4056. CXX="$CXX -static"
  4057. cat >conftest.$ac_ext <<_ACEOF
  4058. /* confdefs.h. */
  4059. _ACEOF
  4060. cat confdefs.h >>conftest.$ac_ext
  4061. cat >>conftest.$ac_ext <<_ACEOF
  4062. /* end confdefs.h. */
  4063. int
  4064. main ()
  4065. {
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. rm -f conftest.$ac_objext
  4071. if { (ac_try="$ac_compile"
  4072. case "(($ac_try" in
  4073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4074. *) ac_try_echo=$ac_try;;
  4075. esac
  4076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4077. (eval "$ac_compile") 2>conftest.er1
  4078. ac_status=$?
  4079. grep -v '^ *+' conftest.er1 >conftest.err
  4080. rm -f conftest.er1
  4081. cat conftest.err >&5
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); } &&
  4084. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4085. { (case "(($ac_try" in
  4086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4087. *) ac_try_echo=$ac_try;;
  4088. esac
  4089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4090. (eval "$ac_try") 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; } &&
  4094. { ac_try='test -s conftest.$ac_objext'
  4095. { (case "(($ac_try" in
  4096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4097. *) ac_try_echo=$ac_try;;
  4098. esac
  4099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4100. (eval "$ac_try") 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; }; then
  4104. egg_cv_var_ccstatic="yes"
  4105. else
  4106. echo "$as_me: failed program was:" >&5
  4107. sed 's/^/| /' conftest.$ac_ext >&5
  4108. egg_cv_var_ccstatic="no"
  4109. fi
  4110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4111. CXX="$ac_old_CXX"
  4112. fi
  4113. { echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4114. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6; }
  4115. if test "$egg_cv_var_ccstatic" = "yes"
  4116. then
  4117. CCDEBUG="$CXX"
  4118. CXX="$CXX -static"
  4119. else
  4120. cat << 'EOF' >&2
  4121. configure: error:
  4122. Your C compiler does not support -static.
  4123. This compile flag is required for the botpack.
  4124. EOF
  4125. exit 1
  4126. fi
  4127. fi
  4128. fi
  4129. #checkpoint
  4130. cat >confcache <<\_ACEOF
  4131. # This file is a shell script that caches the results of configure
  4132. # tests run on this system so they can be shared between configure
  4133. # scripts and configure runs, see configure's option --config-cache.
  4134. # It is not useful on other systems. If it contains results you don't
  4135. # want to keep, you may remove or edit it.
  4136. #
  4137. # config.status only pays attention to the cache file if you give it
  4138. # the --recheck option to rerun configure.
  4139. #
  4140. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4141. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4142. # following values.
  4143. _ACEOF
  4144. # The following way of writing the cache mishandles newlines in values,
  4145. # but we know of no workaround that is simple, portable, and efficient.
  4146. # So, we kill variables containing newlines.
  4147. # Ultrix sh set writes to stderr and can't be redirected directly,
  4148. # and sets the high bit in the cache file unless we assign to the vars.
  4149. (
  4150. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4151. eval ac_val=\$$ac_var
  4152. case $ac_val in #(
  4153. *${as_nl}*)
  4154. case $ac_var in #(
  4155. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4156. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4157. esac
  4158. case $ac_var in #(
  4159. _ | IFS | as_nl) ;; #(
  4160. *) $as_unset $ac_var ;;
  4161. esac ;;
  4162. esac
  4163. done
  4164. (set) 2>&1 |
  4165. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4166. *${as_nl}ac_space=\ *)
  4167. # `set' does not quote correctly, so add quotes (double-quote
  4168. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4169. sed -n \
  4170. "s/'/'\\\\''/g;
  4171. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4172. ;; #(
  4173. *)
  4174. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4175. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4176. ;;
  4177. esac |
  4178. sort
  4179. ) |
  4180. sed '
  4181. /^ac_cv_env_/b end
  4182. t clear
  4183. :clear
  4184. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4185. t end
  4186. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4187. :end' >>confcache
  4188. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4189. if test -w "$cache_file"; then
  4190. test "x$cache_file" != "x/dev/null" &&
  4191. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4192. echo "$as_me: updating cache $cache_file" >&6;}
  4193. cat confcache >$cache_file
  4194. else
  4195. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4196. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4197. fi
  4198. fi
  4199. rm -f confcache
  4200. # Checks for system libraries
  4201. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4202. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  4203. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4204. echo $ECHO_N "(cached) $ECHO_C" >&6
  4205. else
  4206. ac_check_lib_save_LIBS=$LIBS
  4207. LIBS="-lsocket $LIBS"
  4208. cat >conftest.$ac_ext <<_ACEOF
  4209. /* confdefs.h. */
  4210. _ACEOF
  4211. cat confdefs.h >>conftest.$ac_ext
  4212. cat >>conftest.$ac_ext <<_ACEOF
  4213. /* end confdefs.h. */
  4214. /* Override any GCC internal prototype to avoid an error.
  4215. Use char because int might match the return type of a GCC
  4216. builtin and then its argument prototype would still apply. */
  4217. #ifdef __cplusplus
  4218. extern "C"
  4219. #endif
  4220. char socket ();
  4221. int
  4222. main ()
  4223. {
  4224. return socket ();
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. rm -f conftest.$ac_objext conftest$ac_exeext
  4230. if { (ac_try="$ac_link"
  4231. case "(($ac_try" in
  4232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4233. *) ac_try_echo=$ac_try;;
  4234. esac
  4235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4236. (eval "$ac_link") 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } &&
  4243. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4244. { (case "(($ac_try" in
  4245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4246. *) ac_try_echo=$ac_try;;
  4247. esac
  4248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4249. (eval "$ac_try") 2>&5
  4250. ac_status=$?
  4251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4252. (exit $ac_status); }; } &&
  4253. { ac_try='test -s conftest$ac_exeext'
  4254. { (case "(($ac_try" in
  4255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4256. *) ac_try_echo=$ac_try;;
  4257. esac
  4258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4259. (eval "$ac_try") 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); }; }; then
  4263. ac_cv_lib_socket_socket=yes
  4264. else
  4265. echo "$as_me: failed program was:" >&5
  4266. sed 's/^/| /' conftest.$ac_ext >&5
  4267. ac_cv_lib_socket_socket=no
  4268. fi
  4269. rm -f core conftest.err conftest.$ac_objext \
  4270. conftest$ac_exeext conftest.$ac_ext
  4271. LIBS=$ac_check_lib_save_LIBS
  4272. fi
  4273. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4274. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4275. if test $ac_cv_lib_socket_socket = yes; then
  4276. cat >>confdefs.h <<_ACEOF
  4277. #define HAVE_LIBSOCKET 1
  4278. _ACEOF
  4279. LIBS="-lsocket $LIBS"
  4280. fi
  4281. # AC_CHECK_LIB(nsl, connect)
  4282. # AC_CHECK_LIB(dl, dlopen)
  4283. # AC_CHECK_LIB(nsl, gethostbyname)
  4284. # AC_CHECK_LIB(dns, gethostbyname)
  4285. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4286. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4287. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4288. # This is needed for Tcl libraries compiled with thread support
  4289. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4290. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4291. # ac_cv_lib_pthread="-lpthread"], [dnl
  4292. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4293. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4294. # ac_cv_lib_pthread="-lpthread"], [dnl
  4295. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4296. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4297. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4298. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4299. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4300. # ac_cv_lib_pthread=""],
  4301. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4302. if test "$SUNOS" = "yes"; then
  4303. # For suns without yp
  4304. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4305. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  4306. if test "${ac_cv_lib_dl_main+set}" = set; then
  4307. echo $ECHO_N "(cached) $ECHO_C" >&6
  4308. else
  4309. ac_check_lib_save_LIBS=$LIBS
  4310. LIBS="-ldl $LIBS"
  4311. cat >conftest.$ac_ext <<_ACEOF
  4312. /* confdefs.h. */
  4313. _ACEOF
  4314. cat confdefs.h >>conftest.$ac_ext
  4315. cat >>conftest.$ac_ext <<_ACEOF
  4316. /* end confdefs.h. */
  4317. int
  4318. main ()
  4319. {
  4320. return main ();
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. rm -f conftest.$ac_objext conftest$ac_exeext
  4326. if { (ac_try="$ac_link"
  4327. case "(($ac_try" in
  4328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4329. *) ac_try_echo=$ac_try;;
  4330. esac
  4331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4332. (eval "$ac_link") 2>conftest.er1
  4333. ac_status=$?
  4334. grep -v '^ *+' conftest.er1 >conftest.err
  4335. rm -f conftest.er1
  4336. cat conftest.err >&5
  4337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4338. (exit $ac_status); } &&
  4339. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4340. { (case "(($ac_try" in
  4341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4342. *) ac_try_echo=$ac_try;;
  4343. esac
  4344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4345. (eval "$ac_try") 2>&5
  4346. ac_status=$?
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); }; } &&
  4349. { ac_try='test -s conftest$ac_exeext'
  4350. { (case "(($ac_try" in
  4351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4352. *) ac_try_echo=$ac_try;;
  4353. esac
  4354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4355. (eval "$ac_try") 2>&5
  4356. ac_status=$?
  4357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4358. (exit $ac_status); }; }; then
  4359. ac_cv_lib_dl_main=yes
  4360. else
  4361. echo "$as_me: failed program was:" >&5
  4362. sed 's/^/| /' conftest.$ac_ext >&5
  4363. ac_cv_lib_dl_main=no
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext \
  4366. conftest$ac_exeext conftest.$ac_ext
  4367. LIBS=$ac_check_lib_save_LIBS
  4368. fi
  4369. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4370. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  4371. if test $ac_cv_lib_dl_main = yes; then
  4372. cat >>confdefs.h <<_ACEOF
  4373. #define HAVE_LIBDL 1
  4374. _ACEOF
  4375. LIBS="-ldl $LIBS"
  4376. fi
  4377. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4378. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  4379. if test "${ac_cv_lib_socket_main+set}" = set; then
  4380. echo $ECHO_N "(cached) $ECHO_C" >&6
  4381. else
  4382. ac_check_lib_save_LIBS=$LIBS
  4383. LIBS="-lsocket $LIBS"
  4384. cat >conftest.$ac_ext <<_ACEOF
  4385. /* confdefs.h. */
  4386. _ACEOF
  4387. cat confdefs.h >>conftest.$ac_ext
  4388. cat >>conftest.$ac_ext <<_ACEOF
  4389. /* end confdefs.h. */
  4390. int
  4391. main ()
  4392. {
  4393. return main ();
  4394. ;
  4395. return 0;
  4396. }
  4397. _ACEOF
  4398. rm -f conftest.$ac_objext conftest$ac_exeext
  4399. if { (ac_try="$ac_link"
  4400. case "(($ac_try" in
  4401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402. *) ac_try_echo=$ac_try;;
  4403. esac
  4404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4405. (eval "$ac_link") 2>conftest.er1
  4406. ac_status=$?
  4407. grep -v '^ *+' conftest.er1 >conftest.err
  4408. rm -f conftest.er1
  4409. cat conftest.err >&5
  4410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4411. (exit $ac_status); } &&
  4412. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4413. { (case "(($ac_try" in
  4414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4415. *) ac_try_echo=$ac_try;;
  4416. esac
  4417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4418. (eval "$ac_try") 2>&5
  4419. ac_status=$?
  4420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4421. (exit $ac_status); }; } &&
  4422. { ac_try='test -s conftest$ac_exeext'
  4423. { (case "(($ac_try" in
  4424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4425. *) ac_try_echo=$ac_try;;
  4426. esac
  4427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4428. (eval "$ac_try") 2>&5
  4429. ac_status=$?
  4430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4431. (exit $ac_status); }; }; then
  4432. ac_cv_lib_socket_main=yes
  4433. else
  4434. echo "$as_me: failed program was:" >&5
  4435. sed 's/^/| /' conftest.$ac_ext >&5
  4436. ac_cv_lib_socket_main=no
  4437. fi
  4438. rm -f core conftest.err conftest.$ac_objext \
  4439. conftest$ac_exeext conftest.$ac_ext
  4440. LIBS=$ac_check_lib_save_LIBS
  4441. fi
  4442. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4443. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  4444. if test $ac_cv_lib_socket_main = yes; then
  4445. cat >>confdefs.h <<_ACEOF
  4446. #define HAVE_LIBSOCKET 1
  4447. _ACEOF
  4448. LIBS="-lsocket $LIBS"
  4449. fi
  4450. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4451. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  4452. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4453. echo $ECHO_N "(cached) $ECHO_C" >&6
  4454. else
  4455. ac_check_lib_save_LIBS=$LIBS
  4456. LIBS="-lnsl $LIBS"
  4457. cat >conftest.$ac_ext <<_ACEOF
  4458. /* confdefs.h. */
  4459. _ACEOF
  4460. cat confdefs.h >>conftest.$ac_ext
  4461. cat >>conftest.$ac_ext <<_ACEOF
  4462. /* end confdefs.h. */
  4463. int
  4464. main ()
  4465. {
  4466. return main ();
  4467. ;
  4468. return 0;
  4469. }
  4470. _ACEOF
  4471. rm -f conftest.$ac_objext conftest$ac_exeext
  4472. if { (ac_try="$ac_link"
  4473. case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_link") 2>conftest.er1
  4479. ac_status=$?
  4480. grep -v '^ *+' conftest.er1 >conftest.err
  4481. rm -f conftest.er1
  4482. cat conftest.err >&5
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); } &&
  4485. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4486. { (case "(($ac_try" in
  4487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4488. *) ac_try_echo=$ac_try;;
  4489. esac
  4490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4491. (eval "$ac_try") 2>&5
  4492. ac_status=$?
  4493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4494. (exit $ac_status); }; } &&
  4495. { ac_try='test -s conftest$ac_exeext'
  4496. { (case "(($ac_try" in
  4497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4498. *) ac_try_echo=$ac_try;;
  4499. esac
  4500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4501. (eval "$ac_try") 2>&5
  4502. ac_status=$?
  4503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4504. (exit $ac_status); }; }; then
  4505. ac_cv_lib_nsl_main=yes
  4506. else
  4507. echo "$as_me: failed program was:" >&5
  4508. sed 's/^/| /' conftest.$ac_ext >&5
  4509. ac_cv_lib_nsl_main=no
  4510. fi
  4511. rm -f core conftest.err conftest.$ac_objext \
  4512. conftest$ac_exeext conftest.$ac_ext
  4513. LIBS=$ac_check_lib_save_LIBS
  4514. fi
  4515. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4516. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  4517. if test $ac_cv_lib_nsl_main = yes; then
  4518. cat >>confdefs.h <<_ACEOF
  4519. #define HAVE_LIBNSL 1
  4520. _ACEOF
  4521. LIBS="-lnsl $LIBS"
  4522. fi
  4523. fi
  4524. # Checks for header files
  4525. ac_header_dirent=no
  4526. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4527. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4528. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4529. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4530. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4531. echo $ECHO_N "(cached) $ECHO_C" >&6
  4532. else
  4533. cat >conftest.$ac_ext <<_ACEOF
  4534. /* confdefs.h. */
  4535. _ACEOF
  4536. cat confdefs.h >>conftest.$ac_ext
  4537. cat >>conftest.$ac_ext <<_ACEOF
  4538. /* end confdefs.h. */
  4539. #include <sys/types.h>
  4540. #include <$ac_hdr>
  4541. int
  4542. main ()
  4543. {
  4544. if ((DIR *) 0)
  4545. return 0;
  4546. ;
  4547. return 0;
  4548. }
  4549. _ACEOF
  4550. rm -f conftest.$ac_objext
  4551. if { (ac_try="$ac_compile"
  4552. case "(($ac_try" in
  4553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4554. *) ac_try_echo=$ac_try;;
  4555. esac
  4556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4557. (eval "$ac_compile") 2>conftest.er1
  4558. ac_status=$?
  4559. grep -v '^ *+' conftest.er1 >conftest.err
  4560. rm -f conftest.er1
  4561. cat conftest.err >&5
  4562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. (exit $ac_status); } &&
  4564. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4565. { (case "(($ac_try" in
  4566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4567. *) ac_try_echo=$ac_try;;
  4568. esac
  4569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4570. (eval "$ac_try") 2>&5
  4571. ac_status=$?
  4572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4573. (exit $ac_status); }; } &&
  4574. { ac_try='test -s conftest.$ac_objext'
  4575. { (case "(($ac_try" in
  4576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4577. *) ac_try_echo=$ac_try;;
  4578. esac
  4579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4580. (eval "$ac_try") 2>&5
  4581. ac_status=$?
  4582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4583. (exit $ac_status); }; }; then
  4584. eval "$as_ac_Header=yes"
  4585. else
  4586. echo "$as_me: failed program was:" >&5
  4587. sed 's/^/| /' conftest.$ac_ext >&5
  4588. eval "$as_ac_Header=no"
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. ac_res=`eval echo '${'$as_ac_Header'}'`
  4593. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4594. echo "${ECHO_T}$ac_res" >&6; }
  4595. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4596. cat >>confdefs.h <<_ACEOF
  4597. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4598. _ACEOF
  4599. ac_header_dirent=$ac_hdr; break
  4600. fi
  4601. done
  4602. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4603. if test $ac_header_dirent = dirent.h; then
  4604. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4605. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4606. if test "${ac_cv_search_opendir+set}" = set; then
  4607. echo $ECHO_N "(cached) $ECHO_C" >&6
  4608. else
  4609. ac_func_search_save_LIBS=$LIBS
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. /* Override any GCC internal prototype to avoid an error.
  4617. Use char because int might match the return type of a GCC
  4618. builtin and then its argument prototype would still apply. */
  4619. #ifdef __cplusplus
  4620. extern "C"
  4621. #endif
  4622. char opendir ();
  4623. int
  4624. main ()
  4625. {
  4626. return opendir ();
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. for ac_lib in '' dir; do
  4632. if test -z "$ac_lib"; then
  4633. ac_res="none required"
  4634. else
  4635. ac_res=-l$ac_lib
  4636. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4637. fi
  4638. rm -f conftest.$ac_objext conftest$ac_exeext
  4639. if { (ac_try="$ac_link"
  4640. case "(($ac_try" in
  4641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4642. *) ac_try_echo=$ac_try;;
  4643. esac
  4644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4645. (eval "$ac_link") 2>conftest.er1
  4646. ac_status=$?
  4647. grep -v '^ *+' conftest.er1 >conftest.err
  4648. rm -f conftest.er1
  4649. cat conftest.err >&5
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); } &&
  4652. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4653. { (case "(($ac_try" in
  4654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4655. *) ac_try_echo=$ac_try;;
  4656. esac
  4657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4658. (eval "$ac_try") 2>&5
  4659. ac_status=$?
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); }; } &&
  4662. { ac_try='test -s conftest$ac_exeext'
  4663. { (case "(($ac_try" in
  4664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4665. *) ac_try_echo=$ac_try;;
  4666. esac
  4667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4668. (eval "$ac_try") 2>&5
  4669. ac_status=$?
  4670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. (exit $ac_status); }; }; then
  4672. ac_cv_search_opendir=$ac_res
  4673. else
  4674. echo "$as_me: failed program was:" >&5
  4675. sed 's/^/| /' conftest.$ac_ext >&5
  4676. fi
  4677. rm -f core conftest.err conftest.$ac_objext \
  4678. conftest$ac_exeext
  4679. if test "${ac_cv_search_opendir+set}" = set; then
  4680. break
  4681. fi
  4682. done
  4683. if test "${ac_cv_search_opendir+set}" = set; then
  4684. :
  4685. else
  4686. ac_cv_search_opendir=no
  4687. fi
  4688. rm conftest.$ac_ext
  4689. LIBS=$ac_func_search_save_LIBS
  4690. fi
  4691. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4692. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4693. ac_res=$ac_cv_search_opendir
  4694. if test "$ac_res" != no; then
  4695. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4696. fi
  4697. else
  4698. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4699. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4700. if test "${ac_cv_search_opendir+set}" = set; then
  4701. echo $ECHO_N "(cached) $ECHO_C" >&6
  4702. else
  4703. ac_func_search_save_LIBS=$LIBS
  4704. cat >conftest.$ac_ext <<_ACEOF
  4705. /* confdefs.h. */
  4706. _ACEOF
  4707. cat confdefs.h >>conftest.$ac_ext
  4708. cat >>conftest.$ac_ext <<_ACEOF
  4709. /* end confdefs.h. */
  4710. /* Override any GCC internal prototype to avoid an error.
  4711. Use char because int might match the return type of a GCC
  4712. builtin and then its argument prototype would still apply. */
  4713. #ifdef __cplusplus
  4714. extern "C"
  4715. #endif
  4716. char opendir ();
  4717. int
  4718. main ()
  4719. {
  4720. return opendir ();
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. for ac_lib in '' x; do
  4726. if test -z "$ac_lib"; then
  4727. ac_res="none required"
  4728. else
  4729. ac_res=-l$ac_lib
  4730. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4731. fi
  4732. rm -f conftest.$ac_objext conftest$ac_exeext
  4733. if { (ac_try="$ac_link"
  4734. case "(($ac_try" in
  4735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4736. *) ac_try_echo=$ac_try;;
  4737. esac
  4738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4739. (eval "$ac_link") 2>conftest.er1
  4740. ac_status=$?
  4741. grep -v '^ *+' conftest.er1 >conftest.err
  4742. rm -f conftest.er1
  4743. cat conftest.err >&5
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); } &&
  4746. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4747. { (case "(($ac_try" in
  4748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4749. *) ac_try_echo=$ac_try;;
  4750. esac
  4751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4752. (eval "$ac_try") 2>&5
  4753. ac_status=$?
  4754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4755. (exit $ac_status); }; } &&
  4756. { ac_try='test -s conftest$ac_exeext'
  4757. { (case "(($ac_try" in
  4758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4759. *) ac_try_echo=$ac_try;;
  4760. esac
  4761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4762. (eval "$ac_try") 2>&5
  4763. ac_status=$?
  4764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); }; }; then
  4766. ac_cv_search_opendir=$ac_res
  4767. else
  4768. echo "$as_me: failed program was:" >&5
  4769. sed 's/^/| /' conftest.$ac_ext >&5
  4770. fi
  4771. rm -f core conftest.err conftest.$ac_objext \
  4772. conftest$ac_exeext
  4773. if test "${ac_cv_search_opendir+set}" = set; then
  4774. break
  4775. fi
  4776. done
  4777. if test "${ac_cv_search_opendir+set}" = set; then
  4778. :
  4779. else
  4780. ac_cv_search_opendir=no
  4781. fi
  4782. rm conftest.$ac_ext
  4783. LIBS=$ac_func_search_save_LIBS
  4784. fi
  4785. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4786. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4787. ac_res=$ac_cv_search_opendir
  4788. if test "$ac_res" != no; then
  4789. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4790. fi
  4791. fi
  4792. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4793. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4794. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4795. echo $ECHO_N "(cached) $ECHO_C" >&6
  4796. else
  4797. cat >conftest.$ac_ext <<_ACEOF
  4798. /* confdefs.h. */
  4799. _ACEOF
  4800. cat confdefs.h >>conftest.$ac_ext
  4801. cat >>conftest.$ac_ext <<_ACEOF
  4802. /* end confdefs.h. */
  4803. #include <sys/types.h>
  4804. #include <sys/wait.h>
  4805. #ifndef WEXITSTATUS
  4806. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4807. #endif
  4808. #ifndef WIFEXITED
  4809. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4810. #endif
  4811. int
  4812. main ()
  4813. {
  4814. int s;
  4815. wait (&s);
  4816. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4817. ;
  4818. return 0;
  4819. }
  4820. _ACEOF
  4821. rm -f conftest.$ac_objext
  4822. if { (ac_try="$ac_compile"
  4823. case "(($ac_try" in
  4824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4825. *) ac_try_echo=$ac_try;;
  4826. esac
  4827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4828. (eval "$ac_compile") 2>conftest.er1
  4829. ac_status=$?
  4830. grep -v '^ *+' conftest.er1 >conftest.err
  4831. rm -f conftest.er1
  4832. cat conftest.err >&5
  4833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4834. (exit $ac_status); } &&
  4835. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4836. { (case "(($ac_try" in
  4837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4838. *) ac_try_echo=$ac_try;;
  4839. esac
  4840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4841. (eval "$ac_try") 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; } &&
  4845. { ac_try='test -s conftest.$ac_objext'
  4846. { (case "(($ac_try" in
  4847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4848. *) ac_try_echo=$ac_try;;
  4849. esac
  4850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4851. (eval "$ac_try") 2>&5
  4852. ac_status=$?
  4853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4854. (exit $ac_status); }; }; then
  4855. ac_cv_header_sys_wait_h=yes
  4856. else
  4857. echo "$as_me: failed program was:" >&5
  4858. sed 's/^/| /' conftest.$ac_ext >&5
  4859. ac_cv_header_sys_wait_h=no
  4860. fi
  4861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4862. fi
  4863. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4864. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4865. if test $ac_cv_header_sys_wait_h = yes; then
  4866. cat >>confdefs.h <<\_ACEOF
  4867. #define HAVE_SYS_WAIT_H 1
  4868. _ACEOF
  4869. fi
  4870. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4871. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4872. if test "${ac_cv_header_time+set}" = set; then
  4873. echo $ECHO_N "(cached) $ECHO_C" >&6
  4874. else
  4875. cat >conftest.$ac_ext <<_ACEOF
  4876. /* confdefs.h. */
  4877. _ACEOF
  4878. cat confdefs.h >>conftest.$ac_ext
  4879. cat >>conftest.$ac_ext <<_ACEOF
  4880. /* end confdefs.h. */
  4881. #include <sys/types.h>
  4882. #include <sys/time.h>
  4883. #include <time.h>
  4884. int
  4885. main ()
  4886. {
  4887. if ((struct tm *) 0)
  4888. return 0;
  4889. ;
  4890. return 0;
  4891. }
  4892. _ACEOF
  4893. rm -f conftest.$ac_objext
  4894. if { (ac_try="$ac_compile"
  4895. case "(($ac_try" in
  4896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4897. *) ac_try_echo=$ac_try;;
  4898. esac
  4899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4900. (eval "$ac_compile") 2>conftest.er1
  4901. ac_status=$?
  4902. grep -v '^ *+' conftest.er1 >conftest.err
  4903. rm -f conftest.er1
  4904. cat conftest.err >&5
  4905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4906. (exit $ac_status); } &&
  4907. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4908. { (case "(($ac_try" in
  4909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4910. *) ac_try_echo=$ac_try;;
  4911. esac
  4912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4913. (eval "$ac_try") 2>&5
  4914. ac_status=$?
  4915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4916. (exit $ac_status); }; } &&
  4917. { ac_try='test -s conftest.$ac_objext'
  4918. { (case "(($ac_try" in
  4919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4920. *) ac_try_echo=$ac_try;;
  4921. esac
  4922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4923. (eval "$ac_try") 2>&5
  4924. ac_status=$?
  4925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4926. (exit $ac_status); }; }; then
  4927. ac_cv_header_time=yes
  4928. else
  4929. echo "$as_me: failed program was:" >&5
  4930. sed 's/^/| /' conftest.$ac_ext >&5
  4931. ac_cv_header_time=no
  4932. fi
  4933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4934. fi
  4935. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4936. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4937. if test $ac_cv_header_time = yes; then
  4938. cat >>confdefs.h <<\_ACEOF
  4939. #define TIME_WITH_SYS_TIME 1
  4940. _ACEOF
  4941. fi
  4942. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4943. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  4944. if test "${ac_cv_header_stat_broken+set}" = set; then
  4945. echo $ECHO_N "(cached) $ECHO_C" >&6
  4946. else
  4947. cat >conftest.$ac_ext <<_ACEOF
  4948. /* confdefs.h. */
  4949. _ACEOF
  4950. cat confdefs.h >>conftest.$ac_ext
  4951. cat >>conftest.$ac_ext <<_ACEOF
  4952. /* end confdefs.h. */
  4953. #include <sys/types.h>
  4954. #include <sys/stat.h>
  4955. #if defined S_ISBLK && defined S_IFDIR
  4956. # if S_ISBLK (S_IFDIR)
  4957. You lose.
  4958. # endif
  4959. #endif
  4960. #if defined S_ISBLK && defined S_IFCHR
  4961. # if S_ISBLK (S_IFCHR)
  4962. You lose.
  4963. # endif
  4964. #endif
  4965. #if defined S_ISLNK && defined S_IFREG
  4966. # if S_ISLNK (S_IFREG)
  4967. You lose.
  4968. # endif
  4969. #endif
  4970. #if defined S_ISSOCK && defined S_IFREG
  4971. # if S_ISSOCK (S_IFREG)
  4972. You lose.
  4973. # endif
  4974. #endif
  4975. _ACEOF
  4976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4977. $EGREP "You lose" >/dev/null 2>&1; then
  4978. ac_cv_header_stat_broken=yes
  4979. else
  4980. ac_cv_header_stat_broken=no
  4981. fi
  4982. rm -f conftest*
  4983. fi
  4984. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4985. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  4986. if test $ac_cv_header_stat_broken = yes; then
  4987. cat >>confdefs.h <<\_ACEOF
  4988. #define STAT_MACROS_BROKEN 1
  4989. _ACEOF
  4990. fi
  4991. #checkpoint
  4992. cat >confcache <<\_ACEOF
  4993. # This file is a shell script that caches the results of configure
  4994. # tests run on this system so they can be shared between configure
  4995. # scripts and configure runs, see configure's option --config-cache.
  4996. # It is not useful on other systems. If it contains results you don't
  4997. # want to keep, you may remove or edit it.
  4998. #
  4999. # config.status only pays attention to the cache file if you give it
  5000. # the --recheck option to rerun configure.
  5001. #
  5002. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5003. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5004. # following values.
  5005. _ACEOF
  5006. # The following way of writing the cache mishandles newlines in values,
  5007. # but we know of no workaround that is simple, portable, and efficient.
  5008. # So, we kill variables containing newlines.
  5009. # Ultrix sh set writes to stderr and can't be redirected directly,
  5010. # and sets the high bit in the cache file unless we assign to the vars.
  5011. (
  5012. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5013. eval ac_val=\$$ac_var
  5014. case $ac_val in #(
  5015. *${as_nl}*)
  5016. case $ac_var in #(
  5017. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5018. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5019. esac
  5020. case $ac_var in #(
  5021. _ | IFS | as_nl) ;; #(
  5022. *) $as_unset $ac_var ;;
  5023. esac ;;
  5024. esac
  5025. done
  5026. (set) 2>&1 |
  5027. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5028. *${as_nl}ac_space=\ *)
  5029. # `set' does not quote correctly, so add quotes (double-quote
  5030. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5031. sed -n \
  5032. "s/'/'\\\\''/g;
  5033. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5034. ;; #(
  5035. *)
  5036. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5037. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5038. ;;
  5039. esac |
  5040. sort
  5041. ) |
  5042. sed '
  5043. /^ac_cv_env_/b end
  5044. t clear
  5045. :clear
  5046. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5047. t end
  5048. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5049. :end' >>confcache
  5050. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5051. if test -w "$cache_file"; then
  5052. test "x$cache_file" != "x/dev/null" &&
  5053. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5054. echo "$as_me: updating cache $cache_file" >&6;}
  5055. cat confcache >$cache_file
  5056. else
  5057. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5058. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5059. fi
  5060. fi
  5061. rm -f confcache
  5062. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5063. do
  5064. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5065. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5066. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5067. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5068. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5069. echo $ECHO_N "(cached) $ECHO_C" >&6
  5070. fi
  5071. ac_res=`eval echo '${'$as_ac_Header'}'`
  5072. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5073. echo "${ECHO_T}$ac_res" >&6; }
  5074. else
  5075. # Is the header compilable?
  5076. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5077. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5078. cat >conftest.$ac_ext <<_ACEOF
  5079. /* confdefs.h. */
  5080. _ACEOF
  5081. cat confdefs.h >>conftest.$ac_ext
  5082. cat >>conftest.$ac_ext <<_ACEOF
  5083. /* end confdefs.h. */
  5084. $ac_includes_default
  5085. #include <$ac_header>
  5086. _ACEOF
  5087. rm -f conftest.$ac_objext
  5088. if { (ac_try="$ac_compile"
  5089. case "(($ac_try" in
  5090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5091. *) ac_try_echo=$ac_try;;
  5092. esac
  5093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5094. (eval "$ac_compile") 2>conftest.er1
  5095. ac_status=$?
  5096. grep -v '^ *+' conftest.er1 >conftest.err
  5097. rm -f conftest.er1
  5098. cat conftest.err >&5
  5099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5100. (exit $ac_status); } &&
  5101. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5102. { (case "(($ac_try" in
  5103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5104. *) ac_try_echo=$ac_try;;
  5105. esac
  5106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5107. (eval "$ac_try") 2>&5
  5108. ac_status=$?
  5109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5110. (exit $ac_status); }; } &&
  5111. { ac_try='test -s conftest.$ac_objext'
  5112. { (case "(($ac_try" in
  5113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5114. *) ac_try_echo=$ac_try;;
  5115. esac
  5116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5117. (eval "$ac_try") 2>&5
  5118. ac_status=$?
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); }; }; then
  5121. ac_header_compiler=yes
  5122. else
  5123. echo "$as_me: failed program was:" >&5
  5124. sed 's/^/| /' conftest.$ac_ext >&5
  5125. ac_header_compiler=no
  5126. fi
  5127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5128. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5129. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5130. # Is the header present?
  5131. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5132. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5133. cat >conftest.$ac_ext <<_ACEOF
  5134. /* confdefs.h. */
  5135. _ACEOF
  5136. cat confdefs.h >>conftest.$ac_ext
  5137. cat >>conftest.$ac_ext <<_ACEOF
  5138. /* end confdefs.h. */
  5139. #include <$ac_header>
  5140. _ACEOF
  5141. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5142. case "(($ac_try" in
  5143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5144. *) ac_try_echo=$ac_try;;
  5145. esac
  5146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5147. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5148. ac_status=$?
  5149. grep -v '^ *+' conftest.er1 >conftest.err
  5150. rm -f conftest.er1
  5151. cat conftest.err >&5
  5152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5153. (exit $ac_status); } >/dev/null; then
  5154. if test -s conftest.err; then
  5155. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5156. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5157. else
  5158. ac_cpp_err=
  5159. fi
  5160. else
  5161. ac_cpp_err=yes
  5162. fi
  5163. if test -z "$ac_cpp_err"; then
  5164. ac_header_preproc=yes
  5165. else
  5166. echo "$as_me: failed program was:" >&5
  5167. sed 's/^/| /' conftest.$ac_ext >&5
  5168. ac_header_preproc=no
  5169. fi
  5170. rm -f conftest.err conftest.$ac_ext
  5171. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5172. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5173. # So? What about this header?
  5174. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5175. yes:no: )
  5176. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5177. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5179. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5180. ac_header_preproc=yes
  5181. ;;
  5182. no:yes:* )
  5183. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5184. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5185. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5186. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5187. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5188. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5189. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5190. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5191. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5192. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5193. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5194. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5195. ;;
  5196. esac
  5197. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5200. echo $ECHO_N "(cached) $ECHO_C" >&6
  5201. else
  5202. eval "$as_ac_Header=\$ac_header_preproc"
  5203. fi
  5204. ac_res=`eval echo '${'$as_ac_Header'}'`
  5205. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5206. echo "${ECHO_T}$ac_res" >&6; }
  5207. fi
  5208. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5209. cat >>confdefs.h <<_ACEOF
  5210. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5211. _ACEOF
  5212. fi
  5213. done
  5214. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5215. do
  5216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5217. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5218. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5219. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5220. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5221. echo $ECHO_N "(cached) $ECHO_C" >&6
  5222. fi
  5223. ac_res=`eval echo '${'$as_ac_Header'}'`
  5224. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5225. echo "${ECHO_T}$ac_res" >&6; }
  5226. else
  5227. # Is the header compilable?
  5228. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5229. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5230. cat >conftest.$ac_ext <<_ACEOF
  5231. /* confdefs.h. */
  5232. _ACEOF
  5233. cat confdefs.h >>conftest.$ac_ext
  5234. cat >>conftest.$ac_ext <<_ACEOF
  5235. /* end confdefs.h. */
  5236. $ac_includes_default
  5237. #include <$ac_header>
  5238. _ACEOF
  5239. rm -f conftest.$ac_objext
  5240. if { (ac_try="$ac_compile"
  5241. case "(($ac_try" in
  5242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5243. *) ac_try_echo=$ac_try;;
  5244. esac
  5245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5246. (eval "$ac_compile") 2>conftest.er1
  5247. ac_status=$?
  5248. grep -v '^ *+' conftest.er1 >conftest.err
  5249. rm -f conftest.er1
  5250. cat conftest.err >&5
  5251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5252. (exit $ac_status); } &&
  5253. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5254. { (case "(($ac_try" in
  5255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5256. *) ac_try_echo=$ac_try;;
  5257. esac
  5258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5259. (eval "$ac_try") 2>&5
  5260. ac_status=$?
  5261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5262. (exit $ac_status); }; } &&
  5263. { ac_try='test -s conftest.$ac_objext'
  5264. { (case "(($ac_try" in
  5265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5266. *) ac_try_echo=$ac_try;;
  5267. esac
  5268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5269. (eval "$ac_try") 2>&5
  5270. ac_status=$?
  5271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5272. (exit $ac_status); }; }; then
  5273. ac_header_compiler=yes
  5274. else
  5275. echo "$as_me: failed program was:" >&5
  5276. sed 's/^/| /' conftest.$ac_ext >&5
  5277. ac_header_compiler=no
  5278. fi
  5279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5280. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5281. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5282. # Is the header present?
  5283. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5284. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5285. cat >conftest.$ac_ext <<_ACEOF
  5286. /* confdefs.h. */
  5287. _ACEOF
  5288. cat confdefs.h >>conftest.$ac_ext
  5289. cat >>conftest.$ac_ext <<_ACEOF
  5290. /* end confdefs.h. */
  5291. #include <$ac_header>
  5292. _ACEOF
  5293. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5294. case "(($ac_try" in
  5295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5296. *) ac_try_echo=$ac_try;;
  5297. esac
  5298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5299. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5300. ac_status=$?
  5301. grep -v '^ *+' conftest.er1 >conftest.err
  5302. rm -f conftest.er1
  5303. cat conftest.err >&5
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); } >/dev/null; then
  5306. if test -s conftest.err; then
  5307. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5308. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5309. else
  5310. ac_cpp_err=
  5311. fi
  5312. else
  5313. ac_cpp_err=yes
  5314. fi
  5315. if test -z "$ac_cpp_err"; then
  5316. ac_header_preproc=yes
  5317. else
  5318. echo "$as_me: failed program was:" >&5
  5319. sed 's/^/| /' conftest.$ac_ext >&5
  5320. ac_header_preproc=no
  5321. fi
  5322. rm -f conftest.err conftest.$ac_ext
  5323. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5324. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5325. # So? What about this header?
  5326. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5327. yes:no: )
  5328. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5329. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5330. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5331. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5332. ac_header_preproc=yes
  5333. ;;
  5334. no:yes:* )
  5335. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5336. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5337. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5338. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5339. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5340. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5341. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5342. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5343. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5344. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5345. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5346. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5347. ;;
  5348. esac
  5349. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5351. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5352. echo $ECHO_N "(cached) $ECHO_C" >&6
  5353. else
  5354. eval "$as_ac_Header=\$ac_header_preproc"
  5355. fi
  5356. ac_res=`eval echo '${'$as_ac_Header'}'`
  5357. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5358. echo "${ECHO_T}$ac_res" >&6; }
  5359. fi
  5360. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5361. cat >>confdefs.h <<_ACEOF
  5362. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5363. _ACEOF
  5364. fi
  5365. done
  5366. #checkpoint
  5367. cat >confcache <<\_ACEOF
  5368. # This file is a shell script that caches the results of configure
  5369. # tests run on this system so they can be shared between configure
  5370. # scripts and configure runs, see configure's option --config-cache.
  5371. # It is not useful on other systems. If it contains results you don't
  5372. # want to keep, you may remove or edit it.
  5373. #
  5374. # config.status only pays attention to the cache file if you give it
  5375. # the --recheck option to rerun configure.
  5376. #
  5377. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5378. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5379. # following values.
  5380. _ACEOF
  5381. # The following way of writing the cache mishandles newlines in values,
  5382. # but we know of no workaround that is simple, portable, and efficient.
  5383. # So, we kill variables containing newlines.
  5384. # Ultrix sh set writes to stderr and can't be redirected directly,
  5385. # and sets the high bit in the cache file unless we assign to the vars.
  5386. (
  5387. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5388. eval ac_val=\$$ac_var
  5389. case $ac_val in #(
  5390. *${as_nl}*)
  5391. case $ac_var in #(
  5392. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5393. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5394. esac
  5395. case $ac_var in #(
  5396. _ | IFS | as_nl) ;; #(
  5397. *) $as_unset $ac_var ;;
  5398. esac ;;
  5399. esac
  5400. done
  5401. (set) 2>&1 |
  5402. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5403. *${as_nl}ac_space=\ *)
  5404. # `set' does not quote correctly, so add quotes (double-quote
  5405. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5406. sed -n \
  5407. "s/'/'\\\\''/g;
  5408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5409. ;; #(
  5410. *)
  5411. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5412. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5413. ;;
  5414. esac |
  5415. sort
  5416. ) |
  5417. sed '
  5418. /^ac_cv_env_/b end
  5419. t clear
  5420. :clear
  5421. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5422. t end
  5423. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5424. :end' >>confcache
  5425. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5426. if test -w "$cache_file"; then
  5427. test "x$cache_file" != "x/dev/null" &&
  5428. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5429. echo "$as_me: updating cache $cache_file" >&6;}
  5430. cat confcache >$cache_file
  5431. else
  5432. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5433. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5434. fi
  5435. fi
  5436. rm -f confcache
  5437. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5438. #AC_CHECK_HEADERS(zlib.h)
  5439. #EGG_CHECK_ZLIB
  5440. #EGG_CHECK_SSL
  5441. #AC_SUBST(SSL)dnl
  5442. # Checks for typedefs, structures, and compiler characteristics
  5443. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5444. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5445. if test "${ac_cv_type_pid_t+set}" = set; then
  5446. echo $ECHO_N "(cached) $ECHO_C" >&6
  5447. else
  5448. cat >conftest.$ac_ext <<_ACEOF
  5449. /* confdefs.h. */
  5450. _ACEOF
  5451. cat confdefs.h >>conftest.$ac_ext
  5452. cat >>conftest.$ac_ext <<_ACEOF
  5453. /* end confdefs.h. */
  5454. $ac_includes_default
  5455. typedef pid_t ac__type_new_;
  5456. int
  5457. main ()
  5458. {
  5459. if ((ac__type_new_ *) 0)
  5460. return 0;
  5461. if (sizeof (ac__type_new_))
  5462. return 0;
  5463. ;
  5464. return 0;
  5465. }
  5466. _ACEOF
  5467. rm -f conftest.$ac_objext
  5468. if { (ac_try="$ac_compile"
  5469. case "(($ac_try" in
  5470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5471. *) ac_try_echo=$ac_try;;
  5472. esac
  5473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5474. (eval "$ac_compile") 2>conftest.er1
  5475. ac_status=$?
  5476. grep -v '^ *+' conftest.er1 >conftest.err
  5477. rm -f conftest.er1
  5478. cat conftest.err >&5
  5479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5480. (exit $ac_status); } &&
  5481. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5482. { (case "(($ac_try" in
  5483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5484. *) ac_try_echo=$ac_try;;
  5485. esac
  5486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5487. (eval "$ac_try") 2>&5
  5488. ac_status=$?
  5489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5490. (exit $ac_status); }; } &&
  5491. { ac_try='test -s conftest.$ac_objext'
  5492. { (case "(($ac_try" in
  5493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5494. *) ac_try_echo=$ac_try;;
  5495. esac
  5496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5497. (eval "$ac_try") 2>&5
  5498. ac_status=$?
  5499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5500. (exit $ac_status); }; }; then
  5501. ac_cv_type_pid_t=yes
  5502. else
  5503. echo "$as_me: failed program was:" >&5
  5504. sed 's/^/| /' conftest.$ac_ext >&5
  5505. ac_cv_type_pid_t=no
  5506. fi
  5507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5508. fi
  5509. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5510. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5511. if test $ac_cv_type_pid_t = yes; then
  5512. :
  5513. else
  5514. cat >>confdefs.h <<_ACEOF
  5515. #define pid_t int
  5516. _ACEOF
  5517. fi
  5518. { echo "$as_me:$LINENO: checking for size_t" >&5
  5519. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5520. if test "${ac_cv_type_size_t+set}" = set; then
  5521. echo $ECHO_N "(cached) $ECHO_C" >&6
  5522. else
  5523. cat >conftest.$ac_ext <<_ACEOF
  5524. /* confdefs.h. */
  5525. _ACEOF
  5526. cat confdefs.h >>conftest.$ac_ext
  5527. cat >>conftest.$ac_ext <<_ACEOF
  5528. /* end confdefs.h. */
  5529. $ac_includes_default
  5530. typedef size_t ac__type_new_;
  5531. int
  5532. main ()
  5533. {
  5534. if ((ac__type_new_ *) 0)
  5535. return 0;
  5536. if (sizeof (ac__type_new_))
  5537. return 0;
  5538. ;
  5539. return 0;
  5540. }
  5541. _ACEOF
  5542. rm -f conftest.$ac_objext
  5543. if { (ac_try="$ac_compile"
  5544. case "(($ac_try" in
  5545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5546. *) ac_try_echo=$ac_try;;
  5547. esac
  5548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5549. (eval "$ac_compile") 2>conftest.er1
  5550. ac_status=$?
  5551. grep -v '^ *+' conftest.er1 >conftest.err
  5552. rm -f conftest.er1
  5553. cat conftest.err >&5
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); } &&
  5556. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5557. { (case "(($ac_try" in
  5558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5559. *) ac_try_echo=$ac_try;;
  5560. esac
  5561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5562. (eval "$ac_try") 2>&5
  5563. ac_status=$?
  5564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5565. (exit $ac_status); }; } &&
  5566. { ac_try='test -s conftest.$ac_objext'
  5567. { (case "(($ac_try" in
  5568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5569. *) ac_try_echo=$ac_try;;
  5570. esac
  5571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5572. (eval "$ac_try") 2>&5
  5573. ac_status=$?
  5574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5575. (exit $ac_status); }; }; then
  5576. ac_cv_type_size_t=yes
  5577. else
  5578. echo "$as_me: failed program was:" >&5
  5579. sed 's/^/| /' conftest.$ac_ext >&5
  5580. ac_cv_type_size_t=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5583. fi
  5584. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5585. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5586. if test $ac_cv_type_size_t = yes; then
  5587. :
  5588. else
  5589. cat >>confdefs.h <<_ACEOF
  5590. #define size_t unsigned int
  5591. _ACEOF
  5592. fi
  5593. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5594. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  5595. if test "${ac_cv_type_uid_t+set}" = set; then
  5596. echo $ECHO_N "(cached) $ECHO_C" >&6
  5597. else
  5598. cat >conftest.$ac_ext <<_ACEOF
  5599. /* confdefs.h. */
  5600. _ACEOF
  5601. cat confdefs.h >>conftest.$ac_ext
  5602. cat >>conftest.$ac_ext <<_ACEOF
  5603. /* end confdefs.h. */
  5604. #include <sys/types.h>
  5605. _ACEOF
  5606. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5607. $EGREP "uid_t" >/dev/null 2>&1; then
  5608. ac_cv_type_uid_t=yes
  5609. else
  5610. ac_cv_type_uid_t=no
  5611. fi
  5612. rm -f conftest*
  5613. fi
  5614. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5615. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  5616. if test $ac_cv_type_uid_t = no; then
  5617. cat >>confdefs.h <<\_ACEOF
  5618. #define uid_t int
  5619. _ACEOF
  5620. cat >>confdefs.h <<\_ACEOF
  5621. #define gid_t int
  5622. _ACEOF
  5623. fi
  5624. #AC_C_CONST
  5625. { echo "$as_me:$LINENO: checking for working volatile" >&5
  5626. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  5627. if test "${ac_cv_c_volatile+set}" = set; then
  5628. echo $ECHO_N "(cached) $ECHO_C" >&6
  5629. else
  5630. cat >conftest.$ac_ext <<_ACEOF
  5631. /* confdefs.h. */
  5632. _ACEOF
  5633. cat confdefs.h >>conftest.$ac_ext
  5634. cat >>conftest.$ac_ext <<_ACEOF
  5635. /* end confdefs.h. */
  5636. int
  5637. main ()
  5638. {
  5639. volatile int x;
  5640. int * volatile y = (int *) 0;
  5641. return !x && !y;
  5642. ;
  5643. return 0;
  5644. }
  5645. _ACEOF
  5646. rm -f conftest.$ac_objext
  5647. if { (ac_try="$ac_compile"
  5648. case "(($ac_try" in
  5649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5650. *) ac_try_echo=$ac_try;;
  5651. esac
  5652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5653. (eval "$ac_compile") 2>conftest.er1
  5654. ac_status=$?
  5655. grep -v '^ *+' conftest.er1 >conftest.err
  5656. rm -f conftest.er1
  5657. cat conftest.err >&5
  5658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5659. (exit $ac_status); } &&
  5660. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5661. { (case "(($ac_try" in
  5662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5663. *) ac_try_echo=$ac_try;;
  5664. esac
  5665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5666. (eval "$ac_try") 2>&5
  5667. ac_status=$?
  5668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669. (exit $ac_status); }; } &&
  5670. { ac_try='test -s conftest.$ac_objext'
  5671. { (case "(($ac_try" in
  5672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5673. *) ac_try_echo=$ac_try;;
  5674. esac
  5675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5676. (eval "$ac_try") 2>&5
  5677. ac_status=$?
  5678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5679. (exit $ac_status); }; }; then
  5680. ac_cv_c_volatile=yes
  5681. else
  5682. echo "$as_me: failed program was:" >&5
  5683. sed 's/^/| /' conftest.$ac_ext >&5
  5684. ac_cv_c_volatile=no
  5685. fi
  5686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5687. fi
  5688. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5689. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  5690. if test $ac_cv_c_volatile = no; then
  5691. cat >>confdefs.h <<\_ACEOF
  5692. #define volatile
  5693. _ACEOF
  5694. fi
  5695. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5696. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  5697. if test "${ac_cv_c_bigendian+set}" = set; then
  5698. echo $ECHO_N "(cached) $ECHO_C" >&6
  5699. else
  5700. # See if sys/param.h defines the BYTE_ORDER macro.
  5701. cat >conftest.$ac_ext <<_ACEOF
  5702. /* confdefs.h. */
  5703. _ACEOF
  5704. cat confdefs.h >>conftest.$ac_ext
  5705. cat >>conftest.$ac_ext <<_ACEOF
  5706. /* end confdefs.h. */
  5707. #include <sys/types.h>
  5708. #include <sys/param.h>
  5709. int
  5710. main ()
  5711. {
  5712. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5713. bogus endian macros
  5714. #endif
  5715. ;
  5716. return 0;
  5717. }
  5718. _ACEOF
  5719. rm -f conftest.$ac_objext
  5720. if { (ac_try="$ac_compile"
  5721. case "(($ac_try" in
  5722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5723. *) ac_try_echo=$ac_try;;
  5724. esac
  5725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5726. (eval "$ac_compile") 2>conftest.er1
  5727. ac_status=$?
  5728. grep -v '^ *+' conftest.er1 >conftest.err
  5729. rm -f conftest.er1
  5730. cat conftest.err >&5
  5731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732. (exit $ac_status); } &&
  5733. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5734. { (case "(($ac_try" in
  5735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5736. *) ac_try_echo=$ac_try;;
  5737. esac
  5738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5739. (eval "$ac_try") 2>&5
  5740. ac_status=$?
  5741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742. (exit $ac_status); }; } &&
  5743. { ac_try='test -s conftest.$ac_objext'
  5744. { (case "(($ac_try" in
  5745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5746. *) ac_try_echo=$ac_try;;
  5747. esac
  5748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5749. (eval "$ac_try") 2>&5
  5750. ac_status=$?
  5751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752. (exit $ac_status); }; }; then
  5753. # It does; now see whether it defined to BIG_ENDIAN or not.
  5754. cat >conftest.$ac_ext <<_ACEOF
  5755. /* confdefs.h. */
  5756. _ACEOF
  5757. cat confdefs.h >>conftest.$ac_ext
  5758. cat >>conftest.$ac_ext <<_ACEOF
  5759. /* end confdefs.h. */
  5760. #include <sys/types.h>
  5761. #include <sys/param.h>
  5762. int
  5763. main ()
  5764. {
  5765. #if BYTE_ORDER != BIG_ENDIAN
  5766. not big endian
  5767. #endif
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. rm -f conftest.$ac_objext
  5773. if { (ac_try="$ac_compile"
  5774. case "(($ac_try" in
  5775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5776. *) ac_try_echo=$ac_try;;
  5777. esac
  5778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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_cxx_werror_flag" || test ! -s conftest.err'
  5787. { (case "(($ac_try" in
  5788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5789. *) ac_try_echo=$ac_try;;
  5790. esac
  5791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5792. (eval "$ac_try") 2>&5
  5793. ac_status=$?
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); }; } &&
  5796. { ac_try='test -s conftest.$ac_objext'
  5797. { (case "(($ac_try" in
  5798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5799. *) ac_try_echo=$ac_try;;
  5800. esac
  5801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5802. (eval "$ac_try") 2>&5
  5803. ac_status=$?
  5804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805. (exit $ac_status); }; }; then
  5806. ac_cv_c_bigendian=yes
  5807. else
  5808. echo "$as_me: failed program was:" >&5
  5809. sed 's/^/| /' conftest.$ac_ext >&5
  5810. ac_cv_c_bigendian=no
  5811. fi
  5812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5813. else
  5814. echo "$as_me: failed program was:" >&5
  5815. sed 's/^/| /' conftest.$ac_ext >&5
  5816. # It does not; compile a test program.
  5817. if test "$cross_compiling" = yes; then
  5818. # try to guess the endianness by grepping values into an object file
  5819. ac_cv_c_bigendian=unknown
  5820. cat >conftest.$ac_ext <<_ACEOF
  5821. /* confdefs.h. */
  5822. _ACEOF
  5823. cat confdefs.h >>conftest.$ac_ext
  5824. cat >>conftest.$ac_ext <<_ACEOF
  5825. /* end confdefs.h. */
  5826. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5827. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5828. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5829. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5830. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5831. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5832. int
  5833. main ()
  5834. {
  5835. _ascii (); _ebcdic ();
  5836. ;
  5837. return 0;
  5838. }
  5839. _ACEOF
  5840. rm -f conftest.$ac_objext
  5841. if { (ac_try="$ac_compile"
  5842. case "(($ac_try" in
  5843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5844. *) ac_try_echo=$ac_try;;
  5845. esac
  5846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5847. (eval "$ac_compile") 2>conftest.er1
  5848. ac_status=$?
  5849. grep -v '^ *+' conftest.er1 >conftest.err
  5850. rm -f conftest.er1
  5851. cat conftest.err >&5
  5852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); } &&
  5854. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5855. { (case "(($ac_try" in
  5856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5857. *) ac_try_echo=$ac_try;;
  5858. esac
  5859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5860. (eval "$ac_try") 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; } &&
  5864. { ac_try='test -s conftest.$ac_objext'
  5865. { (case "(($ac_try" in
  5866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867. *) ac_try_echo=$ac_try;;
  5868. esac
  5869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870. (eval "$ac_try") 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); }; }; then
  5874. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5875. ac_cv_c_bigendian=yes
  5876. fi
  5877. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5878. if test "$ac_cv_c_bigendian" = unknown; then
  5879. ac_cv_c_bigendian=no
  5880. else
  5881. # finding both strings is unlikely to happen, but who knows?
  5882. ac_cv_c_bigendian=unknown
  5883. fi
  5884. fi
  5885. else
  5886. echo "$as_me: failed program was:" >&5
  5887. sed 's/^/| /' conftest.$ac_ext >&5
  5888. fi
  5889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5890. else
  5891. cat >conftest.$ac_ext <<_ACEOF
  5892. /* confdefs.h. */
  5893. _ACEOF
  5894. cat confdefs.h >>conftest.$ac_ext
  5895. cat >>conftest.$ac_ext <<_ACEOF
  5896. /* end confdefs.h. */
  5897. $ac_includes_default
  5898. int
  5899. main ()
  5900. {
  5901. /* Are we little or big endian? From Harbison&Steele. */
  5902. union
  5903. {
  5904. long int l;
  5905. char c[sizeof (long int)];
  5906. } u;
  5907. u.l = 1;
  5908. return u.c[sizeof (long int) - 1] == 1;
  5909. ;
  5910. return 0;
  5911. }
  5912. _ACEOF
  5913. rm -f conftest$ac_exeext
  5914. if { (ac_try="$ac_link"
  5915. case "(($ac_try" in
  5916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5917. *) ac_try_echo=$ac_try;;
  5918. esac
  5919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5920. (eval "$ac_link") 2>&5
  5921. ac_status=$?
  5922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5923. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5924. { (case "(($ac_try" in
  5925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5926. *) ac_try_echo=$ac_try;;
  5927. esac
  5928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5929. (eval "$ac_try") 2>&5
  5930. ac_status=$?
  5931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5932. (exit $ac_status); }; }; then
  5933. ac_cv_c_bigendian=no
  5934. else
  5935. echo "$as_me: program exited with status $ac_status" >&5
  5936. echo "$as_me: failed program was:" >&5
  5937. sed 's/^/| /' conftest.$ac_ext >&5
  5938. ( exit $ac_status )
  5939. ac_cv_c_bigendian=yes
  5940. fi
  5941. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5942. fi
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5945. fi
  5946. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5947. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  5948. case $ac_cv_c_bigendian in
  5949. yes)
  5950. cat >>confdefs.h <<\_ACEOF
  5951. #define B_ENDIAN 1
  5952. _ACEOF
  5953. ;;
  5954. no)
  5955. cat >>confdefs.h <<\_ACEOF
  5956. #define L_ENDIAN 1
  5957. _ACEOF
  5958. ;;
  5959. *)
  5960. { { echo "$as_me:$LINENO: error: unknown endianness
  5961. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5962. echo "$as_me: error: unknown endianness
  5963. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5964. { (exit 1); exit 1; }; } ;;
  5965. esac
  5966. #AC_C_INLINE
  5967. { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5968. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
  5969. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5970. echo $ECHO_N "(cached) $ECHO_C" >&6
  5971. else
  5972. cat >conftest.$ac_ext <<_ACEOF
  5973. /* confdefs.h. */
  5974. _ACEOF
  5975. cat confdefs.h >>conftest.$ac_ext
  5976. cat >>conftest.$ac_ext <<_ACEOF
  5977. /* end confdefs.h. */
  5978. $ac_includes_default
  5979. int
  5980. main ()
  5981. {
  5982. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5983. test_array [0] = 0
  5984. ;
  5985. return 0;
  5986. }
  5987. _ACEOF
  5988. rm -f conftest.$ac_objext
  5989. if { (ac_try="$ac_compile"
  5990. case "(($ac_try" in
  5991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5992. *) ac_try_echo=$ac_try;;
  5993. esac
  5994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5995. (eval "$ac_compile") 2>conftest.er1
  5996. ac_status=$?
  5997. grep -v '^ *+' conftest.er1 >conftest.err
  5998. rm -f conftest.er1
  5999. cat conftest.err >&5
  6000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6001. (exit $ac_status); } &&
  6002. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6003. { (case "(($ac_try" in
  6004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6005. *) ac_try_echo=$ac_try;;
  6006. esac
  6007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6008. (eval "$ac_try") 2>&5
  6009. ac_status=$?
  6010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6011. (exit $ac_status); }; } &&
  6012. { ac_try='test -s conftest.$ac_objext'
  6013. { (case "(($ac_try" in
  6014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6015. *) ac_try_echo=$ac_try;;
  6016. esac
  6017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6018. (eval "$ac_try") 2>&5
  6019. ac_status=$?
  6020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021. (exit $ac_status); }; }; then
  6022. ac_cv_c_char_unsigned=no
  6023. else
  6024. echo "$as_me: failed program was:" >&5
  6025. sed 's/^/| /' conftest.$ac_ext >&5
  6026. ac_cv_c_char_unsigned=yes
  6027. fi
  6028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6029. fi
  6030. { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6031. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
  6032. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6033. cat >>confdefs.h <<\_ACEOF
  6034. #define __CHAR_UNSIGNED__ 1
  6035. _ACEOF
  6036. fi
  6037. #AC_C_STRINGIZE
  6038. #AC_C_PROTOTYPES
  6039. #checkpoint
  6040. cat >confcache <<\_ACEOF
  6041. # This file is a shell script that caches the results of configure
  6042. # tests run on this system so they can be shared between configure
  6043. # scripts and configure runs, see configure's option --config-cache.
  6044. # It is not useful on other systems. If it contains results you don't
  6045. # want to keep, you may remove or edit it.
  6046. #
  6047. # config.status only pays attention to the cache file if you give it
  6048. # the --recheck option to rerun configure.
  6049. #
  6050. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6051. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6052. # following values.
  6053. _ACEOF
  6054. # The following way of writing the cache mishandles newlines in values,
  6055. # but we know of no workaround that is simple, portable, and efficient.
  6056. # So, we kill variables containing newlines.
  6057. # Ultrix sh set writes to stderr and can't be redirected directly,
  6058. # and sets the high bit in the cache file unless we assign to the vars.
  6059. (
  6060. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6061. eval ac_val=\$$ac_var
  6062. case $ac_val in #(
  6063. *${as_nl}*)
  6064. case $ac_var in #(
  6065. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  6066. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6067. esac
  6068. case $ac_var in #(
  6069. _ | IFS | as_nl) ;; #(
  6070. *) $as_unset $ac_var ;;
  6071. esac ;;
  6072. esac
  6073. done
  6074. (set) 2>&1 |
  6075. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6076. *${as_nl}ac_space=\ *)
  6077. # `set' does not quote correctly, so add quotes (double-quote
  6078. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6079. sed -n \
  6080. "s/'/'\\\\''/g;
  6081. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6082. ;; #(
  6083. *)
  6084. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6085. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6086. ;;
  6087. esac |
  6088. sort
  6089. ) |
  6090. sed '
  6091. /^ac_cv_env_/b end
  6092. t clear
  6093. :clear
  6094. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6095. t end
  6096. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6097. :end' >>confcache
  6098. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6099. if test -w "$cache_file"; then
  6100. test "x$cache_file" != "x/dev/null" &&
  6101. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6102. echo "$as_me: updating cache $cache_file" >&6;}
  6103. cat confcache >$cache_file
  6104. else
  6105. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6106. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6107. fi
  6108. fi
  6109. rm -f confcache
  6110. { echo "$as_me:$LINENO: checking for int" >&5
  6111. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  6112. if test "${ac_cv_type_int+set}" = set; then
  6113. echo $ECHO_N "(cached) $ECHO_C" >&6
  6114. else
  6115. cat >conftest.$ac_ext <<_ACEOF
  6116. /* confdefs.h. */
  6117. _ACEOF
  6118. cat confdefs.h >>conftest.$ac_ext
  6119. cat >>conftest.$ac_ext <<_ACEOF
  6120. /* end confdefs.h. */
  6121. $ac_includes_default
  6122. typedef int ac__type_new_;
  6123. int
  6124. main ()
  6125. {
  6126. if ((ac__type_new_ *) 0)
  6127. return 0;
  6128. if (sizeof (ac__type_new_))
  6129. return 0;
  6130. ;
  6131. return 0;
  6132. }
  6133. _ACEOF
  6134. rm -f conftest.$ac_objext
  6135. if { (ac_try="$ac_compile"
  6136. case "(($ac_try" in
  6137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6138. *) ac_try_echo=$ac_try;;
  6139. esac
  6140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6141. (eval "$ac_compile") 2>conftest.er1
  6142. ac_status=$?
  6143. grep -v '^ *+' conftest.er1 >conftest.err
  6144. rm -f conftest.er1
  6145. cat conftest.err >&5
  6146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6147. (exit $ac_status); } &&
  6148. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6149. { (case "(($ac_try" in
  6150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6151. *) ac_try_echo=$ac_try;;
  6152. esac
  6153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6154. (eval "$ac_try") 2>&5
  6155. ac_status=$?
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); }; } &&
  6158. { ac_try='test -s conftest.$ac_objext'
  6159. { (case "(($ac_try" in
  6160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6161. *) ac_try_echo=$ac_try;;
  6162. esac
  6163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6164. (eval "$ac_try") 2>&5
  6165. ac_status=$?
  6166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6167. (exit $ac_status); }; }; then
  6168. ac_cv_type_int=yes
  6169. else
  6170. echo "$as_me: failed program was:" >&5
  6171. sed 's/^/| /' conftest.$ac_ext >&5
  6172. ac_cv_type_int=no
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6175. fi
  6176. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6177. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  6178. { echo "$as_me:$LINENO: checking size of int" >&5
  6179. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  6180. if test "${ac_cv_sizeof_int+set}" = set; then
  6181. echo $ECHO_N "(cached) $ECHO_C" >&6
  6182. else
  6183. if test "$ac_cv_type_int" = yes; then
  6184. # The cast to long int works around a bug in the HP C Compiler
  6185. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6186. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6187. # This bug is HP SR number 8606223364.
  6188. if test "$cross_compiling" = yes; then
  6189. # Depending upon the size, compute the lo and hi bounds.
  6190. cat >conftest.$ac_ext <<_ACEOF
  6191. /* confdefs.h. */
  6192. _ACEOF
  6193. cat confdefs.h >>conftest.$ac_ext
  6194. cat >>conftest.$ac_ext <<_ACEOF
  6195. /* end confdefs.h. */
  6196. $ac_includes_default
  6197. typedef int ac__type_sizeof_;
  6198. int
  6199. main ()
  6200. {
  6201. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6202. test_array [0] = 0
  6203. ;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. rm -f conftest.$ac_objext
  6208. if { (ac_try="$ac_compile"
  6209. case "(($ac_try" in
  6210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6211. *) ac_try_echo=$ac_try;;
  6212. esac
  6213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6214. (eval "$ac_compile") 2>conftest.er1
  6215. ac_status=$?
  6216. grep -v '^ *+' conftest.er1 >conftest.err
  6217. rm -f conftest.er1
  6218. cat conftest.err >&5
  6219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6220. (exit $ac_status); } &&
  6221. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6222. { (case "(($ac_try" in
  6223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6224. *) ac_try_echo=$ac_try;;
  6225. esac
  6226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6227. (eval "$ac_try") 2>&5
  6228. ac_status=$?
  6229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6230. (exit $ac_status); }; } &&
  6231. { ac_try='test -s conftest.$ac_objext'
  6232. { (case "(($ac_try" in
  6233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6234. *) ac_try_echo=$ac_try;;
  6235. esac
  6236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6237. (eval "$ac_try") 2>&5
  6238. ac_status=$?
  6239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240. (exit $ac_status); }; }; then
  6241. ac_lo=0 ac_mid=0
  6242. while :; do
  6243. cat >conftest.$ac_ext <<_ACEOF
  6244. /* confdefs.h. */
  6245. _ACEOF
  6246. cat confdefs.h >>conftest.$ac_ext
  6247. cat >>conftest.$ac_ext <<_ACEOF
  6248. /* end confdefs.h. */
  6249. $ac_includes_default
  6250. typedef int ac__type_sizeof_;
  6251. int
  6252. main ()
  6253. {
  6254. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6255. test_array [0] = 0
  6256. ;
  6257. return 0;
  6258. }
  6259. _ACEOF
  6260. rm -f conftest.$ac_objext
  6261. if { (ac_try="$ac_compile"
  6262. case "(($ac_try" in
  6263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6264. *) ac_try_echo=$ac_try;;
  6265. esac
  6266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6267. (eval "$ac_compile") 2>conftest.er1
  6268. ac_status=$?
  6269. grep -v '^ *+' conftest.er1 >conftest.err
  6270. rm -f conftest.er1
  6271. cat conftest.err >&5
  6272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6273. (exit $ac_status); } &&
  6274. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6275. { (case "(($ac_try" in
  6276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6277. *) ac_try_echo=$ac_try;;
  6278. esac
  6279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6280. (eval "$ac_try") 2>&5
  6281. ac_status=$?
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); }; } &&
  6284. { ac_try='test -s conftest.$ac_objext'
  6285. { (case "(($ac_try" in
  6286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6287. *) ac_try_echo=$ac_try;;
  6288. esac
  6289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6290. (eval "$ac_try") 2>&5
  6291. ac_status=$?
  6292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6293. (exit $ac_status); }; }; then
  6294. ac_hi=$ac_mid; break
  6295. else
  6296. echo "$as_me: failed program was:" >&5
  6297. sed 's/^/| /' conftest.$ac_ext >&5
  6298. ac_lo=`expr $ac_mid + 1`
  6299. if test $ac_lo -le $ac_mid; then
  6300. ac_lo= ac_hi=
  6301. break
  6302. fi
  6303. ac_mid=`expr 2 '*' $ac_mid + 1`
  6304. fi
  6305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6306. done
  6307. else
  6308. echo "$as_me: failed program was:" >&5
  6309. sed 's/^/| /' conftest.$ac_ext >&5
  6310. cat >conftest.$ac_ext <<_ACEOF
  6311. /* confdefs.h. */
  6312. _ACEOF
  6313. cat confdefs.h >>conftest.$ac_ext
  6314. cat >>conftest.$ac_ext <<_ACEOF
  6315. /* end confdefs.h. */
  6316. $ac_includes_default
  6317. typedef int ac__type_sizeof_;
  6318. int
  6319. main ()
  6320. {
  6321. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6322. test_array [0] = 0
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. rm -f conftest.$ac_objext
  6328. if { (ac_try="$ac_compile"
  6329. case "(($ac_try" in
  6330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6331. *) ac_try_echo=$ac_try;;
  6332. esac
  6333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6334. (eval "$ac_compile") 2>conftest.er1
  6335. ac_status=$?
  6336. grep -v '^ *+' conftest.er1 >conftest.err
  6337. rm -f conftest.er1
  6338. cat conftest.err >&5
  6339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); } &&
  6341. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6342. { (case "(($ac_try" in
  6343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6344. *) ac_try_echo=$ac_try;;
  6345. esac
  6346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6347. (eval "$ac_try") 2>&5
  6348. ac_status=$?
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); }; } &&
  6351. { ac_try='test -s conftest.$ac_objext'
  6352. { (case "(($ac_try" in
  6353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6354. *) ac_try_echo=$ac_try;;
  6355. esac
  6356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6357. (eval "$ac_try") 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; }; then
  6361. ac_hi=-1 ac_mid=-1
  6362. while :; do
  6363. cat >conftest.$ac_ext <<_ACEOF
  6364. /* confdefs.h. */
  6365. _ACEOF
  6366. cat confdefs.h >>conftest.$ac_ext
  6367. cat >>conftest.$ac_ext <<_ACEOF
  6368. /* end confdefs.h. */
  6369. $ac_includes_default
  6370. typedef int ac__type_sizeof_;
  6371. int
  6372. main ()
  6373. {
  6374. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6375. test_array [0] = 0
  6376. ;
  6377. return 0;
  6378. }
  6379. _ACEOF
  6380. rm -f conftest.$ac_objext
  6381. if { (ac_try="$ac_compile"
  6382. case "(($ac_try" in
  6383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6384. *) ac_try_echo=$ac_try;;
  6385. esac
  6386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6387. (eval "$ac_compile") 2>conftest.er1
  6388. ac_status=$?
  6389. grep -v '^ *+' conftest.er1 >conftest.err
  6390. rm -f conftest.er1
  6391. cat conftest.err >&5
  6392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393. (exit $ac_status); } &&
  6394. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6395. { (case "(($ac_try" in
  6396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6397. *) ac_try_echo=$ac_try;;
  6398. esac
  6399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6400. (eval "$ac_try") 2>&5
  6401. ac_status=$?
  6402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6403. (exit $ac_status); }; } &&
  6404. { ac_try='test -s conftest.$ac_objext'
  6405. { (case "(($ac_try" in
  6406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6407. *) ac_try_echo=$ac_try;;
  6408. esac
  6409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6410. (eval "$ac_try") 2>&5
  6411. ac_status=$?
  6412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6413. (exit $ac_status); }; }; then
  6414. ac_lo=$ac_mid; break
  6415. else
  6416. echo "$as_me: failed program was:" >&5
  6417. sed 's/^/| /' conftest.$ac_ext >&5
  6418. ac_hi=`expr '(' $ac_mid ')' - 1`
  6419. if test $ac_mid -le $ac_hi; then
  6420. ac_lo= ac_hi=
  6421. break
  6422. fi
  6423. ac_mid=`expr 2 '*' $ac_mid`
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6426. done
  6427. else
  6428. echo "$as_me: failed program was:" >&5
  6429. sed 's/^/| /' conftest.$ac_ext >&5
  6430. ac_lo= ac_hi=
  6431. fi
  6432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6433. fi
  6434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6435. # Binary search between lo and hi bounds.
  6436. while test "x$ac_lo" != "x$ac_hi"; do
  6437. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6438. cat >conftest.$ac_ext <<_ACEOF
  6439. /* confdefs.h. */
  6440. _ACEOF
  6441. cat confdefs.h >>conftest.$ac_ext
  6442. cat >>conftest.$ac_ext <<_ACEOF
  6443. /* end confdefs.h. */
  6444. $ac_includes_default
  6445. typedef int ac__type_sizeof_;
  6446. int
  6447. main ()
  6448. {
  6449. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6450. test_array [0] = 0
  6451. ;
  6452. return 0;
  6453. }
  6454. _ACEOF
  6455. rm -f conftest.$ac_objext
  6456. if { (ac_try="$ac_compile"
  6457. case "(($ac_try" in
  6458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6459. *) ac_try_echo=$ac_try;;
  6460. esac
  6461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6462. (eval "$ac_compile") 2>conftest.er1
  6463. ac_status=$?
  6464. grep -v '^ *+' conftest.er1 >conftest.err
  6465. rm -f conftest.er1
  6466. cat conftest.err >&5
  6467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6468. (exit $ac_status); } &&
  6469. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6470. { (case "(($ac_try" in
  6471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6472. *) ac_try_echo=$ac_try;;
  6473. esac
  6474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6475. (eval "$ac_try") 2>&5
  6476. ac_status=$?
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); }; } &&
  6479. { ac_try='test -s conftest.$ac_objext'
  6480. { (case "(($ac_try" in
  6481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6482. *) ac_try_echo=$ac_try;;
  6483. esac
  6484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6485. (eval "$ac_try") 2>&5
  6486. ac_status=$?
  6487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6488. (exit $ac_status); }; }; then
  6489. ac_hi=$ac_mid
  6490. else
  6491. echo "$as_me: failed program was:" >&5
  6492. sed 's/^/| /' conftest.$ac_ext >&5
  6493. ac_lo=`expr '(' $ac_mid ')' + 1`
  6494. fi
  6495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6496. done
  6497. case $ac_lo in
  6498. ?*) ac_cv_sizeof_int=$ac_lo;;
  6499. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6500. See \`config.log' for more details." >&5
  6501. echo "$as_me: error: cannot compute sizeof (int)
  6502. See \`config.log' for more details." >&2;}
  6503. { (exit 77); exit 77; }; } ;;
  6504. esac
  6505. else
  6506. cat >conftest.$ac_ext <<_ACEOF
  6507. /* confdefs.h. */
  6508. _ACEOF
  6509. cat confdefs.h >>conftest.$ac_ext
  6510. cat >>conftest.$ac_ext <<_ACEOF
  6511. /* end confdefs.h. */
  6512. $ac_includes_default
  6513. typedef int ac__type_sizeof_;
  6514. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6515. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6516. #include <stdio.h>
  6517. #include <stdlib.h>
  6518. int
  6519. main ()
  6520. {
  6521. FILE *f = fopen ("conftest.val", "w");
  6522. if (! f)
  6523. return 1;
  6524. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6525. {
  6526. long int i = longval ();
  6527. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6528. return 1;
  6529. fprintf (f, "%ld\n", i);
  6530. }
  6531. else
  6532. {
  6533. unsigned long int i = ulongval ();
  6534. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6535. return 1;
  6536. fprintf (f, "%lu\n", i);
  6537. }
  6538. return ferror (f) || fclose (f) != 0;
  6539. ;
  6540. return 0;
  6541. }
  6542. _ACEOF
  6543. rm -f conftest$ac_exeext
  6544. if { (ac_try="$ac_link"
  6545. case "(($ac_try" in
  6546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6547. *) ac_try_echo=$ac_try;;
  6548. esac
  6549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6550. (eval "$ac_link") 2>&5
  6551. ac_status=$?
  6552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6554. { (case "(($ac_try" in
  6555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6556. *) ac_try_echo=$ac_try;;
  6557. esac
  6558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6559. (eval "$ac_try") 2>&5
  6560. ac_status=$?
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); }; }; then
  6563. ac_cv_sizeof_int=`cat conftest.val`
  6564. else
  6565. echo "$as_me: program exited with status $ac_status" >&5
  6566. echo "$as_me: failed program was:" >&5
  6567. sed 's/^/| /' conftest.$ac_ext >&5
  6568. ( exit $ac_status )
  6569. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6570. See \`config.log' for more details." >&5
  6571. echo "$as_me: error: cannot compute sizeof (int)
  6572. See \`config.log' for more details." >&2;}
  6573. { (exit 77); exit 77; }; }
  6574. fi
  6575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6576. fi
  6577. rm -f conftest.val
  6578. else
  6579. ac_cv_sizeof_int=0
  6580. fi
  6581. fi
  6582. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6583. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  6584. cat >>confdefs.h <<_ACEOF
  6585. #define SIZEOF_INT $ac_cv_sizeof_int
  6586. _ACEOF
  6587. { echo "$as_me:$LINENO: checking for short" >&5
  6588. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  6589. if test "${ac_cv_type_short+set}" = set; then
  6590. echo $ECHO_N "(cached) $ECHO_C" >&6
  6591. else
  6592. cat >conftest.$ac_ext <<_ACEOF
  6593. /* confdefs.h. */
  6594. _ACEOF
  6595. cat confdefs.h >>conftest.$ac_ext
  6596. cat >>conftest.$ac_ext <<_ACEOF
  6597. /* end confdefs.h. */
  6598. $ac_includes_default
  6599. typedef short ac__type_new_;
  6600. int
  6601. main ()
  6602. {
  6603. if ((ac__type_new_ *) 0)
  6604. return 0;
  6605. if (sizeof (ac__type_new_))
  6606. return 0;
  6607. ;
  6608. return 0;
  6609. }
  6610. _ACEOF
  6611. rm -f conftest.$ac_objext
  6612. if { (ac_try="$ac_compile"
  6613. case "(($ac_try" in
  6614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6615. *) ac_try_echo=$ac_try;;
  6616. esac
  6617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6618. (eval "$ac_compile") 2>conftest.er1
  6619. ac_status=$?
  6620. grep -v '^ *+' conftest.er1 >conftest.err
  6621. rm -f conftest.er1
  6622. cat conftest.err >&5
  6623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6624. (exit $ac_status); } &&
  6625. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6626. { (case "(($ac_try" in
  6627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6628. *) ac_try_echo=$ac_try;;
  6629. esac
  6630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6631. (eval "$ac_try") 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; } &&
  6635. { ac_try='test -s conftest.$ac_objext'
  6636. { (case "(($ac_try" in
  6637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6638. *) ac_try_echo=$ac_try;;
  6639. esac
  6640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6641. (eval "$ac_try") 2>&5
  6642. ac_status=$?
  6643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6644. (exit $ac_status); }; }; then
  6645. ac_cv_type_short=yes
  6646. else
  6647. echo "$as_me: failed program was:" >&5
  6648. sed 's/^/| /' conftest.$ac_ext >&5
  6649. ac_cv_type_short=no
  6650. fi
  6651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6652. fi
  6653. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6654. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  6655. { echo "$as_me:$LINENO: checking size of short" >&5
  6656. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  6657. if test "${ac_cv_sizeof_short+set}" = set; then
  6658. echo $ECHO_N "(cached) $ECHO_C" >&6
  6659. else
  6660. if test "$ac_cv_type_short" = yes; then
  6661. # The cast to long int works around a bug in the HP C Compiler
  6662. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6663. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6664. # This bug is HP SR number 8606223364.
  6665. if test "$cross_compiling" = yes; then
  6666. # Depending upon the size, compute the lo and hi bounds.
  6667. cat >conftest.$ac_ext <<_ACEOF
  6668. /* confdefs.h. */
  6669. _ACEOF
  6670. cat confdefs.h >>conftest.$ac_ext
  6671. cat >>conftest.$ac_ext <<_ACEOF
  6672. /* end confdefs.h. */
  6673. $ac_includes_default
  6674. typedef short ac__type_sizeof_;
  6675. int
  6676. main ()
  6677. {
  6678. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6679. test_array [0] = 0
  6680. ;
  6681. return 0;
  6682. }
  6683. _ACEOF
  6684. rm -f conftest.$ac_objext
  6685. if { (ac_try="$ac_compile"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6691. (eval "$ac_compile") 2>conftest.er1
  6692. ac_status=$?
  6693. grep -v '^ *+' conftest.er1 >conftest.err
  6694. rm -f conftest.er1
  6695. cat conftest.err >&5
  6696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6697. (exit $ac_status); } &&
  6698. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6699. { (case "(($ac_try" in
  6700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6701. *) ac_try_echo=$ac_try;;
  6702. esac
  6703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6704. (eval "$ac_try") 2>&5
  6705. ac_status=$?
  6706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); }; } &&
  6708. { ac_try='test -s conftest.$ac_objext'
  6709. { (case "(($ac_try" in
  6710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6711. *) ac_try_echo=$ac_try;;
  6712. esac
  6713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6714. (eval "$ac_try") 2>&5
  6715. ac_status=$?
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); }; }; then
  6718. ac_lo=0 ac_mid=0
  6719. while :; do
  6720. cat >conftest.$ac_ext <<_ACEOF
  6721. /* confdefs.h. */
  6722. _ACEOF
  6723. cat confdefs.h >>conftest.$ac_ext
  6724. cat >>conftest.$ac_ext <<_ACEOF
  6725. /* end confdefs.h. */
  6726. $ac_includes_default
  6727. typedef short ac__type_sizeof_;
  6728. int
  6729. main ()
  6730. {
  6731. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6732. test_array [0] = 0
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. rm -f conftest.$ac_objext
  6738. if { (ac_try="$ac_compile"
  6739. case "(($ac_try" in
  6740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6741. *) ac_try_echo=$ac_try;;
  6742. esac
  6743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6744. (eval "$ac_compile") 2>conftest.er1
  6745. ac_status=$?
  6746. grep -v '^ *+' conftest.er1 >conftest.err
  6747. rm -f conftest.er1
  6748. cat conftest.err >&5
  6749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6750. (exit $ac_status); } &&
  6751. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6752. { (case "(($ac_try" in
  6753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6754. *) ac_try_echo=$ac_try;;
  6755. esac
  6756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6757. (eval "$ac_try") 2>&5
  6758. ac_status=$?
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); }; } &&
  6761. { ac_try='test -s conftest.$ac_objext'
  6762. { (case "(($ac_try" in
  6763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6764. *) ac_try_echo=$ac_try;;
  6765. esac
  6766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6767. (eval "$ac_try") 2>&5
  6768. ac_status=$?
  6769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6770. (exit $ac_status); }; }; then
  6771. ac_hi=$ac_mid; break
  6772. else
  6773. echo "$as_me: failed program was:" >&5
  6774. sed 's/^/| /' conftest.$ac_ext >&5
  6775. ac_lo=`expr $ac_mid + 1`
  6776. if test $ac_lo -le $ac_mid; then
  6777. ac_lo= ac_hi=
  6778. break
  6779. fi
  6780. ac_mid=`expr 2 '*' $ac_mid + 1`
  6781. fi
  6782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6783. done
  6784. else
  6785. echo "$as_me: failed program was:" >&5
  6786. sed 's/^/| /' conftest.$ac_ext >&5
  6787. cat >conftest.$ac_ext <<_ACEOF
  6788. /* confdefs.h. */
  6789. _ACEOF
  6790. cat confdefs.h >>conftest.$ac_ext
  6791. cat >>conftest.$ac_ext <<_ACEOF
  6792. /* end confdefs.h. */
  6793. $ac_includes_default
  6794. typedef short ac__type_sizeof_;
  6795. int
  6796. main ()
  6797. {
  6798. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6799. test_array [0] = 0
  6800. ;
  6801. return 0;
  6802. }
  6803. _ACEOF
  6804. rm -f conftest.$ac_objext
  6805. if { (ac_try="$ac_compile"
  6806. case "(($ac_try" in
  6807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6808. *) ac_try_echo=$ac_try;;
  6809. esac
  6810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6811. (eval "$ac_compile") 2>conftest.er1
  6812. ac_status=$?
  6813. grep -v '^ *+' conftest.er1 >conftest.err
  6814. rm -f conftest.er1
  6815. cat conftest.err >&5
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); } &&
  6818. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6819. { (case "(($ac_try" in
  6820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6821. *) ac_try_echo=$ac_try;;
  6822. esac
  6823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6824. (eval "$ac_try") 2>&5
  6825. ac_status=$?
  6826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6827. (exit $ac_status); }; } &&
  6828. { ac_try='test -s conftest.$ac_objext'
  6829. { (case "(($ac_try" in
  6830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6831. *) ac_try_echo=$ac_try;;
  6832. esac
  6833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6834. (eval "$ac_try") 2>&5
  6835. ac_status=$?
  6836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6837. (exit $ac_status); }; }; then
  6838. ac_hi=-1 ac_mid=-1
  6839. while :; do
  6840. cat >conftest.$ac_ext <<_ACEOF
  6841. /* confdefs.h. */
  6842. _ACEOF
  6843. cat confdefs.h >>conftest.$ac_ext
  6844. cat >>conftest.$ac_ext <<_ACEOF
  6845. /* end confdefs.h. */
  6846. $ac_includes_default
  6847. typedef short ac__type_sizeof_;
  6848. int
  6849. main ()
  6850. {
  6851. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6852. test_array [0] = 0
  6853. ;
  6854. return 0;
  6855. }
  6856. _ACEOF
  6857. rm -f conftest.$ac_objext
  6858. if { (ac_try="$ac_compile"
  6859. case "(($ac_try" in
  6860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6861. *) ac_try_echo=$ac_try;;
  6862. esac
  6863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6864. (eval "$ac_compile") 2>conftest.er1
  6865. ac_status=$?
  6866. grep -v '^ *+' conftest.er1 >conftest.err
  6867. rm -f conftest.er1
  6868. cat conftest.err >&5
  6869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6870. (exit $ac_status); } &&
  6871. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6872. { (case "(($ac_try" in
  6873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6874. *) ac_try_echo=$ac_try;;
  6875. esac
  6876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6877. (eval "$ac_try") 2>&5
  6878. ac_status=$?
  6879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6880. (exit $ac_status); }; } &&
  6881. { ac_try='test -s conftest.$ac_objext'
  6882. { (case "(($ac_try" in
  6883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6884. *) ac_try_echo=$ac_try;;
  6885. esac
  6886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6887. (eval "$ac_try") 2>&5
  6888. ac_status=$?
  6889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6890. (exit $ac_status); }; }; then
  6891. ac_lo=$ac_mid; break
  6892. else
  6893. echo "$as_me: failed program was:" >&5
  6894. sed 's/^/| /' conftest.$ac_ext >&5
  6895. ac_hi=`expr '(' $ac_mid ')' - 1`
  6896. if test $ac_mid -le $ac_hi; then
  6897. ac_lo= ac_hi=
  6898. break
  6899. fi
  6900. ac_mid=`expr 2 '*' $ac_mid`
  6901. fi
  6902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6903. done
  6904. else
  6905. echo "$as_me: failed program was:" >&5
  6906. sed 's/^/| /' conftest.$ac_ext >&5
  6907. ac_lo= ac_hi=
  6908. fi
  6909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. # Binary search between lo and hi bounds.
  6913. while test "x$ac_lo" != "x$ac_hi"; do
  6914. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6915. cat >conftest.$ac_ext <<_ACEOF
  6916. /* confdefs.h. */
  6917. _ACEOF
  6918. cat confdefs.h >>conftest.$ac_ext
  6919. cat >>conftest.$ac_ext <<_ACEOF
  6920. /* end confdefs.h. */
  6921. $ac_includes_default
  6922. typedef short ac__type_sizeof_;
  6923. int
  6924. main ()
  6925. {
  6926. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6927. test_array [0] = 0
  6928. ;
  6929. return 0;
  6930. }
  6931. _ACEOF
  6932. rm -f conftest.$ac_objext
  6933. if { (ac_try="$ac_compile"
  6934. case "(($ac_try" in
  6935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6936. *) ac_try_echo=$ac_try;;
  6937. esac
  6938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6939. (eval "$ac_compile") 2>conftest.er1
  6940. ac_status=$?
  6941. grep -v '^ *+' conftest.er1 >conftest.err
  6942. rm -f conftest.er1
  6943. cat conftest.err >&5
  6944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6945. (exit $ac_status); } &&
  6946. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6947. { (case "(($ac_try" in
  6948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6949. *) ac_try_echo=$ac_try;;
  6950. esac
  6951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6952. (eval "$ac_try") 2>&5
  6953. ac_status=$?
  6954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6955. (exit $ac_status); }; } &&
  6956. { ac_try='test -s conftest.$ac_objext'
  6957. { (case "(($ac_try" in
  6958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6959. *) ac_try_echo=$ac_try;;
  6960. esac
  6961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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_hi=$ac_mid
  6967. else
  6968. echo "$as_me: failed program was:" >&5
  6969. sed 's/^/| /' conftest.$ac_ext >&5
  6970. ac_lo=`expr '(' $ac_mid ')' + 1`
  6971. fi
  6972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6973. done
  6974. case $ac_lo in
  6975. ?*) ac_cv_sizeof_short=$ac_lo;;
  6976. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6977. See \`config.log' for more details." >&5
  6978. echo "$as_me: error: cannot compute sizeof (short)
  6979. See \`config.log' for more details." >&2;}
  6980. { (exit 77); exit 77; }; } ;;
  6981. esac
  6982. else
  6983. cat >conftest.$ac_ext <<_ACEOF
  6984. /* confdefs.h. */
  6985. _ACEOF
  6986. cat confdefs.h >>conftest.$ac_ext
  6987. cat >>conftest.$ac_ext <<_ACEOF
  6988. /* end confdefs.h. */
  6989. $ac_includes_default
  6990. typedef short ac__type_sizeof_;
  6991. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6992. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6993. #include <stdio.h>
  6994. #include <stdlib.h>
  6995. int
  6996. main ()
  6997. {
  6998. FILE *f = fopen ("conftest.val", "w");
  6999. if (! f)
  7000. return 1;
  7001. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7002. {
  7003. long int i = longval ();
  7004. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7005. return 1;
  7006. fprintf (f, "%ld\n", i);
  7007. }
  7008. else
  7009. {
  7010. unsigned long int i = ulongval ();
  7011. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7012. return 1;
  7013. fprintf (f, "%lu\n", i);
  7014. }
  7015. return ferror (f) || fclose (f) != 0;
  7016. ;
  7017. return 0;
  7018. }
  7019. _ACEOF
  7020. rm -f conftest$ac_exeext
  7021. if { (ac_try="$ac_link"
  7022. case "(($ac_try" in
  7023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7024. *) ac_try_echo=$ac_try;;
  7025. esac
  7026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7027. (eval "$ac_link") 2>&5
  7028. ac_status=$?
  7029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7030. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7031. { (case "(($ac_try" in
  7032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7033. *) ac_try_echo=$ac_try;;
  7034. esac
  7035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7036. (eval "$ac_try") 2>&5
  7037. ac_status=$?
  7038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7039. (exit $ac_status); }; }; then
  7040. ac_cv_sizeof_short=`cat conftest.val`
  7041. else
  7042. echo "$as_me: program exited with status $ac_status" >&5
  7043. echo "$as_me: failed program was:" >&5
  7044. sed 's/^/| /' conftest.$ac_ext >&5
  7045. ( exit $ac_status )
  7046. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  7047. See \`config.log' for more details." >&5
  7048. echo "$as_me: error: cannot compute sizeof (short)
  7049. See \`config.log' for more details." >&2;}
  7050. { (exit 77); exit 77; }; }
  7051. fi
  7052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7053. fi
  7054. rm -f conftest.val
  7055. else
  7056. ac_cv_sizeof_short=0
  7057. fi
  7058. fi
  7059. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7060. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  7061. cat >>confdefs.h <<_ACEOF
  7062. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7063. _ACEOF
  7064. { echo "$as_me:$LINENO: checking for long" >&5
  7065. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  7066. if test "${ac_cv_type_long+set}" = set; then
  7067. echo $ECHO_N "(cached) $ECHO_C" >&6
  7068. else
  7069. cat >conftest.$ac_ext <<_ACEOF
  7070. /* confdefs.h. */
  7071. _ACEOF
  7072. cat confdefs.h >>conftest.$ac_ext
  7073. cat >>conftest.$ac_ext <<_ACEOF
  7074. /* end confdefs.h. */
  7075. $ac_includes_default
  7076. typedef long ac__type_new_;
  7077. int
  7078. main ()
  7079. {
  7080. if ((ac__type_new_ *) 0)
  7081. return 0;
  7082. if (sizeof (ac__type_new_))
  7083. return 0;
  7084. ;
  7085. return 0;
  7086. }
  7087. _ACEOF
  7088. rm -f conftest.$ac_objext
  7089. if { (ac_try="$ac_compile"
  7090. case "(($ac_try" in
  7091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7092. *) ac_try_echo=$ac_try;;
  7093. esac
  7094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7095. (eval "$ac_compile") 2>conftest.er1
  7096. ac_status=$?
  7097. grep -v '^ *+' conftest.er1 >conftest.err
  7098. rm -f conftest.er1
  7099. cat conftest.err >&5
  7100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7101. (exit $ac_status); } &&
  7102. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7103. { (case "(($ac_try" in
  7104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7105. *) ac_try_echo=$ac_try;;
  7106. esac
  7107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7108. (eval "$ac_try") 2>&5
  7109. ac_status=$?
  7110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7111. (exit $ac_status); }; } &&
  7112. { ac_try='test -s conftest.$ac_objext'
  7113. { (case "(($ac_try" in
  7114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7115. *) ac_try_echo=$ac_try;;
  7116. esac
  7117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7118. (eval "$ac_try") 2>&5
  7119. ac_status=$?
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. (exit $ac_status); }; }; then
  7122. ac_cv_type_long=yes
  7123. else
  7124. echo "$as_me: failed program was:" >&5
  7125. sed 's/^/| /' conftest.$ac_ext >&5
  7126. ac_cv_type_long=no
  7127. fi
  7128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7129. fi
  7130. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7131. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  7132. { echo "$as_me:$LINENO: checking size of long" >&5
  7133. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  7134. if test "${ac_cv_sizeof_long+set}" = set; then
  7135. echo $ECHO_N "(cached) $ECHO_C" >&6
  7136. else
  7137. if test "$ac_cv_type_long" = yes; then
  7138. # The cast to long int works around a bug in the HP C Compiler
  7139. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7140. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7141. # This bug is HP SR number 8606223364.
  7142. if test "$cross_compiling" = yes; then
  7143. # Depending upon the size, compute the lo and hi bounds.
  7144. cat >conftest.$ac_ext <<_ACEOF
  7145. /* confdefs.h. */
  7146. _ACEOF
  7147. cat confdefs.h >>conftest.$ac_ext
  7148. cat >>conftest.$ac_ext <<_ACEOF
  7149. /* end confdefs.h. */
  7150. $ac_includes_default
  7151. typedef long ac__type_sizeof_;
  7152. int
  7153. main ()
  7154. {
  7155. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7156. test_array [0] = 0
  7157. ;
  7158. return 0;
  7159. }
  7160. _ACEOF
  7161. rm -f conftest.$ac_objext
  7162. if { (ac_try="$ac_compile"
  7163. case "(($ac_try" in
  7164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7165. *) ac_try_echo=$ac_try;;
  7166. esac
  7167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7168. (eval "$ac_compile") 2>conftest.er1
  7169. ac_status=$?
  7170. grep -v '^ *+' conftest.er1 >conftest.err
  7171. rm -f conftest.er1
  7172. cat conftest.err >&5
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); } &&
  7175. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7176. { (case "(($ac_try" in
  7177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7178. *) ac_try_echo=$ac_try;;
  7179. esac
  7180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7181. (eval "$ac_try") 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); }; } &&
  7185. { ac_try='test -s conftest.$ac_objext'
  7186. { (case "(($ac_try" in
  7187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7188. *) ac_try_echo=$ac_try;;
  7189. esac
  7190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7191. (eval "$ac_try") 2>&5
  7192. ac_status=$?
  7193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7194. (exit $ac_status); }; }; then
  7195. ac_lo=0 ac_mid=0
  7196. while :; do
  7197. cat >conftest.$ac_ext <<_ACEOF
  7198. /* confdefs.h. */
  7199. _ACEOF
  7200. cat confdefs.h >>conftest.$ac_ext
  7201. cat >>conftest.$ac_ext <<_ACEOF
  7202. /* end confdefs.h. */
  7203. $ac_includes_default
  7204. typedef long ac__type_sizeof_;
  7205. int
  7206. main ()
  7207. {
  7208. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7209. test_array [0] = 0
  7210. ;
  7211. return 0;
  7212. }
  7213. _ACEOF
  7214. rm -f conftest.$ac_objext
  7215. if { (ac_try="$ac_compile"
  7216. case "(($ac_try" in
  7217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7218. *) ac_try_echo=$ac_try;;
  7219. esac
  7220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7221. (eval "$ac_compile") 2>conftest.er1
  7222. ac_status=$?
  7223. grep -v '^ *+' conftest.er1 >conftest.err
  7224. rm -f conftest.er1
  7225. cat conftest.err >&5
  7226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7227. (exit $ac_status); } &&
  7228. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7229. { (case "(($ac_try" in
  7230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7231. *) ac_try_echo=$ac_try;;
  7232. esac
  7233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7234. (eval "$ac_try") 2>&5
  7235. ac_status=$?
  7236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7237. (exit $ac_status); }; } &&
  7238. { ac_try='test -s conftest.$ac_objext'
  7239. { (case "(($ac_try" in
  7240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7241. *) ac_try_echo=$ac_try;;
  7242. esac
  7243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7244. (eval "$ac_try") 2>&5
  7245. ac_status=$?
  7246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7247. (exit $ac_status); }; }; then
  7248. ac_hi=$ac_mid; break
  7249. else
  7250. echo "$as_me: failed program was:" >&5
  7251. sed 's/^/| /' conftest.$ac_ext >&5
  7252. ac_lo=`expr $ac_mid + 1`
  7253. if test $ac_lo -le $ac_mid; then
  7254. ac_lo= ac_hi=
  7255. break
  7256. fi
  7257. ac_mid=`expr 2 '*' $ac_mid + 1`
  7258. fi
  7259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7260. done
  7261. else
  7262. echo "$as_me: failed program was:" >&5
  7263. sed 's/^/| /' conftest.$ac_ext >&5
  7264. cat >conftest.$ac_ext <<_ACEOF
  7265. /* confdefs.h. */
  7266. _ACEOF
  7267. cat confdefs.h >>conftest.$ac_ext
  7268. cat >>conftest.$ac_ext <<_ACEOF
  7269. /* end confdefs.h. */
  7270. $ac_includes_default
  7271. typedef long ac__type_sizeof_;
  7272. int
  7273. main ()
  7274. {
  7275. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7276. test_array [0] = 0
  7277. ;
  7278. return 0;
  7279. }
  7280. _ACEOF
  7281. rm -f conftest.$ac_objext
  7282. if { (ac_try="$ac_compile"
  7283. case "(($ac_try" in
  7284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7285. *) ac_try_echo=$ac_try;;
  7286. esac
  7287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7288. (eval "$ac_compile") 2>conftest.er1
  7289. ac_status=$?
  7290. grep -v '^ *+' conftest.er1 >conftest.err
  7291. rm -f conftest.er1
  7292. cat conftest.err >&5
  7293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); } &&
  7295. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7296. { (case "(($ac_try" in
  7297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7298. *) ac_try_echo=$ac_try;;
  7299. esac
  7300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7301. (eval "$ac_try") 2>&5
  7302. ac_status=$?
  7303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7304. (exit $ac_status); }; } &&
  7305. { ac_try='test -s conftest.$ac_objext'
  7306. { (case "(($ac_try" in
  7307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7308. *) ac_try_echo=$ac_try;;
  7309. esac
  7310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7311. (eval "$ac_try") 2>&5
  7312. ac_status=$?
  7313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7314. (exit $ac_status); }; }; then
  7315. ac_hi=-1 ac_mid=-1
  7316. while :; do
  7317. cat >conftest.$ac_ext <<_ACEOF
  7318. /* confdefs.h. */
  7319. _ACEOF
  7320. cat confdefs.h >>conftest.$ac_ext
  7321. cat >>conftest.$ac_ext <<_ACEOF
  7322. /* end confdefs.h. */
  7323. $ac_includes_default
  7324. typedef long ac__type_sizeof_;
  7325. int
  7326. main ()
  7327. {
  7328. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7329. test_array [0] = 0
  7330. ;
  7331. return 0;
  7332. }
  7333. _ACEOF
  7334. rm -f conftest.$ac_objext
  7335. if { (ac_try="$ac_compile"
  7336. case "(($ac_try" in
  7337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7338. *) ac_try_echo=$ac_try;;
  7339. esac
  7340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7341. (eval "$ac_compile") 2>conftest.er1
  7342. ac_status=$?
  7343. grep -v '^ *+' conftest.er1 >conftest.err
  7344. rm -f conftest.er1
  7345. cat conftest.err >&5
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. (exit $ac_status); } &&
  7348. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7349. { (case "(($ac_try" in
  7350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7351. *) ac_try_echo=$ac_try;;
  7352. esac
  7353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7354. (eval "$ac_try") 2>&5
  7355. ac_status=$?
  7356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7357. (exit $ac_status); }; } &&
  7358. { ac_try='test -s conftest.$ac_objext'
  7359. { (case "(($ac_try" in
  7360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7361. *) ac_try_echo=$ac_try;;
  7362. esac
  7363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7364. (eval "$ac_try") 2>&5
  7365. ac_status=$?
  7366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7367. (exit $ac_status); }; }; then
  7368. ac_lo=$ac_mid; break
  7369. else
  7370. echo "$as_me: failed program was:" >&5
  7371. sed 's/^/| /' conftest.$ac_ext >&5
  7372. ac_hi=`expr '(' $ac_mid ')' - 1`
  7373. if test $ac_mid -le $ac_hi; then
  7374. ac_lo= ac_hi=
  7375. break
  7376. fi
  7377. ac_mid=`expr 2 '*' $ac_mid`
  7378. fi
  7379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7380. done
  7381. else
  7382. echo "$as_me: failed program was:" >&5
  7383. sed 's/^/| /' conftest.$ac_ext >&5
  7384. ac_lo= ac_hi=
  7385. fi
  7386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7387. fi
  7388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7389. # Binary search between lo and hi bounds.
  7390. while test "x$ac_lo" != "x$ac_hi"; do
  7391. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7392. cat >conftest.$ac_ext <<_ACEOF
  7393. /* confdefs.h. */
  7394. _ACEOF
  7395. cat confdefs.h >>conftest.$ac_ext
  7396. cat >>conftest.$ac_ext <<_ACEOF
  7397. /* end confdefs.h. */
  7398. $ac_includes_default
  7399. typedef long ac__type_sizeof_;
  7400. int
  7401. main ()
  7402. {
  7403. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7404. test_array [0] = 0
  7405. ;
  7406. return 0;
  7407. }
  7408. _ACEOF
  7409. rm -f conftest.$ac_objext
  7410. if { (ac_try="$ac_compile"
  7411. case "(($ac_try" in
  7412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7413. *) ac_try_echo=$ac_try;;
  7414. esac
  7415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7416. (eval "$ac_compile") 2>conftest.er1
  7417. ac_status=$?
  7418. grep -v '^ *+' conftest.er1 >conftest.err
  7419. rm -f conftest.er1
  7420. cat conftest.err >&5
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); } &&
  7423. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7424. { (case "(($ac_try" in
  7425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7426. *) ac_try_echo=$ac_try;;
  7427. esac
  7428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7429. (eval "$ac_try") 2>&5
  7430. ac_status=$?
  7431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7432. (exit $ac_status); }; } &&
  7433. { ac_try='test -s conftest.$ac_objext'
  7434. { (case "(($ac_try" in
  7435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7436. *) ac_try_echo=$ac_try;;
  7437. esac
  7438. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7439. (eval "$ac_try") 2>&5
  7440. ac_status=$?
  7441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7442. (exit $ac_status); }; }; then
  7443. ac_hi=$ac_mid
  7444. else
  7445. echo "$as_me: failed program was:" >&5
  7446. sed 's/^/| /' conftest.$ac_ext >&5
  7447. ac_lo=`expr '(' $ac_mid ')' + 1`
  7448. fi
  7449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7450. done
  7451. case $ac_lo in
  7452. ?*) ac_cv_sizeof_long=$ac_lo;;
  7453. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7454. See \`config.log' for more details." >&5
  7455. echo "$as_me: error: cannot compute sizeof (long)
  7456. See \`config.log' for more details." >&2;}
  7457. { (exit 77); exit 77; }; } ;;
  7458. esac
  7459. else
  7460. cat >conftest.$ac_ext <<_ACEOF
  7461. /* confdefs.h. */
  7462. _ACEOF
  7463. cat confdefs.h >>conftest.$ac_ext
  7464. cat >>conftest.$ac_ext <<_ACEOF
  7465. /* end confdefs.h. */
  7466. $ac_includes_default
  7467. typedef long ac__type_sizeof_;
  7468. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7469. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7470. #include <stdio.h>
  7471. #include <stdlib.h>
  7472. int
  7473. main ()
  7474. {
  7475. FILE *f = fopen ("conftest.val", "w");
  7476. if (! f)
  7477. return 1;
  7478. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7479. {
  7480. long int i = longval ();
  7481. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7482. return 1;
  7483. fprintf (f, "%ld\n", i);
  7484. }
  7485. else
  7486. {
  7487. unsigned long int i = ulongval ();
  7488. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7489. return 1;
  7490. fprintf (f, "%lu\n", i);
  7491. }
  7492. return ferror (f) || fclose (f) != 0;
  7493. ;
  7494. return 0;
  7495. }
  7496. _ACEOF
  7497. rm -f conftest$ac_exeext
  7498. if { (ac_try="$ac_link"
  7499. case "(($ac_try" in
  7500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7501. *) ac_try_echo=$ac_try;;
  7502. esac
  7503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7504. (eval "$ac_link") 2>&5
  7505. ac_status=$?
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7508. { (case "(($ac_try" in
  7509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7510. *) ac_try_echo=$ac_try;;
  7511. esac
  7512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7513. (eval "$ac_try") 2>&5
  7514. ac_status=$?
  7515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7516. (exit $ac_status); }; }; then
  7517. ac_cv_sizeof_long=`cat conftest.val`
  7518. else
  7519. echo "$as_me: program exited with status $ac_status" >&5
  7520. echo "$as_me: failed program was:" >&5
  7521. sed 's/^/| /' conftest.$ac_ext >&5
  7522. ( exit $ac_status )
  7523. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7524. See \`config.log' for more details." >&5
  7525. echo "$as_me: error: cannot compute sizeof (long)
  7526. See \`config.log' for more details." >&2;}
  7527. { (exit 77); exit 77; }; }
  7528. fi
  7529. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. rm -f conftest.val
  7532. else
  7533. ac_cv_sizeof_long=0
  7534. fi
  7535. fi
  7536. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7537. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  7538. cat >>confdefs.h <<_ACEOF
  7539. #define SIZEOF_LONG $ac_cv_sizeof_long
  7540. _ACEOF
  7541. { echo "$as_me:$LINENO: checking for long long" >&5
  7542. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  7543. if test "${ac_cv_type_long_long+set}" = set; then
  7544. echo $ECHO_N "(cached) $ECHO_C" >&6
  7545. else
  7546. cat >conftest.$ac_ext <<_ACEOF
  7547. /* confdefs.h. */
  7548. _ACEOF
  7549. cat confdefs.h >>conftest.$ac_ext
  7550. cat >>conftest.$ac_ext <<_ACEOF
  7551. /* end confdefs.h. */
  7552. $ac_includes_default
  7553. typedef long long ac__type_new_;
  7554. int
  7555. main ()
  7556. {
  7557. if ((ac__type_new_ *) 0)
  7558. return 0;
  7559. if (sizeof (ac__type_new_))
  7560. return 0;
  7561. ;
  7562. return 0;
  7563. }
  7564. _ACEOF
  7565. rm -f conftest.$ac_objext
  7566. if { (ac_try="$ac_compile"
  7567. case "(($ac_try" in
  7568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7569. *) ac_try_echo=$ac_try;;
  7570. esac
  7571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7572. (eval "$ac_compile") 2>conftest.er1
  7573. ac_status=$?
  7574. grep -v '^ *+' conftest.er1 >conftest.err
  7575. rm -f conftest.er1
  7576. cat conftest.err >&5
  7577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7578. (exit $ac_status); } &&
  7579. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7580. { (case "(($ac_try" in
  7581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7582. *) ac_try_echo=$ac_try;;
  7583. esac
  7584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7585. (eval "$ac_try") 2>&5
  7586. ac_status=$?
  7587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); }; } &&
  7589. { ac_try='test -s conftest.$ac_objext'
  7590. { (case "(($ac_try" in
  7591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7592. *) ac_try_echo=$ac_try;;
  7593. esac
  7594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7595. (eval "$ac_try") 2>&5
  7596. ac_status=$?
  7597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7598. (exit $ac_status); }; }; then
  7599. ac_cv_type_long_long=yes
  7600. else
  7601. echo "$as_me: failed program was:" >&5
  7602. sed 's/^/| /' conftest.$ac_ext >&5
  7603. ac_cv_type_long_long=no
  7604. fi
  7605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7606. fi
  7607. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7608. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  7609. { echo "$as_me:$LINENO: checking size of long long" >&5
  7610. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  7611. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7612. echo $ECHO_N "(cached) $ECHO_C" >&6
  7613. else
  7614. if test "$ac_cv_type_long_long" = yes; then
  7615. # The cast to long int works around a bug in the HP C Compiler
  7616. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7617. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7618. # This bug is HP SR number 8606223364.
  7619. if test "$cross_compiling" = yes; then
  7620. # Depending upon the size, compute the lo and hi bounds.
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. $ac_includes_default
  7628. typedef long long ac__type_sizeof_;
  7629. int
  7630. main ()
  7631. {
  7632. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7633. test_array [0] = 0
  7634. ;
  7635. return 0;
  7636. }
  7637. _ACEOF
  7638. rm -f conftest.$ac_objext
  7639. if { (ac_try="$ac_compile"
  7640. case "(($ac_try" in
  7641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. *) ac_try_echo=$ac_try;;
  7643. esac
  7644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7645. (eval "$ac_compile") 2>conftest.er1
  7646. ac_status=$?
  7647. grep -v '^ *+' conftest.er1 >conftest.err
  7648. rm -f conftest.er1
  7649. cat conftest.err >&5
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); } &&
  7652. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7653. { (case "(($ac_try" in
  7654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7655. *) ac_try_echo=$ac_try;;
  7656. esac
  7657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7658. (eval "$ac_try") 2>&5
  7659. ac_status=$?
  7660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661. (exit $ac_status); }; } &&
  7662. { ac_try='test -s conftest.$ac_objext'
  7663. { (case "(($ac_try" in
  7664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7665. *) ac_try_echo=$ac_try;;
  7666. esac
  7667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7668. (eval "$ac_try") 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); }; }; then
  7672. ac_lo=0 ac_mid=0
  7673. while :; do
  7674. cat >conftest.$ac_ext <<_ACEOF
  7675. /* confdefs.h. */
  7676. _ACEOF
  7677. cat confdefs.h >>conftest.$ac_ext
  7678. cat >>conftest.$ac_ext <<_ACEOF
  7679. /* end confdefs.h. */
  7680. $ac_includes_default
  7681. typedef long long ac__type_sizeof_;
  7682. int
  7683. main ()
  7684. {
  7685. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7686. test_array [0] = 0
  7687. ;
  7688. return 0;
  7689. }
  7690. _ACEOF
  7691. rm -f conftest.$ac_objext
  7692. if { (ac_try="$ac_compile"
  7693. case "(($ac_try" in
  7694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7695. *) ac_try_echo=$ac_try;;
  7696. esac
  7697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7698. (eval "$ac_compile") 2>conftest.er1
  7699. ac_status=$?
  7700. grep -v '^ *+' conftest.er1 >conftest.err
  7701. rm -f conftest.er1
  7702. cat conftest.err >&5
  7703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7704. (exit $ac_status); } &&
  7705. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7706. { (case "(($ac_try" in
  7707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7708. *) ac_try_echo=$ac_try;;
  7709. esac
  7710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7711. (eval "$ac_try") 2>&5
  7712. ac_status=$?
  7713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7714. (exit $ac_status); }; } &&
  7715. { ac_try='test -s conftest.$ac_objext'
  7716. { (case "(($ac_try" in
  7717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7718. *) ac_try_echo=$ac_try;;
  7719. esac
  7720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7721. (eval "$ac_try") 2>&5
  7722. ac_status=$?
  7723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7724. (exit $ac_status); }; }; then
  7725. ac_hi=$ac_mid; break
  7726. else
  7727. echo "$as_me: failed program was:" >&5
  7728. sed 's/^/| /' conftest.$ac_ext >&5
  7729. ac_lo=`expr $ac_mid + 1`
  7730. if test $ac_lo -le $ac_mid; then
  7731. ac_lo= ac_hi=
  7732. break
  7733. fi
  7734. ac_mid=`expr 2 '*' $ac_mid + 1`
  7735. fi
  7736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7737. done
  7738. else
  7739. echo "$as_me: failed program was:" >&5
  7740. sed 's/^/| /' conftest.$ac_ext >&5
  7741. cat >conftest.$ac_ext <<_ACEOF
  7742. /* confdefs.h. */
  7743. _ACEOF
  7744. cat confdefs.h >>conftest.$ac_ext
  7745. cat >>conftest.$ac_ext <<_ACEOF
  7746. /* end confdefs.h. */
  7747. $ac_includes_default
  7748. typedef long long ac__type_sizeof_;
  7749. int
  7750. main ()
  7751. {
  7752. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7753. test_array [0] = 0
  7754. ;
  7755. return 0;
  7756. }
  7757. _ACEOF
  7758. rm -f conftest.$ac_objext
  7759. if { (ac_try="$ac_compile"
  7760. case "(($ac_try" in
  7761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7762. *) ac_try_echo=$ac_try;;
  7763. esac
  7764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7765. (eval "$ac_compile") 2>conftest.er1
  7766. ac_status=$?
  7767. grep -v '^ *+' conftest.er1 >conftest.err
  7768. rm -f conftest.er1
  7769. cat conftest.err >&5
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); } &&
  7772. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7773. { (case "(($ac_try" in
  7774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7775. *) ac_try_echo=$ac_try;;
  7776. esac
  7777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7778. (eval "$ac_try") 2>&5
  7779. ac_status=$?
  7780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7781. (exit $ac_status); }; } &&
  7782. { ac_try='test -s conftest.$ac_objext'
  7783. { (case "(($ac_try" in
  7784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7785. *) ac_try_echo=$ac_try;;
  7786. esac
  7787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7788. (eval "$ac_try") 2>&5
  7789. ac_status=$?
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); }; }; then
  7792. ac_hi=-1 ac_mid=-1
  7793. while :; do
  7794. cat >conftest.$ac_ext <<_ACEOF
  7795. /* confdefs.h. */
  7796. _ACEOF
  7797. cat confdefs.h >>conftest.$ac_ext
  7798. cat >>conftest.$ac_ext <<_ACEOF
  7799. /* end confdefs.h. */
  7800. $ac_includes_default
  7801. typedef long long ac__type_sizeof_;
  7802. int
  7803. main ()
  7804. {
  7805. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7806. test_array [0] = 0
  7807. ;
  7808. return 0;
  7809. }
  7810. _ACEOF
  7811. rm -f conftest.$ac_objext
  7812. if { (ac_try="$ac_compile"
  7813. case "(($ac_try" in
  7814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7815. *) ac_try_echo=$ac_try;;
  7816. esac
  7817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7818. (eval "$ac_compile") 2>conftest.er1
  7819. ac_status=$?
  7820. grep -v '^ *+' conftest.er1 >conftest.err
  7821. rm -f conftest.er1
  7822. cat conftest.err >&5
  7823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7824. (exit $ac_status); } &&
  7825. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7826. { (case "(($ac_try" in
  7827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7828. *) ac_try_echo=$ac_try;;
  7829. esac
  7830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7831. (eval "$ac_try") 2>&5
  7832. ac_status=$?
  7833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834. (exit $ac_status); }; } &&
  7835. { ac_try='test -s conftest.$ac_objext'
  7836. { (case "(($ac_try" in
  7837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7838. *) ac_try_echo=$ac_try;;
  7839. esac
  7840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7841. (eval "$ac_try") 2>&5
  7842. ac_status=$?
  7843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7844. (exit $ac_status); }; }; then
  7845. ac_lo=$ac_mid; break
  7846. else
  7847. echo "$as_me: failed program was:" >&5
  7848. sed 's/^/| /' conftest.$ac_ext >&5
  7849. ac_hi=`expr '(' $ac_mid ')' - 1`
  7850. if test $ac_mid -le $ac_hi; then
  7851. ac_lo= ac_hi=
  7852. break
  7853. fi
  7854. ac_mid=`expr 2 '*' $ac_mid`
  7855. fi
  7856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7857. done
  7858. else
  7859. echo "$as_me: failed program was:" >&5
  7860. sed 's/^/| /' conftest.$ac_ext >&5
  7861. ac_lo= ac_hi=
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7864. fi
  7865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7866. # Binary search between lo and hi bounds.
  7867. while test "x$ac_lo" != "x$ac_hi"; do
  7868. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7869. cat >conftest.$ac_ext <<_ACEOF
  7870. /* confdefs.h. */
  7871. _ACEOF
  7872. cat confdefs.h >>conftest.$ac_ext
  7873. cat >>conftest.$ac_ext <<_ACEOF
  7874. /* end confdefs.h. */
  7875. $ac_includes_default
  7876. typedef long long ac__type_sizeof_;
  7877. int
  7878. main ()
  7879. {
  7880. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7881. test_array [0] = 0
  7882. ;
  7883. return 0;
  7884. }
  7885. _ACEOF
  7886. rm -f conftest.$ac_objext
  7887. if { (ac_try="$ac_compile"
  7888. case "(($ac_try" in
  7889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7890. *) ac_try_echo=$ac_try;;
  7891. esac
  7892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7893. (eval "$ac_compile") 2>conftest.er1
  7894. ac_status=$?
  7895. grep -v '^ *+' conftest.er1 >conftest.err
  7896. rm -f conftest.er1
  7897. cat conftest.err >&5
  7898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7899. (exit $ac_status); } &&
  7900. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7901. { (case "(($ac_try" in
  7902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7903. *) ac_try_echo=$ac_try;;
  7904. esac
  7905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7906. (eval "$ac_try") 2>&5
  7907. ac_status=$?
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); }; } &&
  7910. { ac_try='test -s conftest.$ac_objext'
  7911. { (case "(($ac_try" in
  7912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7913. *) ac_try_echo=$ac_try;;
  7914. esac
  7915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7916. (eval "$ac_try") 2>&5
  7917. ac_status=$?
  7918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7919. (exit $ac_status); }; }; then
  7920. ac_hi=$ac_mid
  7921. else
  7922. echo "$as_me: failed program was:" >&5
  7923. sed 's/^/| /' conftest.$ac_ext >&5
  7924. ac_lo=`expr '(' $ac_mid ')' + 1`
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7927. done
  7928. case $ac_lo in
  7929. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7930. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7931. See \`config.log' for more details." >&5
  7932. echo "$as_me: error: cannot compute sizeof (long long)
  7933. See \`config.log' for more details." >&2;}
  7934. { (exit 77); exit 77; }; } ;;
  7935. esac
  7936. else
  7937. cat >conftest.$ac_ext <<_ACEOF
  7938. /* confdefs.h. */
  7939. _ACEOF
  7940. cat confdefs.h >>conftest.$ac_ext
  7941. cat >>conftest.$ac_ext <<_ACEOF
  7942. /* end confdefs.h. */
  7943. $ac_includes_default
  7944. typedef long long ac__type_sizeof_;
  7945. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7946. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7947. #include <stdio.h>
  7948. #include <stdlib.h>
  7949. int
  7950. main ()
  7951. {
  7952. FILE *f = fopen ("conftest.val", "w");
  7953. if (! f)
  7954. return 1;
  7955. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7956. {
  7957. long int i = longval ();
  7958. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7959. return 1;
  7960. fprintf (f, "%ld\n", i);
  7961. }
  7962. else
  7963. {
  7964. unsigned long int i = ulongval ();
  7965. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7966. return 1;
  7967. fprintf (f, "%lu\n", i);
  7968. }
  7969. return ferror (f) || fclose (f) != 0;
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. rm -f conftest$ac_exeext
  7975. if { (ac_try="$ac_link"
  7976. case "(($ac_try" in
  7977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7978. *) ac_try_echo=$ac_try;;
  7979. esac
  7980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7981. (eval "$ac_link") 2>&5
  7982. ac_status=$?
  7983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7984. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7985. { (case "(($ac_try" in
  7986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7987. *) ac_try_echo=$ac_try;;
  7988. esac
  7989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7990. (eval "$ac_try") 2>&5
  7991. ac_status=$?
  7992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7993. (exit $ac_status); }; }; then
  7994. ac_cv_sizeof_long_long=`cat conftest.val`
  7995. else
  7996. echo "$as_me: program exited with status $ac_status" >&5
  7997. echo "$as_me: failed program was:" >&5
  7998. sed 's/^/| /' conftest.$ac_ext >&5
  7999. ( exit $ac_status )
  8000. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  8001. See \`config.log' for more details." >&5
  8002. echo "$as_me: error: cannot compute sizeof (long long)
  8003. See \`config.log' for more details." >&2;}
  8004. { (exit 77); exit 77; }; }
  8005. fi
  8006. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8007. fi
  8008. rm -f conftest.val
  8009. else
  8010. ac_cv_sizeof_long_long=0
  8011. fi
  8012. fi
  8013. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  8014. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  8015. cat >>confdefs.h <<_ACEOF
  8016. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  8017. _ACEOF
  8018. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8019. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8020. if test "${ac_cv_struct_tm+set}" = set; then
  8021. echo $ECHO_N "(cached) $ECHO_C" >&6
  8022. else
  8023. cat >conftest.$ac_ext <<_ACEOF
  8024. /* confdefs.h. */
  8025. _ACEOF
  8026. cat confdefs.h >>conftest.$ac_ext
  8027. cat >>conftest.$ac_ext <<_ACEOF
  8028. /* end confdefs.h. */
  8029. #include <sys/types.h>
  8030. #include <time.h>
  8031. int
  8032. main ()
  8033. {
  8034. struct tm *tp; tp->tm_sec;
  8035. ;
  8036. return 0;
  8037. }
  8038. _ACEOF
  8039. rm -f conftest.$ac_objext
  8040. if { (ac_try="$ac_compile"
  8041. case "(($ac_try" in
  8042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8043. *) ac_try_echo=$ac_try;;
  8044. esac
  8045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8046. (eval "$ac_compile") 2>conftest.er1
  8047. ac_status=$?
  8048. grep -v '^ *+' conftest.er1 >conftest.err
  8049. rm -f conftest.er1
  8050. cat conftest.err >&5
  8051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); } &&
  8053. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8054. { (case "(($ac_try" in
  8055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8056. *) ac_try_echo=$ac_try;;
  8057. esac
  8058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8059. (eval "$ac_try") 2>&5
  8060. ac_status=$?
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); }; } &&
  8063. { ac_try='test -s conftest.$ac_objext'
  8064. { (case "(($ac_try" in
  8065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8066. *) ac_try_echo=$ac_try;;
  8067. esac
  8068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8069. (eval "$ac_try") 2>&5
  8070. ac_status=$?
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. (exit $ac_status); }; }; then
  8073. ac_cv_struct_tm=time.h
  8074. else
  8075. echo "$as_me: failed program was:" >&5
  8076. sed 's/^/| /' conftest.$ac_ext >&5
  8077. ac_cv_struct_tm=sys/time.h
  8078. fi
  8079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8080. fi
  8081. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8082. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8083. if test $ac_cv_struct_tm = sys/time.h; then
  8084. cat >>confdefs.h <<\_ACEOF
  8085. #define TM_IN_SYS_TIME 1
  8086. _ACEOF
  8087. fi
  8088. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8089. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  8090. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8091. echo $ECHO_N "(cached) $ECHO_C" >&6
  8092. else
  8093. cat >conftest.$ac_ext <<_ACEOF
  8094. /* confdefs.h. */
  8095. _ACEOF
  8096. cat confdefs.h >>conftest.$ac_ext
  8097. cat >>conftest.$ac_ext <<_ACEOF
  8098. /* end confdefs.h. */
  8099. #include <sys/types.h>
  8100. #include <$ac_cv_struct_tm>
  8101. int
  8102. main ()
  8103. {
  8104. static struct tm ac_aggr;
  8105. if (ac_aggr.tm_zone)
  8106. return 0;
  8107. ;
  8108. return 0;
  8109. }
  8110. _ACEOF
  8111. rm -f conftest.$ac_objext
  8112. if { (ac_try="$ac_compile"
  8113. case "(($ac_try" in
  8114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8115. *) ac_try_echo=$ac_try;;
  8116. esac
  8117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8118. (eval "$ac_compile") 2>conftest.er1
  8119. ac_status=$?
  8120. grep -v '^ *+' conftest.er1 >conftest.err
  8121. rm -f conftest.er1
  8122. cat conftest.err >&5
  8123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8124. (exit $ac_status); } &&
  8125. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8126. { (case "(($ac_try" in
  8127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8128. *) ac_try_echo=$ac_try;;
  8129. esac
  8130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8131. (eval "$ac_try") 2>&5
  8132. ac_status=$?
  8133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. (exit $ac_status); }; } &&
  8135. { ac_try='test -s conftest.$ac_objext'
  8136. { (case "(($ac_try" in
  8137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8138. *) ac_try_echo=$ac_try;;
  8139. esac
  8140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8141. (eval "$ac_try") 2>&5
  8142. ac_status=$?
  8143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. (exit $ac_status); }; }; then
  8145. ac_cv_member_struct_tm_tm_zone=yes
  8146. else
  8147. echo "$as_me: failed program was:" >&5
  8148. sed 's/^/| /' conftest.$ac_ext >&5
  8149. cat >conftest.$ac_ext <<_ACEOF
  8150. /* confdefs.h. */
  8151. _ACEOF
  8152. cat confdefs.h >>conftest.$ac_ext
  8153. cat >>conftest.$ac_ext <<_ACEOF
  8154. /* end confdefs.h. */
  8155. #include <sys/types.h>
  8156. #include <$ac_cv_struct_tm>
  8157. int
  8158. main ()
  8159. {
  8160. static struct tm ac_aggr;
  8161. if (sizeof ac_aggr.tm_zone)
  8162. return 0;
  8163. ;
  8164. return 0;
  8165. }
  8166. _ACEOF
  8167. rm -f conftest.$ac_objext
  8168. if { (ac_try="$ac_compile"
  8169. case "(($ac_try" in
  8170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8171. *) ac_try_echo=$ac_try;;
  8172. esac
  8173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8174. (eval "$ac_compile") 2>conftest.er1
  8175. ac_status=$?
  8176. grep -v '^ *+' conftest.er1 >conftest.err
  8177. rm -f conftest.er1
  8178. cat conftest.err >&5
  8179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); } &&
  8181. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8182. { (case "(($ac_try" in
  8183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8184. *) ac_try_echo=$ac_try;;
  8185. esac
  8186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8187. (eval "$ac_try") 2>&5
  8188. ac_status=$?
  8189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8190. (exit $ac_status); }; } &&
  8191. { ac_try='test -s conftest.$ac_objext'
  8192. { (case "(($ac_try" in
  8193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8194. *) ac_try_echo=$ac_try;;
  8195. esac
  8196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8197. (eval "$ac_try") 2>&5
  8198. ac_status=$?
  8199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8200. (exit $ac_status); }; }; then
  8201. ac_cv_member_struct_tm_tm_zone=yes
  8202. else
  8203. echo "$as_me: failed program was:" >&5
  8204. sed 's/^/| /' conftest.$ac_ext >&5
  8205. ac_cv_member_struct_tm_tm_zone=no
  8206. fi
  8207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8208. fi
  8209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8210. fi
  8211. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8212. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  8213. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8214. cat >>confdefs.h <<_ACEOF
  8215. #define HAVE_STRUCT_TM_TM_ZONE 1
  8216. _ACEOF
  8217. fi
  8218. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8219. cat >>confdefs.h <<\_ACEOF
  8220. #define HAVE_TM_ZONE 1
  8221. _ACEOF
  8222. else
  8223. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8224. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  8225. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8226. echo $ECHO_N "(cached) $ECHO_C" >&6
  8227. else
  8228. cat >conftest.$ac_ext <<_ACEOF
  8229. /* confdefs.h. */
  8230. _ACEOF
  8231. cat confdefs.h >>conftest.$ac_ext
  8232. cat >>conftest.$ac_ext <<_ACEOF
  8233. /* end confdefs.h. */
  8234. #include <time.h>
  8235. int
  8236. main ()
  8237. {
  8238. #ifndef tzname
  8239. char *p = (char *) tzname;
  8240. return !p;
  8241. #endif
  8242. ;
  8243. return 0;
  8244. }
  8245. _ACEOF
  8246. rm -f conftest.$ac_objext
  8247. if { (ac_try="$ac_compile"
  8248. case "(($ac_try" in
  8249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8250. *) ac_try_echo=$ac_try;;
  8251. esac
  8252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8253. (eval "$ac_compile") 2>conftest.er1
  8254. ac_status=$?
  8255. grep -v '^ *+' conftest.er1 >conftest.err
  8256. rm -f conftest.er1
  8257. cat conftest.err >&5
  8258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8259. (exit $ac_status); } &&
  8260. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8261. { (case "(($ac_try" in
  8262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8263. *) ac_try_echo=$ac_try;;
  8264. esac
  8265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8266. (eval "$ac_try") 2>&5
  8267. ac_status=$?
  8268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8269. (exit $ac_status); }; } &&
  8270. { ac_try='test -s conftest.$ac_objext'
  8271. { (case "(($ac_try" in
  8272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8273. *) ac_try_echo=$ac_try;;
  8274. esac
  8275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8276. (eval "$ac_try") 2>&5
  8277. ac_status=$?
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); }; }; then
  8280. ac_cv_have_decl_tzname=yes
  8281. else
  8282. echo "$as_me: failed program was:" >&5
  8283. sed 's/^/| /' conftest.$ac_ext >&5
  8284. ac_cv_have_decl_tzname=no
  8285. fi
  8286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8287. fi
  8288. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8289. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  8290. if test $ac_cv_have_decl_tzname = yes; then
  8291. cat >>confdefs.h <<_ACEOF
  8292. #define HAVE_DECL_TZNAME 1
  8293. _ACEOF
  8294. else
  8295. cat >>confdefs.h <<_ACEOF
  8296. #define HAVE_DECL_TZNAME 0
  8297. _ACEOF
  8298. fi
  8299. { echo "$as_me:$LINENO: checking for tzname" >&5
  8300. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  8301. if test "${ac_cv_var_tzname+set}" = set; then
  8302. echo $ECHO_N "(cached) $ECHO_C" >&6
  8303. else
  8304. cat >conftest.$ac_ext <<_ACEOF
  8305. /* confdefs.h. */
  8306. _ACEOF
  8307. cat confdefs.h >>conftest.$ac_ext
  8308. cat >>conftest.$ac_ext <<_ACEOF
  8309. /* end confdefs.h. */
  8310. #include <time.h>
  8311. #if !HAVE_DECL_TZNAME
  8312. extern char *tzname[];
  8313. #endif
  8314. int
  8315. main ()
  8316. {
  8317. return tzname[0][0];
  8318. ;
  8319. return 0;
  8320. }
  8321. _ACEOF
  8322. rm -f conftest.$ac_objext conftest$ac_exeext
  8323. if { (ac_try="$ac_link"
  8324. case "(($ac_try" in
  8325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8326. *) ac_try_echo=$ac_try;;
  8327. esac
  8328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8329. (eval "$ac_link") 2>conftest.er1
  8330. ac_status=$?
  8331. grep -v '^ *+' conftest.er1 >conftest.err
  8332. rm -f conftest.er1
  8333. cat conftest.err >&5
  8334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8335. (exit $ac_status); } &&
  8336. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8337. { (case "(($ac_try" in
  8338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8339. *) ac_try_echo=$ac_try;;
  8340. esac
  8341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8342. (eval "$ac_try") 2>&5
  8343. ac_status=$?
  8344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8345. (exit $ac_status); }; } &&
  8346. { ac_try='test -s conftest$ac_exeext'
  8347. { (case "(($ac_try" in
  8348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8349. *) ac_try_echo=$ac_try;;
  8350. esac
  8351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8352. (eval "$ac_try") 2>&5
  8353. ac_status=$?
  8354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8355. (exit $ac_status); }; }; then
  8356. ac_cv_var_tzname=yes
  8357. else
  8358. echo "$as_me: failed program was:" >&5
  8359. sed 's/^/| /' conftest.$ac_ext >&5
  8360. ac_cv_var_tzname=no
  8361. fi
  8362. rm -f core conftest.err conftest.$ac_objext \
  8363. conftest$ac_exeext conftest.$ac_ext
  8364. fi
  8365. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8366. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  8367. if test $ac_cv_var_tzname = yes; then
  8368. cat >>confdefs.h <<\_ACEOF
  8369. #define HAVE_TZNAME 1
  8370. _ACEOF
  8371. fi
  8372. fi
  8373. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8374. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8375. if test "${ac_cv_struct_tm+set}" = set; then
  8376. echo $ECHO_N "(cached) $ECHO_C" >&6
  8377. else
  8378. cat >conftest.$ac_ext <<_ACEOF
  8379. /* confdefs.h. */
  8380. _ACEOF
  8381. cat confdefs.h >>conftest.$ac_ext
  8382. cat >>conftest.$ac_ext <<_ACEOF
  8383. /* end confdefs.h. */
  8384. #include <sys/types.h>
  8385. #include <time.h>
  8386. int
  8387. main ()
  8388. {
  8389. struct tm *tp; tp->tm_sec;
  8390. ;
  8391. return 0;
  8392. }
  8393. _ACEOF
  8394. rm -f conftest.$ac_objext
  8395. if { (ac_try="$ac_compile"
  8396. case "(($ac_try" in
  8397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8398. *) ac_try_echo=$ac_try;;
  8399. esac
  8400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8401. (eval "$ac_compile") 2>conftest.er1
  8402. ac_status=$?
  8403. grep -v '^ *+' conftest.er1 >conftest.err
  8404. rm -f conftest.er1
  8405. cat conftest.err >&5
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. (exit $ac_status); } &&
  8408. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8409. { (case "(($ac_try" in
  8410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8411. *) ac_try_echo=$ac_try;;
  8412. esac
  8413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8414. (eval "$ac_try") 2>&5
  8415. ac_status=$?
  8416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8417. (exit $ac_status); }; } &&
  8418. { ac_try='test -s conftest.$ac_objext'
  8419. { (case "(($ac_try" in
  8420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8421. *) ac_try_echo=$ac_try;;
  8422. esac
  8423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8424. (eval "$ac_try") 2>&5
  8425. ac_status=$?
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. (exit $ac_status); }; }; then
  8428. ac_cv_struct_tm=time.h
  8429. else
  8430. echo "$as_me: failed program was:" >&5
  8431. sed 's/^/| /' conftest.$ac_ext >&5
  8432. ac_cv_struct_tm=sys/time.h
  8433. fi
  8434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8435. fi
  8436. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8437. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8438. if test $ac_cv_struct_tm = sys/time.h; then
  8439. cat >>confdefs.h <<\_ACEOF
  8440. #define TM_IN_SYS_TIME 1
  8441. _ACEOF
  8442. fi
  8443. #checkpoint
  8444. cat >confcache <<\_ACEOF
  8445. # This file is a shell script that caches the results of configure
  8446. # tests run on this system so they can be shared between configure
  8447. # scripts and configure runs, see configure's option --config-cache.
  8448. # It is not useful on other systems. If it contains results you don't
  8449. # want to keep, you may remove or edit it.
  8450. #
  8451. # config.status only pays attention to the cache file if you give it
  8452. # the --recheck option to rerun configure.
  8453. #
  8454. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8455. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8456. # following values.
  8457. _ACEOF
  8458. # The following way of writing the cache mishandles newlines in values,
  8459. # but we know of no workaround that is simple, portable, and efficient.
  8460. # So, we kill variables containing newlines.
  8461. # Ultrix sh set writes to stderr and can't be redirected directly,
  8462. # and sets the high bit in the cache file unless we assign to the vars.
  8463. (
  8464. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8465. eval ac_val=\$$ac_var
  8466. case $ac_val in #(
  8467. *${as_nl}*)
  8468. case $ac_var in #(
  8469. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  8470. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  8471. esac
  8472. case $ac_var in #(
  8473. _ | IFS | as_nl) ;; #(
  8474. *) $as_unset $ac_var ;;
  8475. esac ;;
  8476. esac
  8477. done
  8478. (set) 2>&1 |
  8479. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8480. *${as_nl}ac_space=\ *)
  8481. # `set' does not quote correctly, so add quotes (double-quote
  8482. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8483. sed -n \
  8484. "s/'/'\\\\''/g;
  8485. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8486. ;; #(
  8487. *)
  8488. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8489. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8490. ;;
  8491. esac |
  8492. sort
  8493. ) |
  8494. sed '
  8495. /^ac_cv_env_/b end
  8496. t clear
  8497. :clear
  8498. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8499. t end
  8500. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8501. :end' >>confcache
  8502. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8503. if test -w "$cache_file"; then
  8504. test "x$cache_file" != "x/dev/null" &&
  8505. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8506. echo "$as_me: updating cache $cache_file" >&6;}
  8507. cat confcache >$cache_file
  8508. else
  8509. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8510. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8511. fi
  8512. fi
  8513. rm -f confcache
  8514. # Checks for library functions
  8515. for ac_header in vfork.h
  8516. do
  8517. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8518. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8519. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8521. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8522. echo $ECHO_N "(cached) $ECHO_C" >&6
  8523. fi
  8524. ac_res=`eval echo '${'$as_ac_Header'}'`
  8525. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8526. echo "${ECHO_T}$ac_res" >&6; }
  8527. else
  8528. # Is the header compilable?
  8529. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8530. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8531. cat >conftest.$ac_ext <<_ACEOF
  8532. /* confdefs.h. */
  8533. _ACEOF
  8534. cat confdefs.h >>conftest.$ac_ext
  8535. cat >>conftest.$ac_ext <<_ACEOF
  8536. /* end confdefs.h. */
  8537. $ac_includes_default
  8538. #include <$ac_header>
  8539. _ACEOF
  8540. rm -f conftest.$ac_objext
  8541. if { (ac_try="$ac_compile"
  8542. case "(($ac_try" in
  8543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8544. *) ac_try_echo=$ac_try;;
  8545. esac
  8546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8547. (eval "$ac_compile") 2>conftest.er1
  8548. ac_status=$?
  8549. grep -v '^ *+' conftest.er1 >conftest.err
  8550. rm -f conftest.er1
  8551. cat conftest.err >&5
  8552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8553. (exit $ac_status); } &&
  8554. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8555. { (case "(($ac_try" in
  8556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8557. *) ac_try_echo=$ac_try;;
  8558. esac
  8559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8560. (eval "$ac_try") 2>&5
  8561. ac_status=$?
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. (exit $ac_status); }; } &&
  8564. { ac_try='test -s conftest.$ac_objext'
  8565. { (case "(($ac_try" in
  8566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8567. *) ac_try_echo=$ac_try;;
  8568. esac
  8569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8570. (eval "$ac_try") 2>&5
  8571. ac_status=$?
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); }; }; then
  8574. ac_header_compiler=yes
  8575. else
  8576. echo "$as_me: failed program was:" >&5
  8577. sed 's/^/| /' conftest.$ac_ext >&5
  8578. ac_header_compiler=no
  8579. fi
  8580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8581. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8582. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8583. # Is the header present?
  8584. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8585. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8586. cat >conftest.$ac_ext <<_ACEOF
  8587. /* confdefs.h. */
  8588. _ACEOF
  8589. cat confdefs.h >>conftest.$ac_ext
  8590. cat >>conftest.$ac_ext <<_ACEOF
  8591. /* end confdefs.h. */
  8592. #include <$ac_header>
  8593. _ACEOF
  8594. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8595. case "(($ac_try" in
  8596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8597. *) ac_try_echo=$ac_try;;
  8598. esac
  8599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8600. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8601. ac_status=$?
  8602. grep -v '^ *+' conftest.er1 >conftest.err
  8603. rm -f conftest.er1
  8604. cat conftest.err >&5
  8605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8606. (exit $ac_status); } >/dev/null; then
  8607. if test -s conftest.err; then
  8608. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8609. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8610. else
  8611. ac_cpp_err=
  8612. fi
  8613. else
  8614. ac_cpp_err=yes
  8615. fi
  8616. if test -z "$ac_cpp_err"; then
  8617. ac_header_preproc=yes
  8618. else
  8619. echo "$as_me: failed program was:" >&5
  8620. sed 's/^/| /' conftest.$ac_ext >&5
  8621. ac_header_preproc=no
  8622. fi
  8623. rm -f conftest.err conftest.$ac_ext
  8624. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8625. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8626. # So? What about this header?
  8627. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8628. yes:no: )
  8629. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8630. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8632. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8633. ac_header_preproc=yes
  8634. ;;
  8635. no:yes:* )
  8636. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8637. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8638. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8639. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8640. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8641. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8642. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8643. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8645. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8646. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8647. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8648. ;;
  8649. esac
  8650. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8651. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8652. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8653. echo $ECHO_N "(cached) $ECHO_C" >&6
  8654. else
  8655. eval "$as_ac_Header=\$ac_header_preproc"
  8656. fi
  8657. ac_res=`eval echo '${'$as_ac_Header'}'`
  8658. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8659. echo "${ECHO_T}$ac_res" >&6; }
  8660. fi
  8661. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8662. cat >>confdefs.h <<_ACEOF
  8663. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8664. _ACEOF
  8665. fi
  8666. done
  8667. for ac_func in fork vfork
  8668. do
  8669. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8670. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8671. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8672. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8673. echo $ECHO_N "(cached) $ECHO_C" >&6
  8674. else
  8675. cat >conftest.$ac_ext <<_ACEOF
  8676. /* confdefs.h. */
  8677. _ACEOF
  8678. cat confdefs.h >>conftest.$ac_ext
  8679. cat >>conftest.$ac_ext <<_ACEOF
  8680. /* end confdefs.h. */
  8681. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8682. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8683. #define $ac_func innocuous_$ac_func
  8684. /* System header to define __stub macros and hopefully few prototypes,
  8685. which can conflict with char $ac_func (); below.
  8686. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8687. <limits.h> exists even on freestanding compilers. */
  8688. #ifdef __STDC__
  8689. # include <limits.h>
  8690. #else
  8691. # include <assert.h>
  8692. #endif
  8693. #undef $ac_func
  8694. /* Override any GCC internal prototype to avoid an error.
  8695. Use char because int might match the return type of a GCC
  8696. builtin and then its argument prototype would still apply. */
  8697. #ifdef __cplusplus
  8698. extern "C"
  8699. #endif
  8700. char $ac_func ();
  8701. /* The GNU C library defines this for functions which it implements
  8702. to always fail with ENOSYS. Some functions are actually named
  8703. something starting with __ and the normal name is an alias. */
  8704. #if defined __stub_$ac_func || defined __stub___$ac_func
  8705. choke me
  8706. #endif
  8707. int
  8708. main ()
  8709. {
  8710. return $ac_func ();
  8711. ;
  8712. return 0;
  8713. }
  8714. _ACEOF
  8715. rm -f conftest.$ac_objext conftest$ac_exeext
  8716. if { (ac_try="$ac_link"
  8717. case "(($ac_try" in
  8718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8719. *) ac_try_echo=$ac_try;;
  8720. esac
  8721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8722. (eval "$ac_link") 2>conftest.er1
  8723. ac_status=$?
  8724. grep -v '^ *+' conftest.er1 >conftest.err
  8725. rm -f conftest.er1
  8726. cat conftest.err >&5
  8727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8728. (exit $ac_status); } &&
  8729. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8730. { (case "(($ac_try" in
  8731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8732. *) ac_try_echo=$ac_try;;
  8733. esac
  8734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8735. (eval "$ac_try") 2>&5
  8736. ac_status=$?
  8737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8738. (exit $ac_status); }; } &&
  8739. { ac_try='test -s conftest$ac_exeext'
  8740. { (case "(($ac_try" in
  8741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8742. *) ac_try_echo=$ac_try;;
  8743. esac
  8744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8745. (eval "$ac_try") 2>&5
  8746. ac_status=$?
  8747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. (exit $ac_status); }; }; then
  8749. eval "$as_ac_var=yes"
  8750. else
  8751. echo "$as_me: failed program was:" >&5
  8752. sed 's/^/| /' conftest.$ac_ext >&5
  8753. eval "$as_ac_var=no"
  8754. fi
  8755. rm -f core conftest.err conftest.$ac_objext \
  8756. conftest$ac_exeext conftest.$ac_ext
  8757. fi
  8758. ac_res=`eval echo '${'$as_ac_var'}'`
  8759. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8760. echo "${ECHO_T}$ac_res" >&6; }
  8761. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8762. cat >>confdefs.h <<_ACEOF
  8763. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8764. _ACEOF
  8765. fi
  8766. done
  8767. if test "x$ac_cv_func_fork" = xyes; then
  8768. { echo "$as_me:$LINENO: checking for working fork" >&5
  8769. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  8770. if test "${ac_cv_func_fork_works+set}" = set; then
  8771. echo $ECHO_N "(cached) $ECHO_C" >&6
  8772. else
  8773. if test "$cross_compiling" = yes; then
  8774. ac_cv_func_fork_works=cross
  8775. else
  8776. cat >conftest.$ac_ext <<_ACEOF
  8777. /* confdefs.h. */
  8778. _ACEOF
  8779. cat confdefs.h >>conftest.$ac_ext
  8780. cat >>conftest.$ac_ext <<_ACEOF
  8781. /* end confdefs.h. */
  8782. $ac_includes_default
  8783. int
  8784. main ()
  8785. {
  8786. /* By Ruediger Kuhlmann. */
  8787. return fork () < 0;
  8788. ;
  8789. return 0;
  8790. }
  8791. _ACEOF
  8792. rm -f conftest$ac_exeext
  8793. if { (ac_try="$ac_link"
  8794. case "(($ac_try" in
  8795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8796. *) ac_try_echo=$ac_try;;
  8797. esac
  8798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8799. (eval "$ac_link") 2>&5
  8800. ac_status=$?
  8801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8803. { (case "(($ac_try" in
  8804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8805. *) ac_try_echo=$ac_try;;
  8806. esac
  8807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8808. (eval "$ac_try") 2>&5
  8809. ac_status=$?
  8810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8811. (exit $ac_status); }; }; then
  8812. ac_cv_func_fork_works=yes
  8813. else
  8814. echo "$as_me: program exited with status $ac_status" >&5
  8815. echo "$as_me: failed program was:" >&5
  8816. sed 's/^/| /' conftest.$ac_ext >&5
  8817. ( exit $ac_status )
  8818. ac_cv_func_fork_works=no
  8819. fi
  8820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8821. fi
  8822. fi
  8823. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8824. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  8825. else
  8826. ac_cv_func_fork_works=$ac_cv_func_fork
  8827. fi
  8828. if test "x$ac_cv_func_fork_works" = xcross; then
  8829. case $host in
  8830. *-*-amigaos* | *-*-msdosdjgpp*)
  8831. # Override, as these systems have only a dummy fork() stub
  8832. ac_cv_func_fork_works=no
  8833. ;;
  8834. *)
  8835. ac_cv_func_fork_works=yes
  8836. ;;
  8837. esac
  8838. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8839. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8840. fi
  8841. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8842. if test "x$ac_cv_func_vfork" = xyes; then
  8843. { echo "$as_me:$LINENO: checking for working vfork" >&5
  8844. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  8845. if test "${ac_cv_func_vfork_works+set}" = set; then
  8846. echo $ECHO_N "(cached) $ECHO_C" >&6
  8847. else
  8848. if test "$cross_compiling" = yes; then
  8849. ac_cv_func_vfork_works=cross
  8850. else
  8851. cat >conftest.$ac_ext <<_ACEOF
  8852. /* confdefs.h. */
  8853. _ACEOF
  8854. cat confdefs.h >>conftest.$ac_ext
  8855. cat >>conftest.$ac_ext <<_ACEOF
  8856. /* end confdefs.h. */
  8857. /* Thanks to Paul Eggert for this test. */
  8858. $ac_includes_default
  8859. #include <sys/wait.h>
  8860. #if HAVE_VFORK_H
  8861. # include <vfork.h>
  8862. #endif
  8863. /* On some sparc systems, changes by the child to local and incoming
  8864. argument registers are propagated back to the parent. The compiler
  8865. is told about this with #include <vfork.h>, but some compilers
  8866. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8867. static variable whose address is put into a register that is
  8868. clobbered by the vfork. */
  8869. static void
  8870. #ifdef __cplusplus
  8871. sparc_address_test (int arg)
  8872. # else
  8873. sparc_address_test (arg) int arg;
  8874. #endif
  8875. {
  8876. static pid_t child;
  8877. if (!child) {
  8878. child = vfork ();
  8879. if (child < 0) {
  8880. perror ("vfork");
  8881. _exit(2);
  8882. }
  8883. if (!child) {
  8884. arg = getpid();
  8885. write(-1, "", 0);
  8886. _exit (arg);
  8887. }
  8888. }
  8889. }
  8890. int
  8891. main ()
  8892. {
  8893. pid_t parent = getpid ();
  8894. pid_t child;
  8895. sparc_address_test (0);
  8896. child = vfork ();
  8897. if (child == 0) {
  8898. /* Here is another test for sparc vfork register problems. This
  8899. test uses lots of local variables, at least as many local
  8900. variables as main has allocated so far including compiler
  8901. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8902. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8903. reuse the register of parent for one of the local variables,
  8904. since it will think that parent can't possibly be used any more
  8905. in this routine. Assigning to the local variable will thus
  8906. munge parent in the parent process. */
  8907. pid_t
  8908. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8909. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8910. /* Convince the compiler that p..p7 are live; otherwise, it might
  8911. use the same hardware register for all 8 local variables. */
  8912. if (p != p1 || p != p2 || p != p3 || p != p4
  8913. || p != p5 || p != p6 || p != p7)
  8914. _exit(1);
  8915. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8916. from child file descriptors. If the child closes a descriptor
  8917. before it execs or exits, this munges the parent's descriptor
  8918. as well. Test for this by closing stdout in the child. */
  8919. _exit(close(fileno(stdout)) != 0);
  8920. } else {
  8921. int status;
  8922. struct stat st;
  8923. while (wait(&status) != child)
  8924. ;
  8925. return (
  8926. /* Was there some problem with vforking? */
  8927. child < 0
  8928. /* Did the child fail? (This shouldn't happen.) */
  8929. || status
  8930. /* Did the vfork/compiler bug occur? */
  8931. || parent != getpid()
  8932. /* Did the file descriptor bug occur? */
  8933. || fstat(fileno(stdout), &st) != 0
  8934. );
  8935. }
  8936. }
  8937. _ACEOF
  8938. rm -f conftest$ac_exeext
  8939. if { (ac_try="$ac_link"
  8940. case "(($ac_try" in
  8941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8942. *) ac_try_echo=$ac_try;;
  8943. esac
  8944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8945. (eval "$ac_link") 2>&5
  8946. ac_status=$?
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8949. { (case "(($ac_try" in
  8950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8951. *) ac_try_echo=$ac_try;;
  8952. esac
  8953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8954. (eval "$ac_try") 2>&5
  8955. ac_status=$?
  8956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8957. (exit $ac_status); }; }; then
  8958. ac_cv_func_vfork_works=yes
  8959. else
  8960. echo "$as_me: program exited with status $ac_status" >&5
  8961. echo "$as_me: failed program was:" >&5
  8962. sed 's/^/| /' conftest.$ac_ext >&5
  8963. ( exit $ac_status )
  8964. ac_cv_func_vfork_works=no
  8965. fi
  8966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8967. fi
  8968. fi
  8969. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8970. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  8971. fi;
  8972. if test "x$ac_cv_func_fork_works" = xcross; then
  8973. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8974. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8975. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8976. fi
  8977. if test "x$ac_cv_func_vfork_works" = xyes; then
  8978. cat >>confdefs.h <<\_ACEOF
  8979. #define HAVE_WORKING_VFORK 1
  8980. _ACEOF
  8981. else
  8982. cat >>confdefs.h <<\_ACEOF
  8983. #define vfork fork
  8984. _ACEOF
  8985. fi
  8986. if test "x$ac_cv_func_fork_works" = xyes; then
  8987. cat >>confdefs.h <<\_ACEOF
  8988. #define HAVE_WORKING_FORK 1
  8989. _ACEOF
  8990. fi
  8991. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8992. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  8993. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8994. echo $ECHO_N "(cached) $ECHO_C" >&6
  8995. else
  8996. rm -f conftest.sym conftest.file
  8997. echo >conftest.file
  8998. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8999. if test "$cross_compiling" = yes; then
  9000. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9001. else
  9002. cat >conftest.$ac_ext <<_ACEOF
  9003. /* confdefs.h. */
  9004. _ACEOF
  9005. cat confdefs.h >>conftest.$ac_ext
  9006. cat >>conftest.$ac_ext <<_ACEOF
  9007. /* end confdefs.h. */
  9008. $ac_includes_default
  9009. int
  9010. main ()
  9011. {
  9012. struct stat sbuf;
  9013. /* Linux will dereference the symlink and fail.
  9014. That is better in the sense that it means we will not
  9015. have to compile and use the lstat wrapper. */
  9016. return lstat ("conftest.sym/", &sbuf) == 0;
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. rm -f conftest$ac_exeext
  9022. if { (ac_try="$ac_link"
  9023. case "(($ac_try" in
  9024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9025. *) ac_try_echo=$ac_try;;
  9026. esac
  9027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9028. (eval "$ac_link") 2>&5
  9029. ac_status=$?
  9030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9032. { (case "(($ac_try" in
  9033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9034. *) ac_try_echo=$ac_try;;
  9035. esac
  9036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9037. (eval "$ac_try") 2>&5
  9038. ac_status=$?
  9039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9040. (exit $ac_status); }; }; then
  9041. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9042. else
  9043. echo "$as_me: program exited with status $ac_status" >&5
  9044. echo "$as_me: failed program was:" >&5
  9045. sed 's/^/| /' conftest.$ac_ext >&5
  9046. ( exit $ac_status )
  9047. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9048. fi
  9049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9050. fi
  9051. else
  9052. # If the `ln -s' command failed, then we probably don't even
  9053. # have an lstat function.
  9054. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9055. fi
  9056. rm -f conftest.sym conftest.file
  9057. fi
  9058. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9059. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9060. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9061. cat >>confdefs.h <<_ACEOF
  9062. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9063. _ACEOF
  9064. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9065. case " $LIBOBJS " in
  9066. *" lstat.$ac_objext "* ) ;;
  9067. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9068. ;;
  9069. esac
  9070. fi
  9071. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9072. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  9073. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9074. echo $ECHO_N "(cached) $ECHO_C" >&6
  9075. else
  9076. if test "$cross_compiling" = yes; then
  9077. ac_cv_func_lstat_empty_string_bug=yes
  9078. else
  9079. cat >conftest.$ac_ext <<_ACEOF
  9080. /* confdefs.h. */
  9081. _ACEOF
  9082. cat confdefs.h >>conftest.$ac_ext
  9083. cat >>conftest.$ac_ext <<_ACEOF
  9084. /* end confdefs.h. */
  9085. $ac_includes_default
  9086. int
  9087. main ()
  9088. {
  9089. struct stat sbuf;
  9090. return lstat ("", &sbuf) == 0;
  9091. ;
  9092. return 0;
  9093. }
  9094. _ACEOF
  9095. rm -f conftest$ac_exeext
  9096. if { (ac_try="$ac_link"
  9097. case "(($ac_try" in
  9098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9099. *) ac_try_echo=$ac_try;;
  9100. esac
  9101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9102. (eval "$ac_link") 2>&5
  9103. ac_status=$?
  9104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9105. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9106. { (case "(($ac_try" in
  9107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9108. *) ac_try_echo=$ac_try;;
  9109. esac
  9110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9111. (eval "$ac_try") 2>&5
  9112. ac_status=$?
  9113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9114. (exit $ac_status); }; }; then
  9115. ac_cv_func_lstat_empty_string_bug=no
  9116. else
  9117. echo "$as_me: program exited with status $ac_status" >&5
  9118. echo "$as_me: failed program was:" >&5
  9119. sed 's/^/| /' conftest.$ac_ext >&5
  9120. ( exit $ac_status )
  9121. ac_cv_func_lstat_empty_string_bug=yes
  9122. fi
  9123. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9124. fi
  9125. fi
  9126. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9127. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  9128. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9129. case " $LIBOBJS " in
  9130. *" lstat.$ac_objext "* ) ;;
  9131. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9132. ;;
  9133. esac
  9134. cat >>confdefs.h <<_ACEOF
  9135. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9136. _ACEOF
  9137. fi
  9138. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9139. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  9140. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9141. echo $ECHO_N "(cached) $ECHO_C" >&6
  9142. else
  9143. rm -f conftest.sym conftest.file
  9144. echo >conftest.file
  9145. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9146. if test "$cross_compiling" = yes; then
  9147. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9148. else
  9149. cat >conftest.$ac_ext <<_ACEOF
  9150. /* confdefs.h. */
  9151. _ACEOF
  9152. cat confdefs.h >>conftest.$ac_ext
  9153. cat >>conftest.$ac_ext <<_ACEOF
  9154. /* end confdefs.h. */
  9155. $ac_includes_default
  9156. int
  9157. main ()
  9158. {
  9159. struct stat sbuf;
  9160. /* Linux will dereference the symlink and fail.
  9161. That is better in the sense that it means we will not
  9162. have to compile and use the lstat wrapper. */
  9163. return lstat ("conftest.sym/", &sbuf) == 0;
  9164. ;
  9165. return 0;
  9166. }
  9167. _ACEOF
  9168. rm -f conftest$ac_exeext
  9169. if { (ac_try="$ac_link"
  9170. case "(($ac_try" in
  9171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9172. *) ac_try_echo=$ac_try;;
  9173. esac
  9174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9175. (eval "$ac_link") 2>&5
  9176. ac_status=$?
  9177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9178. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9179. { (case "(($ac_try" in
  9180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9181. *) ac_try_echo=$ac_try;;
  9182. esac
  9183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9184. (eval "$ac_try") 2>&5
  9185. ac_status=$?
  9186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9187. (exit $ac_status); }; }; then
  9188. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9189. else
  9190. echo "$as_me: program exited with status $ac_status" >&5
  9191. echo "$as_me: failed program was:" >&5
  9192. sed 's/^/| /' conftest.$ac_ext >&5
  9193. ( exit $ac_status )
  9194. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9195. fi
  9196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9197. fi
  9198. else
  9199. # If the `ln -s' command failed, then we probably don't even
  9200. # have an lstat function.
  9201. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9202. fi
  9203. rm -f conftest.sym conftest.file
  9204. fi
  9205. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9206. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9207. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9208. cat >>confdefs.h <<_ACEOF
  9209. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9210. _ACEOF
  9211. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9212. case " $LIBOBJS " in
  9213. *" lstat.$ac_objext "* ) ;;
  9214. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9215. ;;
  9216. esac
  9217. fi
  9218. for ac_header in stdlib.h
  9219. do
  9220. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9221. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9222. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9223. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9224. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9225. echo $ECHO_N "(cached) $ECHO_C" >&6
  9226. fi
  9227. ac_res=`eval echo '${'$as_ac_Header'}'`
  9228. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9229. echo "${ECHO_T}$ac_res" >&6; }
  9230. else
  9231. # Is the header compilable?
  9232. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9233. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9234. cat >conftest.$ac_ext <<_ACEOF
  9235. /* confdefs.h. */
  9236. _ACEOF
  9237. cat confdefs.h >>conftest.$ac_ext
  9238. cat >>conftest.$ac_ext <<_ACEOF
  9239. /* end confdefs.h. */
  9240. $ac_includes_default
  9241. #include <$ac_header>
  9242. _ACEOF
  9243. rm -f conftest.$ac_objext
  9244. if { (ac_try="$ac_compile"
  9245. case "(($ac_try" in
  9246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9247. *) ac_try_echo=$ac_try;;
  9248. esac
  9249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9250. (eval "$ac_compile") 2>conftest.er1
  9251. ac_status=$?
  9252. grep -v '^ *+' conftest.er1 >conftest.err
  9253. rm -f conftest.er1
  9254. cat conftest.err >&5
  9255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9256. (exit $ac_status); } &&
  9257. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9258. { (case "(($ac_try" in
  9259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9260. *) ac_try_echo=$ac_try;;
  9261. esac
  9262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9263. (eval "$ac_try") 2>&5
  9264. ac_status=$?
  9265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9266. (exit $ac_status); }; } &&
  9267. { ac_try='test -s conftest.$ac_objext'
  9268. { (case "(($ac_try" in
  9269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9270. *) ac_try_echo=$ac_try;;
  9271. esac
  9272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9273. (eval "$ac_try") 2>&5
  9274. ac_status=$?
  9275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9276. (exit $ac_status); }; }; then
  9277. ac_header_compiler=yes
  9278. else
  9279. echo "$as_me: failed program was:" >&5
  9280. sed 's/^/| /' conftest.$ac_ext >&5
  9281. ac_header_compiler=no
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9284. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9285. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9286. # Is the header present?
  9287. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9288. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9289. cat >conftest.$ac_ext <<_ACEOF
  9290. /* confdefs.h. */
  9291. _ACEOF
  9292. cat confdefs.h >>conftest.$ac_ext
  9293. cat >>conftest.$ac_ext <<_ACEOF
  9294. /* end confdefs.h. */
  9295. #include <$ac_header>
  9296. _ACEOF
  9297. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9298. case "(($ac_try" in
  9299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9300. *) ac_try_echo=$ac_try;;
  9301. esac
  9302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9303. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9304. ac_status=$?
  9305. grep -v '^ *+' conftest.er1 >conftest.err
  9306. rm -f conftest.er1
  9307. cat conftest.err >&5
  9308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9309. (exit $ac_status); } >/dev/null; then
  9310. if test -s conftest.err; then
  9311. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9312. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9313. else
  9314. ac_cpp_err=
  9315. fi
  9316. else
  9317. ac_cpp_err=yes
  9318. fi
  9319. if test -z "$ac_cpp_err"; then
  9320. ac_header_preproc=yes
  9321. else
  9322. echo "$as_me: failed program was:" >&5
  9323. sed 's/^/| /' conftest.$ac_ext >&5
  9324. ac_header_preproc=no
  9325. fi
  9326. rm -f conftest.err conftest.$ac_ext
  9327. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9328. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9329. # So? What about this header?
  9330. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9331. yes:no: )
  9332. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9333. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9334. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9335. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9336. ac_header_preproc=yes
  9337. ;;
  9338. no:yes:* )
  9339. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9340. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9341. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9342. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9343. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9344. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9345. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9346. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9347. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9348. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9349. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9350. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9351. ;;
  9352. esac
  9353. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9356. echo $ECHO_N "(cached) $ECHO_C" >&6
  9357. else
  9358. eval "$as_ac_Header=\$ac_header_preproc"
  9359. fi
  9360. ac_res=`eval echo '${'$as_ac_Header'}'`
  9361. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9362. echo "${ECHO_T}$ac_res" >&6; }
  9363. fi
  9364. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9365. cat >>confdefs.h <<_ACEOF
  9366. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9367. _ACEOF
  9368. fi
  9369. done
  9370. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9371. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9372. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9373. echo $ECHO_N "(cached) $ECHO_C" >&6
  9374. else
  9375. if test "$cross_compiling" = yes; then
  9376. ac_cv_func_malloc_0_nonnull=no
  9377. else
  9378. cat >conftest.$ac_ext <<_ACEOF
  9379. /* confdefs.h. */
  9380. _ACEOF
  9381. cat confdefs.h >>conftest.$ac_ext
  9382. cat >>conftest.$ac_ext <<_ACEOF
  9383. /* end confdefs.h. */
  9384. #if STDC_HEADERS || HAVE_STDLIB_H
  9385. # include <stdlib.h>
  9386. #else
  9387. char *malloc ();
  9388. #endif
  9389. int
  9390. main ()
  9391. {
  9392. return ! malloc (0);
  9393. ;
  9394. return 0;
  9395. }
  9396. _ACEOF
  9397. rm -f conftest$ac_exeext
  9398. if { (ac_try="$ac_link"
  9399. case "(($ac_try" in
  9400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9401. *) ac_try_echo=$ac_try;;
  9402. esac
  9403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9404. (eval "$ac_link") 2>&5
  9405. ac_status=$?
  9406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9407. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9408. { (case "(($ac_try" in
  9409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9410. *) ac_try_echo=$ac_try;;
  9411. esac
  9412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9413. (eval "$ac_try") 2>&5
  9414. ac_status=$?
  9415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9416. (exit $ac_status); }; }; then
  9417. ac_cv_func_malloc_0_nonnull=yes
  9418. else
  9419. echo "$as_me: program exited with status $ac_status" >&5
  9420. echo "$as_me: failed program was:" >&5
  9421. sed 's/^/| /' conftest.$ac_ext >&5
  9422. ( exit $ac_status )
  9423. ac_cv_func_malloc_0_nonnull=no
  9424. fi
  9425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9426. fi
  9427. fi
  9428. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9429. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9430. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9431. cat >>confdefs.h <<\_ACEOF
  9432. #define HAVE_MALLOC 1
  9433. _ACEOF
  9434. else
  9435. cat >>confdefs.h <<\_ACEOF
  9436. #define HAVE_MALLOC 0
  9437. _ACEOF
  9438. case " $LIBOBJS " in
  9439. *" malloc.$ac_objext "* ) ;;
  9440. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9441. ;;
  9442. esac
  9443. cat >>confdefs.h <<\_ACEOF
  9444. #define malloc rpl_malloc
  9445. _ACEOF
  9446. fi
  9447. for ac_header in stdlib.h sys/time.h unistd.h
  9448. do
  9449. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9450. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9451. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9452. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9454. echo $ECHO_N "(cached) $ECHO_C" >&6
  9455. fi
  9456. ac_res=`eval echo '${'$as_ac_Header'}'`
  9457. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9458. echo "${ECHO_T}$ac_res" >&6; }
  9459. else
  9460. # Is the header compilable?
  9461. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9462. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9463. cat >conftest.$ac_ext <<_ACEOF
  9464. /* confdefs.h. */
  9465. _ACEOF
  9466. cat confdefs.h >>conftest.$ac_ext
  9467. cat >>conftest.$ac_ext <<_ACEOF
  9468. /* end confdefs.h. */
  9469. $ac_includes_default
  9470. #include <$ac_header>
  9471. _ACEOF
  9472. rm -f conftest.$ac_objext
  9473. if { (ac_try="$ac_compile"
  9474. case "(($ac_try" in
  9475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9476. *) ac_try_echo=$ac_try;;
  9477. esac
  9478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9479. (eval "$ac_compile") 2>conftest.er1
  9480. ac_status=$?
  9481. grep -v '^ *+' conftest.er1 >conftest.err
  9482. rm -f conftest.er1
  9483. cat conftest.err >&5
  9484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); } &&
  9486. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9487. { (case "(($ac_try" in
  9488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9489. *) ac_try_echo=$ac_try;;
  9490. esac
  9491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9492. (eval "$ac_try") 2>&5
  9493. ac_status=$?
  9494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9495. (exit $ac_status); }; } &&
  9496. { ac_try='test -s conftest.$ac_objext'
  9497. { (case "(($ac_try" in
  9498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9499. *) ac_try_echo=$ac_try;;
  9500. esac
  9501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9502. (eval "$ac_try") 2>&5
  9503. ac_status=$?
  9504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9505. (exit $ac_status); }; }; then
  9506. ac_header_compiler=yes
  9507. else
  9508. echo "$as_me: failed program was:" >&5
  9509. sed 's/^/| /' conftest.$ac_ext >&5
  9510. ac_header_compiler=no
  9511. fi
  9512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9513. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9514. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9515. # Is the header present?
  9516. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9517. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9518. cat >conftest.$ac_ext <<_ACEOF
  9519. /* confdefs.h. */
  9520. _ACEOF
  9521. cat confdefs.h >>conftest.$ac_ext
  9522. cat >>conftest.$ac_ext <<_ACEOF
  9523. /* end confdefs.h. */
  9524. #include <$ac_header>
  9525. _ACEOF
  9526. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9527. case "(($ac_try" in
  9528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9529. *) ac_try_echo=$ac_try;;
  9530. esac
  9531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9533. ac_status=$?
  9534. grep -v '^ *+' conftest.er1 >conftest.err
  9535. rm -f conftest.er1
  9536. cat conftest.err >&5
  9537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9538. (exit $ac_status); } >/dev/null; then
  9539. if test -s conftest.err; then
  9540. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9541. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9542. else
  9543. ac_cpp_err=
  9544. fi
  9545. else
  9546. ac_cpp_err=yes
  9547. fi
  9548. if test -z "$ac_cpp_err"; then
  9549. ac_header_preproc=yes
  9550. else
  9551. echo "$as_me: failed program was:" >&5
  9552. sed 's/^/| /' conftest.$ac_ext >&5
  9553. ac_header_preproc=no
  9554. fi
  9555. rm -f conftest.err conftest.$ac_ext
  9556. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9557. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9558. # So? What about this header?
  9559. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9560. yes:no: )
  9561. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9562. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9563. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9564. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9565. ac_header_preproc=yes
  9566. ;;
  9567. no:yes:* )
  9568. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9569. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9570. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9571. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9572. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9573. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9574. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9575. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9576. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9577. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9578. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9579. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9580. ;;
  9581. esac
  9582. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9583. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9584. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9585. echo $ECHO_N "(cached) $ECHO_C" >&6
  9586. else
  9587. eval "$as_ac_Header=\$ac_header_preproc"
  9588. fi
  9589. ac_res=`eval echo '${'$as_ac_Header'}'`
  9590. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9591. echo "${ECHO_T}$ac_res" >&6; }
  9592. fi
  9593. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9594. cat >>confdefs.h <<_ACEOF
  9595. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9596. _ACEOF
  9597. fi
  9598. done
  9599. for ac_func in alarm
  9600. do
  9601. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9602. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9603. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9604. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9605. echo $ECHO_N "(cached) $ECHO_C" >&6
  9606. else
  9607. cat >conftest.$ac_ext <<_ACEOF
  9608. /* confdefs.h. */
  9609. _ACEOF
  9610. cat confdefs.h >>conftest.$ac_ext
  9611. cat >>conftest.$ac_ext <<_ACEOF
  9612. /* end confdefs.h. */
  9613. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9614. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9615. #define $ac_func innocuous_$ac_func
  9616. /* System header to define __stub macros and hopefully few prototypes,
  9617. which can conflict with char $ac_func (); below.
  9618. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9619. <limits.h> exists even on freestanding compilers. */
  9620. #ifdef __STDC__
  9621. # include <limits.h>
  9622. #else
  9623. # include <assert.h>
  9624. #endif
  9625. #undef $ac_func
  9626. /* Override any GCC internal prototype to avoid an error.
  9627. Use char because int might match the return type of a GCC
  9628. builtin and then its argument prototype would still apply. */
  9629. #ifdef __cplusplus
  9630. extern "C"
  9631. #endif
  9632. char $ac_func ();
  9633. /* The GNU C library defines this for functions which it implements
  9634. to always fail with ENOSYS. Some functions are actually named
  9635. something starting with __ and the normal name is an alias. */
  9636. #if defined __stub_$ac_func || defined __stub___$ac_func
  9637. choke me
  9638. #endif
  9639. int
  9640. main ()
  9641. {
  9642. return $ac_func ();
  9643. ;
  9644. return 0;
  9645. }
  9646. _ACEOF
  9647. rm -f conftest.$ac_objext conftest$ac_exeext
  9648. if { (ac_try="$ac_link"
  9649. case "(($ac_try" in
  9650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9651. *) ac_try_echo=$ac_try;;
  9652. esac
  9653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9654. (eval "$ac_link") 2>conftest.er1
  9655. ac_status=$?
  9656. grep -v '^ *+' conftest.er1 >conftest.err
  9657. rm -f conftest.er1
  9658. cat conftest.err >&5
  9659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9660. (exit $ac_status); } &&
  9661. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9662. { (case "(($ac_try" in
  9663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9664. *) ac_try_echo=$ac_try;;
  9665. esac
  9666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9667. (eval "$ac_try") 2>&5
  9668. ac_status=$?
  9669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9670. (exit $ac_status); }; } &&
  9671. { ac_try='test -s conftest$ac_exeext'
  9672. { (case "(($ac_try" in
  9673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9674. *) ac_try_echo=$ac_try;;
  9675. esac
  9676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9677. (eval "$ac_try") 2>&5
  9678. ac_status=$?
  9679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9680. (exit $ac_status); }; }; then
  9681. eval "$as_ac_var=yes"
  9682. else
  9683. echo "$as_me: failed program was:" >&5
  9684. sed 's/^/| /' conftest.$ac_ext >&5
  9685. eval "$as_ac_var=no"
  9686. fi
  9687. rm -f core conftest.err conftest.$ac_objext \
  9688. conftest$ac_exeext conftest.$ac_ext
  9689. fi
  9690. ac_res=`eval echo '${'$as_ac_var'}'`
  9691. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9692. echo "${ECHO_T}$ac_res" >&6; }
  9693. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9694. cat >>confdefs.h <<_ACEOF
  9695. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9696. _ACEOF
  9697. fi
  9698. done
  9699. { echo "$as_me:$LINENO: checking for working mktime" >&5
  9700. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  9701. if test "${ac_cv_func_working_mktime+set}" = set; then
  9702. echo $ECHO_N "(cached) $ECHO_C" >&6
  9703. else
  9704. if test "$cross_compiling" = yes; then
  9705. ac_cv_func_working_mktime=no
  9706. else
  9707. cat >conftest.$ac_ext <<_ACEOF
  9708. /* confdefs.h. */
  9709. _ACEOF
  9710. cat confdefs.h >>conftest.$ac_ext
  9711. cat >>conftest.$ac_ext <<_ACEOF
  9712. /* end confdefs.h. */
  9713. /* Test program from Paul Eggert and Tony Leneis. */
  9714. #if TIME_WITH_SYS_TIME
  9715. # include <sys/time.h>
  9716. # include <time.h>
  9717. #else
  9718. # if HAVE_SYS_TIME_H
  9719. # include <sys/time.h>
  9720. # else
  9721. # include <time.h>
  9722. # endif
  9723. #endif
  9724. #if HAVE_STDLIB_H
  9725. # include <stdlib.h>
  9726. #endif
  9727. #if HAVE_UNISTD_H
  9728. # include <unistd.h>
  9729. #endif
  9730. #if !HAVE_ALARM
  9731. # define alarm(X) /* empty */
  9732. #endif
  9733. /* Work around redefinition to rpl_putenv by other config tests. */
  9734. #undef putenv
  9735. static time_t time_t_max;
  9736. static time_t time_t_min;
  9737. /* Values we'll use to set the TZ environment variable. */
  9738. static char *tz_strings[] = {
  9739. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9740. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9741. };
  9742. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9743. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  9744. Based on a problem report from Andreas Jaeger. */
  9745. static int
  9746. spring_forward_gap ()
  9747. {
  9748. /* glibc (up to about 1998-10-07) failed this test. */
  9749. struct tm tm;
  9750. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9751. instead of "TZ=America/Vancouver" in order to detect the bug even
  9752. on systems that don't support the Olson extension, or don't have the
  9753. full zoneinfo tables installed. */
  9754. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9755. tm.tm_year = 98;
  9756. tm.tm_mon = 3;
  9757. tm.tm_mday = 5;
  9758. tm.tm_hour = 2;
  9759. tm.tm_min = 0;
  9760. tm.tm_sec = 0;
  9761. tm.tm_isdst = -1;
  9762. return mktime (&tm) != (time_t) -1;
  9763. }
  9764. static int
  9765. mktime_test1 (now)
  9766. time_t now;
  9767. {
  9768. struct tm *lt;
  9769. return ! (lt = localtime (&now)) || mktime (lt) == now;
  9770. }
  9771. static int
  9772. mktime_test (now)
  9773. time_t now;
  9774. {
  9775. return (mktime_test1 (now)
  9776. && mktime_test1 ((time_t) (time_t_max - now))
  9777. && mktime_test1 ((time_t) (time_t_min + now)));
  9778. }
  9779. static int
  9780. irix_6_4_bug ()
  9781. {
  9782. /* Based on code from Ariel Faigon. */
  9783. struct tm tm;
  9784. tm.tm_year = 96;
  9785. tm.tm_mon = 3;
  9786. tm.tm_mday = 0;
  9787. tm.tm_hour = 0;
  9788. tm.tm_min = 0;
  9789. tm.tm_sec = 0;
  9790. tm.tm_isdst = -1;
  9791. mktime (&tm);
  9792. return tm.tm_mon == 2 && tm.tm_mday == 31;
  9793. }
  9794. static int
  9795. bigtime_test (j)
  9796. int j;
  9797. {
  9798. struct tm tm;
  9799. time_t now;
  9800. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9801. now = mktime (&tm);
  9802. if (now != (time_t) -1)
  9803. {
  9804. struct tm *lt = localtime (&now);
  9805. if (! (lt
  9806. && lt->tm_year == tm.tm_year
  9807. && lt->tm_mon == tm.tm_mon
  9808. && lt->tm_mday == tm.tm_mday
  9809. && lt->tm_hour == tm.tm_hour
  9810. && lt->tm_min == tm.tm_min
  9811. && lt->tm_sec == tm.tm_sec
  9812. && lt->tm_yday == tm.tm_yday
  9813. && lt->tm_wday == tm.tm_wday
  9814. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9815. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9816. return 0;
  9817. }
  9818. return 1;
  9819. }
  9820. int
  9821. main ()
  9822. {
  9823. time_t t, delta;
  9824. int i, j;
  9825. /* This test makes some buggy mktime implementations loop.
  9826. Give up after 60 seconds; a mktime slower than that
  9827. isn't worth using anyway. */
  9828. alarm (60);
  9829. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9830. continue;
  9831. time_t_max--;
  9832. if ((time_t) -1 < 0)
  9833. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9834. continue;
  9835. delta = time_t_max / 997; /* a suitable prime number */
  9836. for (i = 0; i < N_STRINGS; i++)
  9837. {
  9838. if (tz_strings[i])
  9839. putenv (tz_strings[i]);
  9840. for (t = 0; t <= time_t_max - delta; t += delta)
  9841. if (! mktime_test (t))
  9842. return 1;
  9843. if (! (mktime_test ((time_t) 1)
  9844. && mktime_test ((time_t) (60 * 60))
  9845. && mktime_test ((time_t) (60 * 60 * 24))))
  9846. return 1;
  9847. for (j = 1; 0 < j; j *= 2)
  9848. if (! bigtime_test (j))
  9849. return 1;
  9850. if (! bigtime_test (j - 1))
  9851. return 1;
  9852. }
  9853. return ! (irix_6_4_bug () && spring_forward_gap ());
  9854. }
  9855. _ACEOF
  9856. rm -f conftest$ac_exeext
  9857. if { (ac_try="$ac_link"
  9858. case "(($ac_try" in
  9859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9860. *) ac_try_echo=$ac_try;;
  9861. esac
  9862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9863. (eval "$ac_link") 2>&5
  9864. ac_status=$?
  9865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9866. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9867. { (case "(($ac_try" in
  9868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9869. *) ac_try_echo=$ac_try;;
  9870. esac
  9871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9872. (eval "$ac_try") 2>&5
  9873. ac_status=$?
  9874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9875. (exit $ac_status); }; }; then
  9876. ac_cv_func_working_mktime=yes
  9877. else
  9878. echo "$as_me: program exited with status $ac_status" >&5
  9879. echo "$as_me: failed program was:" >&5
  9880. sed 's/^/| /' conftest.$ac_ext >&5
  9881. ( exit $ac_status )
  9882. ac_cv_func_working_mktime=no
  9883. fi
  9884. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9885. fi
  9886. fi
  9887. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9888. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  9889. if test $ac_cv_func_working_mktime = no; then
  9890. case " $LIBOBJS " in
  9891. *" mktime.$ac_objext "* ) ;;
  9892. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  9893. ;;
  9894. esac
  9895. fi
  9896. for ac_header in stdlib.h unistd.h
  9897. do
  9898. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9899. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9900. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9902. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9903. echo $ECHO_N "(cached) $ECHO_C" >&6
  9904. fi
  9905. ac_res=`eval echo '${'$as_ac_Header'}'`
  9906. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9907. echo "${ECHO_T}$ac_res" >&6; }
  9908. else
  9909. # Is the header compilable?
  9910. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9911. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9912. cat >conftest.$ac_ext <<_ACEOF
  9913. /* confdefs.h. */
  9914. _ACEOF
  9915. cat confdefs.h >>conftest.$ac_ext
  9916. cat >>conftest.$ac_ext <<_ACEOF
  9917. /* end confdefs.h. */
  9918. $ac_includes_default
  9919. #include <$ac_header>
  9920. _ACEOF
  9921. rm -f conftest.$ac_objext
  9922. if { (ac_try="$ac_compile"
  9923. case "(($ac_try" in
  9924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9925. *) ac_try_echo=$ac_try;;
  9926. esac
  9927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9928. (eval "$ac_compile") 2>conftest.er1
  9929. ac_status=$?
  9930. grep -v '^ *+' conftest.er1 >conftest.err
  9931. rm -f conftest.er1
  9932. cat conftest.err >&5
  9933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9934. (exit $ac_status); } &&
  9935. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9936. { (case "(($ac_try" in
  9937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9938. *) ac_try_echo=$ac_try;;
  9939. esac
  9940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9941. (eval "$ac_try") 2>&5
  9942. ac_status=$?
  9943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9944. (exit $ac_status); }; } &&
  9945. { ac_try='test -s conftest.$ac_objext'
  9946. { (case "(($ac_try" in
  9947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9948. *) ac_try_echo=$ac_try;;
  9949. esac
  9950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9951. (eval "$ac_try") 2>&5
  9952. ac_status=$?
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); }; }; then
  9955. ac_header_compiler=yes
  9956. else
  9957. echo "$as_me: failed program was:" >&5
  9958. sed 's/^/| /' conftest.$ac_ext >&5
  9959. ac_header_compiler=no
  9960. fi
  9961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9962. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9963. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9964. # Is the header present?
  9965. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9966. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9967. cat >conftest.$ac_ext <<_ACEOF
  9968. /* confdefs.h. */
  9969. _ACEOF
  9970. cat confdefs.h >>conftest.$ac_ext
  9971. cat >>conftest.$ac_ext <<_ACEOF
  9972. /* end confdefs.h. */
  9973. #include <$ac_header>
  9974. _ACEOF
  9975. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9976. case "(($ac_try" in
  9977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9978. *) ac_try_echo=$ac_try;;
  9979. esac
  9980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9981. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9982. ac_status=$?
  9983. grep -v '^ *+' conftest.er1 >conftest.err
  9984. rm -f conftest.er1
  9985. cat conftest.err >&5
  9986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9987. (exit $ac_status); } >/dev/null; then
  9988. if test -s conftest.err; then
  9989. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9990. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9991. else
  9992. ac_cpp_err=
  9993. fi
  9994. else
  9995. ac_cpp_err=yes
  9996. fi
  9997. if test -z "$ac_cpp_err"; then
  9998. ac_header_preproc=yes
  9999. else
  10000. echo "$as_me: failed program was:" >&5
  10001. sed 's/^/| /' conftest.$ac_ext >&5
  10002. ac_header_preproc=no
  10003. fi
  10004. rm -f conftest.err conftest.$ac_ext
  10005. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10006. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10007. # So? What about this header?
  10008. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10009. yes:no: )
  10010. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10011. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10012. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10013. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10014. ac_header_preproc=yes
  10015. ;;
  10016. no:yes:* )
  10017. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10018. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10019. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10020. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10021. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10022. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10023. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10024. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10025. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10026. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10027. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10028. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10029. ;;
  10030. esac
  10031. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10032. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10033. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10034. echo $ECHO_N "(cached) $ECHO_C" >&6
  10035. else
  10036. eval "$as_ac_Header=\$ac_header_preproc"
  10037. fi
  10038. ac_res=`eval echo '${'$as_ac_Header'}'`
  10039. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10040. echo "${ECHO_T}$ac_res" >&6; }
  10041. fi
  10042. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10043. cat >>confdefs.h <<_ACEOF
  10044. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10045. _ACEOF
  10046. fi
  10047. done
  10048. for ac_func in getpagesize
  10049. do
  10050. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10051. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10052. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10053. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10054. echo $ECHO_N "(cached) $ECHO_C" >&6
  10055. else
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10063. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10064. #define $ac_func innocuous_$ac_func
  10065. /* System header to define __stub macros and hopefully few prototypes,
  10066. which can conflict with char $ac_func (); below.
  10067. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10068. <limits.h> exists even on freestanding compilers. */
  10069. #ifdef __STDC__
  10070. # include <limits.h>
  10071. #else
  10072. # include <assert.h>
  10073. #endif
  10074. #undef $ac_func
  10075. /* Override any GCC internal prototype to avoid an error.
  10076. Use char because int might match the return type of a GCC
  10077. builtin and then its argument prototype would still apply. */
  10078. #ifdef __cplusplus
  10079. extern "C"
  10080. #endif
  10081. char $ac_func ();
  10082. /* The GNU C library defines this for functions which it implements
  10083. to always fail with ENOSYS. Some functions are actually named
  10084. something starting with __ and the normal name is an alias. */
  10085. #if defined __stub_$ac_func || defined __stub___$ac_func
  10086. choke me
  10087. #endif
  10088. int
  10089. main ()
  10090. {
  10091. return $ac_func ();
  10092. ;
  10093. return 0;
  10094. }
  10095. _ACEOF
  10096. rm -f conftest.$ac_objext conftest$ac_exeext
  10097. if { (ac_try="$ac_link"
  10098. case "(($ac_try" in
  10099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10100. *) ac_try_echo=$ac_try;;
  10101. esac
  10102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10103. (eval "$ac_link") 2>conftest.er1
  10104. ac_status=$?
  10105. grep -v '^ *+' conftest.er1 >conftest.err
  10106. rm -f conftest.er1
  10107. cat conftest.err >&5
  10108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10109. (exit $ac_status); } &&
  10110. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10111. { (case "(($ac_try" in
  10112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10113. *) ac_try_echo=$ac_try;;
  10114. esac
  10115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10116. (eval "$ac_try") 2>&5
  10117. ac_status=$?
  10118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10119. (exit $ac_status); }; } &&
  10120. { ac_try='test -s conftest$ac_exeext'
  10121. { (case "(($ac_try" in
  10122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10123. *) ac_try_echo=$ac_try;;
  10124. esac
  10125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10126. (eval "$ac_try") 2>&5
  10127. ac_status=$?
  10128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10129. (exit $ac_status); }; }; then
  10130. eval "$as_ac_var=yes"
  10131. else
  10132. echo "$as_me: failed program was:" >&5
  10133. sed 's/^/| /' conftest.$ac_ext >&5
  10134. eval "$as_ac_var=no"
  10135. fi
  10136. rm -f core conftest.err conftest.$ac_objext \
  10137. conftest$ac_exeext conftest.$ac_ext
  10138. fi
  10139. ac_res=`eval echo '${'$as_ac_var'}'`
  10140. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10141. echo "${ECHO_T}$ac_res" >&6; }
  10142. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10143. cat >>confdefs.h <<_ACEOF
  10144. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10145. _ACEOF
  10146. fi
  10147. done
  10148. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10149. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10150. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10151. echo $ECHO_N "(cached) $ECHO_C" >&6
  10152. else
  10153. if test "$cross_compiling" = yes; then
  10154. ac_cv_func_mmap_fixed_mapped=no
  10155. else
  10156. cat >conftest.$ac_ext <<_ACEOF
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162. $ac_includes_default
  10163. /* malloc might have been renamed as rpl_malloc. */
  10164. #undef malloc
  10165. /* Thanks to Mike Haertel and Jim Avera for this test.
  10166. Here is a matrix of mmap possibilities:
  10167. mmap private not fixed
  10168. mmap private fixed at somewhere currently unmapped
  10169. mmap private fixed at somewhere already mapped
  10170. mmap shared not fixed
  10171. mmap shared fixed at somewhere currently unmapped
  10172. mmap shared fixed at somewhere already mapped
  10173. For private mappings, we should verify that changes cannot be read()
  10174. back from the file, nor mmap's back from the file at a different
  10175. address. (There have been systems where private was not correctly
  10176. implemented like the infamous i386 svr4.0, and systems where the
  10177. VM page cache was not coherent with the file system buffer cache
  10178. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10179. For shared mappings, we should conversely verify that changes get
  10180. propagated back to all the places they're supposed to be.
  10181. Grep wants private fixed already mapped.
  10182. The main things grep needs to know about mmap are:
  10183. * does it exist and is it safe to write into the mmap'd area
  10184. * how to use it (BSD variants) */
  10185. #include <fcntl.h>
  10186. #include <sys/mman.h>
  10187. #if !STDC_HEADERS && !HAVE_STDLIB_H
  10188. char *malloc ();
  10189. #endif
  10190. /* This mess was copied from the GNU getpagesize.h. */
  10191. #if !HAVE_GETPAGESIZE
  10192. /* Assume that all systems that can run configure have sys/param.h. */
  10193. # if !HAVE_SYS_PARAM_H
  10194. # define HAVE_SYS_PARAM_H 1
  10195. # endif
  10196. # ifdef _SC_PAGESIZE
  10197. # define getpagesize() sysconf(_SC_PAGESIZE)
  10198. # else /* no _SC_PAGESIZE */
  10199. # if HAVE_SYS_PARAM_H
  10200. # include <sys/param.h>
  10201. # ifdef EXEC_PAGESIZE
  10202. # define getpagesize() EXEC_PAGESIZE
  10203. # else /* no EXEC_PAGESIZE */
  10204. # ifdef NBPG
  10205. # define getpagesize() NBPG * CLSIZE
  10206. # ifndef CLSIZE
  10207. # define CLSIZE 1
  10208. # endif /* no CLSIZE */
  10209. # else /* no NBPG */
  10210. # ifdef NBPC
  10211. # define getpagesize() NBPC
  10212. # else /* no NBPC */
  10213. # ifdef PAGESIZE
  10214. # define getpagesize() PAGESIZE
  10215. # endif /* PAGESIZE */
  10216. # endif /* no NBPC */
  10217. # endif /* no NBPG */
  10218. # endif /* no EXEC_PAGESIZE */
  10219. # else /* no HAVE_SYS_PARAM_H */
  10220. # define getpagesize() 8192 /* punt totally */
  10221. # endif /* no HAVE_SYS_PARAM_H */
  10222. # endif /* no _SC_PAGESIZE */
  10223. #endif /* no HAVE_GETPAGESIZE */
  10224. int
  10225. main ()
  10226. {
  10227. char *data, *data2, *data3;
  10228. int i, pagesize;
  10229. int fd;
  10230. pagesize = getpagesize ();
  10231. /* First, make a file with some known garbage in it. */
  10232. data = (char *) malloc (pagesize);
  10233. if (!data)
  10234. return 1;
  10235. for (i = 0; i < pagesize; ++i)
  10236. *(data + i) = rand ();
  10237. umask (0);
  10238. fd = creat ("conftest.mmap", 0600);
  10239. if (fd < 0)
  10240. return 1;
  10241. if (write (fd, data, pagesize) != pagesize)
  10242. return 1;
  10243. close (fd);
  10244. /* Next, try to mmap the file at a fixed address which already has
  10245. something else allocated at it. If we can, also make sure that
  10246. we see the same garbage. */
  10247. fd = open ("conftest.mmap", O_RDWR);
  10248. if (fd < 0)
  10249. return 1;
  10250. data2 = (char *) malloc (2 * pagesize);
  10251. if (!data2)
  10252. return 1;
  10253. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10254. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10255. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10256. return 1;
  10257. for (i = 0; i < pagesize; ++i)
  10258. if (*(data + i) != *(data2 + i))
  10259. return 1;
  10260. /* Finally, make sure that changes to the mapped area do not
  10261. percolate back to the file as seen by read(). (This is a bug on
  10262. some variants of i386 svr4.0.) */
  10263. for (i = 0; i < pagesize; ++i)
  10264. *(data2 + i) = *(data2 + i) + 1;
  10265. data3 = (char *) malloc (pagesize);
  10266. if (!data3)
  10267. return 1;
  10268. if (read (fd, data3, pagesize) != pagesize)
  10269. return 1;
  10270. for (i = 0; i < pagesize; ++i)
  10271. if (*(data + i) != *(data3 + i))
  10272. return 1;
  10273. close (fd);
  10274. return 0;
  10275. }
  10276. _ACEOF
  10277. rm -f conftest$ac_exeext
  10278. if { (ac_try="$ac_link"
  10279. case "(($ac_try" in
  10280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10281. *) ac_try_echo=$ac_try;;
  10282. esac
  10283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10284. (eval "$ac_link") 2>&5
  10285. ac_status=$?
  10286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10287. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10288. { (case "(($ac_try" in
  10289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10290. *) ac_try_echo=$ac_try;;
  10291. esac
  10292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10293. (eval "$ac_try") 2>&5
  10294. ac_status=$?
  10295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10296. (exit $ac_status); }; }; then
  10297. ac_cv_func_mmap_fixed_mapped=yes
  10298. else
  10299. echo "$as_me: program exited with status $ac_status" >&5
  10300. echo "$as_me: failed program was:" >&5
  10301. sed 's/^/| /' conftest.$ac_ext >&5
  10302. ( exit $ac_status )
  10303. ac_cv_func_mmap_fixed_mapped=no
  10304. fi
  10305. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10306. fi
  10307. fi
  10308. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10309. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10310. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10311. cat >>confdefs.h <<\_ACEOF
  10312. #define HAVE_MMAP 1
  10313. _ACEOF
  10314. fi
  10315. rm -f conftest.mmap
  10316. for ac_header in stdlib.h
  10317. do
  10318. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10319. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10320. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10321. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10322. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10323. echo $ECHO_N "(cached) $ECHO_C" >&6
  10324. fi
  10325. ac_res=`eval echo '${'$as_ac_Header'}'`
  10326. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10327. echo "${ECHO_T}$ac_res" >&6; }
  10328. else
  10329. # Is the header compilable?
  10330. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10331. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10332. cat >conftest.$ac_ext <<_ACEOF
  10333. /* confdefs.h. */
  10334. _ACEOF
  10335. cat confdefs.h >>conftest.$ac_ext
  10336. cat >>conftest.$ac_ext <<_ACEOF
  10337. /* end confdefs.h. */
  10338. $ac_includes_default
  10339. #include <$ac_header>
  10340. _ACEOF
  10341. rm -f conftest.$ac_objext
  10342. if { (ac_try="$ac_compile"
  10343. case "(($ac_try" in
  10344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10345. *) ac_try_echo=$ac_try;;
  10346. esac
  10347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10348. (eval "$ac_compile") 2>conftest.er1
  10349. ac_status=$?
  10350. grep -v '^ *+' conftest.er1 >conftest.err
  10351. rm -f conftest.er1
  10352. cat conftest.err >&5
  10353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10354. (exit $ac_status); } &&
  10355. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10356. { (case "(($ac_try" in
  10357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10358. *) ac_try_echo=$ac_try;;
  10359. esac
  10360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10361. (eval "$ac_try") 2>&5
  10362. ac_status=$?
  10363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10364. (exit $ac_status); }; } &&
  10365. { ac_try='test -s conftest.$ac_objext'
  10366. { (case "(($ac_try" in
  10367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10368. *) ac_try_echo=$ac_try;;
  10369. esac
  10370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10371. (eval "$ac_try") 2>&5
  10372. ac_status=$?
  10373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10374. (exit $ac_status); }; }; then
  10375. ac_header_compiler=yes
  10376. else
  10377. echo "$as_me: failed program was:" >&5
  10378. sed 's/^/| /' conftest.$ac_ext >&5
  10379. ac_header_compiler=no
  10380. fi
  10381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10382. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10383. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10384. # Is the header present?
  10385. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10386. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10387. cat >conftest.$ac_ext <<_ACEOF
  10388. /* confdefs.h. */
  10389. _ACEOF
  10390. cat confdefs.h >>conftest.$ac_ext
  10391. cat >>conftest.$ac_ext <<_ACEOF
  10392. /* end confdefs.h. */
  10393. #include <$ac_header>
  10394. _ACEOF
  10395. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10396. case "(($ac_try" in
  10397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10398. *) ac_try_echo=$ac_try;;
  10399. esac
  10400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10401. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10402. ac_status=$?
  10403. grep -v '^ *+' conftest.er1 >conftest.err
  10404. rm -f conftest.er1
  10405. cat conftest.err >&5
  10406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10407. (exit $ac_status); } >/dev/null; then
  10408. if test -s conftest.err; then
  10409. ac_cpp_err=$ac_cxx_preproc_warn_flag
  10410. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  10411. else
  10412. ac_cpp_err=
  10413. fi
  10414. else
  10415. ac_cpp_err=yes
  10416. fi
  10417. if test -z "$ac_cpp_err"; then
  10418. ac_header_preproc=yes
  10419. else
  10420. echo "$as_me: failed program was:" >&5
  10421. sed 's/^/| /' conftest.$ac_ext >&5
  10422. ac_header_preproc=no
  10423. fi
  10424. rm -f conftest.err conftest.$ac_ext
  10425. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10426. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10427. # So? What about this header?
  10428. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10429. yes:no: )
  10430. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10431. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10433. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10434. ac_header_preproc=yes
  10435. ;;
  10436. no:yes:* )
  10437. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10438. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10439. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10440. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10441. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10442. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10443. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10444. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10445. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10446. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10447. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10448. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10449. ;;
  10450. esac
  10451. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10452. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10454. echo $ECHO_N "(cached) $ECHO_C" >&6
  10455. else
  10456. eval "$as_ac_Header=\$ac_header_preproc"
  10457. fi
  10458. ac_res=`eval echo '${'$as_ac_Header'}'`
  10459. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10460. echo "${ECHO_T}$ac_res" >&6; }
  10461. fi
  10462. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10463. cat >>confdefs.h <<_ACEOF
  10464. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10465. _ACEOF
  10466. fi
  10467. done
  10468. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10469. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10470. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10471. echo $ECHO_N "(cached) $ECHO_C" >&6
  10472. else
  10473. if test "$cross_compiling" = yes; then
  10474. ac_cv_func_realloc_0_nonnull=no
  10475. else
  10476. cat >conftest.$ac_ext <<_ACEOF
  10477. /* confdefs.h. */
  10478. _ACEOF
  10479. cat confdefs.h >>conftest.$ac_ext
  10480. cat >>conftest.$ac_ext <<_ACEOF
  10481. /* end confdefs.h. */
  10482. #if STDC_HEADERS || HAVE_STDLIB_H
  10483. # include <stdlib.h>
  10484. #else
  10485. char *realloc ();
  10486. #endif
  10487. int
  10488. main ()
  10489. {
  10490. return ! realloc (0, 0);
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. rm -f conftest$ac_exeext
  10496. if { (ac_try="$ac_link"
  10497. case "(($ac_try" in
  10498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10499. *) ac_try_echo=$ac_try;;
  10500. esac
  10501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10502. (eval "$ac_link") 2>&5
  10503. ac_status=$?
  10504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10505. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10506. { (case "(($ac_try" in
  10507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10508. *) ac_try_echo=$ac_try;;
  10509. esac
  10510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10511. (eval "$ac_try") 2>&5
  10512. ac_status=$?
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); }; }; then
  10515. ac_cv_func_realloc_0_nonnull=yes
  10516. else
  10517. echo "$as_me: program exited with status $ac_status" >&5
  10518. echo "$as_me: failed program was:" >&5
  10519. sed 's/^/| /' conftest.$ac_ext >&5
  10520. ( exit $ac_status )
  10521. ac_cv_func_realloc_0_nonnull=no
  10522. fi
  10523. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10524. fi
  10525. fi
  10526. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10527. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10528. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10529. cat >>confdefs.h <<\_ACEOF
  10530. #define HAVE_REALLOC 1
  10531. _ACEOF
  10532. else
  10533. cat >>confdefs.h <<\_ACEOF
  10534. #define HAVE_REALLOC 0
  10535. _ACEOF
  10536. case " $LIBOBJS " in
  10537. *" realloc.$ac_objext "* ) ;;
  10538. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10539. ;;
  10540. esac
  10541. cat >>confdefs.h <<\_ACEOF
  10542. #define realloc rpl_realloc
  10543. _ACEOF
  10544. fi
  10545. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10546. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10547. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10548. echo $ECHO_N "(cached) $ECHO_C" >&6
  10549. else
  10550. if test "$cross_compiling" = yes; then
  10551. ac_cv_func_stat_empty_string_bug=yes
  10552. else
  10553. cat >conftest.$ac_ext <<_ACEOF
  10554. /* confdefs.h. */
  10555. _ACEOF
  10556. cat confdefs.h >>conftest.$ac_ext
  10557. cat >>conftest.$ac_ext <<_ACEOF
  10558. /* end confdefs.h. */
  10559. $ac_includes_default
  10560. int
  10561. main ()
  10562. {
  10563. struct stat sbuf;
  10564. return stat ("", &sbuf) == 0;
  10565. ;
  10566. return 0;
  10567. }
  10568. _ACEOF
  10569. rm -f conftest$ac_exeext
  10570. if { (ac_try="$ac_link"
  10571. case "(($ac_try" in
  10572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10573. *) ac_try_echo=$ac_try;;
  10574. esac
  10575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10576. (eval "$ac_link") 2>&5
  10577. ac_status=$?
  10578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10579. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10580. { (case "(($ac_try" in
  10581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10582. *) ac_try_echo=$ac_try;;
  10583. esac
  10584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10585. (eval "$ac_try") 2>&5
  10586. ac_status=$?
  10587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10588. (exit $ac_status); }; }; then
  10589. ac_cv_func_stat_empty_string_bug=no
  10590. else
  10591. echo "$as_me: program exited with status $ac_status" >&5
  10592. echo "$as_me: failed program was:" >&5
  10593. sed 's/^/| /' conftest.$ac_ext >&5
  10594. ( exit $ac_status )
  10595. ac_cv_func_stat_empty_string_bug=yes
  10596. fi
  10597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10598. fi
  10599. fi
  10600. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10601. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10602. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10603. case " $LIBOBJS " in
  10604. *" stat.$ac_objext "* ) ;;
  10605. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10606. ;;
  10607. esac
  10608. cat >>confdefs.h <<_ACEOF
  10609. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10610. _ACEOF
  10611. fi
  10612. { echo "$as_me:$LINENO: checking for struct timespec" >&5
  10613. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
  10614. if test "${ac_cv_type_struct_timespec+set}" = set; then
  10615. echo $ECHO_N "(cached) $ECHO_C" >&6
  10616. else
  10617. cat >conftest.$ac_ext <<_ACEOF
  10618. /* confdefs.h. */
  10619. _ACEOF
  10620. cat confdefs.h >>conftest.$ac_ext
  10621. cat >>conftest.$ac_ext <<_ACEOF
  10622. /* end confdefs.h. */
  10623. #include <sys/types.h>
  10624. #include <sys/time.h>
  10625. #include <time.h>
  10626. typedef struct timespec ac__type_new_;
  10627. int
  10628. main ()
  10629. {
  10630. if ((ac__type_new_ *) 0)
  10631. return 0;
  10632. if (sizeof (ac__type_new_))
  10633. return 0;
  10634. ;
  10635. return 0;
  10636. }
  10637. _ACEOF
  10638. rm -f conftest.$ac_objext
  10639. if { (ac_try="$ac_compile"
  10640. case "(($ac_try" in
  10641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10642. *) ac_try_echo=$ac_try;;
  10643. esac
  10644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10645. (eval "$ac_compile") 2>conftest.er1
  10646. ac_status=$?
  10647. grep -v '^ *+' conftest.er1 >conftest.err
  10648. rm -f conftest.er1
  10649. cat conftest.err >&5
  10650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10651. (exit $ac_status); } &&
  10652. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10653. { (case "(($ac_try" in
  10654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10655. *) ac_try_echo=$ac_try;;
  10656. esac
  10657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10658. (eval "$ac_try") 2>&5
  10659. ac_status=$?
  10660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10661. (exit $ac_status); }; } &&
  10662. { ac_try='test -s conftest.$ac_objext'
  10663. { (case "(($ac_try" in
  10664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10665. *) ac_try_echo=$ac_try;;
  10666. esac
  10667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10668. (eval "$ac_try") 2>&5
  10669. ac_status=$?
  10670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); }; }; then
  10672. ac_cv_type_struct_timespec=yes
  10673. else
  10674. echo "$as_me: failed program was:" >&5
  10675. sed 's/^/| /' conftest.$ac_ext >&5
  10676. ac_cv_type_struct_timespec=no
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10679. fi
  10680. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  10681. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
  10682. if test $ac_cv_type_struct_timespec = yes; then
  10683. cat >>confdefs.h <<\_ACEOF
  10684. #define HAVE_TIMESPEC 1
  10685. _ACEOF
  10686. fi
  10687. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  10688. { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  10689. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
  10690. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  10691. echo $ECHO_N "(cached) $ECHO_C" >&6
  10692. else
  10693. cat >conftest.$ac_ext <<_ACEOF
  10694. /* confdefs.h. */
  10695. _ACEOF
  10696. cat confdefs.h >>conftest.$ac_ext
  10697. cat >>conftest.$ac_ext <<_ACEOF
  10698. /* end confdefs.h. */
  10699. $ac_includes_default
  10700. int
  10701. main ()
  10702. {
  10703. static struct stat ac_aggr;
  10704. if (ac_aggr.st_mtim)
  10705. return 0;
  10706. ;
  10707. return 0;
  10708. }
  10709. _ACEOF
  10710. rm -f conftest.$ac_objext
  10711. if { (ac_try="$ac_compile"
  10712. case "(($ac_try" in
  10713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10714. *) ac_try_echo=$ac_try;;
  10715. esac
  10716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10717. (eval "$ac_compile") 2>conftest.er1
  10718. ac_status=$?
  10719. grep -v '^ *+' conftest.er1 >conftest.err
  10720. rm -f conftest.er1
  10721. cat conftest.err >&5
  10722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10723. (exit $ac_status); } &&
  10724. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10725. { (case "(($ac_try" in
  10726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10727. *) ac_try_echo=$ac_try;;
  10728. esac
  10729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10730. (eval "$ac_try") 2>&5
  10731. ac_status=$?
  10732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10733. (exit $ac_status); }; } &&
  10734. { ac_try='test -s conftest.$ac_objext'
  10735. { (case "(($ac_try" in
  10736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10737. *) ac_try_echo=$ac_try;;
  10738. esac
  10739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10740. (eval "$ac_try") 2>&5
  10741. ac_status=$?
  10742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10743. (exit $ac_status); }; }; then
  10744. ac_cv_member_struct_stat_st_mtim=yes
  10745. else
  10746. echo "$as_me: failed program was:" >&5
  10747. sed 's/^/| /' conftest.$ac_ext >&5
  10748. cat >conftest.$ac_ext <<_ACEOF
  10749. /* confdefs.h. */
  10750. _ACEOF
  10751. cat confdefs.h >>conftest.$ac_ext
  10752. cat >>conftest.$ac_ext <<_ACEOF
  10753. /* end confdefs.h. */
  10754. $ac_includes_default
  10755. int
  10756. main ()
  10757. {
  10758. static struct stat ac_aggr;
  10759. if (sizeof ac_aggr.st_mtim)
  10760. return 0;
  10761. ;
  10762. return 0;
  10763. }
  10764. _ACEOF
  10765. rm -f conftest.$ac_objext
  10766. if { (ac_try="$ac_compile"
  10767. case "(($ac_try" in
  10768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10769. *) ac_try_echo=$ac_try;;
  10770. esac
  10771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10772. (eval "$ac_compile") 2>conftest.er1
  10773. ac_status=$?
  10774. grep -v '^ *+' conftest.er1 >conftest.err
  10775. rm -f conftest.er1
  10776. cat conftest.err >&5
  10777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10778. (exit $ac_status); } &&
  10779. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10780. { (case "(($ac_try" in
  10781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10782. *) ac_try_echo=$ac_try;;
  10783. esac
  10784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10785. (eval "$ac_try") 2>&5
  10786. ac_status=$?
  10787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10788. (exit $ac_status); }; } &&
  10789. { ac_try='test -s conftest.$ac_objext'
  10790. { (case "(($ac_try" in
  10791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10792. *) ac_try_echo=$ac_try;;
  10793. esac
  10794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10795. (eval "$ac_try") 2>&5
  10796. ac_status=$?
  10797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10798. (exit $ac_status); }; }; then
  10799. ac_cv_member_struct_stat_st_mtim=yes
  10800. else
  10801. echo "$as_me: failed program was:" >&5
  10802. sed 's/^/| /' conftest.$ac_ext >&5
  10803. ac_cv_member_struct_stat_st_mtim=no
  10804. fi
  10805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10806. fi
  10807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10808. fi
  10809. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  10810. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
  10811. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  10812. cat >>confdefs.h <<\_ACEOF
  10813. #define HAVE_ST_MTIM 1
  10814. _ACEOF
  10815. else
  10816. { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  10817. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
  10818. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  10819. echo $ECHO_N "(cached) $ECHO_C" >&6
  10820. else
  10821. cat >conftest.$ac_ext <<_ACEOF
  10822. /* confdefs.h. */
  10823. _ACEOF
  10824. cat confdefs.h >>conftest.$ac_ext
  10825. cat >>conftest.$ac_ext <<_ACEOF
  10826. /* end confdefs.h. */
  10827. $ac_includes_default
  10828. int
  10829. main ()
  10830. {
  10831. static struct stat ac_aggr;
  10832. if (ac_aggr.st_mtimespec)
  10833. return 0;
  10834. ;
  10835. return 0;
  10836. }
  10837. _ACEOF
  10838. rm -f conftest.$ac_objext
  10839. if { (ac_try="$ac_compile"
  10840. case "(($ac_try" in
  10841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10842. *) ac_try_echo=$ac_try;;
  10843. esac
  10844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10845. (eval "$ac_compile") 2>conftest.er1
  10846. ac_status=$?
  10847. grep -v '^ *+' conftest.er1 >conftest.err
  10848. rm -f conftest.er1
  10849. cat conftest.err >&5
  10850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10851. (exit $ac_status); } &&
  10852. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10853. { (case "(($ac_try" in
  10854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10855. *) ac_try_echo=$ac_try;;
  10856. esac
  10857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10858. (eval "$ac_try") 2>&5
  10859. ac_status=$?
  10860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10861. (exit $ac_status); }; } &&
  10862. { ac_try='test -s conftest.$ac_objext'
  10863. { (case "(($ac_try" in
  10864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10865. *) ac_try_echo=$ac_try;;
  10866. esac
  10867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10868. (eval "$ac_try") 2>&5
  10869. ac_status=$?
  10870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10871. (exit $ac_status); }; }; then
  10872. ac_cv_member_struct_stat_st_mtimespec=yes
  10873. else
  10874. echo "$as_me: failed program was:" >&5
  10875. sed 's/^/| /' conftest.$ac_ext >&5
  10876. cat >conftest.$ac_ext <<_ACEOF
  10877. /* confdefs.h. */
  10878. _ACEOF
  10879. cat confdefs.h >>conftest.$ac_ext
  10880. cat >>conftest.$ac_ext <<_ACEOF
  10881. /* end confdefs.h. */
  10882. $ac_includes_default
  10883. int
  10884. main ()
  10885. {
  10886. static struct stat ac_aggr;
  10887. if (sizeof ac_aggr.st_mtimespec)
  10888. return 0;
  10889. ;
  10890. return 0;
  10891. }
  10892. _ACEOF
  10893. rm -f conftest.$ac_objext
  10894. if { (ac_try="$ac_compile"
  10895. case "(($ac_try" in
  10896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10897. *) ac_try_echo=$ac_try;;
  10898. esac
  10899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10900. (eval "$ac_compile") 2>conftest.er1
  10901. ac_status=$?
  10902. grep -v '^ *+' conftest.er1 >conftest.err
  10903. rm -f conftest.er1
  10904. cat conftest.err >&5
  10905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10906. (exit $ac_status); } &&
  10907. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10908. { (case "(($ac_try" in
  10909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10910. *) ac_try_echo=$ac_try;;
  10911. esac
  10912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10913. (eval "$ac_try") 2>&5
  10914. ac_status=$?
  10915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10916. (exit $ac_status); }; } &&
  10917. { ac_try='test -s conftest.$ac_objext'
  10918. { (case "(($ac_try" in
  10919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10920. *) ac_try_echo=$ac_try;;
  10921. esac
  10922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10923. (eval "$ac_try") 2>&5
  10924. ac_status=$?
  10925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10926. (exit $ac_status); }; }; then
  10927. ac_cv_member_struct_stat_st_mtimespec=yes
  10928. else
  10929. echo "$as_me: failed program was:" >&5
  10930. sed 's/^/| /' conftest.$ac_ext >&5
  10931. ac_cv_member_struct_stat_st_mtimespec=no
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. fi
  10937. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  10938. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  10939. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  10940. cat >>confdefs.h <<\_ACEOF
  10941. #define HAVE_ST_MTIMESPEC 1
  10942. _ACEOF
  10943. fi
  10944. fi
  10945. { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  10946. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
  10947. cat >conftest.$ac_ext <<_ACEOF
  10948. /* confdefs.h. */
  10949. _ACEOF
  10950. cat confdefs.h >>conftest.$ac_ext
  10951. cat >>conftest.$ac_ext <<_ACEOF
  10952. /* end confdefs.h. */
  10953. #include <sys/types.h>
  10954. #include <sys/time.h>
  10955. int
  10956. main ()
  10957. {
  10958. struct timespec ts1, ts2;
  10959. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  10960. #ifndef timespecsub
  10961. #error missing timespecsub
  10962. #endif
  10963. timespecsub(&ts1, &ts2);
  10964. ;
  10965. return 0;
  10966. }
  10967. _ACEOF
  10968. rm -f conftest.$ac_objext
  10969. if { (ac_try="$ac_compile"
  10970. case "(($ac_try" in
  10971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10972. *) ac_try_echo=$ac_try;;
  10973. esac
  10974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10975. (eval "$ac_compile") 2>conftest.er1
  10976. ac_status=$?
  10977. grep -v '^ *+' conftest.er1 >conftest.err
  10978. rm -f conftest.er1
  10979. cat conftest.err >&5
  10980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10981. (exit $ac_status); } &&
  10982. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10983. { (case "(($ac_try" in
  10984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10985. *) ac_try_echo=$ac_try;;
  10986. esac
  10987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10988. (eval "$ac_try") 2>&5
  10989. ac_status=$?
  10990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10991. (exit $ac_status); }; } &&
  10992. { ac_try='test -s conftest.$ac_objext'
  10993. { (case "(($ac_try" in
  10994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10995. *) ac_try_echo=$ac_try;;
  10996. esac
  10997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10998. (eval "$ac_try") 2>&5
  10999. ac_status=$?
  11000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11001. (exit $ac_status); }; }; then
  11002. cat >>confdefs.h <<\_ACEOF
  11003. #define HAVE_TIMESPECSUB2 1
  11004. _ACEOF
  11005. { echo "$as_me:$LINENO: result: yes" >&5
  11006. echo "${ECHO_T}yes" >&6; }
  11007. else
  11008. echo "$as_me: failed program was:" >&5
  11009. sed 's/^/| /' conftest.$ac_ext >&5
  11010. { echo "$as_me:$LINENO: result: no" >&5
  11011. echo "${ECHO_T}no" >&6; }
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11014. fi
  11015. for ac_func in strftime
  11016. do
  11017. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11018. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11019. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11020. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11021. echo $ECHO_N "(cached) $ECHO_C" >&6
  11022. else
  11023. cat >conftest.$ac_ext <<_ACEOF
  11024. /* confdefs.h. */
  11025. _ACEOF
  11026. cat confdefs.h >>conftest.$ac_ext
  11027. cat >>conftest.$ac_ext <<_ACEOF
  11028. /* end confdefs.h. */
  11029. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11030. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11031. #define $ac_func innocuous_$ac_func
  11032. /* System header to define __stub macros and hopefully few prototypes,
  11033. which can conflict with char $ac_func (); below.
  11034. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11035. <limits.h> exists even on freestanding compilers. */
  11036. #ifdef __STDC__
  11037. # include <limits.h>
  11038. #else
  11039. # include <assert.h>
  11040. #endif
  11041. #undef $ac_func
  11042. /* Override any GCC internal prototype to avoid an error.
  11043. Use char because int might match the return type of a GCC
  11044. builtin and then its argument prototype would still apply. */
  11045. #ifdef __cplusplus
  11046. extern "C"
  11047. #endif
  11048. char $ac_func ();
  11049. /* The GNU C library defines this for functions which it implements
  11050. to always fail with ENOSYS. Some functions are actually named
  11051. something starting with __ and the normal name is an alias. */
  11052. #if defined __stub_$ac_func || defined __stub___$ac_func
  11053. choke me
  11054. #endif
  11055. int
  11056. main ()
  11057. {
  11058. return $ac_func ();
  11059. ;
  11060. return 0;
  11061. }
  11062. _ACEOF
  11063. rm -f conftest.$ac_objext conftest$ac_exeext
  11064. if { (ac_try="$ac_link"
  11065. case "(($ac_try" in
  11066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11067. *) ac_try_echo=$ac_try;;
  11068. esac
  11069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11070. (eval "$ac_link") 2>conftest.er1
  11071. ac_status=$?
  11072. grep -v '^ *+' conftest.er1 >conftest.err
  11073. rm -f conftest.er1
  11074. cat conftest.err >&5
  11075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11076. (exit $ac_status); } &&
  11077. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11078. { (case "(($ac_try" in
  11079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11080. *) ac_try_echo=$ac_try;;
  11081. esac
  11082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11083. (eval "$ac_try") 2>&5
  11084. ac_status=$?
  11085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11086. (exit $ac_status); }; } &&
  11087. { ac_try='test -s conftest$ac_exeext'
  11088. { (case "(($ac_try" in
  11089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11090. *) ac_try_echo=$ac_try;;
  11091. esac
  11092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11093. (eval "$ac_try") 2>&5
  11094. ac_status=$?
  11095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11096. (exit $ac_status); }; }; then
  11097. eval "$as_ac_var=yes"
  11098. else
  11099. echo "$as_me: failed program was:" >&5
  11100. sed 's/^/| /' conftest.$ac_ext >&5
  11101. eval "$as_ac_var=no"
  11102. fi
  11103. rm -f core conftest.err conftest.$ac_objext \
  11104. conftest$ac_exeext conftest.$ac_ext
  11105. fi
  11106. ac_res=`eval echo '${'$as_ac_var'}'`
  11107. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11108. echo "${ECHO_T}$ac_res" >&6; }
  11109. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11110. cat >>confdefs.h <<_ACEOF
  11111. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11112. _ACEOF
  11113. else
  11114. # strftime is in -lintl on SCO UNIX.
  11115. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11116. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  11117. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11118. echo $ECHO_N "(cached) $ECHO_C" >&6
  11119. else
  11120. ac_check_lib_save_LIBS=$LIBS
  11121. LIBS="-lintl $LIBS"
  11122. cat >conftest.$ac_ext <<_ACEOF
  11123. /* confdefs.h. */
  11124. _ACEOF
  11125. cat confdefs.h >>conftest.$ac_ext
  11126. cat >>conftest.$ac_ext <<_ACEOF
  11127. /* end confdefs.h. */
  11128. /* Override any GCC internal prototype to avoid an error.
  11129. Use char because int might match the return type of a GCC
  11130. builtin and then its argument prototype would still apply. */
  11131. #ifdef __cplusplus
  11132. extern "C"
  11133. #endif
  11134. char strftime ();
  11135. int
  11136. main ()
  11137. {
  11138. return strftime ();
  11139. ;
  11140. return 0;
  11141. }
  11142. _ACEOF
  11143. rm -f conftest.$ac_objext conftest$ac_exeext
  11144. if { (ac_try="$ac_link"
  11145. case "(($ac_try" in
  11146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11147. *) ac_try_echo=$ac_try;;
  11148. esac
  11149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11150. (eval "$ac_link") 2>conftest.er1
  11151. ac_status=$?
  11152. grep -v '^ *+' conftest.er1 >conftest.err
  11153. rm -f conftest.er1
  11154. cat conftest.err >&5
  11155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11156. (exit $ac_status); } &&
  11157. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11158. { (case "(($ac_try" in
  11159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11160. *) ac_try_echo=$ac_try;;
  11161. esac
  11162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11163. (eval "$ac_try") 2>&5
  11164. ac_status=$?
  11165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11166. (exit $ac_status); }; } &&
  11167. { ac_try='test -s conftest$ac_exeext'
  11168. { (case "(($ac_try" in
  11169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11170. *) ac_try_echo=$ac_try;;
  11171. esac
  11172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11173. (eval "$ac_try") 2>&5
  11174. ac_status=$?
  11175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11176. (exit $ac_status); }; }; then
  11177. ac_cv_lib_intl_strftime=yes
  11178. else
  11179. echo "$as_me: failed program was:" >&5
  11180. sed 's/^/| /' conftest.$ac_ext >&5
  11181. ac_cv_lib_intl_strftime=no
  11182. fi
  11183. rm -f core conftest.err conftest.$ac_objext \
  11184. conftest$ac_exeext conftest.$ac_ext
  11185. LIBS=$ac_check_lib_save_LIBS
  11186. fi
  11187. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11188. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  11189. if test $ac_cv_lib_intl_strftime = yes; then
  11190. cat >>confdefs.h <<\_ACEOF
  11191. #define HAVE_STRFTIME 1
  11192. _ACEOF
  11193. LIBS="-lintl $LIBS"
  11194. fi
  11195. fi
  11196. done
  11197. #checkpoint
  11198. cat >confcache <<\_ACEOF
  11199. # This file is a shell script that caches the results of configure
  11200. # tests run on this system so they can be shared between configure
  11201. # scripts and configure runs, see configure's option --config-cache.
  11202. # It is not useful on other systems. If it contains results you don't
  11203. # want to keep, you may remove or edit it.
  11204. #
  11205. # config.status only pays attention to the cache file if you give it
  11206. # the --recheck option to rerun configure.
  11207. #
  11208. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11209. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11210. # following values.
  11211. _ACEOF
  11212. # The following way of writing the cache mishandles newlines in values,
  11213. # but we know of no workaround that is simple, portable, and efficient.
  11214. # So, we kill variables containing newlines.
  11215. # Ultrix sh set writes to stderr and can't be redirected directly,
  11216. # and sets the high bit in the cache file unless we assign to the vars.
  11217. (
  11218. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11219. eval ac_val=\$$ac_var
  11220. case $ac_val in #(
  11221. *${as_nl}*)
  11222. case $ac_var in #(
  11223. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11224. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11225. esac
  11226. case $ac_var in #(
  11227. _ | IFS | as_nl) ;; #(
  11228. *) $as_unset $ac_var ;;
  11229. esac ;;
  11230. esac
  11231. done
  11232. (set) 2>&1 |
  11233. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11234. *${as_nl}ac_space=\ *)
  11235. # `set' does not quote correctly, so add quotes (double-quote
  11236. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11237. sed -n \
  11238. "s/'/'\\\\''/g;
  11239. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11240. ;; #(
  11241. *)
  11242. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11243. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11244. ;;
  11245. esac |
  11246. sort
  11247. ) |
  11248. sed '
  11249. /^ac_cv_env_/b end
  11250. t clear
  11251. :clear
  11252. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11253. t end
  11254. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11255. :end' >>confcache
  11256. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11257. if test -w "$cache_file"; then
  11258. test "x$cache_file" != "x/dev/null" &&
  11259. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11260. echo "$as_me: updating cache $cache_file" >&6;}
  11261. cat confcache >$cache_file
  11262. else
  11263. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11264. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11265. fi
  11266. fi
  11267. rm -f confcache
  11268. for ac_func in clock fsync getrusage isascii inet_aton
  11269. do
  11270. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11271. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11272. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11273. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11274. echo $ECHO_N "(cached) $ECHO_C" >&6
  11275. else
  11276. cat >conftest.$ac_ext <<_ACEOF
  11277. /* confdefs.h. */
  11278. _ACEOF
  11279. cat confdefs.h >>conftest.$ac_ext
  11280. cat >>conftest.$ac_ext <<_ACEOF
  11281. /* end confdefs.h. */
  11282. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11283. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11284. #define $ac_func innocuous_$ac_func
  11285. /* System header to define __stub macros and hopefully few prototypes,
  11286. which can conflict with char $ac_func (); below.
  11287. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11288. <limits.h> exists even on freestanding compilers. */
  11289. #ifdef __STDC__
  11290. # include <limits.h>
  11291. #else
  11292. # include <assert.h>
  11293. #endif
  11294. #undef $ac_func
  11295. /* Override any GCC internal prototype to avoid an error.
  11296. Use char because int might match the return type of a GCC
  11297. builtin and then its argument prototype would still apply. */
  11298. #ifdef __cplusplus
  11299. extern "C"
  11300. #endif
  11301. char $ac_func ();
  11302. /* The GNU C library defines this for functions which it implements
  11303. to always fail with ENOSYS. Some functions are actually named
  11304. something starting with __ and the normal name is an alias. */
  11305. #if defined __stub_$ac_func || defined __stub___$ac_func
  11306. choke me
  11307. #endif
  11308. int
  11309. main ()
  11310. {
  11311. return $ac_func ();
  11312. ;
  11313. return 0;
  11314. }
  11315. _ACEOF
  11316. rm -f conftest.$ac_objext conftest$ac_exeext
  11317. if { (ac_try="$ac_link"
  11318. case "(($ac_try" in
  11319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11320. *) ac_try_echo=$ac_try;;
  11321. esac
  11322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11323. (eval "$ac_link") 2>conftest.er1
  11324. ac_status=$?
  11325. grep -v '^ *+' conftest.er1 >conftest.err
  11326. rm -f conftest.er1
  11327. cat conftest.err >&5
  11328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11329. (exit $ac_status); } &&
  11330. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11331. { (case "(($ac_try" in
  11332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11333. *) ac_try_echo=$ac_try;;
  11334. esac
  11335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11336. (eval "$ac_try") 2>&5
  11337. ac_status=$?
  11338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11339. (exit $ac_status); }; } &&
  11340. { ac_try='test -s conftest$ac_exeext'
  11341. { (case "(($ac_try" in
  11342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11343. *) ac_try_echo=$ac_try;;
  11344. esac
  11345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11346. (eval "$ac_try") 2>&5
  11347. ac_status=$?
  11348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11349. (exit $ac_status); }; }; then
  11350. eval "$as_ac_var=yes"
  11351. else
  11352. echo "$as_me: failed program was:" >&5
  11353. sed 's/^/| /' conftest.$ac_ext >&5
  11354. eval "$as_ac_var=no"
  11355. fi
  11356. rm -f core conftest.err conftest.$ac_objext \
  11357. conftest$ac_exeext conftest.$ac_ext
  11358. fi
  11359. ac_res=`eval echo '${'$as_ac_var'}'`
  11360. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11361. echo "${ECHO_T}$ac_res" >&6; }
  11362. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11363. cat >>confdefs.h <<_ACEOF
  11364. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11365. _ACEOF
  11366. fi
  11367. done
  11368. for ac_func in memcpy memset random rename snprintf srandom gettime
  11369. do
  11370. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11371. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11372. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11373. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11374. echo $ECHO_N "(cached) $ECHO_C" >&6
  11375. else
  11376. cat >conftest.$ac_ext <<_ACEOF
  11377. /* confdefs.h. */
  11378. _ACEOF
  11379. cat confdefs.h >>conftest.$ac_ext
  11380. cat >>conftest.$ac_ext <<_ACEOF
  11381. /* end confdefs.h. */
  11382. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11383. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11384. #define $ac_func innocuous_$ac_func
  11385. /* System header to define __stub macros and hopefully few prototypes,
  11386. which can conflict with char $ac_func (); below.
  11387. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11388. <limits.h> exists even on freestanding compilers. */
  11389. #ifdef __STDC__
  11390. # include <limits.h>
  11391. #else
  11392. # include <assert.h>
  11393. #endif
  11394. #undef $ac_func
  11395. /* Override any GCC internal prototype to avoid an error.
  11396. Use char because int might match the return type of a GCC
  11397. builtin and then its argument prototype would still apply. */
  11398. #ifdef __cplusplus
  11399. extern "C"
  11400. #endif
  11401. char $ac_func ();
  11402. /* The GNU C library defines this for functions which it implements
  11403. to always fail with ENOSYS. Some functions are actually named
  11404. something starting with __ and the normal name is an alias. */
  11405. #if defined __stub_$ac_func || defined __stub___$ac_func
  11406. choke me
  11407. #endif
  11408. int
  11409. main ()
  11410. {
  11411. return $ac_func ();
  11412. ;
  11413. return 0;
  11414. }
  11415. _ACEOF
  11416. rm -f conftest.$ac_objext conftest$ac_exeext
  11417. if { (ac_try="$ac_link"
  11418. case "(($ac_try" in
  11419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11420. *) ac_try_echo=$ac_try;;
  11421. esac
  11422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11423. (eval "$ac_link") 2>conftest.er1
  11424. ac_status=$?
  11425. grep -v '^ *+' conftest.er1 >conftest.err
  11426. rm -f conftest.er1
  11427. cat conftest.err >&5
  11428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11429. (exit $ac_status); } &&
  11430. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11431. { (case "(($ac_try" in
  11432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11433. *) ac_try_echo=$ac_try;;
  11434. esac
  11435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11436. (eval "$ac_try") 2>&5
  11437. ac_status=$?
  11438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11439. (exit $ac_status); }; } &&
  11440. { ac_try='test -s conftest$ac_exeext'
  11441. { (case "(($ac_try" in
  11442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11443. *) ac_try_echo=$ac_try;;
  11444. esac
  11445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11446. (eval "$ac_try") 2>&5
  11447. ac_status=$?
  11448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11449. (exit $ac_status); }; }; then
  11450. eval "$as_ac_var=yes"
  11451. else
  11452. echo "$as_me: failed program was:" >&5
  11453. sed 's/^/| /' conftest.$ac_ext >&5
  11454. eval "$as_ac_var=no"
  11455. fi
  11456. rm -f core conftest.err conftest.$ac_objext \
  11457. conftest$ac_exeext conftest.$ac_ext
  11458. fi
  11459. ac_res=`eval echo '${'$as_ac_var'}'`
  11460. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11461. echo "${ECHO_T}$ac_res" >&6; }
  11462. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11463. cat >>confdefs.h <<_ACEOF
  11464. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11465. _ACEOF
  11466. fi
  11467. done
  11468. #checkpoint
  11469. cat >confcache <<\_ACEOF
  11470. # This file is a shell script that caches the results of configure
  11471. # tests run on this system so they can be shared between configure
  11472. # scripts and configure runs, see configure's option --config-cache.
  11473. # It is not useful on other systems. If it contains results you don't
  11474. # want to keep, you may remove or edit it.
  11475. #
  11476. # config.status only pays attention to the cache file if you give it
  11477. # the --recheck option to rerun configure.
  11478. #
  11479. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11480. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11481. # following values.
  11482. _ACEOF
  11483. # The following way of writing the cache mishandles newlines in values,
  11484. # but we know of no workaround that is simple, portable, and efficient.
  11485. # So, we kill variables containing newlines.
  11486. # Ultrix sh set writes to stderr and can't be redirected directly,
  11487. # and sets the high bit in the cache file unless we assign to the vars.
  11488. (
  11489. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11490. eval ac_val=\$$ac_var
  11491. case $ac_val in #(
  11492. *${as_nl}*)
  11493. case $ac_var in #(
  11494. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11495. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11496. esac
  11497. case $ac_var in #(
  11498. _ | IFS | as_nl) ;; #(
  11499. *) $as_unset $ac_var ;;
  11500. esac ;;
  11501. esac
  11502. done
  11503. (set) 2>&1 |
  11504. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11505. *${as_nl}ac_space=\ *)
  11506. # `set' does not quote correctly, so add quotes (double-quote
  11507. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11508. sed -n \
  11509. "s/'/'\\\\''/g;
  11510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11511. ;; #(
  11512. *)
  11513. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11514. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11515. ;;
  11516. esac |
  11517. sort
  11518. ) |
  11519. sed '
  11520. /^ac_cv_env_/b end
  11521. t clear
  11522. :clear
  11523. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11524. t end
  11525. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11526. :end' >>confcache
  11527. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11528. if test -w "$cache_file"; then
  11529. test "x$cache_file" != "x/dev/null" &&
  11530. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11531. echo "$as_me: updating cache $cache_file" >&6;}
  11532. cat confcache >$cache_file
  11533. else
  11534. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11535. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11536. fi
  11537. fi
  11538. rm -f confcache
  11539. for ac_func in strcasecmp strncasecmp vsnprintf
  11540. do
  11541. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11542. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11543. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11544. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11545. echo $ECHO_N "(cached) $ECHO_C" >&6
  11546. else
  11547. cat >conftest.$ac_ext <<_ACEOF
  11548. /* confdefs.h. */
  11549. _ACEOF
  11550. cat confdefs.h >>conftest.$ac_ext
  11551. cat >>conftest.$ac_ext <<_ACEOF
  11552. /* end confdefs.h. */
  11553. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11554. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11555. #define $ac_func innocuous_$ac_func
  11556. /* System header to define __stub macros and hopefully few prototypes,
  11557. which can conflict with char $ac_func (); below.
  11558. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11559. <limits.h> exists even on freestanding compilers. */
  11560. #ifdef __STDC__
  11561. # include <limits.h>
  11562. #else
  11563. # include <assert.h>
  11564. #endif
  11565. #undef $ac_func
  11566. /* Override any GCC internal prototype to avoid an error.
  11567. Use char because int might match the return type of a GCC
  11568. builtin and then its argument prototype would still apply. */
  11569. #ifdef __cplusplus
  11570. extern "C"
  11571. #endif
  11572. char $ac_func ();
  11573. /* The GNU C library defines this for functions which it implements
  11574. to always fail with ENOSYS. Some functions are actually named
  11575. something starting with __ and the normal name is an alias. */
  11576. #if defined __stub_$ac_func || defined __stub___$ac_func
  11577. choke me
  11578. #endif
  11579. int
  11580. main ()
  11581. {
  11582. return $ac_func ();
  11583. ;
  11584. return 0;
  11585. }
  11586. _ACEOF
  11587. rm -f conftest.$ac_objext conftest$ac_exeext
  11588. if { (ac_try="$ac_link"
  11589. case "(($ac_try" in
  11590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11591. *) ac_try_echo=$ac_try;;
  11592. esac
  11593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11594. (eval "$ac_link") 2>conftest.er1
  11595. ac_status=$?
  11596. grep -v '^ *+' conftest.er1 >conftest.err
  11597. rm -f conftest.er1
  11598. cat conftest.err >&5
  11599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11600. (exit $ac_status); } &&
  11601. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11602. { (case "(($ac_try" in
  11603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11604. *) ac_try_echo=$ac_try;;
  11605. esac
  11606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11607. (eval "$ac_try") 2>&5
  11608. ac_status=$?
  11609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11610. (exit $ac_status); }; } &&
  11611. { ac_try='test -s conftest$ac_exeext'
  11612. { (case "(($ac_try" in
  11613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11614. *) ac_try_echo=$ac_try;;
  11615. esac
  11616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11617. (eval "$ac_try") 2>&5
  11618. ac_status=$?
  11619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11620. (exit $ac_status); }; }; then
  11621. eval "$as_ac_var=yes"
  11622. else
  11623. echo "$as_me: failed program was:" >&5
  11624. sed 's/^/| /' conftest.$ac_ext >&5
  11625. eval "$as_ac_var=no"
  11626. fi
  11627. rm -f core conftest.err conftest.$ac_objext \
  11628. conftest$ac_exeext conftest.$ac_ext
  11629. fi
  11630. ac_res=`eval echo '${'$as_ac_var'}'`
  11631. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11632. echo "${ECHO_T}$ac_res" >&6; }
  11633. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11634. cat >>confdefs.h <<_ACEOF
  11635. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11636. _ACEOF
  11637. fi
  11638. done
  11639. #autoscan suggested this....
  11640. #These are recommended by autoscan, but no code supports it currently
  11641. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11642. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11643. for ac_func in vsprintf
  11644. do
  11645. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11646. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11647. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11648. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11649. echo $ECHO_N "(cached) $ECHO_C" >&6
  11650. else
  11651. cat >conftest.$ac_ext <<_ACEOF
  11652. /* confdefs.h. */
  11653. _ACEOF
  11654. cat confdefs.h >>conftest.$ac_ext
  11655. cat >>conftest.$ac_ext <<_ACEOF
  11656. /* end confdefs.h. */
  11657. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11658. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11659. #define $ac_func innocuous_$ac_func
  11660. /* System header to define __stub macros and hopefully few prototypes,
  11661. which can conflict with char $ac_func (); below.
  11662. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11663. <limits.h> exists even on freestanding compilers. */
  11664. #ifdef __STDC__
  11665. # include <limits.h>
  11666. #else
  11667. # include <assert.h>
  11668. #endif
  11669. #undef $ac_func
  11670. /* Override any GCC internal prototype to avoid an error.
  11671. Use char because int might match the return type of a GCC
  11672. builtin and then its argument prototype would still apply. */
  11673. #ifdef __cplusplus
  11674. extern "C"
  11675. #endif
  11676. char $ac_func ();
  11677. /* The GNU C library defines this for functions which it implements
  11678. to always fail with ENOSYS. Some functions are actually named
  11679. something starting with __ and the normal name is an alias. */
  11680. #if defined __stub_$ac_func || defined __stub___$ac_func
  11681. choke me
  11682. #endif
  11683. int
  11684. main ()
  11685. {
  11686. return $ac_func ();
  11687. ;
  11688. return 0;
  11689. }
  11690. _ACEOF
  11691. rm -f conftest.$ac_objext conftest$ac_exeext
  11692. if { (ac_try="$ac_link"
  11693. case "(($ac_try" in
  11694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11695. *) ac_try_echo=$ac_try;;
  11696. esac
  11697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11698. (eval "$ac_link") 2>conftest.er1
  11699. ac_status=$?
  11700. grep -v '^ *+' conftest.er1 >conftest.err
  11701. rm -f conftest.er1
  11702. cat conftest.err >&5
  11703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11704. (exit $ac_status); } &&
  11705. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11706. { (case "(($ac_try" in
  11707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11708. *) ac_try_echo=$ac_try;;
  11709. esac
  11710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11711. (eval "$ac_try") 2>&5
  11712. ac_status=$?
  11713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11714. (exit $ac_status); }; } &&
  11715. { ac_try='test -s conftest$ac_exeext'
  11716. { (case "(($ac_try" in
  11717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11718. *) ac_try_echo=$ac_try;;
  11719. esac
  11720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11721. (eval "$ac_try") 2>&5
  11722. ac_status=$?
  11723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11724. (exit $ac_status); }; }; then
  11725. eval "$as_ac_var=yes"
  11726. else
  11727. echo "$as_me: failed program was:" >&5
  11728. sed 's/^/| /' conftest.$ac_ext >&5
  11729. eval "$as_ac_var=no"
  11730. fi
  11731. rm -f core conftest.err conftest.$ac_objext \
  11732. conftest$ac_exeext conftest.$ac_ext
  11733. fi
  11734. ac_res=`eval echo '${'$as_ac_var'}'`
  11735. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11736. echo "${ECHO_T}$ac_res" >&6; }
  11737. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11738. cat >>confdefs.h <<_ACEOF
  11739. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11740. _ACEOF
  11741. fi
  11742. done
  11743. if test "$ac_cv_func_vsprintf" = "no"
  11744. then
  11745. cat << 'EOF' >&2
  11746. configure: error:
  11747. Your system does not have the sprintf/vsprintf libraries.
  11748. These are required to compile almost anything. Sorry.
  11749. EOF
  11750. exit 1
  11751. fi
  11752. for ac_func in uname
  11753. do
  11754. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11755. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11756. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11757. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11758. echo $ECHO_N "(cached) $ECHO_C" >&6
  11759. else
  11760. cat >conftest.$ac_ext <<_ACEOF
  11761. /* confdefs.h. */
  11762. _ACEOF
  11763. cat confdefs.h >>conftest.$ac_ext
  11764. cat >>conftest.$ac_ext <<_ACEOF
  11765. /* end confdefs.h. */
  11766. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11767. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11768. #define $ac_func innocuous_$ac_func
  11769. /* System header to define __stub macros and hopefully few prototypes,
  11770. which can conflict with char $ac_func (); below.
  11771. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11772. <limits.h> exists even on freestanding compilers. */
  11773. #ifdef __STDC__
  11774. # include <limits.h>
  11775. #else
  11776. # include <assert.h>
  11777. #endif
  11778. #undef $ac_func
  11779. /* Override any GCC internal prototype to avoid an error.
  11780. Use char because int might match the return type of a GCC
  11781. builtin and then its argument prototype would still apply. */
  11782. #ifdef __cplusplus
  11783. extern "C"
  11784. #endif
  11785. char $ac_func ();
  11786. /* The GNU C library defines this for functions which it implements
  11787. to always fail with ENOSYS. Some functions are actually named
  11788. something starting with __ and the normal name is an alias. */
  11789. #if defined __stub_$ac_func || defined __stub___$ac_func
  11790. choke me
  11791. #endif
  11792. int
  11793. main ()
  11794. {
  11795. return $ac_func ();
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. rm -f conftest.$ac_objext conftest$ac_exeext
  11801. if { (ac_try="$ac_link"
  11802. case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11807. (eval "$ac_link") 2>conftest.er1
  11808. ac_status=$?
  11809. grep -v '^ *+' conftest.er1 >conftest.err
  11810. rm -f conftest.er1
  11811. cat conftest.err >&5
  11812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11813. (exit $ac_status); } &&
  11814. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11815. { (case "(($ac_try" in
  11816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11817. *) ac_try_echo=$ac_try;;
  11818. esac
  11819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11820. (eval "$ac_try") 2>&5
  11821. ac_status=$?
  11822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11823. (exit $ac_status); }; } &&
  11824. { ac_try='test -s conftest$ac_exeext'
  11825. { (case "(($ac_try" in
  11826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11827. *) ac_try_echo=$ac_try;;
  11828. esac
  11829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11830. (eval "$ac_try") 2>&5
  11831. ac_status=$?
  11832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11833. (exit $ac_status); }; }; then
  11834. eval "$as_ac_var=yes"
  11835. else
  11836. echo "$as_me: failed program was:" >&5
  11837. sed 's/^/| /' conftest.$ac_ext >&5
  11838. eval "$as_ac_var=no"
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext \
  11841. conftest$ac_exeext conftest.$ac_ext
  11842. fi
  11843. ac_res=`eval echo '${'$as_ac_var'}'`
  11844. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11845. echo "${ECHO_T}$ac_res" >&6; }
  11846. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11847. cat >>confdefs.h <<_ACEOF
  11848. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11849. _ACEOF
  11850. fi
  11851. done
  11852. if test "$ac_cv_func_uname" = "no"
  11853. then
  11854. cat << 'EOF' >&2
  11855. configure: error:
  11856. Your system does not have the uname() function.
  11857. This is required for the botpack.
  11858. EOF
  11859. exit 1
  11860. fi
  11861. # Make sure we have stdc headers, since we can't compile without them
  11862. if test "$ac_cv_header_stdc" = "no"
  11863. then
  11864. cat << 'EOF' >&2
  11865. configure: error:
  11866. Your system must support ANSI C Header files.
  11867. These are required for the language support. Sorry.
  11868. EOF
  11869. exit 1
  11870. fi
  11871. #checkpoint
  11872. cat >confcache <<\_ACEOF
  11873. # This file is a shell script that caches the results of configure
  11874. # tests run on this system so they can be shared between configure
  11875. # scripts and configure runs, see configure's option --config-cache.
  11876. # It is not useful on other systems. If it contains results you don't
  11877. # want to keep, you may remove or edit it.
  11878. #
  11879. # config.status only pays attention to the cache file if you give it
  11880. # the --recheck option to rerun configure.
  11881. #
  11882. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11883. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11884. # following values.
  11885. _ACEOF
  11886. # The following way of writing the cache mishandles newlines in values,
  11887. # but we know of no workaround that is simple, portable, and efficient.
  11888. # So, we kill variables containing newlines.
  11889. # Ultrix sh set writes to stderr and can't be redirected directly,
  11890. # and sets the high bit in the cache file unless we assign to the vars.
  11891. (
  11892. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11893. eval ac_val=\$$ac_var
  11894. case $ac_val in #(
  11895. *${as_nl}*)
  11896. case $ac_var in #(
  11897. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11898. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11899. esac
  11900. case $ac_var in #(
  11901. _ | IFS | as_nl) ;; #(
  11902. *) $as_unset $ac_var ;;
  11903. esac ;;
  11904. esac
  11905. done
  11906. (set) 2>&1 |
  11907. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11908. *${as_nl}ac_space=\ *)
  11909. # `set' does not quote correctly, so add quotes (double-quote
  11910. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11911. sed -n \
  11912. "s/'/'\\\\''/g;
  11913. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11914. ;; #(
  11915. *)
  11916. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11917. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11918. ;;
  11919. esac |
  11920. sort
  11921. ) |
  11922. sed '
  11923. /^ac_cv_env_/b end
  11924. t clear
  11925. :clear
  11926. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11927. t end
  11928. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11929. :end' >>confcache
  11930. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11931. if test -w "$cache_file"; then
  11932. test "x$cache_file" != "x/dev/null" &&
  11933. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11934. echo "$as_me: updating cache $cache_file" >&6;}
  11935. cat confcache >$cache_file
  11936. else
  11937. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11938. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11939. fi
  11940. fi
  11941. rm -f confcache
  11942. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11943. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11944. cat >>confdefs.h <<_ACEOF
  11945. #define EGG_VERSION $version_num
  11946. _ACEOF
  11947. #FIND_WRAPS
  11948. case "$srcdir" in
  11949. [\\/]* | ?:[\\/]*)
  11950. MOD_UPDIR=""
  11951. ;;
  11952. *)
  11953. MOD_UPDIR="../"
  11954. ;;
  11955. esac
  11956. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/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"
  11957. for mf in $files; do
  11958. # Strip MF so we end up with the name of the file.
  11959. # echo "MF: $mf"
  11960. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11961. dirpart=`$as_dirname -- "$mf" ||
  11962. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11963. X"$mf" : 'X\(//\)[^/]' \| \
  11964. X"$mf" : 'X\(//\)$' \| \
  11965. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11966. echo X"$mf" |
  11967. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11968. s//\1/
  11969. q
  11970. }
  11971. /^X\(\/\/\)[^/].*/{
  11972. s//\1/
  11973. q
  11974. }
  11975. /^X\(\/\/\)$/{
  11976. s//\1/
  11977. q
  11978. }
  11979. /^X\(\/\).*/{
  11980. s//\1/
  11981. q
  11982. }
  11983. s/.*/./; q'`
  11984. # echo "dirpart: $dirpart mf: $mf"
  11985. # rm -rf "$dirpart/.deps/"
  11986. rm -f "$dirpart/.deps/includes"
  11987. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11988. for file in `sed -n -e '
  11989. /^OBJS = .*\\\\$/ {
  11990. s/^OBJS = //
  11991. :loop
  11992. s/\\\\$//
  11993. p
  11994. n
  11995. /\\\\$/ b loop
  11996. p
  11997. }
  11998. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11999. do
  12000. base=`basename $file .o`
  12001. test -f "$dirpart/$base.c" || continue
  12002. if ! test -f "$dirpart/.deps/$base.Po"; then
  12003. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12004. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12005. if test -f "$dirpart/$base.o"; then
  12006. rm -f "$dirpart/$base.o"
  12007. fi
  12008. fi
  12009. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12010. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12011. done
  12012. done
  12013. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  12014. cat >confcache <<\_ACEOF
  12015. # This file is a shell script that caches the results of configure
  12016. # tests run on this system so they can be shared between configure
  12017. # scripts and configure runs, see configure's option --config-cache.
  12018. # It is not useful on other systems. If it contains results you don't
  12019. # want to keep, you may remove or edit it.
  12020. #
  12021. # config.status only pays attention to the cache file if you give it
  12022. # the --recheck option to rerun configure.
  12023. #
  12024. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12025. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12026. # following values.
  12027. _ACEOF
  12028. # The following way of writing the cache mishandles newlines in values,
  12029. # but we know of no workaround that is simple, portable, and efficient.
  12030. # So, we kill variables containing newlines.
  12031. # Ultrix sh set writes to stderr and can't be redirected directly,
  12032. # and sets the high bit in the cache file unless we assign to the vars.
  12033. (
  12034. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12035. eval ac_val=\$$ac_var
  12036. case $ac_val in #(
  12037. *${as_nl}*)
  12038. case $ac_var in #(
  12039. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12040. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12041. esac
  12042. case $ac_var in #(
  12043. _ | IFS | as_nl) ;; #(
  12044. *) $as_unset $ac_var ;;
  12045. esac ;;
  12046. esac
  12047. done
  12048. (set) 2>&1 |
  12049. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12050. *${as_nl}ac_space=\ *)
  12051. # `set' does not quote correctly, so add quotes (double-quote
  12052. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12053. sed -n \
  12054. "s/'/'\\\\''/g;
  12055. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12056. ;; #(
  12057. *)
  12058. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12059. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12060. ;;
  12061. esac |
  12062. sort
  12063. ) |
  12064. sed '
  12065. /^ac_cv_env_/b end
  12066. t clear
  12067. :clear
  12068. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12069. t end
  12070. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12071. :end' >>confcache
  12072. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12073. if test -w "$cache_file"; then
  12074. test "x$cache_file" != "x/dev/null" &&
  12075. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12076. echo "$as_me: updating cache $cache_file" >&6;}
  12077. cat confcache >$cache_file
  12078. else
  12079. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12080. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12081. fi
  12082. fi
  12083. rm -f confcache
  12084. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12085. # Let make expand exec_prefix.
  12086. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12087. DEFS=-DHAVE_CONFIG_H
  12088. ac_libobjs=
  12089. ac_ltlibobjs=
  12090. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12091. # 1. Remove the extension, and $U if already installed.
  12092. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12093. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12094. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12095. # will be set to the directory where LIBOBJS objects are built.
  12096. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12097. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12098. done
  12099. LIBOBJS=$ac_libobjs
  12100. LTLIBOBJS=$ac_ltlibobjs
  12101. : ${CONFIG_STATUS=./config.status}
  12102. ac_clean_files_save=$ac_clean_files
  12103. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12104. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12105. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12106. cat >$CONFIG_STATUS <<_ACEOF
  12107. #! $SHELL
  12108. # Generated by $as_me.
  12109. # Run this file to recreate the current configuration.
  12110. # Compiler output produced by configure, useful for debugging
  12111. # configure, is in config.log if it exists.
  12112. debug=false
  12113. ac_cs_recheck=false
  12114. ac_cs_silent=false
  12115. SHELL=\${CONFIG_SHELL-$SHELL}
  12116. _ACEOF
  12117. cat >>$CONFIG_STATUS <<\_ACEOF
  12118. ## --------------------- ##
  12119. ## M4sh Initialization. ##
  12120. ## --------------------- ##
  12121. # Be Bourne compatible
  12122. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12123. emulate sh
  12124. NULLCMD=:
  12125. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12126. # is contrary to our usage. Disable this feature.
  12127. alias -g '${1+"$@"}'='"$@"'
  12128. setopt NO_GLOB_SUBST
  12129. else
  12130. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  12131. fi
  12132. BIN_SH=xpg4; export BIN_SH # for Tru64
  12133. DUALCASE=1; export DUALCASE # for MKS sh
  12134. # PATH needs CR
  12135. # Avoid depending upon Character Ranges.
  12136. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12137. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12138. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12139. as_cr_digits='0123456789'
  12140. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12141. # The user is always right.
  12142. if test "${PATH_SEPARATOR+set}" != set; then
  12143. echo "#! /bin/sh" >conf$$.sh
  12144. echo "exit 0" >>conf$$.sh
  12145. chmod +x conf$$.sh
  12146. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12147. PATH_SEPARATOR=';'
  12148. else
  12149. PATH_SEPARATOR=:
  12150. fi
  12151. rm -f conf$$.sh
  12152. fi
  12153. # Support unset when possible.
  12154. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12155. as_unset=unset
  12156. else
  12157. as_unset=false
  12158. fi
  12159. # IFS
  12160. # We need space, tab and new line, in precisely that order. Quoting is
  12161. # there to prevent editors from complaining about space-tab.
  12162. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12163. # splitting by setting IFS to empty value.)
  12164. as_nl='
  12165. '
  12166. IFS=" "" $as_nl"
  12167. # Find who we are. Look in the path if we contain no directory separator.
  12168. case $0 in
  12169. *[\\/]* ) as_myself=$0 ;;
  12170. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12171. for as_dir in $PATH
  12172. do
  12173. IFS=$as_save_IFS
  12174. test -z "$as_dir" && as_dir=.
  12175. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12176. done
  12177. IFS=$as_save_IFS
  12178. ;;
  12179. esac
  12180. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12181. # in which case we are not to be found in the path.
  12182. if test "x$as_myself" = x; then
  12183. as_myself=$0
  12184. fi
  12185. if test ! -f "$as_myself"; then
  12186. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12187. { (exit 1); exit 1; }
  12188. fi
  12189. # Work around bugs in pre-3.0 UWIN ksh.
  12190. for as_var in ENV MAIL MAILPATH
  12191. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12192. done
  12193. PS1='$ '
  12194. PS2='> '
  12195. PS4='+ '
  12196. # NLS nuisances.
  12197. for as_var in \
  12198. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12199. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12200. LC_TELEPHONE LC_TIME
  12201. do
  12202. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12203. eval $as_var=C; export $as_var
  12204. else
  12205. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12206. fi
  12207. done
  12208. # Required to use basename.
  12209. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12210. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12211. as_expr=expr
  12212. else
  12213. as_expr=false
  12214. fi
  12215. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12216. as_basename=basename
  12217. else
  12218. as_basename=false
  12219. fi
  12220. # Name of the executable.
  12221. as_me=`$as_basename -- "$0" ||
  12222. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12223. X"$0" : 'X\(//\)$' \| \
  12224. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12225. echo X/"$0" |
  12226. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12227. s//\1/
  12228. q
  12229. }
  12230. /^X\/\(\/\/\)$/{
  12231. s//\1/
  12232. q
  12233. }
  12234. /^X\/\(\/\).*/{
  12235. s//\1/
  12236. q
  12237. }
  12238. s/.*/./; q'`
  12239. # CDPATH.
  12240. $as_unset CDPATH
  12241. as_lineno_1=$LINENO
  12242. as_lineno_2=$LINENO
  12243. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12244. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12245. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12246. # uniformly replaced by the line number. The first 'sed' inserts a
  12247. # line-number line after each line using $LINENO; the second 'sed'
  12248. # does the real work. The second script uses 'N' to pair each
  12249. # line-number line with the line containing $LINENO, and appends
  12250. # trailing '-' during substitution so that $LINENO is not a special
  12251. # case at line end.
  12252. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12253. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12254. # E. McMahon (1931-1989) for sed's syntax. :-)
  12255. sed -n '
  12256. p
  12257. /[$]LINENO/=
  12258. ' <$as_myself |
  12259. sed '
  12260. s/[$]LINENO.*/&-/
  12261. t lineno
  12262. b
  12263. :lineno
  12264. N
  12265. :loop
  12266. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12267. t loop
  12268. s/-\n.*//
  12269. ' >$as_me.lineno &&
  12270. chmod +x "$as_me.lineno" ||
  12271. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12272. { (exit 1); exit 1; }; }
  12273. # Don't try to exec as it changes $[0], causing all sort of problems
  12274. # (the dirname of $[0] is not the place where we might find the
  12275. # original and so on. Autoconf is especially sensitive to this).
  12276. . "./$as_me.lineno"
  12277. # Exit status is that of the last command.
  12278. exit
  12279. }
  12280. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12281. as_dirname=dirname
  12282. else
  12283. as_dirname=false
  12284. fi
  12285. ECHO_C= ECHO_N= ECHO_T=
  12286. case `echo -n x` in
  12287. -n*)
  12288. case `echo 'x\c'` in
  12289. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12290. *) ECHO_C='\c';;
  12291. esac;;
  12292. *)
  12293. ECHO_N='-n';;
  12294. esac
  12295. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12296. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12297. as_expr=expr
  12298. else
  12299. as_expr=false
  12300. fi
  12301. rm -f conf$$ conf$$.exe conf$$.file
  12302. if test -d conf$$.dir; then
  12303. rm -f conf$$.dir/conf$$.file
  12304. else
  12305. rm -f conf$$.dir
  12306. mkdir conf$$.dir
  12307. fi
  12308. echo >conf$$.file
  12309. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12310. as_ln_s='ln -s'
  12311. # ... but there are two gotchas:
  12312. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12313. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12314. # In both cases, we have to default to `cp -p'.
  12315. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12316. as_ln_s='cp -p'
  12317. elif ln conf$$.file conf$$ 2>/dev/null; then
  12318. as_ln_s=ln
  12319. else
  12320. as_ln_s='cp -p'
  12321. fi
  12322. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12323. rmdir conf$$.dir 2>/dev/null
  12324. if mkdir -p . 2>/dev/null; then
  12325. as_mkdir_p=:
  12326. else
  12327. test -d ./-p && rmdir ./-p
  12328. as_mkdir_p=false
  12329. fi
  12330. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  12331. # systems may use methods other than mode bits to determine executability.
  12332. cat >conf$$.file <<_ASEOF
  12333. #! /bin/sh
  12334. exit 0
  12335. _ASEOF
  12336. chmod +x conf$$.file
  12337. if test -x conf$$.file >/dev/null 2>&1; then
  12338. as_executable_p="test -x"
  12339. else
  12340. as_executable_p=:
  12341. fi
  12342. rm -f conf$$.file
  12343. # Sed expression to map a string onto a valid CPP name.
  12344. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12345. # Sed expression to map a string onto a valid variable name.
  12346. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12347. exec 6>&1
  12348. # Save the log message, to keep $[0] and so on meaningful, and to
  12349. # report actual input values of CONFIG_FILES etc. instead of their
  12350. # values after options handling.
  12351. ac_log="
  12352. This file was extended by $as_me, which was
  12353. generated by GNU Autoconf 2.60. Invocation command line was
  12354. CONFIG_FILES = $CONFIG_FILES
  12355. CONFIG_HEADERS = $CONFIG_HEADERS
  12356. CONFIG_LINKS = $CONFIG_LINKS
  12357. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12358. $ $0 $@
  12359. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12360. "
  12361. _ACEOF
  12362. cat >>$CONFIG_STATUS <<_ACEOF
  12363. # Files that config.status was made for.
  12364. config_files="$ac_config_files"
  12365. config_headers="$ac_config_headers"
  12366. _ACEOF
  12367. cat >>$CONFIG_STATUS <<\_ACEOF
  12368. ac_cs_usage="\
  12369. \`$as_me' instantiates files from templates according to the
  12370. current configuration.
  12371. Usage: $0 [OPTIONS] [FILE]...
  12372. -h, --help print this help, then exit
  12373. -V, --version print version number, then exit
  12374. -q, --quiet do not print progress messages
  12375. -d, --debug don't remove temporary files
  12376. --recheck update $as_me by reconfiguring in the same conditions
  12377. --file=FILE[:TEMPLATE]
  12378. instantiate the configuration file FILE
  12379. --header=FILE[:TEMPLATE]
  12380. instantiate the configuration header FILE
  12381. Configuration files:
  12382. $config_files
  12383. Configuration headers:
  12384. $config_headers
  12385. Report bugs to <bug-autoconf@gnu.org>."
  12386. _ACEOF
  12387. cat >>$CONFIG_STATUS <<_ACEOF
  12388. ac_cs_version="\\
  12389. config.status
  12390. configured by $0, generated by GNU Autoconf 2.60,
  12391. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12392. Copyright (C) 2006 Free Software Foundation, Inc.
  12393. This config.status script is free software; the Free Software Foundation
  12394. gives unlimited permission to copy, distribute and modify it."
  12395. ac_pwd='$ac_pwd'
  12396. srcdir='$srcdir'
  12397. _ACEOF
  12398. cat >>$CONFIG_STATUS <<\_ACEOF
  12399. # If no file are specified by the user, then we need to provide default
  12400. # value. By we need to know if files were specified by the user.
  12401. ac_need_defaults=:
  12402. while test $# != 0
  12403. do
  12404. case $1 in
  12405. --*=*)
  12406. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12407. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12408. ac_shift=:
  12409. ;;
  12410. *)
  12411. ac_option=$1
  12412. ac_optarg=$2
  12413. ac_shift=shift
  12414. ;;
  12415. esac
  12416. case $ac_option in
  12417. # Handling of the options.
  12418. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12419. ac_cs_recheck=: ;;
  12420. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12421. echo "$ac_cs_version"; exit ;;
  12422. --debug | --debu | --deb | --de | --d | -d )
  12423. debug=: ;;
  12424. --file | --fil | --fi | --f )
  12425. $ac_shift
  12426. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12427. ac_need_defaults=false;;
  12428. --header | --heade | --head | --hea )
  12429. $ac_shift
  12430. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12431. ac_need_defaults=false;;
  12432. --he | --h)
  12433. # Conflict between --help and --header
  12434. { echo "$as_me: error: ambiguous option: $1
  12435. Try \`$0 --help' for more information." >&2
  12436. { (exit 1); exit 1; }; };;
  12437. --help | --hel | -h )
  12438. echo "$ac_cs_usage"; exit ;;
  12439. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12440. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12441. ac_cs_silent=: ;;
  12442. # This is an error.
  12443. -*) { echo "$as_me: error: unrecognized option: $1
  12444. Try \`$0 --help' for more information." >&2
  12445. { (exit 1); exit 1; }; } ;;
  12446. *) ac_config_targets="$ac_config_targets $1"
  12447. ac_need_defaults=false ;;
  12448. esac
  12449. shift
  12450. done
  12451. ac_configure_extra_args=
  12452. if $ac_cs_silent; then
  12453. exec 6>/dev/null
  12454. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12455. fi
  12456. _ACEOF
  12457. cat >>$CONFIG_STATUS <<_ACEOF
  12458. if \$ac_cs_recheck; then
  12459. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12460. CONFIG_SHELL=$SHELL
  12461. export CONFIG_SHELL
  12462. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12463. fi
  12464. _ACEOF
  12465. cat >>$CONFIG_STATUS <<\_ACEOF
  12466. exec 5>>config.log
  12467. {
  12468. echo
  12469. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12470. ## Running $as_me. ##
  12471. _ASBOX
  12472. echo "$ac_log"
  12473. } >&5
  12474. _ACEOF
  12475. cat >>$CONFIG_STATUS <<_ACEOF
  12476. _ACEOF
  12477. cat >>$CONFIG_STATUS <<\_ACEOF
  12478. # Handling of arguments.
  12479. for ac_config_target in $ac_config_targets
  12480. do
  12481. case $ac_config_target in
  12482. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12483. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12484. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12485. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12486. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12487. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12488. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12489. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12490. { (exit 1); exit 1; }; };;
  12491. esac
  12492. done
  12493. # If the user did not use the arguments to specify the items to instantiate,
  12494. # then the envvar interface is used. Set only those that are not.
  12495. # We use the long form for the default assignment because of an extremely
  12496. # bizarre bug on SunOS 4.1.3.
  12497. if $ac_need_defaults; then
  12498. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12499. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12500. fi
  12501. # Have a temporary directory for convenience. Make it in the build tree
  12502. # simply because there is no reason against having it here, and in addition,
  12503. # creating and moving files from /tmp can sometimes cause problems.
  12504. # Hook for its removal unless debugging.
  12505. # Note that there is a small window in which the directory will not be cleaned:
  12506. # after its creation but before its name has been assigned to `$tmp'.
  12507. $debug ||
  12508. {
  12509. tmp=
  12510. trap 'exit_status=$?
  12511. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12512. ' 0
  12513. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12514. }
  12515. # Create a (secure) tmp directory for tmp files.
  12516. {
  12517. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12518. test -n "$tmp" && test -d "$tmp"
  12519. } ||
  12520. {
  12521. tmp=./conf$$-$RANDOM
  12522. (umask 077 && mkdir "$tmp")
  12523. } ||
  12524. {
  12525. echo "$me: cannot create a temporary directory in ." >&2
  12526. { (exit 1); exit 1; }
  12527. }
  12528. #
  12529. # Set up the sed scripts for CONFIG_FILES section.
  12530. #
  12531. # No need to generate the scripts if there are no CONFIG_FILES.
  12532. # This happens for instance when ./config.status config.h
  12533. if test -n "$CONFIG_FILES"; then
  12534. _ACEOF
  12535. ac_delim='%!_!# '
  12536. for ac_last_try in false false false false false :; do
  12537. cat >conf$$subs.sed <<_ACEOF
  12538. SHELL!$SHELL$ac_delim
  12539. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12540. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12541. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12542. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12543. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12544. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12545. exec_prefix!$exec_prefix$ac_delim
  12546. prefix!$prefix$ac_delim
  12547. program_transform_name!$program_transform_name$ac_delim
  12548. bindir!$bindir$ac_delim
  12549. sbindir!$sbindir$ac_delim
  12550. libexecdir!$libexecdir$ac_delim
  12551. datarootdir!$datarootdir$ac_delim
  12552. datadir!$datadir$ac_delim
  12553. sysconfdir!$sysconfdir$ac_delim
  12554. sharedstatedir!$sharedstatedir$ac_delim
  12555. localstatedir!$localstatedir$ac_delim
  12556. includedir!$includedir$ac_delim
  12557. oldincludedir!$oldincludedir$ac_delim
  12558. docdir!$docdir$ac_delim
  12559. infodir!$infodir$ac_delim
  12560. htmldir!$htmldir$ac_delim
  12561. dvidir!$dvidir$ac_delim
  12562. pdfdir!$pdfdir$ac_delim
  12563. psdir!$psdir$ac_delim
  12564. libdir!$libdir$ac_delim
  12565. localedir!$localedir$ac_delim
  12566. mandir!$mandir$ac_delim
  12567. DEFS!$DEFS$ac_delim
  12568. ECHO_C!$ECHO_C$ac_delim
  12569. ECHO_N!$ECHO_N$ac_delim
  12570. ECHO_T!$ECHO_T$ac_delim
  12571. LIBS!$LIBS$ac_delim
  12572. build_alias!$build_alias$ac_delim
  12573. host_alias!$host_alias$ac_delim
  12574. target_alias!$target_alias$ac_delim
  12575. egg_ac_parameters!$egg_ac_parameters$ac_delim
  12576. CXX!$CXX$ac_delim
  12577. CXXFLAGS!$CXXFLAGS$ac_delim
  12578. LDFLAGS!$LDFLAGS$ac_delim
  12579. CPPFLAGS!$CPPFLAGS$ac_delim
  12580. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12581. EXEEXT!$EXEEXT$ac_delim
  12582. OBJEXT!$OBJEXT$ac_delim
  12583. CXXCPP!$CXXCPP$ac_delim
  12584. GREP!$GREP$ac_delim
  12585. EGREP!$EGREP$ac_delim
  12586. CCDEPMODE!$CCDEPMODE$ac_delim
  12587. GCC3!$GCC3$ac_delim
  12588. SET_MAKE!$SET_MAKE$ac_delim
  12589. HEAD_1!$HEAD_1$ac_delim
  12590. AWK!$AWK$ac_delim
  12591. BASENAME!$BASENAME$ac_delim
  12592. OBJCOPY!$OBJCOPY$ac_delim
  12593. STRIP!$STRIP$ac_delim
  12594. DIFF!$DIFF$ac_delim
  12595. UNAME!$UNAME$ac_delim
  12596. CCACHE!$CCACHE$ac_delim
  12597. DISTCC!$DISTCC$ac_delim
  12598. CCDEBUG!$CCDEBUG$ac_delim
  12599. ZLIB!$ZLIB$ac_delim
  12600. LIBOBJS!$LIBOBJS$ac_delim
  12601. VERSION!$VERSION$ac_delim
  12602. NUMVER!$NUMVER$ac_delim
  12603. MOD_UPDIR!$MOD_UPDIR$ac_delim
  12604. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12605. _ACEOF
  12606. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
  12607. break
  12608. elif $ac_last_try; then
  12609. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12610. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12611. { (exit 1); exit 1; }; }
  12612. else
  12613. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12614. fi
  12615. done
  12616. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12617. if test -n "$ac_eof"; then
  12618. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12619. ac_eof=`expr $ac_eof + 1`
  12620. fi
  12621. cat >>$CONFIG_STATUS <<_ACEOF
  12622. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12623. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12624. _ACEOF
  12625. sed '
  12626. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12627. s/^/s,@/; s/!/@,|#_!!_#|/
  12628. :n
  12629. t n
  12630. s/'"$ac_delim"'$/,g/; t
  12631. s/$/\\/; p
  12632. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12633. ' >>$CONFIG_STATUS <conf$$subs.sed
  12634. rm -f conf$$subs.sed
  12635. cat >>$CONFIG_STATUS <<_ACEOF
  12636. :end
  12637. s/|#_!!_#|//g
  12638. CEOF$ac_eof
  12639. _ACEOF
  12640. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12641. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12642. # trailing colons and then remove the whole line if VPATH becomes empty
  12643. # (actually we leave an empty line to preserve line numbers).
  12644. if test "x$srcdir" = x.; then
  12645. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12646. s/:*\$(srcdir):*/:/
  12647. s/:*\${srcdir}:*/:/
  12648. s/:*@srcdir@:*/:/
  12649. s/^\([^=]*=[ ]*\):*/\1/
  12650. s/:*$//
  12651. s/^[^=]*=[ ]*$//
  12652. }'
  12653. fi
  12654. cat >>$CONFIG_STATUS <<\_ACEOF
  12655. fi # test -n "$CONFIG_FILES"
  12656. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  12657. do
  12658. case $ac_tag in
  12659. :[FHLC]) ac_mode=$ac_tag; continue;;
  12660. esac
  12661. case $ac_mode$ac_tag in
  12662. :[FHL]*:*);;
  12663. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12664. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12665. { (exit 1); exit 1; }; };;
  12666. :[FH]-) ac_tag=-:-;;
  12667. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12668. esac
  12669. ac_save_IFS=$IFS
  12670. IFS=:
  12671. set x $ac_tag
  12672. IFS=$ac_save_IFS
  12673. shift
  12674. ac_file=$1
  12675. shift
  12676. case $ac_mode in
  12677. :L) ac_source=$1;;
  12678. :[FH])
  12679. ac_file_inputs=
  12680. for ac_f
  12681. do
  12682. case $ac_f in
  12683. -) ac_f="$tmp/stdin";;
  12684. *) # Look for the file first in the build tree, then in the source tree
  12685. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12686. # because $ac_f cannot contain `:'.
  12687. test -f "$ac_f" ||
  12688. case $ac_f in
  12689. [\\/$]*) false;;
  12690. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12691. esac ||
  12692. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12693. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12694. { (exit 1); exit 1; }; };;
  12695. esac
  12696. ac_file_inputs="$ac_file_inputs $ac_f"
  12697. done
  12698. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12699. # use $as_me), people would be surprised to read:
  12700. # /* config.h. Generated by config.status. */
  12701. configure_input="Generated from "`IFS=:
  12702. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12703. if test x"$ac_file" != x-; then
  12704. configure_input="$ac_file. $configure_input"
  12705. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12706. echo "$as_me: creating $ac_file" >&6;}
  12707. fi
  12708. case $ac_tag in
  12709. *:-:* | *:-) cat >"$tmp/stdin";;
  12710. esac
  12711. ;;
  12712. esac
  12713. ac_dir=`$as_dirname -- "$ac_file" ||
  12714. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12715. X"$ac_file" : 'X\(//\)[^/]' \| \
  12716. X"$ac_file" : 'X\(//\)$' \| \
  12717. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12718. echo X"$ac_file" |
  12719. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12720. s//\1/
  12721. q
  12722. }
  12723. /^X\(\/\/\)[^/].*/{
  12724. s//\1/
  12725. q
  12726. }
  12727. /^X\(\/\/\)$/{
  12728. s//\1/
  12729. q
  12730. }
  12731. /^X\(\/\).*/{
  12732. s//\1/
  12733. q
  12734. }
  12735. s/.*/./; q'`
  12736. { as_dir="$ac_dir"
  12737. case $as_dir in #(
  12738. -*) as_dir=./$as_dir;;
  12739. esac
  12740. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12741. as_dirs=
  12742. while :; do
  12743. case $as_dir in #(
  12744. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12745. *) as_qdir=$as_dir;;
  12746. esac
  12747. as_dirs="'$as_qdir' $as_dirs"
  12748. as_dir=`$as_dirname -- "$as_dir" ||
  12749. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12750. X"$as_dir" : 'X\(//\)[^/]' \| \
  12751. X"$as_dir" : 'X\(//\)$' \| \
  12752. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12753. echo X"$as_dir" |
  12754. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12755. s//\1/
  12756. q
  12757. }
  12758. /^X\(\/\/\)[^/].*/{
  12759. s//\1/
  12760. q
  12761. }
  12762. /^X\(\/\/\)$/{
  12763. s//\1/
  12764. q
  12765. }
  12766. /^X\(\/\).*/{
  12767. s//\1/
  12768. q
  12769. }
  12770. s/.*/./; q'`
  12771. test -d "$as_dir" && break
  12772. done
  12773. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12774. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12775. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12776. { (exit 1); exit 1; }; }; }
  12777. ac_builddir=.
  12778. case "$ac_dir" in
  12779. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12780. *)
  12781. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12782. # A ".." for each directory in $ac_dir_suffix.
  12783. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12784. case $ac_top_builddir_sub in
  12785. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12786. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12787. esac ;;
  12788. esac
  12789. ac_abs_top_builddir=$ac_pwd
  12790. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12791. # for backward compatibility:
  12792. ac_top_builddir=$ac_top_build_prefix
  12793. case $srcdir in
  12794. .) # We are building in place.
  12795. ac_srcdir=.
  12796. ac_top_srcdir=$ac_top_builddir_sub
  12797. ac_abs_top_srcdir=$ac_pwd ;;
  12798. [\\/]* | ?:[\\/]* ) # Absolute name.
  12799. ac_srcdir=$srcdir$ac_dir_suffix;
  12800. ac_top_srcdir=$srcdir
  12801. ac_abs_top_srcdir=$srcdir ;;
  12802. *) # Relative name.
  12803. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12804. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12805. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12806. esac
  12807. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12808. case $ac_mode in
  12809. :F)
  12810. #
  12811. # CONFIG_FILE
  12812. #
  12813. _ACEOF
  12814. cat >>$CONFIG_STATUS <<\_ACEOF
  12815. # If the template does not know about datarootdir, expand it.
  12816. # FIXME: This hack should be removed a few years after 2.60.
  12817. ac_datarootdir_hack=; ac_datarootdir_seen=
  12818. case `sed -n '/datarootdir/ {
  12819. p
  12820. q
  12821. }
  12822. /@datadir@/p
  12823. /@docdir@/p
  12824. /@infodir@/p
  12825. /@localedir@/p
  12826. /@mandir@/p
  12827. ' $ac_file_inputs` in
  12828. *datarootdir*) ac_datarootdir_seen=yes;;
  12829. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12830. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12831. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12832. _ACEOF
  12833. cat >>$CONFIG_STATUS <<_ACEOF
  12834. ac_datarootdir_hack='
  12835. s&@datadir@&$datadir&g
  12836. s&@docdir@&$docdir&g
  12837. s&@infodir@&$infodir&g
  12838. s&@localedir@&$localedir&g
  12839. s&@mandir@&$mandir&g
  12840. s&\\\${datarootdir}&$datarootdir&g' ;;
  12841. esac
  12842. _ACEOF
  12843. # Neutralize VPATH when `$srcdir' = `.'.
  12844. # Shell code in configure.ac might set extrasub.
  12845. # FIXME: do we really want to maintain this feature?
  12846. cat >>$CONFIG_STATUS <<_ACEOF
  12847. sed "$ac_vpsub
  12848. $extrasub
  12849. _ACEOF
  12850. cat >>$CONFIG_STATUS <<\_ACEOF
  12851. :t
  12852. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12853. s&@configure_input@&$configure_input&;t t
  12854. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12855. s&@srcdir@&$ac_srcdir&;t t
  12856. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12857. s&@top_srcdir@&$ac_top_srcdir&;t t
  12858. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12859. s&@builddir@&$ac_builddir&;t t
  12860. s&@abs_builddir@&$ac_abs_builddir&;t t
  12861. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12862. $ac_datarootdir_hack
  12863. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  12864. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12865. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12866. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12867. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12868. which seems to be undefined. Please make sure it is defined." >&5
  12869. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12870. which seems to be undefined. Please make sure it is defined." >&2;}
  12871. rm -f "$tmp/stdin"
  12872. case $ac_file in
  12873. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12874. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12875. esac
  12876. ;;
  12877. :H)
  12878. #
  12879. # CONFIG_HEADER
  12880. #
  12881. _ACEOF
  12882. # Transform confdefs.h into a sed script `conftest.defines', that
  12883. # substitutes the proper values into config.h.in to produce config.h.
  12884. rm -f conftest.defines conftest.tail
  12885. # First, append a space to every undef/define line, to ease matching.
  12886. echo 's/$/ /' >conftest.defines
  12887. # Then, protect against being on the right side of a sed subst, or in
  12888. # an unquoted here document, in config.status. If some macros were
  12889. # called several times there might be several #defines for the same
  12890. # symbol, which is useless. But do not sort them, since the last
  12891. # AC_DEFINE must be honored.
  12892. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12893. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12894. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12895. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12896. # just an empty string.
  12897. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12898. ac_dB='\\)[ (].*,\\1define\\2'
  12899. ac_dC=' '
  12900. ac_dD=' ,'
  12901. uniq confdefs.h |
  12902. sed -n '
  12903. t rset
  12904. :rset
  12905. s/^[ ]*#[ ]*define[ ][ ]*//
  12906. t ok
  12907. d
  12908. :ok
  12909. s/[\\&,]/\\&/g
  12910. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12911. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12912. ' >>conftest.defines
  12913. # Remove the space that was appended to ease matching.
  12914. # Then replace #undef with comments. This is necessary, for
  12915. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12916. # on some systems where configure will not decide to define it.
  12917. # (The regexp can be short, since the line contains either #define or #undef.)
  12918. echo 's/ $//
  12919. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12920. # Break up conftest.defines:
  12921. ac_max_sed_lines=50
  12922. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12923. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12924. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12925. # et cetera.
  12926. ac_in='$ac_file_inputs'
  12927. ac_out='"$tmp/out1"'
  12928. ac_nxt='"$tmp/out2"'
  12929. while :
  12930. do
  12931. # Write a here document:
  12932. cat >>$CONFIG_STATUS <<_ACEOF
  12933. # First, check the format of the line:
  12934. cat >"\$tmp/defines.sed" <<\\CEOF
  12935. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12936. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12937. b
  12938. :def
  12939. _ACEOF
  12940. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12941. echo 'CEOF
  12942. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12943. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12944. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12945. grep . conftest.tail >/dev/null || break
  12946. rm -f conftest.defines
  12947. mv conftest.tail conftest.defines
  12948. done
  12949. rm -f conftest.defines conftest.tail
  12950. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12951. cat >>$CONFIG_STATUS <<\_ACEOF
  12952. if test x"$ac_file" != x-; then
  12953. echo "/* $configure_input */" >"$tmp/config.h"
  12954. cat "$ac_result" >>"$tmp/config.h"
  12955. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12956. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12957. echo "$as_me: $ac_file is unchanged" >&6;}
  12958. else
  12959. rm -f $ac_file
  12960. mv "$tmp/config.h" $ac_file
  12961. fi
  12962. else
  12963. echo "/* $configure_input */"
  12964. cat "$ac_result"
  12965. fi
  12966. rm -f "$tmp/out12"
  12967. ;;
  12968. esac
  12969. done # for ac_tag
  12970. { (exit 0); exit 0; }
  12971. _ACEOF
  12972. chmod +x $CONFIG_STATUS
  12973. ac_clean_files=$ac_clean_files_save
  12974. # configure is writing to config.log, and then calls config.status.
  12975. # config.status does its own redirection, appending to config.log.
  12976. # Unfortunately, on DOS this fails, as config.log is still kept open
  12977. # by configure, so config.status won't be able to write to it; its
  12978. # output is simply discarded. So we exec the FD to /dev/null,
  12979. # effectively closing config.log, so it can be properly (re)opened and
  12980. # appended to by config.status. When coming back to configure, we
  12981. # need to make the FD available again.
  12982. if test "$no_create" != yes; then
  12983. ac_cs_success=:
  12984. ac_config_status_args=
  12985. test "$silent" = yes &&
  12986. ac_config_status_args="$ac_config_status_args --quiet"
  12987. exec 5>/dev/null
  12988. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12989. exec 5>>config.log
  12990. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12991. # would make configure fail if this is the last instruction.
  12992. $ac_cs_success || { (exit 1); exit 1; }
  12993. fi