configure 404 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 - 2010 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. { (exit 1); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$as_shell") 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. exec 7<&0 </dev/null 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. SHELL=${CONFIG_SHELL-/bin/sh}
  515. # Identity of this package.
  516. PACKAGE_NAME=
  517. PACKAGE_TARNAME=
  518. PACKAGE_VERSION=
  519. PACKAGE_STRING=
  520. PACKAGE_BUGREPORT=
  521. ac_unique_file="wraith"
  522. ac_unique_file="src/eggdrop.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_header_list=
  559. ac_func_list=
  560. ac_subst_vars='LTLIBOBJS
  561. MOD_UPDIR
  562. NUMVER
  563. VERSION
  564. LIBOBJS
  565. SSL_LIBS
  566. SSL_INCLUDES
  567. MAKEJOBS
  568. CCDEBUG
  569. STATIC
  570. BUILDARCH
  571. BUILDOS
  572. DISTCC
  573. CCACHE
  574. UNAME
  575. DIFF
  576. STRIP
  577. OBJCOPY
  578. BASENAME
  579. AWK
  580. HEAD_1
  581. SET_MAKE
  582. GCC4DEB
  583. GCC3DEB
  584. GCC3
  585. CCDEPMODE
  586. EGREP
  587. GREP
  588. CXXCPP
  589. OBJEXT
  590. EXEEXT
  591. ac_ct_CXX
  592. CPPFLAGS
  593. LDFLAGS
  594. CXXFLAGS
  595. CXX
  596. egg_ac_parameters
  597. target_alias
  598. host_alias
  599. build_alias
  600. LIBS
  601. ECHO_T
  602. ECHO_N
  603. ECHO_C
  604. DEFS
  605. mandir
  606. localedir
  607. libdir
  608. psdir
  609. pdfdir
  610. dvidir
  611. htmldir
  612. infodir
  613. docdir
  614. oldincludedir
  615. includedir
  616. localstatedir
  617. sharedstatedir
  618. sysconfdir
  619. datadir
  620. datarootdir
  621. libexecdir
  622. sbindir
  623. bindir
  624. program_transform_name
  625. prefix
  626. exec_prefix
  627. PACKAGE_BUGREPORT
  628. PACKAGE_STRING
  629. PACKAGE_VERSION
  630. PACKAGE_TARNAME
  631. PACKAGE_NAME
  632. PATH_SEPARATOR
  633. SHELL'
  634. ac_subst_files=''
  635. ac_user_opts='
  636. enable_option_checking
  637. enable_ipv6
  638. with_openssl
  639. '
  640. ac_precious_vars='build_alias
  641. host_alias
  642. target_alias
  643. CXX
  644. CXXFLAGS
  645. LDFLAGS
  646. LIBS
  647. CPPFLAGS
  648. CCC
  649. CXXCPP'
  650. # Initialize some variables set by options.
  651. ac_init_help=
  652. ac_init_version=false
  653. ac_unrecognized_opts=
  654. ac_unrecognized_sep=
  655. # The variables have the same names as the options, with
  656. # dashes changed to underlines.
  657. cache_file=./config.cache
  658. exec_prefix=NONE
  659. no_create=
  660. no_recursion=
  661. prefix=NONE
  662. program_prefix=NONE
  663. program_suffix=NONE
  664. program_transform_name=s,x,x,
  665. silent=
  666. site=
  667. srcdir=
  668. verbose=
  669. x_includes=NONE
  670. x_libraries=NONE
  671. # Installation directory options.
  672. # These are left unexpanded so users can "make install exec_prefix=/foo"
  673. # and all the variables that are supposed to be based on exec_prefix
  674. # by default will actually change.
  675. # Use braces instead of parens because sh, perl, etc. also accept them.
  676. # (The list follows the same order as the GNU Coding Standards.)
  677. bindir='${exec_prefix}/bin'
  678. sbindir='${exec_prefix}/sbin'
  679. libexecdir='${exec_prefix}/libexec'
  680. datarootdir='${prefix}/share'
  681. datadir='${datarootdir}'
  682. sysconfdir='${prefix}/etc'
  683. sharedstatedir='${prefix}/com'
  684. localstatedir='${prefix}/var'
  685. includedir='${prefix}/include'
  686. oldincludedir='/usr/include'
  687. docdir='${datarootdir}/doc/${PACKAGE}'
  688. infodir='${datarootdir}/info'
  689. htmldir='${docdir}'
  690. dvidir='${docdir}'
  691. pdfdir='${docdir}'
  692. psdir='${docdir}'
  693. libdir='${exec_prefix}/lib'
  694. localedir='${datarootdir}/locale'
  695. mandir='${datarootdir}/man'
  696. ac_prev=
  697. ac_dashdash=
  698. for ac_option
  699. do
  700. # If the previous option needs an argument, assign it.
  701. if test -n "$ac_prev"; then
  702. eval $ac_prev=\$ac_option
  703. ac_prev=
  704. continue
  705. fi
  706. case $ac_option in
  707. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  708. *) ac_optarg=yes ;;
  709. esac
  710. # Accept the important Cygnus configure options, so we can diagnose typos.
  711. case $ac_dashdash$ac_option in
  712. --)
  713. ac_dashdash=yes ;;
  714. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  715. ac_prev=bindir ;;
  716. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  717. bindir=$ac_optarg ;;
  718. -build | --build | --buil | --bui | --bu)
  719. ac_prev=build_alias ;;
  720. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  721. build_alias=$ac_optarg ;;
  722. -cache-file | --cache-file | --cache-fil | --cache-fi \
  723. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  724. ac_prev=cache_file ;;
  725. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  726. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  727. cache_file=$ac_optarg ;;
  728. --config-cache | -C)
  729. cache_file=config.cache ;;
  730. -datadir | --datadir | --datadi | --datad)
  731. ac_prev=datadir ;;
  732. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  733. datadir=$ac_optarg ;;
  734. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  735. | --dataroo | --dataro | --datar)
  736. ac_prev=datarootdir ;;
  737. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  738. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  739. datarootdir=$ac_optarg ;;
  740. -disable-* | --disable-*)
  741. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  742. # Reject names that are not valid shell variable names.
  743. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  744. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  745. { (exit 1); exit 1; }; }
  746. ac_useropt_orig=$ac_useropt
  747. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  748. case $ac_user_opts in
  749. *"
  750. "enable_$ac_useropt"
  751. "*) ;;
  752. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  753. ac_unrecognized_sep=', ';;
  754. esac
  755. eval enable_$ac_useropt=no ;;
  756. -docdir | --docdir | --docdi | --doc | --do)
  757. ac_prev=docdir ;;
  758. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  759. docdir=$ac_optarg ;;
  760. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  761. ac_prev=dvidir ;;
  762. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  763. dvidir=$ac_optarg ;;
  764. -enable-* | --enable-*)
  765. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  766. # Reject names that are not valid shell variable names.
  767. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  768. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  769. { (exit 1); exit 1; }; }
  770. ac_useropt_orig=$ac_useropt
  771. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  772. case $ac_user_opts in
  773. *"
  774. "enable_$ac_useropt"
  775. "*) ;;
  776. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  777. ac_unrecognized_sep=', ';;
  778. esac
  779. eval enable_$ac_useropt=\$ac_optarg ;;
  780. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  781. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  782. | --exec | --exe | --ex)
  783. ac_prev=exec_prefix ;;
  784. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  785. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  786. | --exec=* | --exe=* | --ex=*)
  787. exec_prefix=$ac_optarg ;;
  788. -gas | --gas | --ga | --g)
  789. # Obsolete; use --with-gas.
  790. with_gas=yes ;;
  791. -help | --help | --hel | --he | -h)
  792. ac_init_help=long ;;
  793. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  794. ac_init_help=recursive ;;
  795. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  796. ac_init_help=short ;;
  797. -host | --host | --hos | --ho)
  798. ac_prev=host_alias ;;
  799. -host=* | --host=* | --hos=* | --ho=*)
  800. host_alias=$ac_optarg ;;
  801. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  802. ac_prev=htmldir ;;
  803. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  804. | --ht=*)
  805. htmldir=$ac_optarg ;;
  806. -includedir | --includedir | --includedi | --included | --include \
  807. | --includ | --inclu | --incl | --inc)
  808. ac_prev=includedir ;;
  809. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  810. | --includ=* | --inclu=* | --incl=* | --inc=*)
  811. includedir=$ac_optarg ;;
  812. -infodir | --infodir | --infodi | --infod | --info | --inf)
  813. ac_prev=infodir ;;
  814. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  815. infodir=$ac_optarg ;;
  816. -libdir | --libdir | --libdi | --libd)
  817. ac_prev=libdir ;;
  818. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  819. libdir=$ac_optarg ;;
  820. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  821. | --libexe | --libex | --libe)
  822. ac_prev=libexecdir ;;
  823. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  824. | --libexe=* | --libex=* | --libe=*)
  825. libexecdir=$ac_optarg ;;
  826. -localedir | --localedir | --localedi | --localed | --locale)
  827. ac_prev=localedir ;;
  828. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  829. localedir=$ac_optarg ;;
  830. -localstatedir | --localstatedir | --localstatedi | --localstated \
  831. | --localstate | --localstat | --localsta | --localst | --locals)
  832. ac_prev=localstatedir ;;
  833. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  834. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  835. localstatedir=$ac_optarg ;;
  836. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  837. ac_prev=mandir ;;
  838. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  839. mandir=$ac_optarg ;;
  840. -nfp | --nfp | --nf)
  841. # Obsolete; use --without-fp.
  842. with_fp=no ;;
  843. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  844. | --no-cr | --no-c | -n)
  845. no_create=yes ;;
  846. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  847. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  848. no_recursion=yes ;;
  849. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  850. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  851. | --oldin | --oldi | --old | --ol | --o)
  852. ac_prev=oldincludedir ;;
  853. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  854. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  855. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  856. oldincludedir=$ac_optarg ;;
  857. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  858. ac_prev=prefix ;;
  859. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  860. prefix=$ac_optarg ;;
  861. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  862. | --program-pre | --program-pr | --program-p)
  863. ac_prev=program_prefix ;;
  864. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  865. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  866. program_prefix=$ac_optarg ;;
  867. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  868. | --program-suf | --program-su | --program-s)
  869. ac_prev=program_suffix ;;
  870. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  871. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  872. program_suffix=$ac_optarg ;;
  873. -program-transform-name | --program-transform-name \
  874. | --program-transform-nam | --program-transform-na \
  875. | --program-transform-n | --program-transform- \
  876. | --program-transform | --program-transfor \
  877. | --program-transfo | --program-transf \
  878. | --program-trans | --program-tran \
  879. | --progr-tra | --program-tr | --program-t)
  880. ac_prev=program_transform_name ;;
  881. -program-transform-name=* | --program-transform-name=* \
  882. | --program-transform-nam=* | --program-transform-na=* \
  883. | --program-transform-n=* | --program-transform-=* \
  884. | --program-transform=* | --program-transfor=* \
  885. | --program-transfo=* | --program-transf=* \
  886. | --program-trans=* | --program-tran=* \
  887. | --progr-tra=* | --program-tr=* | --program-t=*)
  888. program_transform_name=$ac_optarg ;;
  889. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  890. ac_prev=pdfdir ;;
  891. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  892. pdfdir=$ac_optarg ;;
  893. -psdir | --psdir | --psdi | --psd | --ps)
  894. ac_prev=psdir ;;
  895. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  896. psdir=$ac_optarg ;;
  897. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  898. | -silent | --silent | --silen | --sile | --sil)
  899. silent=yes ;;
  900. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  901. ac_prev=sbindir ;;
  902. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  903. | --sbi=* | --sb=*)
  904. sbindir=$ac_optarg ;;
  905. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  906. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  907. | --sharedst | --shareds | --shared | --share | --shar \
  908. | --sha | --sh)
  909. ac_prev=sharedstatedir ;;
  910. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  911. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  912. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  913. | --sha=* | --sh=*)
  914. sharedstatedir=$ac_optarg ;;
  915. -site | --site | --sit)
  916. ac_prev=site ;;
  917. -site=* | --site=* | --sit=*)
  918. site=$ac_optarg ;;
  919. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  920. ac_prev=srcdir ;;
  921. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  922. srcdir=$ac_optarg ;;
  923. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  924. | --syscon | --sysco | --sysc | --sys | --sy)
  925. ac_prev=sysconfdir ;;
  926. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  927. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  928. sysconfdir=$ac_optarg ;;
  929. -target | --target | --targe | --targ | --tar | --ta | --t)
  930. ac_prev=target_alias ;;
  931. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  932. target_alias=$ac_optarg ;;
  933. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  934. verbose=yes ;;
  935. -version | --version | --versio | --versi | --vers | -V)
  936. ac_init_version=: ;;
  937. -with-* | --with-*)
  938. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  939. # Reject names that are not valid shell variable names.
  940. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  941. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  942. { (exit 1); exit 1; }; }
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "with_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval with_$ac_useropt=\$ac_optarg ;;
  953. -without-* | --without-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  958. { (exit 1); exit 1; }; }
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "with_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval with_$ac_useropt=no ;;
  969. --x)
  970. # Obsolete; use --with-x.
  971. with_x=yes ;;
  972. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  973. | --x-incl | --x-inc | --x-in | --x-i)
  974. ac_prev=x_includes ;;
  975. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  976. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  977. x_includes=$ac_optarg ;;
  978. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  979. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  980. ac_prev=x_libraries ;;
  981. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  982. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  983. x_libraries=$ac_optarg ;;
  984. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  985. Try \`$0 --help' for more information." >&2
  986. { (exit 1); exit 1; }; }
  987. ;;
  988. *=*)
  989. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  992. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  993. { (exit 1); exit 1; }; }
  994. eval $ac_envvar=\$ac_optarg
  995. export $ac_envvar ;;
  996. *)
  997. # FIXME: should be removed in autoconf 3.0.
  998. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  999. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1000. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1001. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1002. ;;
  1003. esac
  1004. done
  1005. if test -n "$ac_prev"; then
  1006. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1007. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1008. { (exit 1); exit 1; }; }
  1009. fi
  1010. if test -n "$ac_unrecognized_opts"; then
  1011. case $enable_option_checking in
  1012. no) ;;
  1013. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1014. { (exit 1); exit 1; }; } ;;
  1015. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1016. esac
  1017. fi
  1018. # Check all directory arguments for consistency.
  1019. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1020. datadir sysconfdir sharedstatedir localstatedir includedir \
  1021. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1022. libdir localedir mandir
  1023. do
  1024. eval ac_val=\$$ac_var
  1025. # Remove trailing slashes.
  1026. case $ac_val in
  1027. */ )
  1028. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1029. eval $ac_var=\$ac_val;;
  1030. esac
  1031. # Be sure to have absolute directory names.
  1032. case $ac_val in
  1033. [\\/$]* | ?:[\\/]* ) continue;;
  1034. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1035. esac
  1036. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1037. { (exit 1); exit 1; }; }
  1038. done
  1039. # There might be people who depend on the old broken behavior: `$host'
  1040. # used to hold the argument of --host etc.
  1041. # FIXME: To remove some day.
  1042. build=$build_alias
  1043. host=$host_alias
  1044. target=$target_alias
  1045. # FIXME: To remove some day.
  1046. if test "x$host_alias" != x; then
  1047. if test "x$build_alias" = x; then
  1048. cross_compiling=maybe
  1049. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1050. If a cross compiler is detected then cross compile mode will be used." >&2
  1051. elif test "x$build_alias" != "x$host_alias"; then
  1052. cross_compiling=yes
  1053. fi
  1054. fi
  1055. ac_tool_prefix=
  1056. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1057. test "$silent" = yes && exec 6>/dev/null
  1058. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1059. ac_ls_di=`ls -di .` &&
  1060. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1061. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1062. { (exit 1); exit 1; }; }
  1063. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1064. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1065. { (exit 1); exit 1; }; }
  1066. # Find the source files, if location was not specified.
  1067. if test -z "$srcdir"; then
  1068. ac_srcdir_defaulted=yes
  1069. # Try the directory containing this script, then the parent directory.
  1070. ac_confdir=`$as_dirname -- "$as_myself" ||
  1071. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1072. X"$as_myself" : 'X\(//\)[^/]' \| \
  1073. X"$as_myself" : 'X\(//\)$' \| \
  1074. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1075. $as_echo X"$as_myself" |
  1076. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1077. s//\1/
  1078. q
  1079. }
  1080. /^X\(\/\/\)[^/].*/{
  1081. s//\1/
  1082. q
  1083. }
  1084. /^X\(\/\/\)$/{
  1085. s//\1/
  1086. q
  1087. }
  1088. /^X\(\/\).*/{
  1089. s//\1/
  1090. q
  1091. }
  1092. s/.*/./; q'`
  1093. srcdir=$ac_confdir
  1094. if test ! -r "$srcdir/$ac_unique_file"; then
  1095. srcdir=..
  1096. fi
  1097. else
  1098. ac_srcdir_defaulted=no
  1099. fi
  1100. if test ! -r "$srcdir/$ac_unique_file"; then
  1101. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1102. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1103. { (exit 1); exit 1; }; }
  1104. fi
  1105. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1106. ac_abs_confdir=`(
  1107. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1108. { (exit 1); exit 1; }; }
  1109. pwd)`
  1110. # When building in place, set srcdir=.
  1111. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1112. srcdir=.
  1113. fi
  1114. # Remove unnecessary trailing slashes from srcdir.
  1115. # Double slashes in file names in object file debugging info
  1116. # mess up M-x gdb in Emacs.
  1117. case $srcdir in
  1118. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1119. esac
  1120. for ac_var in $ac_precious_vars; do
  1121. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1122. eval ac_env_${ac_var}_value=\$${ac_var}
  1123. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1124. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1125. done
  1126. #
  1127. # Report the --help message.
  1128. #
  1129. if test "$ac_init_help" = "long"; then
  1130. # Omit some internal or obsolete options to make the list less imposing.
  1131. # This message is too long to be a string in the A/UX 3.1 sh.
  1132. cat <<_ACEOF
  1133. \`configure' configures this package to adapt to many kinds of systems.
  1134. Usage: $0 [OPTION]... [VAR=VALUE]...
  1135. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1136. VAR=VALUE. See below for descriptions of some of the useful variables.
  1137. Defaults for the options are specified in brackets.
  1138. Configuration:
  1139. -h, --help display this help and exit
  1140. --help=short display options specific to this package
  1141. --help=recursive display the short help of all the included packages
  1142. -V, --version display version information and exit
  1143. -q, --quiet, --silent do not print \`checking...' messages
  1144. --cache-file=FILE cache test results in FILE [disabled]
  1145. -C, --config-cache alias for \`--cache-file=config.cache'
  1146. -n, --no-create do not create output files
  1147. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1148. Installation directories:
  1149. --prefix=PREFIX install architecture-independent files in PREFIX
  1150. [$ac_default_prefix]
  1151. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1152. [PREFIX]
  1153. By default, \`make install' will install all the files in
  1154. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1155. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1156. for instance \`--prefix=\$HOME'.
  1157. For better control, use the options below.
  1158. Fine tuning of the installation directories:
  1159. --bindir=DIR user executables [EPREFIX/bin]
  1160. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1161. --libexecdir=DIR program executables [EPREFIX/libexec]
  1162. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1163. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1164. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1165. --libdir=DIR object code libraries [EPREFIX/lib]
  1166. --includedir=DIR C header files [PREFIX/include]
  1167. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1168. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1169. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1170. --infodir=DIR info documentation [DATAROOTDIR/info]
  1171. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1172. --mandir=DIR man documentation [DATAROOTDIR/man]
  1173. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1174. --htmldir=DIR html documentation [DOCDIR]
  1175. --dvidir=DIR dvi documentation [DOCDIR]
  1176. --pdfdir=DIR pdf documentation [DOCDIR]
  1177. --psdir=DIR ps documentation [DOCDIR]
  1178. _ACEOF
  1179. cat <<\_ACEOF
  1180. _ACEOF
  1181. fi
  1182. if test -n "$ac_init_help"; then
  1183. cat <<\_ACEOF
  1184. Optional Features:
  1185. --disable-option-checking ignore unrecognized --enable/--with options
  1186. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1187. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1188. --disable-ipv6 disable IPv6 support
  1189. Optional Packages:
  1190. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1191. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1192. --with-openssl=DIR Path to OpenSSL
  1193. Some influential environment variables:
  1194. CXX C++ compiler command
  1195. CXXFLAGS C++ compiler flags
  1196. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1197. nonstandard directory <lib dir>
  1198. LIBS libraries to pass to the linker, e.g. -l<library>
  1199. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1200. you have headers in a nonstandard directory <include dir>
  1201. CXXCPP C++ preprocessor
  1202. Use these variables to override the choices made by `configure' or to help
  1203. it to find libraries and programs with nonstandard names/locations.
  1204. _ACEOF
  1205. ac_status=$?
  1206. fi
  1207. if test "$ac_init_help" = "recursive"; then
  1208. # If there are subdirs, report their specific --help.
  1209. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1210. test -d "$ac_dir" ||
  1211. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1212. continue
  1213. ac_builddir=.
  1214. case "$ac_dir" in
  1215. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1216. *)
  1217. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1218. # A ".." for each directory in $ac_dir_suffix.
  1219. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1220. case $ac_top_builddir_sub in
  1221. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1222. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1223. esac ;;
  1224. esac
  1225. ac_abs_top_builddir=$ac_pwd
  1226. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1227. # for backward compatibility:
  1228. ac_top_builddir=$ac_top_build_prefix
  1229. case $srcdir in
  1230. .) # We are building in place.
  1231. ac_srcdir=.
  1232. ac_top_srcdir=$ac_top_builddir_sub
  1233. ac_abs_top_srcdir=$ac_pwd ;;
  1234. [\\/]* | ?:[\\/]* ) # Absolute name.
  1235. ac_srcdir=$srcdir$ac_dir_suffix;
  1236. ac_top_srcdir=$srcdir
  1237. ac_abs_top_srcdir=$srcdir ;;
  1238. *) # Relative name.
  1239. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1240. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1241. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1242. esac
  1243. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1244. cd "$ac_dir" || { ac_status=$?; continue; }
  1245. # Check for guested configure.
  1246. if test -f "$ac_srcdir/configure.gnu"; then
  1247. echo &&
  1248. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1249. elif test -f "$ac_srcdir/configure"; then
  1250. echo &&
  1251. $SHELL "$ac_srcdir/configure" --help=recursive
  1252. else
  1253. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1254. fi || ac_status=$?
  1255. cd "$ac_pwd" || { ac_status=$?; break; }
  1256. done
  1257. fi
  1258. test -n "$ac_init_help" && exit $ac_status
  1259. if $ac_init_version; then
  1260. cat <<\_ACEOF
  1261. configure
  1262. generated by GNU Autoconf 2.63
  1263. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1264. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1265. This configure script is free software; the Free Software Foundation
  1266. gives unlimited permission to copy, distribute and modify it.
  1267. Copyright (c) 2003 - 2010 Bryan Drewery
  1268. _ACEOF
  1269. exit
  1270. fi
  1271. cat >config.log <<_ACEOF
  1272. This file contains any messages produced by compilers while
  1273. running configure, to aid debugging if configure makes a mistake.
  1274. It was created by $as_me, which was
  1275. generated by GNU Autoconf 2.63. Invocation command line was
  1276. $ $0 $@
  1277. _ACEOF
  1278. exec 5>>config.log
  1279. {
  1280. cat <<_ASUNAME
  1281. ## --------- ##
  1282. ## Platform. ##
  1283. ## --------- ##
  1284. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1285. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1286. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1287. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1288. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1289. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1290. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1291. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1292. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1293. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1294. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1295. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1296. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1297. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1298. _ASUNAME
  1299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1300. for as_dir in $PATH
  1301. do
  1302. IFS=$as_save_IFS
  1303. test -z "$as_dir" && as_dir=.
  1304. $as_echo "PATH: $as_dir"
  1305. done
  1306. IFS=$as_save_IFS
  1307. } >&5
  1308. cat >&5 <<_ACEOF
  1309. ## ----------- ##
  1310. ## Core tests. ##
  1311. ## ----------- ##
  1312. _ACEOF
  1313. # Keep a trace of the command line.
  1314. # Strip out --no-create and --no-recursion so they do not pile up.
  1315. # Strip out --silent because we don't want to record it for future runs.
  1316. # Also quote any args containing shell meta-characters.
  1317. # Make two passes to allow for proper duplicate-argument suppression.
  1318. ac_configure_args=
  1319. ac_configure_args0=
  1320. ac_configure_args1=
  1321. ac_must_keep_next=false
  1322. for ac_pass in 1 2
  1323. do
  1324. for ac_arg
  1325. do
  1326. case $ac_arg in
  1327. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1328. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1329. | -silent | --silent | --silen | --sile | --sil)
  1330. continue ;;
  1331. *\'*)
  1332. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1333. esac
  1334. case $ac_pass in
  1335. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1336. 2)
  1337. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1338. if test $ac_must_keep_next = true; then
  1339. ac_must_keep_next=false # Got value, back to normal.
  1340. else
  1341. case $ac_arg in
  1342. *=* | --config-cache | -C | -disable-* | --disable-* \
  1343. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1344. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1345. | -with-* | --with-* | -without-* | --without-* | --x)
  1346. case "$ac_configure_args0 " in
  1347. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1348. esac
  1349. ;;
  1350. -* ) ac_must_keep_next=true ;;
  1351. esac
  1352. fi
  1353. ac_configure_args="$ac_configure_args '$ac_arg'"
  1354. ;;
  1355. esac
  1356. done
  1357. done
  1358. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1359. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1360. # When interrupted or exit'd, cleanup temporary files, and complete
  1361. # config.log. We remove comments because anyway the quotes in there
  1362. # would cause problems or look ugly.
  1363. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1364. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1365. trap 'exit_status=$?
  1366. # Save into config.log some information that might help in debugging.
  1367. {
  1368. echo
  1369. cat <<\_ASBOX
  1370. ## ---------------- ##
  1371. ## Cache variables. ##
  1372. ## ---------------- ##
  1373. _ASBOX
  1374. echo
  1375. # The following way of writing the cache mishandles newlines in values,
  1376. (
  1377. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1378. eval ac_val=\$$ac_var
  1379. case $ac_val in #(
  1380. *${as_nl}*)
  1381. case $ac_var in #(
  1382. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1383. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1384. esac
  1385. case $ac_var in #(
  1386. _ | IFS | as_nl) ;; #(
  1387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1388. *) $as_unset $ac_var ;;
  1389. esac ;;
  1390. esac
  1391. done
  1392. (set) 2>&1 |
  1393. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1394. *${as_nl}ac_space=\ *)
  1395. sed -n \
  1396. "s/'\''/'\''\\\\'\'''\''/g;
  1397. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1398. ;; #(
  1399. *)
  1400. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1401. ;;
  1402. esac |
  1403. sort
  1404. )
  1405. echo
  1406. cat <<\_ASBOX
  1407. ## ----------------- ##
  1408. ## Output variables. ##
  1409. ## ----------------- ##
  1410. _ASBOX
  1411. echo
  1412. for ac_var in $ac_subst_vars
  1413. do
  1414. eval ac_val=\$$ac_var
  1415. case $ac_val in
  1416. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1417. esac
  1418. $as_echo "$ac_var='\''$ac_val'\''"
  1419. done | sort
  1420. echo
  1421. if test -n "$ac_subst_files"; then
  1422. cat <<\_ASBOX
  1423. ## ------------------- ##
  1424. ## File substitutions. ##
  1425. ## ------------------- ##
  1426. _ASBOX
  1427. echo
  1428. for ac_var in $ac_subst_files
  1429. do
  1430. eval ac_val=\$$ac_var
  1431. case $ac_val in
  1432. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1433. esac
  1434. $as_echo "$ac_var='\''$ac_val'\''"
  1435. done | sort
  1436. echo
  1437. fi
  1438. if test -s confdefs.h; then
  1439. cat <<\_ASBOX
  1440. ## ----------- ##
  1441. ## confdefs.h. ##
  1442. ## ----------- ##
  1443. _ASBOX
  1444. echo
  1445. cat confdefs.h
  1446. echo
  1447. fi
  1448. test "$ac_signal" != 0 &&
  1449. $as_echo "$as_me: caught signal $ac_signal"
  1450. $as_echo "$as_me: exit $exit_status"
  1451. } >&5
  1452. rm -f core *.core core.conftest.* &&
  1453. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1454. exit $exit_status
  1455. ' 0
  1456. for ac_signal in 1 2 13 15; do
  1457. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1458. done
  1459. ac_signal=0
  1460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1461. rm -f -r conftest* confdefs.h
  1462. # Predefined preprocessor variables.
  1463. cat >>confdefs.h <<_ACEOF
  1464. #define PACKAGE_NAME "$PACKAGE_NAME"
  1465. _ACEOF
  1466. cat >>confdefs.h <<_ACEOF
  1467. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1468. _ACEOF
  1469. cat >>confdefs.h <<_ACEOF
  1470. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1471. _ACEOF
  1472. cat >>confdefs.h <<_ACEOF
  1473. #define PACKAGE_STRING "$PACKAGE_STRING"
  1474. _ACEOF
  1475. cat >>confdefs.h <<_ACEOF
  1476. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1477. _ACEOF
  1478. # Let the site file select an alternate cache file if it wants to.
  1479. # Prefer an explicitly selected file to automatically selected ones.
  1480. ac_site_file1=NONE
  1481. ac_site_file2=NONE
  1482. if test -n "$CONFIG_SITE"; then
  1483. ac_site_file1=$CONFIG_SITE
  1484. elif test "x$prefix" != xNONE; then
  1485. ac_site_file1=$prefix/share/config.site
  1486. ac_site_file2=$prefix/etc/config.site
  1487. else
  1488. ac_site_file1=$ac_default_prefix/share/config.site
  1489. ac_site_file2=$ac_default_prefix/etc/config.site
  1490. fi
  1491. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1492. do
  1493. test "x$ac_site_file" = xNONE && continue
  1494. if test -r "$ac_site_file"; then
  1495. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1496. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1497. sed 's/^/| /' "$ac_site_file" >&5
  1498. . "$ac_site_file"
  1499. fi
  1500. done
  1501. if test -r "$cache_file"; then
  1502. # Some versions of bash will fail to source /dev/null (special
  1503. # files actually), so we avoid doing that.
  1504. if test -f "$cache_file"; then
  1505. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1506. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1507. case $cache_file in
  1508. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1509. *) . "./$cache_file";;
  1510. esac
  1511. fi
  1512. else
  1513. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1514. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1515. >$cache_file
  1516. fi
  1517. ac_header_list="$ac_header_list sys/time.h"
  1518. ac_header_list="$ac_header_list unistd.h"
  1519. ac_func_list="$ac_func_list alarm"
  1520. # Check that the precious variables saved in the cache have kept the same
  1521. # value.
  1522. ac_cache_corrupted=false
  1523. for ac_var in $ac_precious_vars; do
  1524. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1525. eval ac_new_set=\$ac_env_${ac_var}_set
  1526. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1527. eval ac_new_val=\$ac_env_${ac_var}_value
  1528. case $ac_old_set,$ac_new_set in
  1529. set,)
  1530. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1531. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1532. ac_cache_corrupted=: ;;
  1533. ,set)
  1534. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1535. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1536. ac_cache_corrupted=: ;;
  1537. ,);;
  1538. *)
  1539. if test "x$ac_old_val" != "x$ac_new_val"; then
  1540. # differences in whitespace do not lead to failure.
  1541. ac_old_val_w=`echo x $ac_old_val`
  1542. ac_new_val_w=`echo x $ac_new_val`
  1543. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1544. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1545. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1546. ac_cache_corrupted=:
  1547. else
  1548. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1549. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1550. eval $ac_var=\$ac_old_val
  1551. fi
  1552. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1553. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1554. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1555. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1556. fi;;
  1557. esac
  1558. # Pass precious variables to config.status.
  1559. if test "$ac_new_set" = set; then
  1560. case $ac_new_val in
  1561. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1562. *) ac_arg=$ac_var=$ac_new_val ;;
  1563. esac
  1564. case " $ac_configure_args " in
  1565. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1566. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1567. esac
  1568. fi
  1569. done
  1570. if $ac_cache_corrupted; then
  1571. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1572. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1573. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1574. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1575. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1576. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1577. { (exit 1); exit 1; }; }
  1578. fi
  1579. ac_ext=c
  1580. ac_cpp='$CPP $CPPFLAGS'
  1581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1584. ac_config_headers="$ac_config_headers config.h"
  1585. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1586. egg_ac_parameters=
  1587. ac_prev=
  1588. for ac_arg in $ac_configure_args; do
  1589. if test -n "$ac_prev"; then
  1590. ac_prev=
  1591. continue
  1592. fi
  1593. case $ac_arg in
  1594. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1595. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1596. ac_prev=cache_file ;;
  1597. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1598. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1599. | --c=*)
  1600. ;;
  1601. --config-cache | -C)
  1602. ;;
  1603. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1604. ac_prev=srcdir ;;
  1605. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1606. ;;
  1607. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1608. esac
  1609. done
  1610. # Setup build environment
  1611. #AC_REQUIRE_CPP
  1612. ac_ext=cpp
  1613. ac_cpp='$CXXCPP $CPPFLAGS'
  1614. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1615. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1616. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1617. ac_ext=cpp
  1618. ac_cpp='$CXXCPP $CPPFLAGS'
  1619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1622. if test -z "$CXX"; then
  1623. if test -n "$CCC"; then
  1624. CXX=$CCC
  1625. else
  1626. if test -n "$ac_tool_prefix"; then
  1627. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1628. do
  1629. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1630. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1631. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1632. $as_echo_n "checking for $ac_word... " >&6; }
  1633. if test "${ac_cv_prog_CXX+set}" = set; then
  1634. $as_echo_n "(cached) " >&6
  1635. else
  1636. if test -n "$CXX"; then
  1637. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1638. else
  1639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1640. for as_dir in $PATH
  1641. do
  1642. IFS=$as_save_IFS
  1643. test -z "$as_dir" && as_dir=.
  1644. for ac_exec_ext in '' $ac_executable_extensions; do
  1645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1646. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1647. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1648. break 2
  1649. fi
  1650. done
  1651. done
  1652. IFS=$as_save_IFS
  1653. fi
  1654. fi
  1655. CXX=$ac_cv_prog_CXX
  1656. if test -n "$CXX"; then
  1657. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1658. $as_echo "$CXX" >&6; }
  1659. else
  1660. { $as_echo "$as_me:$LINENO: result: no" >&5
  1661. $as_echo "no" >&6; }
  1662. fi
  1663. test -n "$CXX" && break
  1664. done
  1665. fi
  1666. if test -z "$CXX"; then
  1667. ac_ct_CXX=$CXX
  1668. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1669. do
  1670. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1671. set dummy $ac_prog; ac_word=$2
  1672. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1673. $as_echo_n "checking for $ac_word... " >&6; }
  1674. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1675. $as_echo_n "(cached) " >&6
  1676. else
  1677. if test -n "$ac_ct_CXX"; then
  1678. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1679. else
  1680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1681. for as_dir in $PATH
  1682. do
  1683. IFS=$as_save_IFS
  1684. test -z "$as_dir" && as_dir=.
  1685. for ac_exec_ext in '' $ac_executable_extensions; do
  1686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1687. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1688. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1689. break 2
  1690. fi
  1691. done
  1692. done
  1693. IFS=$as_save_IFS
  1694. fi
  1695. fi
  1696. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1697. if test -n "$ac_ct_CXX"; then
  1698. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1699. $as_echo "$ac_ct_CXX" >&6; }
  1700. else
  1701. { $as_echo "$as_me:$LINENO: result: no" >&5
  1702. $as_echo "no" >&6; }
  1703. fi
  1704. test -n "$ac_ct_CXX" && break
  1705. done
  1706. if test "x$ac_ct_CXX" = x; then
  1707. CXX="g++"
  1708. else
  1709. case $cross_compiling:$ac_tool_warned in
  1710. yes:)
  1711. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1713. ac_tool_warned=yes ;;
  1714. esac
  1715. CXX=$ac_ct_CXX
  1716. fi
  1717. fi
  1718. fi
  1719. fi
  1720. # Provide some information about the compiler.
  1721. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1722. set X $ac_compile
  1723. ac_compiler=$2
  1724. { (ac_try="$ac_compiler --version >&5"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo") >&5
  1731. (eval "$ac_compiler --version >&5") 2>&5
  1732. ac_status=$?
  1733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1734. (exit $ac_status); }
  1735. { (ac_try="$ac_compiler -v >&5"
  1736. case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo") >&5
  1742. (eval "$ac_compiler -v >&5") 2>&5
  1743. ac_status=$?
  1744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }
  1746. { (ac_try="$ac_compiler -V >&5"
  1747. case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1752. $as_echo "$ac_try_echo") >&5
  1753. (eval "$ac_compiler -V >&5") 2>&5
  1754. ac_status=$?
  1755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }
  1757. cat >conftest.$ac_ext <<_ACEOF
  1758. /* confdefs.h. */
  1759. _ACEOF
  1760. cat confdefs.h >>conftest.$ac_ext
  1761. cat >>conftest.$ac_ext <<_ACEOF
  1762. /* end confdefs.h. */
  1763. int
  1764. main ()
  1765. {
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. ac_clean_files_save=$ac_clean_files
  1771. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1772. # Try to create an executable without -o first, disregard a.out.
  1773. # It will help us diagnose broken compilers, and finding out an intuition
  1774. # of exeext.
  1775. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1776. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1777. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1778. # The possible output files:
  1779. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1780. ac_rmfiles=
  1781. for ac_file in $ac_files
  1782. do
  1783. case $ac_file in
  1784. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1785. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1786. esac
  1787. done
  1788. rm -f $ac_rmfiles
  1789. if { (ac_try="$ac_link_default"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo") >&5
  1796. (eval "$ac_link_default") 2>&5
  1797. ac_status=$?
  1798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1799. (exit $ac_status); }; then
  1800. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1801. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1802. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1803. # so that the user can short-circuit this test for compilers unknown to
  1804. # Autoconf.
  1805. for ac_file in $ac_files ''
  1806. do
  1807. test -f "$ac_file" || continue
  1808. case $ac_file in
  1809. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1810. ;;
  1811. [ab].out )
  1812. # We found the default executable, but exeext='' is most
  1813. # certainly right.
  1814. break;;
  1815. *.* )
  1816. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1817. then :; else
  1818. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1819. fi
  1820. # We set ac_cv_exeext here because the later test for it is not
  1821. # safe: cross compilers may not add the suffix if given an `-o'
  1822. # argument, so we may need to know it at that point already.
  1823. # Even if this section looks crufty: it has the advantage of
  1824. # actually working.
  1825. break;;
  1826. * )
  1827. break;;
  1828. esac
  1829. done
  1830. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1831. else
  1832. ac_file=''
  1833. fi
  1834. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1835. $as_echo "$ac_file" >&6; }
  1836. if test -z "$ac_file"; then
  1837. $as_echo "$as_me: failed program was:" >&5
  1838. sed 's/^/| /' conftest.$ac_ext >&5
  1839. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1841. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1842. See \`config.log' for more details." >&5
  1843. $as_echo "$as_me: error: C++ compiler cannot create executables
  1844. See \`config.log' for more details." >&2;}
  1845. { (exit 77); exit 77; }; }; }
  1846. fi
  1847. ac_exeext=$ac_cv_exeext
  1848. # Check that the compiler produces executables we can run. If not, either
  1849. # the compiler is broken, or we cross compile.
  1850. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1851. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1852. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1853. # If not cross compiling, check that we can run a simple program.
  1854. if test "$cross_compiling" != yes; then
  1855. if { ac_try='./$ac_file'
  1856. { (case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo") >&5
  1862. (eval "$ac_try") 2>&5
  1863. ac_status=$?
  1864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; }; then
  1866. cross_compiling=no
  1867. else
  1868. if test "$cross_compiling" = maybe; then
  1869. cross_compiling=yes
  1870. else
  1871. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1873. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1874. If you meant to cross compile, use \`--host'.
  1875. See \`config.log' for more details." >&5
  1876. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1877. If you meant to cross compile, use \`--host'.
  1878. See \`config.log' for more details." >&2;}
  1879. { (exit 1); exit 1; }; }; }
  1880. fi
  1881. fi
  1882. fi
  1883. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1884. $as_echo "yes" >&6; }
  1885. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1886. ac_clean_files=$ac_clean_files_save
  1887. # Check that the compiler produces executables we can run. If not, either
  1888. # the compiler is broken, or we cross compile.
  1889. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1890. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1891. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1892. $as_echo "$cross_compiling" >&6; }
  1893. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1894. $as_echo_n "checking for suffix of executables... " >&6; }
  1895. if { (ac_try="$ac_link"
  1896. case "(($ac_try" in
  1897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1898. *) ac_try_echo=$ac_try;;
  1899. esac
  1900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1901. $as_echo "$ac_try_echo") >&5
  1902. (eval "$ac_link") 2>&5
  1903. ac_status=$?
  1904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); }; then
  1906. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1907. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1908. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1909. # `rm'.
  1910. for ac_file in conftest.exe conftest conftest.*; do
  1911. test -f "$ac_file" || continue
  1912. case $ac_file in
  1913. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1914. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1915. break;;
  1916. * ) break;;
  1917. esac
  1918. done
  1919. else
  1920. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1921. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1922. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1923. See \`config.log' for more details." >&5
  1924. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1925. See \`config.log' for more details." >&2;}
  1926. { (exit 1); exit 1; }; }; }
  1927. fi
  1928. rm -f conftest$ac_cv_exeext
  1929. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1930. $as_echo "$ac_cv_exeext" >&6; }
  1931. rm -f conftest.$ac_ext
  1932. EXEEXT=$ac_cv_exeext
  1933. ac_exeext=$EXEEXT
  1934. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1935. $as_echo_n "checking for suffix of object files... " >&6; }
  1936. if test "${ac_cv_objext+set}" = set; then
  1937. $as_echo_n "(cached) " >&6
  1938. else
  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.o conftest.obj
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1959. $as_echo "$ac_try_echo") >&5
  1960. (eval "$ac_compile") 2>&5
  1961. ac_status=$?
  1962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1963. (exit $ac_status); }; then
  1964. for ac_file in conftest.o conftest.obj conftest.*; do
  1965. test -f "$ac_file" || continue;
  1966. case $ac_file in
  1967. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1968. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1969. break;;
  1970. esac
  1971. done
  1972. else
  1973. $as_echo "$as_me: failed program was:" >&5
  1974. sed 's/^/| /' conftest.$ac_ext >&5
  1975. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1977. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1978. See \`config.log' for more details." >&5
  1979. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1980. See \`config.log' for more details." >&2;}
  1981. { (exit 1); exit 1; }; }; }
  1982. fi
  1983. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1984. fi
  1985. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1986. $as_echo "$ac_cv_objext" >&6; }
  1987. OBJEXT=$ac_cv_objext
  1988. ac_objext=$OBJEXT
  1989. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1990. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1991. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1992. $as_echo_n "(cached) " >&6
  1993. else
  1994. cat >conftest.$ac_ext <<_ACEOF
  1995. /* confdefs.h. */
  1996. _ACEOF
  1997. cat confdefs.h >>conftest.$ac_ext
  1998. cat >>conftest.$ac_ext <<_ACEOF
  1999. /* end confdefs.h. */
  2000. int
  2001. main ()
  2002. {
  2003. #ifndef __GNUC__
  2004. choke me
  2005. #endif
  2006. ;
  2007. return 0;
  2008. }
  2009. _ACEOF
  2010. rm -f conftest.$ac_objext
  2011. if { (ac_try="$ac_compile"
  2012. case "(($ac_try" in
  2013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2014. *) ac_try_echo=$ac_try;;
  2015. esac
  2016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2017. $as_echo "$ac_try_echo") >&5
  2018. (eval "$ac_compile") 2>conftest.er1
  2019. ac_status=$?
  2020. grep -v '^ *+' conftest.er1 >conftest.err
  2021. rm -f conftest.er1
  2022. cat conftest.err >&5
  2023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2024. (exit $ac_status); } && {
  2025. test -z "$ac_cxx_werror_flag" ||
  2026. test ! -s conftest.err
  2027. } && test -s conftest.$ac_objext; then
  2028. ac_compiler_gnu=yes
  2029. else
  2030. $as_echo "$as_me: failed program was:" >&5
  2031. sed 's/^/| /' conftest.$ac_ext >&5
  2032. ac_compiler_gnu=no
  2033. fi
  2034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2035. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2036. fi
  2037. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2038. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2039. if test $ac_compiler_gnu = yes; then
  2040. GXX=yes
  2041. else
  2042. GXX=
  2043. fi
  2044. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2045. ac_save_CXXFLAGS=$CXXFLAGS
  2046. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2047. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2048. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2049. $as_echo_n "(cached) " >&6
  2050. else
  2051. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2052. ac_cxx_werror_flag=yes
  2053. ac_cv_prog_cxx_g=no
  2054. CXXFLAGS="-g"
  2055. cat >conftest.$ac_ext <<_ACEOF
  2056. /* confdefs.h. */
  2057. _ACEOF
  2058. cat confdefs.h >>conftest.$ac_ext
  2059. cat >>conftest.$ac_ext <<_ACEOF
  2060. /* end confdefs.h. */
  2061. int
  2062. main ()
  2063. {
  2064. ;
  2065. return 0;
  2066. }
  2067. _ACEOF
  2068. rm -f conftest.$ac_objext
  2069. if { (ac_try="$ac_compile"
  2070. case "(($ac_try" in
  2071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2072. *) ac_try_echo=$ac_try;;
  2073. esac
  2074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2075. $as_echo "$ac_try_echo") >&5
  2076. (eval "$ac_compile") 2>conftest.er1
  2077. ac_status=$?
  2078. grep -v '^ *+' conftest.er1 >conftest.err
  2079. rm -f conftest.er1
  2080. cat conftest.err >&5
  2081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2082. (exit $ac_status); } && {
  2083. test -z "$ac_cxx_werror_flag" ||
  2084. test ! -s conftest.err
  2085. } && test -s conftest.$ac_objext; then
  2086. ac_cv_prog_cxx_g=yes
  2087. else
  2088. $as_echo "$as_me: failed program was:" >&5
  2089. sed 's/^/| /' conftest.$ac_ext >&5
  2090. CXXFLAGS=""
  2091. cat >conftest.$ac_ext <<_ACEOF
  2092. /* confdefs.h. */
  2093. _ACEOF
  2094. cat confdefs.h >>conftest.$ac_ext
  2095. cat >>conftest.$ac_ext <<_ACEOF
  2096. /* end confdefs.h. */
  2097. int
  2098. main ()
  2099. {
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. rm -f conftest.$ac_objext
  2105. if { (ac_try="$ac_compile"
  2106. case "(($ac_try" in
  2107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2108. *) ac_try_echo=$ac_try;;
  2109. esac
  2110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2111. $as_echo "$ac_try_echo") >&5
  2112. (eval "$ac_compile") 2>conftest.er1
  2113. ac_status=$?
  2114. grep -v '^ *+' conftest.er1 >conftest.err
  2115. rm -f conftest.er1
  2116. cat conftest.err >&5
  2117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2118. (exit $ac_status); } && {
  2119. test -z "$ac_cxx_werror_flag" ||
  2120. test ! -s conftest.err
  2121. } && test -s conftest.$ac_objext; then
  2122. :
  2123. else
  2124. $as_echo "$as_me: failed program was:" >&5
  2125. sed 's/^/| /' conftest.$ac_ext >&5
  2126. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2127. CXXFLAGS="-g"
  2128. cat >conftest.$ac_ext <<_ACEOF
  2129. /* confdefs.h. */
  2130. _ACEOF
  2131. cat confdefs.h >>conftest.$ac_ext
  2132. cat >>conftest.$ac_ext <<_ACEOF
  2133. /* end confdefs.h. */
  2134. int
  2135. main ()
  2136. {
  2137. ;
  2138. return 0;
  2139. }
  2140. _ACEOF
  2141. rm -f conftest.$ac_objext
  2142. if { (ac_try="$ac_compile"
  2143. case "(($ac_try" in
  2144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2145. *) ac_try_echo=$ac_try;;
  2146. esac
  2147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2148. $as_echo "$ac_try_echo") >&5
  2149. (eval "$ac_compile") 2>conftest.er1
  2150. ac_status=$?
  2151. grep -v '^ *+' conftest.er1 >conftest.err
  2152. rm -f conftest.er1
  2153. cat conftest.err >&5
  2154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2155. (exit $ac_status); } && {
  2156. test -z "$ac_cxx_werror_flag" ||
  2157. test ! -s conftest.err
  2158. } && test -s conftest.$ac_objext; then
  2159. ac_cv_prog_cxx_g=yes
  2160. else
  2161. $as_echo "$as_me: failed program was:" >&5
  2162. sed 's/^/| /' conftest.$ac_ext >&5
  2163. fi
  2164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2165. fi
  2166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2169. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2170. fi
  2171. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2172. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2173. if test "$ac_test_CXXFLAGS" = set; then
  2174. CXXFLAGS=$ac_save_CXXFLAGS
  2175. elif test $ac_cv_prog_cxx_g = yes; then
  2176. if test "$GXX" = yes; then
  2177. CXXFLAGS="-g -O2"
  2178. else
  2179. CXXFLAGS="-g"
  2180. fi
  2181. else
  2182. if test "$GXX" = yes; then
  2183. CXXFLAGS="-O2"
  2184. else
  2185. CXXFLAGS=
  2186. fi
  2187. fi
  2188. ac_ext=cpp
  2189. ac_cpp='$CXXCPP $CPPFLAGS'
  2190. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2191. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2192. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2193. if test "${cross_compiling-x}" = "x"
  2194. then
  2195. cat << 'EOF' >&2
  2196. configure: error:
  2197. This system does not appear to have a working C compiler.
  2198. A working C compiler is required to compile Eggdrop.
  2199. EOF
  2200. exit 1
  2201. fi
  2202. if test -n "$GXX"; then
  2203. CXXFLAGS="$CXXFLAGS"
  2204. fi
  2205. # Crazy machines
  2206. ac_ext=cpp
  2207. ac_cpp='$CXXCPP $CPPFLAGS'
  2208. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2209. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2210. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2211. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2212. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2213. if test -z "$CXXCPP"; then
  2214. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2215. $as_echo_n "(cached) " >&6
  2216. else
  2217. # Double quotes because CXXCPP needs to be expanded
  2218. for CXXCPP in "$CXX -E" "/lib/cpp"
  2219. do
  2220. ac_preproc_ok=false
  2221. for ac_cxx_preproc_warn_flag in '' yes
  2222. do
  2223. # Use a header file that comes with gcc, so configuring glibc
  2224. # with a fresh cross-compiler works.
  2225. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2226. # <limits.h> exists even on freestanding compilers.
  2227. # On the NeXT, cc -E runs the code through the compiler's parser,
  2228. # not just through cpp. "Syntax error" is here to catch this case.
  2229. cat >conftest.$ac_ext <<_ACEOF
  2230. /* confdefs.h. */
  2231. _ACEOF
  2232. cat confdefs.h >>conftest.$ac_ext
  2233. cat >>conftest.$ac_ext <<_ACEOF
  2234. /* end confdefs.h. */
  2235. #ifdef __STDC__
  2236. # include <limits.h>
  2237. #else
  2238. # include <assert.h>
  2239. #endif
  2240. Syntax error
  2241. _ACEOF
  2242. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2243. case "(($ac_try" in
  2244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2245. *) ac_try_echo=$ac_try;;
  2246. esac
  2247. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2248. $as_echo "$ac_try_echo") >&5
  2249. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2250. ac_status=$?
  2251. grep -v '^ *+' conftest.er1 >conftest.err
  2252. rm -f conftest.er1
  2253. cat conftest.err >&5
  2254. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2255. (exit $ac_status); } >/dev/null && {
  2256. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2257. test ! -s conftest.err
  2258. }; then
  2259. :
  2260. else
  2261. $as_echo "$as_me: failed program was:" >&5
  2262. sed 's/^/| /' conftest.$ac_ext >&5
  2263. # Broken: fails on valid input.
  2264. continue
  2265. fi
  2266. rm -f conftest.err conftest.$ac_ext
  2267. # OK, works on sane cases. Now check whether nonexistent headers
  2268. # can be detected and how.
  2269. cat >conftest.$ac_ext <<_ACEOF
  2270. /* confdefs.h. */
  2271. _ACEOF
  2272. cat confdefs.h >>conftest.$ac_ext
  2273. cat >>conftest.$ac_ext <<_ACEOF
  2274. /* end confdefs.h. */
  2275. #include <ac_nonexistent.h>
  2276. _ACEOF
  2277. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2278. case "(($ac_try" in
  2279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2280. *) ac_try_echo=$ac_try;;
  2281. esac
  2282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2283. $as_echo "$ac_try_echo") >&5
  2284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2285. ac_status=$?
  2286. grep -v '^ *+' conftest.er1 >conftest.err
  2287. rm -f conftest.er1
  2288. cat conftest.err >&5
  2289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2290. (exit $ac_status); } >/dev/null && {
  2291. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2292. test ! -s conftest.err
  2293. }; then
  2294. # Broken: success on invalid input.
  2295. continue
  2296. else
  2297. $as_echo "$as_me: failed program was:" >&5
  2298. sed 's/^/| /' conftest.$ac_ext >&5
  2299. # Passes both tests.
  2300. ac_preproc_ok=:
  2301. break
  2302. fi
  2303. rm -f conftest.err conftest.$ac_ext
  2304. done
  2305. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2306. rm -f conftest.err conftest.$ac_ext
  2307. if $ac_preproc_ok; then
  2308. break
  2309. fi
  2310. done
  2311. ac_cv_prog_CXXCPP=$CXXCPP
  2312. fi
  2313. CXXCPP=$ac_cv_prog_CXXCPP
  2314. else
  2315. ac_cv_prog_CXXCPP=$CXXCPP
  2316. fi
  2317. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2318. $as_echo "$CXXCPP" >&6; }
  2319. ac_preproc_ok=false
  2320. for ac_cxx_preproc_warn_flag in '' yes
  2321. do
  2322. # Use a header file that comes with gcc, so configuring glibc
  2323. # with a fresh cross-compiler works.
  2324. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2325. # <limits.h> exists even on freestanding compilers.
  2326. # On the NeXT, cc -E runs the code through the compiler's parser,
  2327. # not just through cpp. "Syntax error" is here to catch this case.
  2328. cat >conftest.$ac_ext <<_ACEOF
  2329. /* confdefs.h. */
  2330. _ACEOF
  2331. cat confdefs.h >>conftest.$ac_ext
  2332. cat >>conftest.$ac_ext <<_ACEOF
  2333. /* end confdefs.h. */
  2334. #ifdef __STDC__
  2335. # include <limits.h>
  2336. #else
  2337. # include <assert.h>
  2338. #endif
  2339. Syntax error
  2340. _ACEOF
  2341. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2342. case "(($ac_try" in
  2343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2344. *) ac_try_echo=$ac_try;;
  2345. esac
  2346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2347. $as_echo "$ac_try_echo") >&5
  2348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2349. ac_status=$?
  2350. grep -v '^ *+' conftest.er1 >conftest.err
  2351. rm -f conftest.er1
  2352. cat conftest.err >&5
  2353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2354. (exit $ac_status); } >/dev/null && {
  2355. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2356. test ! -s conftest.err
  2357. }; then
  2358. :
  2359. else
  2360. $as_echo "$as_me: failed program was:" >&5
  2361. sed 's/^/| /' conftest.$ac_ext >&5
  2362. # Broken: fails on valid input.
  2363. continue
  2364. fi
  2365. rm -f conftest.err conftest.$ac_ext
  2366. # OK, works on sane cases. Now check whether nonexistent headers
  2367. # can be detected and how.
  2368. cat >conftest.$ac_ext <<_ACEOF
  2369. /* confdefs.h. */
  2370. _ACEOF
  2371. cat confdefs.h >>conftest.$ac_ext
  2372. cat >>conftest.$ac_ext <<_ACEOF
  2373. /* end confdefs.h. */
  2374. #include <ac_nonexistent.h>
  2375. _ACEOF
  2376. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2377. case "(($ac_try" in
  2378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2379. *) ac_try_echo=$ac_try;;
  2380. esac
  2381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2382. $as_echo "$ac_try_echo") >&5
  2383. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } >/dev/null && {
  2390. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2391. test ! -s conftest.err
  2392. }; then
  2393. # Broken: success on invalid input.
  2394. continue
  2395. else
  2396. $as_echo "$as_me: failed program was:" >&5
  2397. sed 's/^/| /' conftest.$ac_ext >&5
  2398. # Passes both tests.
  2399. ac_preproc_ok=:
  2400. break
  2401. fi
  2402. rm -f conftest.err conftest.$ac_ext
  2403. done
  2404. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2405. rm -f conftest.err conftest.$ac_ext
  2406. if $ac_preproc_ok; then
  2407. :
  2408. else
  2409. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2410. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2411. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2412. See \`config.log' for more details." >&5
  2413. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2414. See \`config.log' for more details." >&2;}
  2415. { (exit 1); exit 1; }; }; }
  2416. fi
  2417. ac_ext=cpp
  2418. ac_cpp='$CXXCPP $CPPFLAGS'
  2419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2422. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2423. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2424. if test "${ac_cv_path_GREP+set}" = set; then
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -z "$GREP"; then
  2428. ac_path_GREP_found=false
  2429. # Loop through the user's path and test for each of PROGNAME-LIST
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_prog in grep ggrep; do
  2436. for ac_exec_ext in '' $ac_executable_extensions; do
  2437. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2438. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2439. # Check for GNU ac_path_GREP and select it if it is found.
  2440. # Check for GNU $ac_path_GREP
  2441. case `"$ac_path_GREP" --version 2>&1` in
  2442. *GNU*)
  2443. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2444. *)
  2445. ac_count=0
  2446. $as_echo_n 0123456789 >"conftest.in"
  2447. while :
  2448. do
  2449. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2450. mv "conftest.tmp" "conftest.in"
  2451. cp "conftest.in" "conftest.nl"
  2452. $as_echo 'GREP' >> "conftest.nl"
  2453. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2454. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2455. ac_count=`expr $ac_count + 1`
  2456. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2457. # Best one so far, save it but keep looking for a better one
  2458. ac_cv_path_GREP="$ac_path_GREP"
  2459. ac_path_GREP_max=$ac_count
  2460. fi
  2461. # 10*(2^10) chars as input seems more than enough
  2462. test $ac_count -gt 10 && break
  2463. done
  2464. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2465. esac
  2466. $ac_path_GREP_found && break 3
  2467. done
  2468. done
  2469. done
  2470. IFS=$as_save_IFS
  2471. if test -z "$ac_cv_path_GREP"; then
  2472. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2473. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2474. { (exit 1); exit 1; }; }
  2475. fi
  2476. else
  2477. ac_cv_path_GREP=$GREP
  2478. fi
  2479. fi
  2480. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2481. $as_echo "$ac_cv_path_GREP" >&6; }
  2482. GREP="$ac_cv_path_GREP"
  2483. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2484. $as_echo_n "checking for egrep... " >&6; }
  2485. if test "${ac_cv_path_EGREP+set}" = set; then
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2489. then ac_cv_path_EGREP="$GREP -E"
  2490. else
  2491. if test -z "$EGREP"; then
  2492. ac_path_EGREP_found=false
  2493. # Loop through the user's path and test for each of PROGNAME-LIST
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_prog in egrep; do
  2500. for ac_exec_ext in '' $ac_executable_extensions; do
  2501. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2502. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2503. # Check for GNU ac_path_EGREP and select it if it is found.
  2504. # Check for GNU $ac_path_EGREP
  2505. case `"$ac_path_EGREP" --version 2>&1` in
  2506. *GNU*)
  2507. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2508. *)
  2509. ac_count=0
  2510. $as_echo_n 0123456789 >"conftest.in"
  2511. while :
  2512. do
  2513. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2514. mv "conftest.tmp" "conftest.in"
  2515. cp "conftest.in" "conftest.nl"
  2516. $as_echo 'EGREP' >> "conftest.nl"
  2517. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2518. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2519. ac_count=`expr $ac_count + 1`
  2520. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2521. # Best one so far, save it but keep looking for a better one
  2522. ac_cv_path_EGREP="$ac_path_EGREP"
  2523. ac_path_EGREP_max=$ac_count
  2524. fi
  2525. # 10*(2^10) chars as input seems more than enough
  2526. test $ac_count -gt 10 && break
  2527. done
  2528. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2529. esac
  2530. $ac_path_EGREP_found && break 3
  2531. done
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. if test -z "$ac_cv_path_EGREP"; then
  2536. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2537. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2538. { (exit 1); exit 1; }; }
  2539. fi
  2540. else
  2541. ac_cv_path_EGREP=$EGREP
  2542. fi
  2543. fi
  2544. fi
  2545. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2546. $as_echo "$ac_cv_path_EGREP" >&6; }
  2547. EGREP="$ac_cv_path_EGREP"
  2548. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2549. $as_echo_n "checking for ANSI C header files... " >&6; }
  2550. if test "${ac_cv_header_stdc+set}" = set; then
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. cat >conftest.$ac_ext <<_ACEOF
  2554. /* confdefs.h. */
  2555. _ACEOF
  2556. cat confdefs.h >>conftest.$ac_ext
  2557. cat >>conftest.$ac_ext <<_ACEOF
  2558. /* end confdefs.h. */
  2559. #include <stdlib.h>
  2560. #include <stdarg.h>
  2561. #include <string.h>
  2562. #include <float.h>
  2563. int
  2564. main ()
  2565. {
  2566. ;
  2567. return 0;
  2568. }
  2569. _ACEOF
  2570. rm -f conftest.$ac_objext
  2571. if { (ac_try="$ac_compile"
  2572. case "(($ac_try" in
  2573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2574. *) ac_try_echo=$ac_try;;
  2575. esac
  2576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2577. $as_echo "$ac_try_echo") >&5
  2578. (eval "$ac_compile") 2>conftest.er1
  2579. ac_status=$?
  2580. grep -v '^ *+' conftest.er1 >conftest.err
  2581. rm -f conftest.er1
  2582. cat conftest.err >&5
  2583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } && {
  2585. test -z "$ac_cxx_werror_flag" ||
  2586. test ! -s conftest.err
  2587. } && test -s conftest.$ac_objext; then
  2588. ac_cv_header_stdc=yes
  2589. else
  2590. $as_echo "$as_me: failed program was:" >&5
  2591. sed 's/^/| /' conftest.$ac_ext >&5
  2592. ac_cv_header_stdc=no
  2593. fi
  2594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2595. if test $ac_cv_header_stdc = yes; then
  2596. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2597. cat >conftest.$ac_ext <<_ACEOF
  2598. /* confdefs.h. */
  2599. _ACEOF
  2600. cat confdefs.h >>conftest.$ac_ext
  2601. cat >>conftest.$ac_ext <<_ACEOF
  2602. /* end confdefs.h. */
  2603. #include <string.h>
  2604. _ACEOF
  2605. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2606. $EGREP "memchr" >/dev/null 2>&1; then
  2607. :
  2608. else
  2609. ac_cv_header_stdc=no
  2610. fi
  2611. rm -f conftest*
  2612. fi
  2613. if test $ac_cv_header_stdc = yes; then
  2614. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2615. cat >conftest.$ac_ext <<_ACEOF
  2616. /* confdefs.h. */
  2617. _ACEOF
  2618. cat confdefs.h >>conftest.$ac_ext
  2619. cat >>conftest.$ac_ext <<_ACEOF
  2620. /* end confdefs.h. */
  2621. #include <stdlib.h>
  2622. _ACEOF
  2623. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2624. $EGREP "free" >/dev/null 2>&1; then
  2625. :
  2626. else
  2627. ac_cv_header_stdc=no
  2628. fi
  2629. rm -f conftest*
  2630. fi
  2631. if test $ac_cv_header_stdc = yes; then
  2632. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2633. if test "$cross_compiling" = yes; then
  2634. :
  2635. else
  2636. cat >conftest.$ac_ext <<_ACEOF
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. #include <ctype.h>
  2643. #include <stdlib.h>
  2644. #if ((' ' & 0x0FF) == 0x020)
  2645. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2646. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2647. #else
  2648. # define ISLOWER(c) \
  2649. (('a' <= (c) && (c) <= 'i') \
  2650. || ('j' <= (c) && (c) <= 'r') \
  2651. || ('s' <= (c) && (c) <= 'z'))
  2652. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2653. #endif
  2654. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2655. int
  2656. main ()
  2657. {
  2658. int i;
  2659. for (i = 0; i < 256; i++)
  2660. if (XOR (islower (i), ISLOWER (i))
  2661. || toupper (i) != TOUPPER (i))
  2662. return 2;
  2663. return 0;
  2664. }
  2665. _ACEOF
  2666. rm -f conftest$ac_exeext
  2667. if { (ac_try="$ac_link"
  2668. case "(($ac_try" in
  2669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670. *) ac_try_echo=$ac_try;;
  2671. esac
  2672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2673. $as_echo "$ac_try_echo") >&5
  2674. (eval "$ac_link") 2>&5
  2675. ac_status=$?
  2676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2678. { (case "(($ac_try" in
  2679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2680. *) ac_try_echo=$ac_try;;
  2681. esac
  2682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2683. $as_echo "$ac_try_echo") >&5
  2684. (eval "$ac_try") 2>&5
  2685. ac_status=$?
  2686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2687. (exit $ac_status); }; }; then
  2688. :
  2689. else
  2690. $as_echo "$as_me: program exited with status $ac_status" >&5
  2691. $as_echo "$as_me: failed program was:" >&5
  2692. sed 's/^/| /' conftest.$ac_ext >&5
  2693. ( exit $ac_status )
  2694. ac_cv_header_stdc=no
  2695. fi
  2696. rm -rf conftest.dSYM
  2697. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2698. fi
  2699. fi
  2700. fi
  2701. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2702. $as_echo "$ac_cv_header_stdc" >&6; }
  2703. if test $ac_cv_header_stdc = yes; then
  2704. cat >>confdefs.h <<\_ACEOF
  2705. #define STDC_HEADERS 1
  2706. _ACEOF
  2707. fi
  2708. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2709. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2710. inttypes.h stdint.h unistd.h
  2711. do
  2712. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2713. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2714. $as_echo_n "checking for $ac_header... " >&6; }
  2715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. cat >conftest.$ac_ext <<_ACEOF
  2719. /* confdefs.h. */
  2720. _ACEOF
  2721. cat confdefs.h >>conftest.$ac_ext
  2722. cat >>conftest.$ac_ext <<_ACEOF
  2723. /* end confdefs.h. */
  2724. $ac_includes_default
  2725. #include <$ac_header>
  2726. _ACEOF
  2727. rm -f conftest.$ac_objext
  2728. if { (ac_try="$ac_compile"
  2729. case "(($ac_try" in
  2730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2731. *) ac_try_echo=$ac_try;;
  2732. esac
  2733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2734. $as_echo "$ac_try_echo") >&5
  2735. (eval "$ac_compile") 2>conftest.er1
  2736. ac_status=$?
  2737. grep -v '^ *+' conftest.er1 >conftest.err
  2738. rm -f conftest.er1
  2739. cat conftest.err >&5
  2740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); } && {
  2742. test -z "$ac_cxx_werror_flag" ||
  2743. test ! -s conftest.err
  2744. } && test -s conftest.$ac_objext; then
  2745. eval "$as_ac_Header=yes"
  2746. else
  2747. $as_echo "$as_me: failed program was:" >&5
  2748. sed 's/^/| /' conftest.$ac_ext >&5
  2749. eval "$as_ac_Header=no"
  2750. fi
  2751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2752. fi
  2753. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2754. $as_echo "$as_val"'`
  2755. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2756. $as_echo "$ac_res" >&6; }
  2757. as_val=`eval 'as_val=${'$as_ac_Header'}
  2758. $as_echo "$as_val"'`
  2759. if test "x$as_val" = x""yes; then
  2760. cat >>confdefs.h <<_ACEOF
  2761. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2762. _ACEOF
  2763. fi
  2764. done
  2765. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2766. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2767. $as_echo_n "checking for minix/config.h... " >&6; }
  2768. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2769. $as_echo_n "(cached) " >&6
  2770. fi
  2771. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2772. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2773. else
  2774. # Is the header compilable?
  2775. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2776. $as_echo_n "checking minix/config.h usability... " >&6; }
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. $ac_includes_default
  2784. #include <minix/config.h>
  2785. _ACEOF
  2786. rm -f conftest.$ac_objext
  2787. if { (ac_try="$ac_compile"
  2788. case "(($ac_try" in
  2789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2790. *) ac_try_echo=$ac_try;;
  2791. esac
  2792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2793. $as_echo "$ac_try_echo") >&5
  2794. (eval "$ac_compile") 2>conftest.er1
  2795. ac_status=$?
  2796. grep -v '^ *+' conftest.er1 >conftest.err
  2797. rm -f conftest.er1
  2798. cat conftest.err >&5
  2799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2800. (exit $ac_status); } && {
  2801. test -z "$ac_cxx_werror_flag" ||
  2802. test ! -s conftest.err
  2803. } && test -s conftest.$ac_objext; then
  2804. ac_header_compiler=yes
  2805. else
  2806. $as_echo "$as_me: failed program was:" >&5
  2807. sed 's/^/| /' conftest.$ac_ext >&5
  2808. ac_header_compiler=no
  2809. fi
  2810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2811. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2812. $as_echo "$ac_header_compiler" >&6; }
  2813. # Is the header present?
  2814. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2815. $as_echo_n "checking minix/config.h presence... " >&6; }
  2816. cat >conftest.$ac_ext <<_ACEOF
  2817. /* confdefs.h. */
  2818. _ACEOF
  2819. cat confdefs.h >>conftest.$ac_ext
  2820. cat >>conftest.$ac_ext <<_ACEOF
  2821. /* end confdefs.h. */
  2822. #include <minix/config.h>
  2823. _ACEOF
  2824. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2825. case "(($ac_try" in
  2826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. *) ac_try_echo=$ac_try;;
  2828. esac
  2829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2830. $as_echo "$ac_try_echo") >&5
  2831. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2832. ac_status=$?
  2833. grep -v '^ *+' conftest.er1 >conftest.err
  2834. rm -f conftest.er1
  2835. cat conftest.err >&5
  2836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2837. (exit $ac_status); } >/dev/null && {
  2838. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2839. test ! -s conftest.err
  2840. }; then
  2841. ac_header_preproc=yes
  2842. else
  2843. $as_echo "$as_me: failed program was:" >&5
  2844. sed 's/^/| /' conftest.$ac_ext >&5
  2845. ac_header_preproc=no
  2846. fi
  2847. rm -f conftest.err conftest.$ac_ext
  2848. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2849. $as_echo "$ac_header_preproc" >&6; }
  2850. # So? What about this header?
  2851. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2852. yes:no: )
  2853. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2854. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2855. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2856. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2857. ac_header_preproc=yes
  2858. ;;
  2859. no:yes:* )
  2860. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2861. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2862. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2863. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2864. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2865. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2866. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2867. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2868. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2869. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2870. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2871. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2872. ;;
  2873. esac
  2874. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2875. $as_echo_n "checking for minix/config.h... " >&6; }
  2876. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. ac_cv_header_minix_config_h=$ac_header_preproc
  2880. fi
  2881. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2882. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2883. fi
  2884. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2885. MINIX=yes
  2886. else
  2887. MINIX=
  2888. fi
  2889. if test "$MINIX" = yes; then
  2890. cat >>confdefs.h <<\_ACEOF
  2891. #define _POSIX_SOURCE 1
  2892. _ACEOF
  2893. cat >>confdefs.h <<\_ACEOF
  2894. #define _POSIX_1_SOURCE 2
  2895. _ACEOF
  2896. cat >>confdefs.h <<\_ACEOF
  2897. #define _MINIX 1
  2898. _ACEOF
  2899. fi
  2900. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2901. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2902. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. cat >conftest.$ac_ext <<_ACEOF
  2906. /* confdefs.h. */
  2907. _ACEOF
  2908. cat confdefs.h >>conftest.$ac_ext
  2909. cat >>conftest.$ac_ext <<_ACEOF
  2910. /* end confdefs.h. */
  2911. # define __EXTENSIONS__ 1
  2912. $ac_includes_default
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. rm -f conftest.$ac_objext
  2921. if { (ac_try="$ac_compile"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo") >&5
  2928. (eval "$ac_compile") 2>conftest.er1
  2929. ac_status=$?
  2930. grep -v '^ *+' conftest.er1 >conftest.err
  2931. rm -f conftest.er1
  2932. cat conftest.err >&5
  2933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934. (exit $ac_status); } && {
  2935. test -z "$ac_cxx_werror_flag" ||
  2936. test ! -s conftest.err
  2937. } && test -s conftest.$ac_objext; then
  2938. ac_cv_safe_to_define___extensions__=yes
  2939. else
  2940. $as_echo "$as_me: failed program was:" >&5
  2941. sed 's/^/| /' conftest.$ac_ext >&5
  2942. ac_cv_safe_to_define___extensions__=no
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2947. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2948. test $ac_cv_safe_to_define___extensions__ = yes &&
  2949. cat >>confdefs.h <<\_ACEOF
  2950. #define __EXTENSIONS__ 1
  2951. _ACEOF
  2952. cat >>confdefs.h <<\_ACEOF
  2953. #define _ALL_SOURCE 1
  2954. _ACEOF
  2955. cat >>confdefs.h <<\_ACEOF
  2956. #define _GNU_SOURCE 1
  2957. _ACEOF
  2958. cat >>confdefs.h <<\_ACEOF
  2959. #define _POSIX_PTHREAD_SEMANTICS 1
  2960. _ACEOF
  2961. cat >>confdefs.h <<\_ACEOF
  2962. #define _TANDEM_SOURCE 1
  2963. _ACEOF
  2964. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2965. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2966. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2967. $as_echo_n "(cached) " >&6
  2968. else
  2969. ac_check_lib_save_LIBS=$LIBS
  2970. LIBS="-lcposix $LIBS"
  2971. cat >conftest.$ac_ext <<_ACEOF
  2972. /* confdefs.h. */
  2973. _ACEOF
  2974. cat confdefs.h >>conftest.$ac_ext
  2975. cat >>conftest.$ac_ext <<_ACEOF
  2976. /* end confdefs.h. */
  2977. /* Override any GCC internal prototype to avoid an error.
  2978. Use char because int might match the return type of a GCC
  2979. builtin and then its argument prototype would still apply. */
  2980. #ifdef __cplusplus
  2981. extern "C"
  2982. #endif
  2983. char strerror ();
  2984. int
  2985. main ()
  2986. {
  2987. return strerror ();
  2988. ;
  2989. return 0;
  2990. }
  2991. _ACEOF
  2992. rm -f conftest.$ac_objext conftest$ac_exeext
  2993. if { (ac_try="$ac_link"
  2994. case "(($ac_try" in
  2995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2996. *) ac_try_echo=$ac_try;;
  2997. esac
  2998. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2999. $as_echo "$ac_try_echo") >&5
  3000. (eval "$ac_link") 2>conftest.er1
  3001. ac_status=$?
  3002. grep -v '^ *+' conftest.er1 >conftest.err
  3003. rm -f conftest.er1
  3004. cat conftest.err >&5
  3005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3006. (exit $ac_status); } && {
  3007. test -z "$ac_cxx_werror_flag" ||
  3008. test ! -s conftest.err
  3009. } && test -s conftest$ac_exeext && {
  3010. test "$cross_compiling" = yes ||
  3011. $as_test_x conftest$ac_exeext
  3012. }; then
  3013. ac_cv_lib_cposix_strerror=yes
  3014. else
  3015. $as_echo "$as_me: failed program was:" >&5
  3016. sed 's/^/| /' conftest.$ac_ext >&5
  3017. ac_cv_lib_cposix_strerror=no
  3018. fi
  3019. rm -rf conftest.dSYM
  3020. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3021. conftest$ac_exeext conftest.$ac_ext
  3022. LIBS=$ac_check_lib_save_LIBS
  3023. fi
  3024. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3025. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3026. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3027. LIBS="$LIBS -lcposix"
  3028. fi
  3029. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3030. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3031. $as_echo_n "checking for minix/config.h... " >&6; }
  3032. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3033. $as_echo_n "(cached) " >&6
  3034. fi
  3035. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3036. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3037. else
  3038. # Is the header compilable?
  3039. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3040. $as_echo_n "checking minix/config.h usability... " >&6; }
  3041. cat >conftest.$ac_ext <<_ACEOF
  3042. /* confdefs.h. */
  3043. _ACEOF
  3044. cat confdefs.h >>conftest.$ac_ext
  3045. cat >>conftest.$ac_ext <<_ACEOF
  3046. /* end confdefs.h. */
  3047. $ac_includes_default
  3048. #include <minix/config.h>
  3049. _ACEOF
  3050. rm -f conftest.$ac_objext
  3051. if { (ac_try="$ac_compile"
  3052. case "(($ac_try" in
  3053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054. *) ac_try_echo=$ac_try;;
  3055. esac
  3056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3057. $as_echo "$ac_try_echo") >&5
  3058. (eval "$ac_compile") 2>conftest.er1
  3059. ac_status=$?
  3060. grep -v '^ *+' conftest.er1 >conftest.err
  3061. rm -f conftest.er1
  3062. cat conftest.err >&5
  3063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3064. (exit $ac_status); } && {
  3065. test -z "$ac_cxx_werror_flag" ||
  3066. test ! -s conftest.err
  3067. } && test -s conftest.$ac_objext; then
  3068. ac_header_compiler=yes
  3069. else
  3070. $as_echo "$as_me: failed program was:" >&5
  3071. sed 's/^/| /' conftest.$ac_ext >&5
  3072. ac_header_compiler=no
  3073. fi
  3074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3075. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3076. $as_echo "$ac_header_compiler" >&6; }
  3077. # Is the header present?
  3078. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3079. $as_echo_n "checking minix/config.h presence... " >&6; }
  3080. cat >conftest.$ac_ext <<_ACEOF
  3081. /* confdefs.h. */
  3082. _ACEOF
  3083. cat confdefs.h >>conftest.$ac_ext
  3084. cat >>conftest.$ac_ext <<_ACEOF
  3085. /* end confdefs.h. */
  3086. #include <minix/config.h>
  3087. _ACEOF
  3088. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3089. case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3094. $as_echo "$ac_try_echo") >&5
  3095. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3096. ac_status=$?
  3097. grep -v '^ *+' conftest.er1 >conftest.err
  3098. rm -f conftest.er1
  3099. cat conftest.err >&5
  3100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101. (exit $ac_status); } >/dev/null && {
  3102. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3103. test ! -s conftest.err
  3104. }; then
  3105. ac_header_preproc=yes
  3106. else
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. ac_header_preproc=no
  3110. fi
  3111. rm -f conftest.err conftest.$ac_ext
  3112. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3113. $as_echo "$ac_header_preproc" >&6; }
  3114. # So? What about this header?
  3115. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3116. yes:no: )
  3117. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3118. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3119. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3120. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3121. ac_header_preproc=yes
  3122. ;;
  3123. no:yes:* )
  3124. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3125. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3126. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3127. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3128. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3129. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3130. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3131. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3132. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3133. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3134. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3135. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3136. ;;
  3137. esac
  3138. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3139. $as_echo_n "checking for minix/config.h... " >&6; }
  3140. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3141. $as_echo_n "(cached) " >&6
  3142. else
  3143. ac_cv_header_minix_config_h=$ac_header_preproc
  3144. fi
  3145. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3146. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3147. fi
  3148. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3149. MINIX=yes
  3150. else
  3151. MINIX=
  3152. fi
  3153. if test "$MINIX" = yes; then
  3154. cat >>confdefs.h <<\_ACEOF
  3155. #define _POSIX_SOURCE 1
  3156. _ACEOF
  3157. cat >>confdefs.h <<\_ACEOF
  3158. #define _POSIX_1_SOURCE 2
  3159. _ACEOF
  3160. cat >>confdefs.h <<\_ACEOF
  3161. #define _MINIX 1
  3162. _ACEOF
  3163. fi
  3164. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3165. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3166. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3167. $as_echo_n "(cached) " >&6
  3168. else
  3169. cat >conftest.$ac_ext <<_ACEOF
  3170. /* confdefs.h. */
  3171. _ACEOF
  3172. cat confdefs.h >>conftest.$ac_ext
  3173. cat >>conftest.$ac_ext <<_ACEOF
  3174. /* end confdefs.h. */
  3175. # define __EXTENSIONS__ 1
  3176. $ac_includes_default
  3177. int
  3178. main ()
  3179. {
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. rm -f conftest.$ac_objext
  3185. if { (ac_try="$ac_compile"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3191. $as_echo "$ac_try_echo") >&5
  3192. (eval "$ac_compile") 2>conftest.er1
  3193. ac_status=$?
  3194. grep -v '^ *+' conftest.er1 >conftest.err
  3195. rm -f conftest.er1
  3196. cat conftest.err >&5
  3197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3198. (exit $ac_status); } && {
  3199. test -z "$ac_cxx_werror_flag" ||
  3200. test ! -s conftest.err
  3201. } && test -s conftest.$ac_objext; then
  3202. ac_cv_safe_to_define___extensions__=yes
  3203. else
  3204. $as_echo "$as_me: failed program was:" >&5
  3205. sed 's/^/| /' conftest.$ac_ext >&5
  3206. ac_cv_safe_to_define___extensions__=no
  3207. fi
  3208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3209. fi
  3210. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3211. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3212. test $ac_cv_safe_to_define___extensions__ = yes &&
  3213. cat >>confdefs.h <<\_ACEOF
  3214. #define __EXTENSIONS__ 1
  3215. _ACEOF
  3216. cat >>confdefs.h <<\_ACEOF
  3217. #define _ALL_SOURCE 1
  3218. _ACEOF
  3219. cat >>confdefs.h <<\_ACEOF
  3220. #define _GNU_SOURCE 1
  3221. _ACEOF
  3222. cat >>confdefs.h <<\_ACEOF
  3223. #define _POSIX_PTHREAD_SEMANTICS 1
  3224. _ACEOF
  3225. cat >>confdefs.h <<\_ACEOF
  3226. #define _TANDEM_SOURCE 1
  3227. _ACEOF
  3228. #checkpoint
  3229. cat >confcache <<\_ACEOF
  3230. # This file is a shell script that caches the results of configure
  3231. # tests run on this system so they can be shared between configure
  3232. # scripts and configure runs, see configure's option --config-cache.
  3233. # It is not useful on other systems. If it contains results you don't
  3234. # want to keep, you may remove or edit it.
  3235. #
  3236. # config.status only pays attention to the cache file if you give it
  3237. # the --recheck option to rerun configure.
  3238. #
  3239. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3240. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3241. # following values.
  3242. _ACEOF
  3243. # The following way of writing the cache mishandles newlines in values,
  3244. # but we know of no workaround that is simple, portable, and efficient.
  3245. # So, we kill variables containing newlines.
  3246. # Ultrix sh set writes to stderr and can't be redirected directly,
  3247. # and sets the high bit in the cache file unless we assign to the vars.
  3248. (
  3249. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3250. eval ac_val=\$$ac_var
  3251. case $ac_val in #(
  3252. *${as_nl}*)
  3253. case $ac_var in #(
  3254. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3255. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3256. esac
  3257. case $ac_var in #(
  3258. _ | IFS | as_nl) ;; #(
  3259. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3260. *) $as_unset $ac_var ;;
  3261. esac ;;
  3262. esac
  3263. done
  3264. (set) 2>&1 |
  3265. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3266. *${as_nl}ac_space=\ *)
  3267. # `set' does not quote correctly, so add quotes (double-quote
  3268. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3269. sed -n \
  3270. "s/'/'\\\\''/g;
  3271. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3272. ;; #(
  3273. *)
  3274. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3275. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3276. ;;
  3277. esac |
  3278. sort
  3279. ) |
  3280. sed '
  3281. /^ac_cv_env_/b end
  3282. t clear
  3283. :clear
  3284. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3285. t end
  3286. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3287. :end' >>confcache
  3288. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3289. if test -w "$cache_file"; then
  3290. test "x$cache_file" != "x/dev/null" &&
  3291. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3292. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3293. cat confcache >$cache_file
  3294. else
  3295. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3296. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3297. fi
  3298. fi
  3299. rm -f confcache
  3300. # Speedup compile
  3301. if test -n "$GXX" && test -z "$no_wall"; then
  3302. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3303. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3304. if test "${egg_cv_var_ccwall+set}" = set; then
  3305. $as_echo_n "(cached) " >&6
  3306. else
  3307. ac_old_CXXFLAGS="$CXXFLAGS"
  3308. CXXFLAGS="$CXXFLAGS -Wall"
  3309. cat >conftest.$ac_ext <<_ACEOF
  3310. int main ()
  3311. {
  3312. return(0);
  3313. }
  3314. _ACEOF
  3315. rm -f conftest.$ac_objext
  3316. if { (ac_try="$ac_compile"
  3317. case "(($ac_try" in
  3318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3319. *) ac_try_echo=$ac_try;;
  3320. esac
  3321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3322. $as_echo "$ac_try_echo") >&5
  3323. (eval "$ac_compile") 2>conftest.er1
  3324. ac_status=$?
  3325. grep -v '^ *+' conftest.er1 >conftest.err
  3326. rm -f conftest.er1
  3327. cat conftest.err >&5
  3328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); } && {
  3330. test -z "$ac_cxx_werror_flag" ||
  3331. test ! -s conftest.err
  3332. } && test -s conftest.$ac_objext; then
  3333. egg_cv_var_ccwall="yes"
  3334. else
  3335. $as_echo "$as_me: failed program was:" >&5
  3336. sed 's/^/| /' conftest.$ac_ext >&5
  3337. egg_cv_var_ccwall="no"
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. CXXFLAGS="$ac_old_CXXFLAGS"
  3341. fi
  3342. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3343. $as_echo "$egg_cv_var_ccwall" >&6; }
  3344. if test "$egg_cv_var_ccwall" = "yes"; then
  3345. CXXFLAGS="$CXXFLAGS -Wall"
  3346. fi
  3347. fi
  3348. if test -n "$GXX" && test -z "$no_pipe"; then
  3349. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3350. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3351. if test "${egg_cv_var_ccpipe+set}" = set; then
  3352. $as_echo_n "(cached) " >&6
  3353. else
  3354. ac_old_CXX="$CXX"
  3355. CXX="$CXX -pipe"
  3356. cat >conftest.$ac_ext <<_ACEOF
  3357. int main ()
  3358. {
  3359. return(0);
  3360. }
  3361. _ACEOF
  3362. rm -f conftest.$ac_objext
  3363. if { (ac_try="$ac_compile"
  3364. case "(($ac_try" in
  3365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3366. *) ac_try_echo=$ac_try;;
  3367. esac
  3368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3369. $as_echo "$ac_try_echo") >&5
  3370. (eval "$ac_compile") 2>conftest.er1
  3371. ac_status=$?
  3372. grep -v '^ *+' conftest.er1 >conftest.err
  3373. rm -f conftest.er1
  3374. cat conftest.err >&5
  3375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); } && {
  3377. test -z "$ac_cxx_werror_flag" ||
  3378. test ! -s conftest.err
  3379. } && test -s conftest.$ac_objext; then
  3380. egg_cv_var_ccpipe="yes"
  3381. else
  3382. $as_echo "$as_me: failed program was:" >&5
  3383. sed 's/^/| /' conftest.$ac_ext >&5
  3384. egg_cv_var_ccpipe="no"
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. CXX="$ac_old_CXX"
  3388. fi
  3389. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3390. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3391. if test "$egg_cv_var_ccpipe" = "yes"; then
  3392. CXX="$CXX -pipe"
  3393. fi
  3394. fi
  3395. CCDEPMODE=gcc
  3396. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3397. if test $num -ge "3"; then
  3398. CCDEPMODE=gcc3
  3399. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3400. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3401. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3402. fi
  3403. if test $num -ge "4"; then
  3404. GCC4DEB="-fstack-protector-all"
  3405. fi
  3406. #checkpoint
  3407. cat >confcache <<\_ACEOF
  3408. # This file is a shell script that caches the results of configure
  3409. # tests run on this system so they can be shared between configure
  3410. # scripts and configure runs, see configure's option --config-cache.
  3411. # It is not useful on other systems. If it contains results you don't
  3412. # want to keep, you may remove or edit it.
  3413. #
  3414. # config.status only pays attention to the cache file if you give it
  3415. # the --recheck option to rerun configure.
  3416. #
  3417. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3418. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3419. # following values.
  3420. _ACEOF
  3421. # The following way of writing the cache mishandles newlines in values,
  3422. # but we know of no workaround that is simple, portable, and efficient.
  3423. # So, we kill variables containing newlines.
  3424. # Ultrix sh set writes to stderr and can't be redirected directly,
  3425. # and sets the high bit in the cache file unless we assign to the vars.
  3426. (
  3427. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3428. eval ac_val=\$$ac_var
  3429. case $ac_val in #(
  3430. *${as_nl}*)
  3431. case $ac_var in #(
  3432. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3433. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3434. esac
  3435. case $ac_var in #(
  3436. _ | IFS | as_nl) ;; #(
  3437. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3438. *) $as_unset $ac_var ;;
  3439. esac ;;
  3440. esac
  3441. done
  3442. (set) 2>&1 |
  3443. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3444. *${as_nl}ac_space=\ *)
  3445. # `set' does not quote correctly, so add quotes (double-quote
  3446. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3447. sed -n \
  3448. "s/'/'\\\\''/g;
  3449. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3450. ;; #(
  3451. *)
  3452. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3453. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3454. ;;
  3455. esac |
  3456. sort
  3457. ) |
  3458. sed '
  3459. /^ac_cv_env_/b end
  3460. t clear
  3461. :clear
  3462. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3463. t end
  3464. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3465. :end' >>confcache
  3466. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3467. if test -w "$cache_file"; then
  3468. test "x$cache_file" != "x/dev/null" &&
  3469. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3470. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3471. cat confcache >$cache_file
  3472. else
  3473. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3474. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3475. fi
  3476. fi
  3477. rm -f confcache
  3478. # Checks for programs
  3479. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3480. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3481. set x ${MAKE-make}
  3482. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3483. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. cat >conftest.make <<\_ACEOF
  3487. SHELL = /bin/sh
  3488. all:
  3489. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3490. _ACEOF
  3491. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3492. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3493. *@@@%%%=?*=@@@%%%*)
  3494. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3495. *)
  3496. eval ac_cv_prog_make_${ac_make}_set=no;;
  3497. esac
  3498. rm -f conftest.make
  3499. fi
  3500. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3501. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3502. $as_echo "yes" >&6; }
  3503. SET_MAKE=
  3504. else
  3505. { $as_echo "$as_me:$LINENO: result: no" >&5
  3506. $as_echo "no" >&6; }
  3507. SET_MAKE="MAKE=${MAKE-make}"
  3508. fi
  3509. cat << 'EOF' > conftest.head
  3510. a
  3511. b
  3512. c
  3513. EOF
  3514. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3515. do
  3516. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3517. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3518. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3519. $as_echo_n "(cached) " >&6
  3520. else
  3521. if test -n "$HEAD_1"
  3522. then
  3523. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3524. else
  3525. if test "`cat conftest.head | $ac_prog`" = "a";
  3526. then
  3527. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3528. $as_echo "yes" >&6; }
  3529. ac_cv_prog_HEAD_1=$ac_prog
  3530. else
  3531. { $as_echo "$as_me:$LINENO: result: no" >&5
  3532. $as_echo "no" >&6; }
  3533. fi
  3534. fi
  3535. fi
  3536. test -n "$ac_cv_prog_HEAD_1" && break
  3537. done
  3538. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3539. then
  3540. cat << 'EOF' >&2
  3541. configure: error:
  3542. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3543. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3544. EOF
  3545. exit 1
  3546. fi
  3547. rm -f conftest.head
  3548. HEAD_1=$ac_cv_prog_HEAD_1
  3549. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3550. for ac_prog in gawk mawk nawk awk
  3551. do
  3552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3553. set dummy $ac_prog; ac_word=$2
  3554. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3555. $as_echo_n "checking for $ac_word... " >&6; }
  3556. if test "${ac_cv_prog_AWK+set}" = set; then
  3557. $as_echo_n "(cached) " >&6
  3558. else
  3559. if test -n "$AWK"; then
  3560. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3561. else
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3569. ac_cv_prog_AWK="$ac_prog"
  3570. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. AWK=$ac_cv_prog_AWK
  3579. if test -n "$AWK"; then
  3580. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3581. $as_echo "$AWK" >&6; }
  3582. else
  3583. { $as_echo "$as_me:$LINENO: result: no" >&5
  3584. $as_echo "no" >&6; }
  3585. fi
  3586. test -n "$AWK" && break
  3587. done
  3588. if test "${AWK-x}" = "x"
  3589. then
  3590. cat << 'EOF' >&2
  3591. configure: error:
  3592. This system seems to lack a working 'awk' command.
  3593. A working 'awk' command is required to compile Eggdrop.
  3594. EOF
  3595. exit 1
  3596. fi
  3597. # basename is needed for Tcl library and header checks
  3598. # Extract the first word of "basename", so it can be a program name with args.
  3599. set dummy basename; ac_word=$2
  3600. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3601. $as_echo_n "checking for $ac_word... " >&6; }
  3602. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. if test -n "$BASENAME"; then
  3606. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3607. else
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3615. ac_cv_prog_BASENAME="basename"
  3616. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. BASENAME=$ac_cv_prog_BASENAME
  3625. if test -n "$BASENAME"; then
  3626. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3627. $as_echo "$BASENAME" >&6; }
  3628. else
  3629. { $as_echo "$as_me:$LINENO: result: no" >&5
  3630. $as_echo "no" >&6; }
  3631. fi
  3632. if test "${BASENAME-x}" = "x"
  3633. then
  3634. cat << 'EOF' >&2
  3635. configure: error:
  3636. This system seems to lack a working 'basename' command.
  3637. A working 'basename' command is required to compile Eggdrop.
  3638. EOF
  3639. exit 1
  3640. fi
  3641. # Extract the first word of "objcopy", so it can be a program name with args.
  3642. set dummy objcopy; ac_word=$2
  3643. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3644. $as_echo_n "checking for $ac_word... " >&6; }
  3645. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if test -n "$OBJCOPY"; then
  3649. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3650. else
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH
  3653. do
  3654. IFS=$as_save_IFS
  3655. test -z "$as_dir" && as_dir=.
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3658. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3659. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3660. break 2
  3661. fi
  3662. done
  3663. done
  3664. IFS=$as_save_IFS
  3665. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3666. fi
  3667. fi
  3668. OBJCOPY=$ac_cv_prog_OBJCOPY
  3669. if test -n "$OBJCOPY"; then
  3670. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3671. $as_echo "$OBJCOPY" >&6; }
  3672. else
  3673. { $as_echo "$as_me:$LINENO: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. fi
  3676. # Extract the first word of "strip", so it can be a program name with args.
  3677. set dummy strip; ac_word=$2
  3678. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3679. $as_echo_n "checking for $ac_word... " >&6; }
  3680. if test "${ac_cv_prog_STRIP+set}" = set; then
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. if test -n "$STRIP"; then
  3684. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3685. else
  3686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3687. for as_dir in $PATH
  3688. do
  3689. IFS=$as_save_IFS
  3690. test -z "$as_dir" && as_dir=.
  3691. for ac_exec_ext in '' $ac_executable_extensions; do
  3692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3693. ac_cv_prog_STRIP="strip"
  3694. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3695. break 2
  3696. fi
  3697. done
  3698. done
  3699. IFS=$as_save_IFS
  3700. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3701. fi
  3702. fi
  3703. STRIP=$ac_cv_prog_STRIP
  3704. if test -n "$STRIP"; then
  3705. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3706. $as_echo "$STRIP" >&6; }
  3707. else
  3708. { $as_echo "$as_me:$LINENO: result: no" >&5
  3709. $as_echo "no" >&6; }
  3710. fi
  3711. # Extract the first word of "gdiff", so it can be a program name with args.
  3712. set dummy gdiff; ac_word=$2
  3713. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3714. $as_echo_n "checking for $ac_word... " >&6; }
  3715. if test "${ac_cv_prog_DIFF+set}" = set; then
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -n "$DIFF"; then
  3719. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3720. else
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3728. ac_cv_prog_DIFF="gdiff"
  3729. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730. break 2
  3731. fi
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3736. fi
  3737. fi
  3738. DIFF=$ac_cv_prog_DIFF
  3739. if test -n "$DIFF"; then
  3740. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3741. $as_echo "$DIFF" >&6; }
  3742. else
  3743. { $as_echo "$as_me:$LINENO: result: no" >&5
  3744. $as_echo "no" >&6; }
  3745. fi
  3746. # Extract the first word of "uname", so it can be a program name with args.
  3747. set dummy uname; ac_word=$2
  3748. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3749. $as_echo_n "checking for $ac_word... " >&6; }
  3750. if test "${ac_cv_prog_UNAME+set}" = set; then
  3751. $as_echo_n "(cached) " >&6
  3752. else
  3753. if test -n "$UNAME"; then
  3754. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3755. else
  3756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3757. for as_dir in $PATH
  3758. do
  3759. IFS=$as_save_IFS
  3760. test -z "$as_dir" && as_dir=.
  3761. for ac_exec_ext in '' $ac_executable_extensions; do
  3762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3763. ac_cv_prog_UNAME="uname"
  3764. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3765. break 2
  3766. fi
  3767. done
  3768. done
  3769. IFS=$as_save_IFS
  3770. fi
  3771. fi
  3772. UNAME=$ac_cv_prog_UNAME
  3773. if test -n "$UNAME"; then
  3774. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3775. $as_echo "$UNAME" >&6; }
  3776. else
  3777. { $as_echo "$as_me:$LINENO: result: no" >&5
  3778. $as_echo "no" >&6; }
  3779. fi
  3780. # Extract the first word of "ccache", so it can be a program name with args.
  3781. set dummy ccache; ac_word=$2
  3782. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$CCACHE"; then
  3788. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3797. ac_cv_prog_CCACHE="ccache"
  3798. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. CCACHE=$ac_cv_prog_CCACHE
  3807. if test -n "$CCACHE"; then
  3808. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3809. $as_echo "$CCACHE" >&6; }
  3810. else
  3811. { $as_echo "$as_me:$LINENO: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. # Extract the first word of "distcc", so it can be a program name with args.
  3815. set dummy distcc; ac_word=$2
  3816. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3817. $as_echo_n "checking for $ac_word... " >&6; }
  3818. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. if test -n "$DISTCC"; then
  3822. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3823. else
  3824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. for ac_exec_ext in '' $ac_executable_extensions; do
  3830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3831. ac_cv_prog_DISTCC="distcc"
  3832. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3833. break 2
  3834. fi
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. fi
  3839. fi
  3840. DISTCC=$ac_cv_prog_DISTCC
  3841. if test -n "$DISTCC"; then
  3842. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3843. $as_echo "$DISTCC" >&6; }
  3844. else
  3845. { $as_echo "$as_me:$LINENO: result: no" >&5
  3846. $as_echo "no" >&6; }
  3847. fi
  3848. # Test the os and set the module linking settings
  3849. EGG_CYGWIN=no
  3850. USE_STATIC=yes
  3851. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3852. $as_echo_n "checking system type... " >&6; }
  3853. if test "${egg_cv_var_system_type+set}" = set; then
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. egg_cv_var_system_type=`$UNAME -s`
  3857. fi
  3858. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3859. $as_echo "$egg_cv_var_system_type" >&6; }
  3860. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3861. $as_echo_n "checking system release... " >&6; }
  3862. if test "${egg_cv_var_system_release+set}" = set; then
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. egg_cv_var_system_release=`$UNAME -r`
  3866. fi
  3867. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3868. $as_echo "$egg_cv_var_system_release" >&6; }
  3869. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3870. $as_echo_n "checking system machine... " >&6; }
  3871. if test "${egg_cv_var_system_machine+set}" = set; then
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. egg_cv_var_system_machine=`$UNAME -m`
  3875. fi
  3876. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3877. $as_echo "$egg_cv_var_system_machine" >&6; }
  3878. BUILDOS="$egg_cv_var_system_type"
  3879. BUILDARCH="$egg_cv_var_system_machine"
  3880. USE_GENERIC_I486="yes"
  3881. case "$egg_cv_var_system_type" in
  3882. BSD/OS)
  3883. ;;
  3884. CYGWI*)
  3885. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3886. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3887. WIN32FLAGS=
  3888. cat >conftest.$ac_ext <<_ACEOF
  3889. /* confdefs.h. */
  3890. _ACEOF
  3891. cat confdefs.h >>conftest.$ac_ext
  3892. cat >>conftest.$ac_ext <<_ACEOF
  3893. /* end confdefs.h. */
  3894. int
  3895. main ()
  3896. {
  3897. #ifndef WIN32
  3898. # ifndef _WIN32
  3899. # error WIN32 or _WIN32 not defined
  3900. # endif
  3901. #endif
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. rm -f conftest.$ac_objext
  3907. if { (ac_try="$ac_compile"
  3908. case "(($ac_try" in
  3909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3910. *) ac_try_echo=$ac_try;;
  3911. esac
  3912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3913. $as_echo "$ac_try_echo") >&5
  3914. (eval "$ac_compile") 2>conftest.er1
  3915. ac_status=$?
  3916. grep -v '^ *+' conftest.er1 >conftest.err
  3917. rm -f conftest.er1
  3918. cat conftest.err >&5
  3919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3920. (exit $ac_status); } && {
  3921. test -z "$ac_cxx_werror_flag" ||
  3922. test ! -s conftest.err
  3923. } && test -s conftest.$ac_objext; then
  3924. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3925. $as_echo "present by default" >&6; }
  3926. else
  3927. $as_echo "$as_me: failed program was:" >&5
  3928. sed 's/^/| /' conftest.$ac_ext >&5
  3929. ac_compile_save="$ac_compile"
  3930. save_CXX="$CXX"
  3931. ac_compile="$ac_compile -mwin32"
  3932. CXX="$CXX -mwin32"
  3933. cat >conftest.$ac_ext <<_ACEOF
  3934. /* confdefs.h. */
  3935. _ACEOF
  3936. cat confdefs.h >>conftest.$ac_ext
  3937. cat >>conftest.$ac_ext <<_ACEOF
  3938. /* end confdefs.h. */
  3939. int
  3940. main ()
  3941. {
  3942. #ifndef WIN32
  3943. # ifndef _WIN32
  3944. # error WIN32 or _WIN32 not defined
  3945. # endif
  3946. #endif
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. rm -f conftest.$ac_objext
  3952. if { (ac_try="$ac_compile"
  3953. case "(($ac_try" in
  3954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3955. *) ac_try_echo=$ac_try;;
  3956. esac
  3957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3958. $as_echo "$ac_try_echo") >&5
  3959. (eval "$ac_compile") 2>conftest.er1
  3960. ac_status=$?
  3961. grep -v '^ *+' conftest.er1 >conftest.err
  3962. rm -f conftest.er1
  3963. cat conftest.err >&5
  3964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); } && {
  3966. test -z "$ac_cxx_werror_flag" ||
  3967. test ! -s conftest.err
  3968. } && test -s conftest.$ac_objext; then
  3969. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3970. $as_echo "found via -mwin32" >&6; }
  3971. ac_compile="$ac_compile_save"
  3972. CXX="$save_CXX"
  3973. WIN32FLAGS="-mwin32"
  3974. else
  3975. $as_echo "$as_me: failed program was:" >&5
  3976. sed 's/^/| /' conftest.$ac_ext >&5
  3977. ac_compile="$ac_compile_save"
  3978. CXX="$save_CXX"
  3979. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3980. $as_echo "not found" >&6; }
  3981. fi
  3982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3983. fi
  3984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3985. CXX="$CXX $WIN32FLAGS"
  3986. EGG_CYGWIN="yes"
  3987. if test $EGG_CYGWIN = "yes"; then
  3988. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3989. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3990. if test -r /usr/lib/binmode.o; then
  3991. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3992. $as_echo "yes" >&6; }
  3993. LIBS="$LIBS /usr/lib/binmode.o"
  3994. else
  3995. { $as_echo "$as_me:$LINENO: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3998. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3999. fi
  4000. fi
  4001. cat >>confdefs.h <<\_ACEOF
  4002. #define CYGWIN_HACKS 1
  4003. _ACEOF
  4004. cat >>confdefs.h <<\_ACEOF
  4005. #define WIN32_LEAN_AND_MEAN 1
  4006. _ACEOF
  4007. ;;
  4008. IRIX)
  4009. ;;
  4010. HP-UX)
  4011. cat >>confdefs.h <<\_ACEOF
  4012. #define MD32_XARRAY 1
  4013. _ACEOF
  4014. ;;
  4015. Ultrix)
  4016. SHELL=/bin/sh5
  4017. ;;
  4018. SINIX*)
  4019. ;;
  4020. BeOS)
  4021. ;;
  4022. Linux)
  4023. ;;
  4024. Lynx)
  4025. ;;
  4026. QNX)
  4027. ;;
  4028. OSF1)
  4029. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4030. V*)
  4031. if test "$AWK" = "gawk"
  4032. then
  4033. AWK=awk
  4034. fi
  4035. ;;
  4036. 1.0|1.1|1.2)
  4037. cat >>confdefs.h <<\_ACEOF
  4038. #define OSF1_HACKS 1
  4039. _ACEOF
  4040. ;;
  4041. 1.*)
  4042. cat >>confdefs.h <<\_ACEOF
  4043. #define OSF1_HACKS 1
  4044. _ACEOF
  4045. ;;
  4046. *)
  4047. ;;
  4048. esac
  4049. cat >>confdefs.h <<\_ACEOF
  4050. #define STOP_UAC 1
  4051. _ACEOF
  4052. cat >>confdefs.h <<\_ACEOF
  4053. #define BROKEN_SNPRINTF 1
  4054. _ACEOF
  4055. ;;
  4056. SunOS)
  4057. SUNOS="yes"
  4058. USE_STATIC="no"
  4059. ;;
  4060. Darwin)
  4061. USE_STATIC="no"
  4062. USE_GENERIC_I486="no"
  4063. ;;
  4064. *BSD)
  4065. # FreeBSD/OpenBSD/NetBSD
  4066. ;;
  4067. *)
  4068. { $as_echo "$as_me:$LINENO: checking if system is Mach based" >&5
  4069. $as_echo_n "checking if system is Mach based... " >&6; }
  4070. if test -r /mach
  4071. then
  4072. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4073. $as_echo "yes" >&6; }
  4074. cat >>confdefs.h <<\_ACEOF
  4075. #define BORGCUBES 1
  4076. _ACEOF
  4077. else
  4078. { $as_echo "$as_me:$LINENO: result: no" >&5
  4079. $as_echo "no" >&6; }
  4080. { $as_echo "$as_me:$LINENO: checking if system is QNX" >&5
  4081. $as_echo_n "checking if system is QNX... " >&6; }
  4082. if test -r /cmds
  4083. then
  4084. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4085. $as_echo "yes" >&6; }
  4086. else
  4087. { $as_echo "$as_me:$LINENO: result: no" >&5
  4088. $as_echo "no" >&6; }
  4089. { $as_echo "$as_me:$LINENO: result: Something unknown!" >&5
  4090. $as_echo "Something unknown!" >&6; }
  4091. fi
  4092. fi
  4093. ;;
  4094. esac
  4095. case "$egg_cv_var_system_machine" in
  4096. i*)
  4097. if test "$USE_GENERIC_I486" = "yes"; then
  4098. CXX="$CXX -march=i486"
  4099. BUILDARCH="i486"
  4100. fi
  4101. ;;
  4102. *)
  4103. ;;
  4104. esac
  4105. # Check for IPv6 support
  4106. #EGG_IPV6_SUPPORTED
  4107. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4108. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4109. # Check whether --enable-ipv6 was given.
  4110. if test "${enable_ipv6+set}" = set; then
  4111. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4112. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4113. $as_echo "yes" >&6; }
  4114. else
  4115. ac_cv_dipv6="no"
  4116. if test "$egg_cv_ipv6_supported" = "no"; then
  4117. ac_cv_dipv6="no"
  4118. fi
  4119. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4120. $as_echo "$ac_cv_dipv6" >&6; }
  4121. fi
  4122. if ! test "$EGG_CYGWIN" = "yes"; then
  4123. if test "$ac_cv_dipv6" = "no"; then
  4124. cat >>confdefs.h <<\_ACEOF
  4125. #define USE_IPV6 1
  4126. _ACEOF
  4127. fi
  4128. fi
  4129. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4130. $as_echo_n "checking for socklen_t... " >&6; }
  4131. if test "${egg_cv_socklen_t+set}" = set; then
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. if test "$cross_compiling" = yes; then
  4135. egg_cv_socklen_t=no
  4136. else
  4137. cat >conftest.$ac_ext <<_ACEOF
  4138. /* confdefs.h. */
  4139. _ACEOF
  4140. cat confdefs.h >>conftest.$ac_ext
  4141. cat >>conftest.$ac_ext <<_ACEOF
  4142. /* end confdefs.h. */
  4143. #include <unistd.h>
  4144. #include <sys/types.h>
  4145. #include <sys/socket.h>
  4146. #include <netinet/in.h>
  4147. #include <arpa/inet.h>
  4148. int main()
  4149. {
  4150. socklen_t test = sizeof(int);
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. rm -f conftest$ac_exeext
  4155. if { (ac_try="$ac_link"
  4156. case "(($ac_try" in
  4157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4158. *) ac_try_echo=$ac_try;;
  4159. esac
  4160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4161. $as_echo "$ac_try_echo") >&5
  4162. (eval "$ac_link") 2>&5
  4163. ac_status=$?
  4164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4166. { (case "(($ac_try" in
  4167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4168. *) ac_try_echo=$ac_try;;
  4169. esac
  4170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4171. $as_echo "$ac_try_echo") >&5
  4172. (eval "$ac_try") 2>&5
  4173. ac_status=$?
  4174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4175. (exit $ac_status); }; }; then
  4176. egg_cv_socklen_t=yes
  4177. else
  4178. $as_echo "$as_me: program exited with status $ac_status" >&5
  4179. $as_echo "$as_me: failed program was:" >&5
  4180. sed 's/^/| /' conftest.$ac_ext >&5
  4181. ( exit $ac_status )
  4182. egg_cv_socklen_t=no
  4183. fi
  4184. rm -rf conftest.dSYM
  4185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4186. fi
  4187. fi
  4188. if test "$egg_cv_socklen_t" = "yes"; then
  4189. cat >>confdefs.h <<\_ACEOF
  4190. #define HAVE_SOCKLEN_T 1
  4191. _ACEOF
  4192. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4193. $as_echo "yes" >&6; }
  4194. else
  4195. { $as_echo "$as_me:$LINENO: result: no" >&5
  4196. $as_echo "no" >&6; }
  4197. fi
  4198. # Check for inconsistent random() functions
  4199. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4200. $as_echo_n "checking for random limit... " >&6; }
  4201. case "$egg_cv_var_system_type" in
  4202. SunOS) RMAX=0x7FFFFFFF
  4203. ;;
  4204. *) RMAX=RAND_MAX
  4205. ;;
  4206. esac
  4207. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4208. $as_echo "$RMAX" >&6; }
  4209. cat >>confdefs.h <<_ACEOF
  4210. #define RANDOM_MAX $RMAX
  4211. _ACEOF
  4212. # Create static binaries
  4213. if test "$USE_STATIC" = "yes"
  4214. then
  4215. if test -n "$GXX"
  4216. then
  4217. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4218. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4219. if test "${egg_cv_var_ccstatic+set}" = set; then
  4220. $as_echo_n "(cached) " >&6
  4221. else
  4222. cat >conftest.$ac_ext <<_ACEOF
  4223. /* confdefs.h. */
  4224. _ACEOF
  4225. cat confdefs.h >>conftest.$ac_ext
  4226. cat >>conftest.$ac_ext <<_ACEOF
  4227. /* end confdefs.h. */
  4228. int
  4229. main ()
  4230. {
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. rm -f conftest.$ac_objext
  4236. if { (ac_try="$ac_compile"
  4237. case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4242. $as_echo "$ac_try_echo") >&5
  4243. (eval "$ac_compile") 2>conftest.er1
  4244. ac_status=$?
  4245. grep -v '^ *+' conftest.er1 >conftest.err
  4246. rm -f conftest.er1
  4247. cat conftest.err >&5
  4248. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } && {
  4250. test -z "$ac_cxx_werror_flag" ||
  4251. test ! -s conftest.err
  4252. } && test -s conftest.$ac_objext; then
  4253. egg_cv_var_ccstatic="yes"
  4254. else
  4255. $as_echo "$as_me: failed program was:" >&5
  4256. sed 's/^/| /' conftest.$ac_ext >&5
  4257. egg_cv_var_ccstatic="no"
  4258. fi
  4259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4260. fi
  4261. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4262. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4263. if ! test "$egg_cv_var_ccstatic" = "yes"
  4264. then
  4265. cat << 'EOF' >&2
  4266. configure: error:
  4267. Your OS or C++ compiler does not support -static.
  4268. This compile flag is required for the botpack on this OS.
  4269. EOF
  4270. exit 1
  4271. fi
  4272. fi
  4273. STATIC="-static"
  4274. else
  4275. STATIC=""
  4276. fi
  4277. #checkpoint
  4278. cat >confcache <<\_ACEOF
  4279. # This file is a shell script that caches the results of configure
  4280. # tests run on this system so they can be shared between configure
  4281. # scripts and configure runs, see configure's option --config-cache.
  4282. # It is not useful on other systems. If it contains results you don't
  4283. # want to keep, you may remove or edit it.
  4284. #
  4285. # config.status only pays attention to the cache file if you give it
  4286. # the --recheck option to rerun configure.
  4287. #
  4288. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4289. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4290. # following values.
  4291. _ACEOF
  4292. # The following way of writing the cache mishandles newlines in values,
  4293. # but we know of no workaround that is simple, portable, and efficient.
  4294. # So, we kill variables containing newlines.
  4295. # Ultrix sh set writes to stderr and can't be redirected directly,
  4296. # and sets the high bit in the cache file unless we assign to the vars.
  4297. (
  4298. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4299. eval ac_val=\$$ac_var
  4300. case $ac_val in #(
  4301. *${as_nl}*)
  4302. case $ac_var in #(
  4303. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4304. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4305. esac
  4306. case $ac_var in #(
  4307. _ | IFS | as_nl) ;; #(
  4308. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4309. *) $as_unset $ac_var ;;
  4310. esac ;;
  4311. esac
  4312. done
  4313. (set) 2>&1 |
  4314. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4315. *${as_nl}ac_space=\ *)
  4316. # `set' does not quote correctly, so add quotes (double-quote
  4317. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4318. sed -n \
  4319. "s/'/'\\\\''/g;
  4320. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4321. ;; #(
  4322. *)
  4323. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4324. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4325. ;;
  4326. esac |
  4327. sort
  4328. ) |
  4329. sed '
  4330. /^ac_cv_env_/b end
  4331. t clear
  4332. :clear
  4333. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4334. t end
  4335. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4336. :end' >>confcache
  4337. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4338. if test -w "$cache_file"; then
  4339. test "x$cache_file" != "x/dev/null" &&
  4340. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4341. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4342. cat confcache >$cache_file
  4343. else
  4344. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4345. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4346. fi
  4347. fi
  4348. rm -f confcache
  4349. # Checks for system libraries
  4350. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4351. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4352. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. ac_check_lib_save_LIBS=$LIBS
  4356. LIBS="-lsocket $LIBS"
  4357. cat >conftest.$ac_ext <<_ACEOF
  4358. /* confdefs.h. */
  4359. _ACEOF
  4360. cat confdefs.h >>conftest.$ac_ext
  4361. cat >>conftest.$ac_ext <<_ACEOF
  4362. /* end confdefs.h. */
  4363. /* Override any GCC internal prototype to avoid an error.
  4364. Use char because int might match the return type of a GCC
  4365. builtin and then its argument prototype would still apply. */
  4366. #ifdef __cplusplus
  4367. extern "C"
  4368. #endif
  4369. char socket ();
  4370. int
  4371. main ()
  4372. {
  4373. return socket ();
  4374. ;
  4375. return 0;
  4376. }
  4377. _ACEOF
  4378. rm -f conftest.$ac_objext conftest$ac_exeext
  4379. if { (ac_try="$ac_link"
  4380. case "(($ac_try" in
  4381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4382. *) ac_try_echo=$ac_try;;
  4383. esac
  4384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4385. $as_echo "$ac_try_echo") >&5
  4386. (eval "$ac_link") 2>conftest.er1
  4387. ac_status=$?
  4388. grep -v '^ *+' conftest.er1 >conftest.err
  4389. rm -f conftest.er1
  4390. cat conftest.err >&5
  4391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); } && {
  4393. test -z "$ac_cxx_werror_flag" ||
  4394. test ! -s conftest.err
  4395. } && test -s conftest$ac_exeext && {
  4396. test "$cross_compiling" = yes ||
  4397. $as_test_x conftest$ac_exeext
  4398. }; then
  4399. ac_cv_lib_socket_socket=yes
  4400. else
  4401. $as_echo "$as_me: failed program was:" >&5
  4402. sed 's/^/| /' conftest.$ac_ext >&5
  4403. ac_cv_lib_socket_socket=no
  4404. fi
  4405. rm -rf conftest.dSYM
  4406. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4407. conftest$ac_exeext conftest.$ac_ext
  4408. LIBS=$ac_check_lib_save_LIBS
  4409. fi
  4410. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4411. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4412. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4413. cat >>confdefs.h <<_ACEOF
  4414. #define HAVE_LIBSOCKET 1
  4415. _ACEOF
  4416. LIBS="-lsocket $LIBS"
  4417. fi
  4418. # AC_CHECK_LIB(nsl, connect)
  4419. # AC_CHECK_LIB(dl, dlopen)
  4420. # AC_CHECK_LIB(nsl, gethostbyname)
  4421. # AC_CHECK_LIB(dns, gethostbyname)
  4422. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4423. # This is needed for Tcl libraries compiled with thread support
  4424. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4425. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4426. # ac_cv_lib_pthread="-lpthread"], [dnl
  4427. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4428. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4429. # ac_cv_lib_pthread="-lpthread"], [dnl
  4430. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4431. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4432. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4433. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4434. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4435. # ac_cv_lib_pthread=""],
  4436. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4437. if test "$SUNOS" = "yes"; then
  4438. # For suns without yp
  4439. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4440. $as_echo_n "checking for main in -ldl... " >&6; }
  4441. if test "${ac_cv_lib_dl_main+set}" = set; then
  4442. $as_echo_n "(cached) " >&6
  4443. else
  4444. ac_check_lib_save_LIBS=$LIBS
  4445. LIBS="-ldl $LIBS"
  4446. cat >conftest.$ac_ext <<_ACEOF
  4447. /* confdefs.h. */
  4448. _ACEOF
  4449. cat confdefs.h >>conftest.$ac_ext
  4450. cat >>conftest.$ac_ext <<_ACEOF
  4451. /* end confdefs.h. */
  4452. int
  4453. main ()
  4454. {
  4455. return main ();
  4456. ;
  4457. return 0;
  4458. }
  4459. _ACEOF
  4460. rm -f conftest.$ac_objext conftest$ac_exeext
  4461. if { (ac_try="$ac_link"
  4462. case "(($ac_try" in
  4463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4464. *) ac_try_echo=$ac_try;;
  4465. esac
  4466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4467. $as_echo "$ac_try_echo") >&5
  4468. (eval "$ac_link") 2>conftest.er1
  4469. ac_status=$?
  4470. grep -v '^ *+' conftest.er1 >conftest.err
  4471. rm -f conftest.er1
  4472. cat conftest.err >&5
  4473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4474. (exit $ac_status); } && {
  4475. test -z "$ac_cxx_werror_flag" ||
  4476. test ! -s conftest.err
  4477. } && test -s conftest$ac_exeext && {
  4478. test "$cross_compiling" = yes ||
  4479. $as_test_x conftest$ac_exeext
  4480. }; then
  4481. ac_cv_lib_dl_main=yes
  4482. else
  4483. $as_echo "$as_me: failed program was:" >&5
  4484. sed 's/^/| /' conftest.$ac_ext >&5
  4485. ac_cv_lib_dl_main=no
  4486. fi
  4487. rm -rf conftest.dSYM
  4488. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4489. conftest$ac_exeext conftest.$ac_ext
  4490. LIBS=$ac_check_lib_save_LIBS
  4491. fi
  4492. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4493. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4494. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4495. cat >>confdefs.h <<_ACEOF
  4496. #define HAVE_LIBDL 1
  4497. _ACEOF
  4498. LIBS="-ldl $LIBS"
  4499. fi
  4500. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4501. $as_echo_n "checking for main in -lsocket... " >&6; }
  4502. if test "${ac_cv_lib_socket_main+set}" = set; then
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. ac_check_lib_save_LIBS=$LIBS
  4506. LIBS="-lsocket $LIBS"
  4507. cat >conftest.$ac_ext <<_ACEOF
  4508. /* confdefs.h. */
  4509. _ACEOF
  4510. cat confdefs.h >>conftest.$ac_ext
  4511. cat >>conftest.$ac_ext <<_ACEOF
  4512. /* end confdefs.h. */
  4513. int
  4514. main ()
  4515. {
  4516. return main ();
  4517. ;
  4518. return 0;
  4519. }
  4520. _ACEOF
  4521. rm -f conftest.$ac_objext conftest$ac_exeext
  4522. if { (ac_try="$ac_link"
  4523. case "(($ac_try" in
  4524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4525. *) ac_try_echo=$ac_try;;
  4526. esac
  4527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4528. $as_echo "$ac_try_echo") >&5
  4529. (eval "$ac_link") 2>conftest.er1
  4530. ac_status=$?
  4531. grep -v '^ *+' conftest.er1 >conftest.err
  4532. rm -f conftest.er1
  4533. cat conftest.err >&5
  4534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); } && {
  4536. test -z "$ac_cxx_werror_flag" ||
  4537. test ! -s conftest.err
  4538. } && test -s conftest$ac_exeext && {
  4539. test "$cross_compiling" = yes ||
  4540. $as_test_x conftest$ac_exeext
  4541. }; then
  4542. ac_cv_lib_socket_main=yes
  4543. else
  4544. $as_echo "$as_me: failed program was:" >&5
  4545. sed 's/^/| /' conftest.$ac_ext >&5
  4546. ac_cv_lib_socket_main=no
  4547. fi
  4548. rm -rf conftest.dSYM
  4549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4550. conftest$ac_exeext conftest.$ac_ext
  4551. LIBS=$ac_check_lib_save_LIBS
  4552. fi
  4553. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4554. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4555. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4556. cat >>confdefs.h <<_ACEOF
  4557. #define HAVE_LIBSOCKET 1
  4558. _ACEOF
  4559. LIBS="-lsocket $LIBS"
  4560. fi
  4561. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4562. $as_echo_n "checking for main in -lnsl... " >&6; }
  4563. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. ac_check_lib_save_LIBS=$LIBS
  4567. LIBS="-lnsl $LIBS"
  4568. cat >conftest.$ac_ext <<_ACEOF
  4569. /* confdefs.h. */
  4570. _ACEOF
  4571. cat confdefs.h >>conftest.$ac_ext
  4572. cat >>conftest.$ac_ext <<_ACEOF
  4573. /* end confdefs.h. */
  4574. int
  4575. main ()
  4576. {
  4577. return main ();
  4578. ;
  4579. return 0;
  4580. }
  4581. _ACEOF
  4582. rm -f conftest.$ac_objext conftest$ac_exeext
  4583. if { (ac_try="$ac_link"
  4584. case "(($ac_try" in
  4585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4586. *) ac_try_echo=$ac_try;;
  4587. esac
  4588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4589. $as_echo "$ac_try_echo") >&5
  4590. (eval "$ac_link") 2>conftest.er1
  4591. ac_status=$?
  4592. grep -v '^ *+' conftest.er1 >conftest.err
  4593. rm -f conftest.er1
  4594. cat conftest.err >&5
  4595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4596. (exit $ac_status); } && {
  4597. test -z "$ac_cxx_werror_flag" ||
  4598. test ! -s conftest.err
  4599. } && test -s conftest$ac_exeext && {
  4600. test "$cross_compiling" = yes ||
  4601. $as_test_x conftest$ac_exeext
  4602. }; then
  4603. ac_cv_lib_nsl_main=yes
  4604. else
  4605. $as_echo "$as_me: failed program was:" >&5
  4606. sed 's/^/| /' conftest.$ac_ext >&5
  4607. ac_cv_lib_nsl_main=no
  4608. fi
  4609. rm -rf conftest.dSYM
  4610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4611. conftest$ac_exeext conftest.$ac_ext
  4612. LIBS=$ac_check_lib_save_LIBS
  4613. fi
  4614. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4615. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4616. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4617. cat >>confdefs.h <<_ACEOF
  4618. #define HAVE_LIBNSL 1
  4619. _ACEOF
  4620. LIBS="-lnsl $LIBS"
  4621. fi
  4622. fi
  4623. # Checks for header files
  4624. ac_header_dirent=no
  4625. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4626. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4627. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4628. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4629. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. cat >conftest.$ac_ext <<_ACEOF
  4633. /* confdefs.h. */
  4634. _ACEOF
  4635. cat confdefs.h >>conftest.$ac_ext
  4636. cat >>conftest.$ac_ext <<_ACEOF
  4637. /* end confdefs.h. */
  4638. #include <sys/types.h>
  4639. #include <$ac_hdr>
  4640. int
  4641. main ()
  4642. {
  4643. if ((DIR *) 0)
  4644. return 0;
  4645. ;
  4646. return 0;
  4647. }
  4648. _ACEOF
  4649. rm -f conftest.$ac_objext
  4650. if { (ac_try="$ac_compile"
  4651. case "(($ac_try" in
  4652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4653. *) ac_try_echo=$ac_try;;
  4654. esac
  4655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4656. $as_echo "$ac_try_echo") >&5
  4657. (eval "$ac_compile") 2>conftest.er1
  4658. ac_status=$?
  4659. grep -v '^ *+' conftest.er1 >conftest.err
  4660. rm -f conftest.er1
  4661. cat conftest.err >&5
  4662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); } && {
  4664. test -z "$ac_cxx_werror_flag" ||
  4665. test ! -s conftest.err
  4666. } && test -s conftest.$ac_objext; then
  4667. eval "$as_ac_Header=yes"
  4668. else
  4669. $as_echo "$as_me: failed program was:" >&5
  4670. sed 's/^/| /' conftest.$ac_ext >&5
  4671. eval "$as_ac_Header=no"
  4672. fi
  4673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4674. fi
  4675. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4676. $as_echo "$as_val"'`
  4677. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4678. $as_echo "$ac_res" >&6; }
  4679. as_val=`eval 'as_val=${'$as_ac_Header'}
  4680. $as_echo "$as_val"'`
  4681. if test "x$as_val" = x""yes; then
  4682. cat >>confdefs.h <<_ACEOF
  4683. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4684. _ACEOF
  4685. ac_header_dirent=$ac_hdr; break
  4686. fi
  4687. done
  4688. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4689. if test $ac_header_dirent = dirent.h; then
  4690. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4691. $as_echo_n "checking for library containing opendir... " >&6; }
  4692. if test "${ac_cv_search_opendir+set}" = set; then
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. ac_func_search_save_LIBS=$LIBS
  4696. cat >conftest.$ac_ext <<_ACEOF
  4697. /* confdefs.h. */
  4698. _ACEOF
  4699. cat confdefs.h >>conftest.$ac_ext
  4700. cat >>conftest.$ac_ext <<_ACEOF
  4701. /* end confdefs.h. */
  4702. /* Override any GCC internal prototype to avoid an error.
  4703. Use char because int might match the return type of a GCC
  4704. builtin and then its argument prototype would still apply. */
  4705. #ifdef __cplusplus
  4706. extern "C"
  4707. #endif
  4708. char opendir ();
  4709. int
  4710. main ()
  4711. {
  4712. return opendir ();
  4713. ;
  4714. return 0;
  4715. }
  4716. _ACEOF
  4717. for ac_lib in '' dir; do
  4718. if test -z "$ac_lib"; then
  4719. ac_res="none required"
  4720. else
  4721. ac_res=-l$ac_lib
  4722. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4723. fi
  4724. rm -f conftest.$ac_objext conftest$ac_exeext
  4725. if { (ac_try="$ac_link"
  4726. case "(($ac_try" in
  4727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4728. *) ac_try_echo=$ac_try;;
  4729. esac
  4730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4731. $as_echo "$ac_try_echo") >&5
  4732. (eval "$ac_link") 2>conftest.er1
  4733. ac_status=$?
  4734. grep -v '^ *+' conftest.er1 >conftest.err
  4735. rm -f conftest.er1
  4736. cat conftest.err >&5
  4737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); } && {
  4739. test -z "$ac_cxx_werror_flag" ||
  4740. test ! -s conftest.err
  4741. } && test -s conftest$ac_exeext && {
  4742. test "$cross_compiling" = yes ||
  4743. $as_test_x conftest$ac_exeext
  4744. }; then
  4745. ac_cv_search_opendir=$ac_res
  4746. else
  4747. $as_echo "$as_me: failed program was:" >&5
  4748. sed 's/^/| /' conftest.$ac_ext >&5
  4749. fi
  4750. rm -rf conftest.dSYM
  4751. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4752. conftest$ac_exeext
  4753. if test "${ac_cv_search_opendir+set}" = set; then
  4754. break
  4755. fi
  4756. done
  4757. if test "${ac_cv_search_opendir+set}" = set; then
  4758. :
  4759. else
  4760. ac_cv_search_opendir=no
  4761. fi
  4762. rm conftest.$ac_ext
  4763. LIBS=$ac_func_search_save_LIBS
  4764. fi
  4765. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4766. $as_echo "$ac_cv_search_opendir" >&6; }
  4767. ac_res=$ac_cv_search_opendir
  4768. if test "$ac_res" != no; then
  4769. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4770. fi
  4771. else
  4772. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4773. $as_echo_n "checking for library containing opendir... " >&6; }
  4774. if test "${ac_cv_search_opendir+set}" = set; then
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. ac_func_search_save_LIBS=$LIBS
  4778. cat >conftest.$ac_ext <<_ACEOF
  4779. /* confdefs.h. */
  4780. _ACEOF
  4781. cat confdefs.h >>conftest.$ac_ext
  4782. cat >>conftest.$ac_ext <<_ACEOF
  4783. /* end confdefs.h. */
  4784. /* Override any GCC internal prototype to avoid an error.
  4785. Use char because int might match the return type of a GCC
  4786. builtin and then its argument prototype would still apply. */
  4787. #ifdef __cplusplus
  4788. extern "C"
  4789. #endif
  4790. char opendir ();
  4791. int
  4792. main ()
  4793. {
  4794. return opendir ();
  4795. ;
  4796. return 0;
  4797. }
  4798. _ACEOF
  4799. for ac_lib in '' x; do
  4800. if test -z "$ac_lib"; then
  4801. ac_res="none required"
  4802. else
  4803. ac_res=-l$ac_lib
  4804. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4805. fi
  4806. rm -f conftest.$ac_objext conftest$ac_exeext
  4807. if { (ac_try="$ac_link"
  4808. case "(($ac_try" in
  4809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810. *) ac_try_echo=$ac_try;;
  4811. esac
  4812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4813. $as_echo "$ac_try_echo") >&5
  4814. (eval "$ac_link") 2>conftest.er1
  4815. ac_status=$?
  4816. grep -v '^ *+' conftest.er1 >conftest.err
  4817. rm -f conftest.er1
  4818. cat conftest.err >&5
  4819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); } && {
  4821. test -z "$ac_cxx_werror_flag" ||
  4822. test ! -s conftest.err
  4823. } && test -s conftest$ac_exeext && {
  4824. test "$cross_compiling" = yes ||
  4825. $as_test_x conftest$ac_exeext
  4826. }; then
  4827. ac_cv_search_opendir=$ac_res
  4828. else
  4829. $as_echo "$as_me: failed program was:" >&5
  4830. sed 's/^/| /' conftest.$ac_ext >&5
  4831. fi
  4832. rm -rf conftest.dSYM
  4833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4834. conftest$ac_exeext
  4835. if test "${ac_cv_search_opendir+set}" = set; then
  4836. break
  4837. fi
  4838. done
  4839. if test "${ac_cv_search_opendir+set}" = set; then
  4840. :
  4841. else
  4842. ac_cv_search_opendir=no
  4843. fi
  4844. rm conftest.$ac_ext
  4845. LIBS=$ac_func_search_save_LIBS
  4846. fi
  4847. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4848. $as_echo "$ac_cv_search_opendir" >&6; }
  4849. ac_res=$ac_cv_search_opendir
  4850. if test "$ac_res" != no; then
  4851. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4852. fi
  4853. fi
  4854. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4855. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4856. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. cat >conftest.$ac_ext <<_ACEOF
  4860. /* confdefs.h. */
  4861. _ACEOF
  4862. cat confdefs.h >>conftest.$ac_ext
  4863. cat >>conftest.$ac_ext <<_ACEOF
  4864. /* end confdefs.h. */
  4865. #include <sys/types.h>
  4866. #include <sys/wait.h>
  4867. #ifndef WEXITSTATUS
  4868. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4869. #endif
  4870. #ifndef WIFEXITED
  4871. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4872. #endif
  4873. int
  4874. main ()
  4875. {
  4876. int s;
  4877. wait (&s);
  4878. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4879. ;
  4880. return 0;
  4881. }
  4882. _ACEOF
  4883. rm -f conftest.$ac_objext
  4884. if { (ac_try="$ac_compile"
  4885. case "(($ac_try" in
  4886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4887. *) ac_try_echo=$ac_try;;
  4888. esac
  4889. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4890. $as_echo "$ac_try_echo") >&5
  4891. (eval "$ac_compile") 2>conftest.er1
  4892. ac_status=$?
  4893. grep -v '^ *+' conftest.er1 >conftest.err
  4894. rm -f conftest.er1
  4895. cat conftest.err >&5
  4896. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4897. (exit $ac_status); } && {
  4898. test -z "$ac_cxx_werror_flag" ||
  4899. test ! -s conftest.err
  4900. } && test -s conftest.$ac_objext; then
  4901. ac_cv_header_sys_wait_h=yes
  4902. else
  4903. $as_echo "$as_me: failed program was:" >&5
  4904. sed 's/^/| /' conftest.$ac_ext >&5
  4905. ac_cv_header_sys_wait_h=no
  4906. fi
  4907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4908. fi
  4909. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4910. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4911. if test $ac_cv_header_sys_wait_h = yes; then
  4912. cat >>confdefs.h <<\_ACEOF
  4913. #define HAVE_SYS_WAIT_H 1
  4914. _ACEOF
  4915. fi
  4916. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4917. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4918. if test "${ac_cv_header_time+set}" = set; then
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. cat >conftest.$ac_ext <<_ACEOF
  4922. /* confdefs.h. */
  4923. _ACEOF
  4924. cat confdefs.h >>conftest.$ac_ext
  4925. cat >>conftest.$ac_ext <<_ACEOF
  4926. /* end confdefs.h. */
  4927. #include <sys/types.h>
  4928. #include <sys/time.h>
  4929. #include <time.h>
  4930. int
  4931. main ()
  4932. {
  4933. if ((struct tm *) 0)
  4934. return 0;
  4935. ;
  4936. return 0;
  4937. }
  4938. _ACEOF
  4939. rm -f conftest.$ac_objext
  4940. if { (ac_try="$ac_compile"
  4941. case "(($ac_try" in
  4942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4943. *) ac_try_echo=$ac_try;;
  4944. esac
  4945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4946. $as_echo "$ac_try_echo") >&5
  4947. (eval "$ac_compile") 2>conftest.er1
  4948. ac_status=$?
  4949. grep -v '^ *+' conftest.er1 >conftest.err
  4950. rm -f conftest.er1
  4951. cat conftest.err >&5
  4952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4953. (exit $ac_status); } && {
  4954. test -z "$ac_cxx_werror_flag" ||
  4955. test ! -s conftest.err
  4956. } && test -s conftest.$ac_objext; then
  4957. ac_cv_header_time=yes
  4958. else
  4959. $as_echo "$as_me: failed program was:" >&5
  4960. sed 's/^/| /' conftest.$ac_ext >&5
  4961. ac_cv_header_time=no
  4962. fi
  4963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4964. fi
  4965. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4966. $as_echo "$ac_cv_header_time" >&6; }
  4967. if test $ac_cv_header_time = yes; then
  4968. cat >>confdefs.h <<\_ACEOF
  4969. #define TIME_WITH_SYS_TIME 1
  4970. _ACEOF
  4971. fi
  4972. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4973. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4974. if test "${ac_cv_header_stat_broken+set}" = set; then
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. cat >conftest.$ac_ext <<_ACEOF
  4978. /* confdefs.h. */
  4979. _ACEOF
  4980. cat confdefs.h >>conftest.$ac_ext
  4981. cat >>conftest.$ac_ext <<_ACEOF
  4982. /* end confdefs.h. */
  4983. #include <sys/types.h>
  4984. #include <sys/stat.h>
  4985. #if defined S_ISBLK && defined S_IFDIR
  4986. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4987. #endif
  4988. #if defined S_ISBLK && defined S_IFCHR
  4989. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4990. #endif
  4991. #if defined S_ISLNK && defined S_IFREG
  4992. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4993. #endif
  4994. #if defined S_ISSOCK && defined S_IFREG
  4995. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4996. #endif
  4997. _ACEOF
  4998. rm -f conftest.$ac_objext
  4999. if { (ac_try="$ac_compile"
  5000. case "(($ac_try" in
  5001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5002. *) ac_try_echo=$ac_try;;
  5003. esac
  5004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5005. $as_echo "$ac_try_echo") >&5
  5006. (eval "$ac_compile") 2>conftest.er1
  5007. ac_status=$?
  5008. grep -v '^ *+' conftest.er1 >conftest.err
  5009. rm -f conftest.er1
  5010. cat conftest.err >&5
  5011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); } && {
  5013. test -z "$ac_cxx_werror_flag" ||
  5014. test ! -s conftest.err
  5015. } && test -s conftest.$ac_objext; then
  5016. ac_cv_header_stat_broken=no
  5017. else
  5018. $as_echo "$as_me: failed program was:" >&5
  5019. sed 's/^/| /' conftest.$ac_ext >&5
  5020. ac_cv_header_stat_broken=yes
  5021. fi
  5022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5023. fi
  5024. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5025. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5026. if test $ac_cv_header_stat_broken = yes; then
  5027. cat >>confdefs.h <<\_ACEOF
  5028. #define STAT_MACROS_BROKEN 1
  5029. _ACEOF
  5030. fi
  5031. #checkpoint
  5032. cat >confcache <<\_ACEOF
  5033. # This file is a shell script that caches the results of configure
  5034. # tests run on this system so they can be shared between configure
  5035. # scripts and configure runs, see configure's option --config-cache.
  5036. # It is not useful on other systems. If it contains results you don't
  5037. # want to keep, you may remove or edit it.
  5038. #
  5039. # config.status only pays attention to the cache file if you give it
  5040. # the --recheck option to rerun configure.
  5041. #
  5042. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5043. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5044. # following values.
  5045. _ACEOF
  5046. # The following way of writing the cache mishandles newlines in values,
  5047. # but we know of no workaround that is simple, portable, and efficient.
  5048. # So, we kill variables containing newlines.
  5049. # Ultrix sh set writes to stderr and can't be redirected directly,
  5050. # and sets the high bit in the cache file unless we assign to the vars.
  5051. (
  5052. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5053. eval ac_val=\$$ac_var
  5054. case $ac_val in #(
  5055. *${as_nl}*)
  5056. case $ac_var in #(
  5057. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5058. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5059. esac
  5060. case $ac_var in #(
  5061. _ | IFS | as_nl) ;; #(
  5062. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5063. *) $as_unset $ac_var ;;
  5064. esac ;;
  5065. esac
  5066. done
  5067. (set) 2>&1 |
  5068. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5069. *${as_nl}ac_space=\ *)
  5070. # `set' does not quote correctly, so add quotes (double-quote
  5071. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5072. sed -n \
  5073. "s/'/'\\\\''/g;
  5074. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5075. ;; #(
  5076. *)
  5077. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5078. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5079. ;;
  5080. esac |
  5081. sort
  5082. ) |
  5083. sed '
  5084. /^ac_cv_env_/b end
  5085. t clear
  5086. :clear
  5087. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5088. t end
  5089. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5090. :end' >>confcache
  5091. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5092. if test -w "$cache_file"; then
  5093. test "x$cache_file" != "x/dev/null" &&
  5094. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5095. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5096. cat confcache >$cache_file
  5097. else
  5098. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5099. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5100. fi
  5101. fi
  5102. rm -f confcache
  5103. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5104. do
  5105. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5106. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5107. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5108. $as_echo_n "checking for $ac_header... " >&6; }
  5109. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5110. $as_echo_n "(cached) " >&6
  5111. fi
  5112. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5113. $as_echo "$as_val"'`
  5114. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5115. $as_echo "$ac_res" >&6; }
  5116. else
  5117. # Is the header compilable?
  5118. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5119. $as_echo_n "checking $ac_header usability... " >&6; }
  5120. cat >conftest.$ac_ext <<_ACEOF
  5121. /* confdefs.h. */
  5122. _ACEOF
  5123. cat confdefs.h >>conftest.$ac_ext
  5124. cat >>conftest.$ac_ext <<_ACEOF
  5125. /* end confdefs.h. */
  5126. $ac_includes_default
  5127. #include <$ac_header>
  5128. _ACEOF
  5129. rm -f conftest.$ac_objext
  5130. if { (ac_try="$ac_compile"
  5131. case "(($ac_try" in
  5132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5133. *) ac_try_echo=$ac_try;;
  5134. esac
  5135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5136. $as_echo "$ac_try_echo") >&5
  5137. (eval "$ac_compile") 2>conftest.er1
  5138. ac_status=$?
  5139. grep -v '^ *+' conftest.er1 >conftest.err
  5140. rm -f conftest.er1
  5141. cat conftest.err >&5
  5142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5143. (exit $ac_status); } && {
  5144. test -z "$ac_cxx_werror_flag" ||
  5145. test ! -s conftest.err
  5146. } && test -s conftest.$ac_objext; then
  5147. ac_header_compiler=yes
  5148. else
  5149. $as_echo "$as_me: failed program was:" >&5
  5150. sed 's/^/| /' conftest.$ac_ext >&5
  5151. ac_header_compiler=no
  5152. fi
  5153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5154. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5155. $as_echo "$ac_header_compiler" >&6; }
  5156. # Is the header present?
  5157. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5158. $as_echo_n "checking $ac_header presence... " >&6; }
  5159. cat >conftest.$ac_ext <<_ACEOF
  5160. /* confdefs.h. */
  5161. _ACEOF
  5162. cat confdefs.h >>conftest.$ac_ext
  5163. cat >>conftest.$ac_ext <<_ACEOF
  5164. /* end confdefs.h. */
  5165. #include <$ac_header>
  5166. _ACEOF
  5167. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5168. case "(($ac_try" in
  5169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5170. *) ac_try_echo=$ac_try;;
  5171. esac
  5172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5173. $as_echo "$ac_try_echo") >&5
  5174. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5175. ac_status=$?
  5176. grep -v '^ *+' conftest.er1 >conftest.err
  5177. rm -f conftest.er1
  5178. cat conftest.err >&5
  5179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); } >/dev/null && {
  5181. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5182. test ! -s conftest.err
  5183. }; then
  5184. ac_header_preproc=yes
  5185. else
  5186. $as_echo "$as_me: failed program was:" >&5
  5187. sed 's/^/| /' conftest.$ac_ext >&5
  5188. ac_header_preproc=no
  5189. fi
  5190. rm -f conftest.err conftest.$ac_ext
  5191. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5192. $as_echo "$ac_header_preproc" >&6; }
  5193. # So? What about this header?
  5194. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5195. yes:no: )
  5196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5197. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5199. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5200. ac_header_preproc=yes
  5201. ;;
  5202. no:yes:* )
  5203. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5204. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5205. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5206. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5207. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5208. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5209. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5210. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5211. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5212. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5213. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5214. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5215. ;;
  5216. esac
  5217. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5218. $as_echo_n "checking for $ac_header... " >&6; }
  5219. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. eval "$as_ac_Header=\$ac_header_preproc"
  5223. fi
  5224. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5225. $as_echo "$as_val"'`
  5226. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5227. $as_echo "$ac_res" >&6; }
  5228. fi
  5229. as_val=`eval 'as_val=${'$as_ac_Header'}
  5230. $as_echo "$as_val"'`
  5231. if test "x$as_val" = x""yes; then
  5232. cat >>confdefs.h <<_ACEOF
  5233. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5234. _ACEOF
  5235. fi
  5236. done
  5237. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5238. do
  5239. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5240. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5241. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5242. $as_echo_n "checking for $ac_header... " >&6; }
  5243. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5244. $as_echo_n "(cached) " >&6
  5245. fi
  5246. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5247. $as_echo "$as_val"'`
  5248. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5249. $as_echo "$ac_res" >&6; }
  5250. else
  5251. # Is the header compilable?
  5252. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5253. $as_echo_n "checking $ac_header usability... " >&6; }
  5254. cat >conftest.$ac_ext <<_ACEOF
  5255. /* confdefs.h. */
  5256. _ACEOF
  5257. cat confdefs.h >>conftest.$ac_ext
  5258. cat >>conftest.$ac_ext <<_ACEOF
  5259. /* end confdefs.h. */
  5260. $ac_includes_default
  5261. #include <$ac_header>
  5262. _ACEOF
  5263. rm -f conftest.$ac_objext
  5264. if { (ac_try="$ac_compile"
  5265. case "(($ac_try" in
  5266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5267. *) ac_try_echo=$ac_try;;
  5268. esac
  5269. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5270. $as_echo "$ac_try_echo") >&5
  5271. (eval "$ac_compile") 2>conftest.er1
  5272. ac_status=$?
  5273. grep -v '^ *+' conftest.er1 >conftest.err
  5274. rm -f conftest.er1
  5275. cat conftest.err >&5
  5276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } && {
  5278. test -z "$ac_cxx_werror_flag" ||
  5279. test ! -s conftest.err
  5280. } && test -s conftest.$ac_objext; then
  5281. ac_header_compiler=yes
  5282. else
  5283. $as_echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. ac_header_compiler=no
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5288. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5289. $as_echo "$ac_header_compiler" >&6; }
  5290. # Is the header present?
  5291. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5292. $as_echo_n "checking $ac_header presence... " >&6; }
  5293. cat >conftest.$ac_ext <<_ACEOF
  5294. /* confdefs.h. */
  5295. _ACEOF
  5296. cat confdefs.h >>conftest.$ac_ext
  5297. cat >>conftest.$ac_ext <<_ACEOF
  5298. /* end confdefs.h. */
  5299. #include <$ac_header>
  5300. _ACEOF
  5301. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5302. case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5307. $as_echo "$ac_try_echo") >&5
  5308. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5309. ac_status=$?
  5310. grep -v '^ *+' conftest.er1 >conftest.err
  5311. rm -f conftest.er1
  5312. cat conftest.err >&5
  5313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5314. (exit $ac_status); } >/dev/null && {
  5315. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5316. test ! -s conftest.err
  5317. }; then
  5318. ac_header_preproc=yes
  5319. else
  5320. $as_echo "$as_me: failed program was:" >&5
  5321. sed 's/^/| /' conftest.$ac_ext >&5
  5322. ac_header_preproc=no
  5323. fi
  5324. rm -f conftest.err conftest.$ac_ext
  5325. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5326. $as_echo "$ac_header_preproc" >&6; }
  5327. # So? What about this header?
  5328. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5329. yes:no: )
  5330. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5331. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5332. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5333. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5334. ac_header_preproc=yes
  5335. ;;
  5336. no:yes:* )
  5337. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5338. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5339. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5340. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5341. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5342. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5343. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5344. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5345. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5346. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5347. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5348. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5349. ;;
  5350. esac
  5351. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5352. $as_echo_n "checking for $ac_header... " >&6; }
  5353. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. eval "$as_ac_Header=\$ac_header_preproc"
  5357. fi
  5358. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5359. $as_echo "$as_val"'`
  5360. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5361. $as_echo "$ac_res" >&6; }
  5362. fi
  5363. as_val=`eval 'as_val=${'$as_ac_Header'}
  5364. $as_echo "$as_val"'`
  5365. if test "x$as_val" = x""yes; then
  5366. cat >>confdefs.h <<_ACEOF
  5367. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5368. _ACEOF
  5369. fi
  5370. done
  5371. #checkpoint
  5372. cat >confcache <<\_ACEOF
  5373. # This file is a shell script that caches the results of configure
  5374. # tests run on this system so they can be shared between configure
  5375. # scripts and configure runs, see configure's option --config-cache.
  5376. # It is not useful on other systems. If it contains results you don't
  5377. # want to keep, you may remove or edit it.
  5378. #
  5379. # config.status only pays attention to the cache file if you give it
  5380. # the --recheck option to rerun configure.
  5381. #
  5382. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5383. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5384. # following values.
  5385. _ACEOF
  5386. # The following way of writing the cache mishandles newlines in values,
  5387. # but we know of no workaround that is simple, portable, and efficient.
  5388. # So, we kill variables containing newlines.
  5389. # Ultrix sh set writes to stderr and can't be redirected directly,
  5390. # and sets the high bit in the cache file unless we assign to the vars.
  5391. (
  5392. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5393. eval ac_val=\$$ac_var
  5394. case $ac_val in #(
  5395. *${as_nl}*)
  5396. case $ac_var in #(
  5397. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5398. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5399. esac
  5400. case $ac_var in #(
  5401. _ | IFS | as_nl) ;; #(
  5402. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5403. *) $as_unset $ac_var ;;
  5404. esac ;;
  5405. esac
  5406. done
  5407. (set) 2>&1 |
  5408. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5409. *${as_nl}ac_space=\ *)
  5410. # `set' does not quote correctly, so add quotes (double-quote
  5411. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5412. sed -n \
  5413. "s/'/'\\\\''/g;
  5414. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5415. ;; #(
  5416. *)
  5417. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5418. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5419. ;;
  5420. esac |
  5421. sort
  5422. ) |
  5423. sed '
  5424. /^ac_cv_env_/b end
  5425. t clear
  5426. :clear
  5427. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5428. t end
  5429. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5430. :end' >>confcache
  5431. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5432. if test -w "$cache_file"; then
  5433. test "x$cache_file" != "x/dev/null" &&
  5434. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5435. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5436. cat confcache >$cache_file
  5437. else
  5438. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5439. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5440. fi
  5441. fi
  5442. rm -f confcache
  5443. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5444. #AC_CHECK_HEADERS(zlib.h)
  5445. #EGG_CHECK_ZLIB
  5446. { $as_echo "$as_me:$LINENO: checking for path to OpenSSL" >&5
  5447. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5448. # Check whether --with-openssl was given.
  5449. if test "${with_openssl+set}" = set; then
  5450. withval=$with_openssl; cf_with_openssl=$withval
  5451. else
  5452. cf_with_openssl="auto"
  5453. fi
  5454. cf_openssl_basedir=""
  5455. if test "$cf_with_openssl" != "auto"; then
  5456. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  5457. else
  5458. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5459. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  5460. cf_openssl_basedir="${dirs}"
  5461. break
  5462. fi
  5463. done
  5464. unset dirs
  5465. fi
  5466. if test ! -z "$cf_openssl_basedir"; then
  5467. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  5468. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5469. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5470. else
  5471. cf_openssl_basedir=""
  5472. fi
  5473. else
  5474. if test -f "/usr/include/openssl/opensslv.h" ; then
  5475. cf_openssl_basedir="/usr"
  5476. fi
  5477. fi
  5478. if test ! -z "$cf_openssl_basedir"; then
  5479. { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
  5480. $as_echo "$cf_openssl_basedir" >&6; }
  5481. else
  5482. { $as_echo "$as_me:$LINENO: result: not found" >&5
  5483. $as_echo "not found" >&6; }
  5484. { { $as_echo "$as_me:$LINENO: error: OpenSSL is required." >&5
  5485. $as_echo "$as_me: error: OpenSSL is required." >&2;}
  5486. { (exit 1); exit 1; }; }
  5487. fi
  5488. unset cf_openssl_basedir
  5489. save_CXX="$CXX"
  5490. CXX="$CXX $SSL_INCLUDES"
  5491. save_LIBS="$LIBS"
  5492. LIBS="$LIBS $SSL_LIBS"
  5493. { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
  5494. $as_echo_n "checking for OpenSSL version... " >&6; }
  5495. cat >conftest.$ac_ext <<_ACEOF
  5496. /* confdefs.h. */
  5497. _ACEOF
  5498. cat confdefs.h >>conftest.$ac_ext
  5499. cat >>conftest.$ac_ext <<_ACEOF
  5500. /* end confdefs.h. */
  5501. #include <openssl/opensslv.h>
  5502. int
  5503. main ()
  5504. {
  5505. #if !defined(OPENSSL_VERSION_NUMBER)
  5506. #error "Missing openssl version"
  5507. #endif
  5508. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5509. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5510. #endif
  5511. ;
  5512. return 0;
  5513. }
  5514. _ACEOF
  5515. rm -f conftest.$ac_objext
  5516. if { (ac_try="$ac_compile"
  5517. case "(($ac_try" in
  5518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5519. *) ac_try_echo=$ac_try;;
  5520. esac
  5521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5522. $as_echo "$ac_try_echo") >&5
  5523. (eval "$ac_compile") 2>conftest.er1
  5524. ac_status=$?
  5525. grep -v '^ *+' conftest.er1 >conftest.err
  5526. rm -f conftest.er1
  5527. cat conftest.err >&5
  5528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5529. (exit $ac_status); } && {
  5530. test -z "$ac_cxx_werror_flag" ||
  5531. test ! -s conftest.err
  5532. } && test -s conftest.$ac_objext; then
  5533. { $as_echo "$as_me:$LINENO: result: OK" >&5
  5534. $as_echo "OK" >&6; }
  5535. else
  5536. $as_echo "$as_me: failed program was:" >&5
  5537. sed 's/^/| /' conftest.$ac_ext >&5
  5538. { $as_echo "$as_me:$LINENO: result: too old." >&5
  5539. $as_echo "too old." >&6; }
  5540. { { $as_echo "$as_me:$LINENO: error: OpenSSL version is too old." >&5
  5541. $as_echo "$as_me: error: OpenSSL version is too old." >&2;}
  5542. { (exit 1); exit 1; }; }
  5543. fi
  5544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5545. CXX="$CXX $SSL_LIBS"
  5546. { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
  5547. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5548. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. ac_check_lib_save_LIBS=$LIBS
  5552. LIBS="-lcrypto $LIBS"
  5553. cat >conftest.$ac_ext <<_ACEOF
  5554. /* confdefs.h. */
  5555. _ACEOF
  5556. cat confdefs.h >>conftest.$ac_ext
  5557. cat >>conftest.$ac_ext <<_ACEOF
  5558. /* end confdefs.h. */
  5559. /* Override any GCC internal prototype to avoid an error.
  5560. Use char because int might match the return type of a GCC
  5561. builtin and then its argument prototype would still apply. */
  5562. #ifdef __cplusplus
  5563. extern "C"
  5564. #endif
  5565. char AES_encrypt ();
  5566. int
  5567. main ()
  5568. {
  5569. return AES_encrypt ();
  5570. ;
  5571. return 0;
  5572. }
  5573. _ACEOF
  5574. rm -f conftest.$ac_objext conftest$ac_exeext
  5575. if { (ac_try="$ac_link"
  5576. case "(($ac_try" in
  5577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5578. *) ac_try_echo=$ac_try;;
  5579. esac
  5580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5581. $as_echo "$ac_try_echo") >&5
  5582. (eval "$ac_link") 2>conftest.er1
  5583. ac_status=$?
  5584. grep -v '^ *+' conftest.er1 >conftest.err
  5585. rm -f conftest.er1
  5586. cat conftest.err >&5
  5587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588. (exit $ac_status); } && {
  5589. test -z "$ac_cxx_werror_flag" ||
  5590. test ! -s conftest.err
  5591. } && test -s conftest$ac_exeext && {
  5592. test "$cross_compiling" = yes ||
  5593. $as_test_x conftest$ac_exeext
  5594. }; then
  5595. ac_cv_lib_crypto_AES_encrypt=yes
  5596. else
  5597. $as_echo "$as_me: failed program was:" >&5
  5598. sed 's/^/| /' conftest.$ac_ext >&5
  5599. ac_cv_lib_crypto_AES_encrypt=no
  5600. fi
  5601. rm -rf conftest.dSYM
  5602. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5603. conftest$ac_exeext conftest.$ac_ext
  5604. LIBS=$ac_check_lib_save_LIBS
  5605. fi
  5606. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5607. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5608. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then
  5609. SSL_LIBS="$SSL_LIBS -lcrypto"
  5610. else
  5611. { $as_echo "$as_me:$LINENO: result: not found." >&5
  5612. $as_echo "not found." >&6; }
  5613. { { $as_echo "$as_me:$LINENO: error: Libcrypto/openssl is required." >&5
  5614. $as_echo "$as_me: error: Libcrypto/openssl is required." >&2;}
  5615. { (exit 1); exit 1; }; }
  5616. fi
  5617. CXX="$save_CXX"
  5618. LIBS="$save_LIBS"
  5619. #AC_SUBST(ZLIB)dnl
  5620. # Checks for typedefs, structures, and compiler characteristics
  5621. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5622. $as_echo_n "checking for pid_t... " >&6; }
  5623. if test "${ac_cv_type_pid_t+set}" = set; then
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. ac_cv_type_pid_t=no
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. $ac_includes_default
  5634. int
  5635. main ()
  5636. {
  5637. if (sizeof (pid_t))
  5638. return 0;
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. rm -f conftest.$ac_objext
  5644. if { (ac_try="$ac_compile"
  5645. case "(($ac_try" in
  5646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5647. *) ac_try_echo=$ac_try;;
  5648. esac
  5649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5650. $as_echo "$ac_try_echo") >&5
  5651. (eval "$ac_compile") 2>conftest.er1
  5652. ac_status=$?
  5653. grep -v '^ *+' conftest.er1 >conftest.err
  5654. rm -f conftest.er1
  5655. cat conftest.err >&5
  5656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5657. (exit $ac_status); } && {
  5658. test -z "$ac_cxx_werror_flag" ||
  5659. test ! -s conftest.err
  5660. } && test -s conftest.$ac_objext; then
  5661. cat >conftest.$ac_ext <<_ACEOF
  5662. /* confdefs.h. */
  5663. _ACEOF
  5664. cat confdefs.h >>conftest.$ac_ext
  5665. cat >>conftest.$ac_ext <<_ACEOF
  5666. /* end confdefs.h. */
  5667. $ac_includes_default
  5668. int
  5669. main ()
  5670. {
  5671. if (sizeof ((pid_t)))
  5672. return 0;
  5673. ;
  5674. return 0;
  5675. }
  5676. _ACEOF
  5677. rm -f conftest.$ac_objext
  5678. if { (ac_try="$ac_compile"
  5679. case "(($ac_try" in
  5680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5681. *) ac_try_echo=$ac_try;;
  5682. esac
  5683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5684. $as_echo "$ac_try_echo") >&5
  5685. (eval "$ac_compile") 2>conftest.er1
  5686. ac_status=$?
  5687. grep -v '^ *+' conftest.er1 >conftest.err
  5688. rm -f conftest.er1
  5689. cat conftest.err >&5
  5690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5691. (exit $ac_status); } && {
  5692. test -z "$ac_cxx_werror_flag" ||
  5693. test ! -s conftest.err
  5694. } && test -s conftest.$ac_objext; then
  5695. :
  5696. else
  5697. $as_echo "$as_me: failed program was:" >&5
  5698. sed 's/^/| /' conftest.$ac_ext >&5
  5699. ac_cv_type_pid_t=yes
  5700. fi
  5701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. else
  5703. $as_echo "$as_me: failed program was:" >&5
  5704. sed 's/^/| /' conftest.$ac_ext >&5
  5705. fi
  5706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5707. fi
  5708. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5709. $as_echo "$ac_cv_type_pid_t" >&6; }
  5710. if test "x$ac_cv_type_pid_t" = x""yes; then
  5711. :
  5712. else
  5713. cat >>confdefs.h <<_ACEOF
  5714. #define pid_t int
  5715. _ACEOF
  5716. fi
  5717. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5718. $as_echo_n "checking for size_t... " >&6; }
  5719. if test "${ac_cv_type_size_t+set}" = set; then
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. ac_cv_type_size_t=no
  5723. cat >conftest.$ac_ext <<_ACEOF
  5724. /* confdefs.h. */
  5725. _ACEOF
  5726. cat confdefs.h >>conftest.$ac_ext
  5727. cat >>conftest.$ac_ext <<_ACEOF
  5728. /* end confdefs.h. */
  5729. $ac_includes_default
  5730. int
  5731. main ()
  5732. {
  5733. if (sizeof (size_t))
  5734. return 0;
  5735. ;
  5736. return 0;
  5737. }
  5738. _ACEOF
  5739. rm -f conftest.$ac_objext
  5740. if { (ac_try="$ac_compile"
  5741. case "(($ac_try" in
  5742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5743. *) ac_try_echo=$ac_try;;
  5744. esac
  5745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5746. $as_echo "$ac_try_echo") >&5
  5747. (eval "$ac_compile") 2>conftest.er1
  5748. ac_status=$?
  5749. grep -v '^ *+' conftest.er1 >conftest.err
  5750. rm -f conftest.er1
  5751. cat conftest.err >&5
  5752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753. (exit $ac_status); } && {
  5754. test -z "$ac_cxx_werror_flag" ||
  5755. test ! -s conftest.err
  5756. } && test -s conftest.$ac_objext; then
  5757. cat >conftest.$ac_ext <<_ACEOF
  5758. /* confdefs.h. */
  5759. _ACEOF
  5760. cat confdefs.h >>conftest.$ac_ext
  5761. cat >>conftest.$ac_ext <<_ACEOF
  5762. /* end confdefs.h. */
  5763. $ac_includes_default
  5764. int
  5765. main ()
  5766. {
  5767. if (sizeof ((size_t)))
  5768. return 0;
  5769. ;
  5770. return 0;
  5771. }
  5772. _ACEOF
  5773. rm -f conftest.$ac_objext
  5774. if { (ac_try="$ac_compile"
  5775. case "(($ac_try" in
  5776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5777. *) ac_try_echo=$ac_try;;
  5778. esac
  5779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5780. $as_echo "$ac_try_echo") >&5
  5781. (eval "$ac_compile") 2>conftest.er1
  5782. ac_status=$?
  5783. grep -v '^ *+' conftest.er1 >conftest.err
  5784. rm -f conftest.er1
  5785. cat conftest.err >&5
  5786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5787. (exit $ac_status); } && {
  5788. test -z "$ac_cxx_werror_flag" ||
  5789. test ! -s conftest.err
  5790. } && test -s conftest.$ac_objext; then
  5791. :
  5792. else
  5793. $as_echo "$as_me: failed program was:" >&5
  5794. sed 's/^/| /' conftest.$ac_ext >&5
  5795. ac_cv_type_size_t=yes
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5798. else
  5799. $as_echo "$as_me: failed program was:" >&5
  5800. sed 's/^/| /' conftest.$ac_ext >&5
  5801. fi
  5802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5803. fi
  5804. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5805. $as_echo "$ac_cv_type_size_t" >&6; }
  5806. if test "x$ac_cv_type_size_t" = x""yes; then
  5807. :
  5808. else
  5809. cat >>confdefs.h <<_ACEOF
  5810. #define size_t unsigned int
  5811. _ACEOF
  5812. fi
  5813. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5814. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5815. if test "${ac_cv_type_uid_t+set}" = set; then
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. cat >conftest.$ac_ext <<_ACEOF
  5819. /* confdefs.h. */
  5820. _ACEOF
  5821. cat confdefs.h >>conftest.$ac_ext
  5822. cat >>conftest.$ac_ext <<_ACEOF
  5823. /* end confdefs.h. */
  5824. #include <sys/types.h>
  5825. _ACEOF
  5826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5827. $EGREP "uid_t" >/dev/null 2>&1; then
  5828. ac_cv_type_uid_t=yes
  5829. else
  5830. ac_cv_type_uid_t=no
  5831. fi
  5832. rm -f conftest*
  5833. fi
  5834. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5835. $as_echo "$ac_cv_type_uid_t" >&6; }
  5836. if test $ac_cv_type_uid_t = no; then
  5837. cat >>confdefs.h <<\_ACEOF
  5838. #define uid_t int
  5839. _ACEOF
  5840. cat >>confdefs.h <<\_ACEOF
  5841. #define gid_t int
  5842. _ACEOF
  5843. fi
  5844. #AC_C_CONST
  5845. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5846. $as_echo_n "checking for working volatile... " >&6; }
  5847. if test "${ac_cv_c_volatile+set}" = set; then
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. cat >conftest.$ac_ext <<_ACEOF
  5851. /* confdefs.h. */
  5852. _ACEOF
  5853. cat confdefs.h >>conftest.$ac_ext
  5854. cat >>conftest.$ac_ext <<_ACEOF
  5855. /* end confdefs.h. */
  5856. int
  5857. main ()
  5858. {
  5859. volatile int x;
  5860. int * volatile y = (int *) 0;
  5861. return !x && !y;
  5862. ;
  5863. return 0;
  5864. }
  5865. _ACEOF
  5866. rm -f conftest.$ac_objext
  5867. if { (ac_try="$ac_compile"
  5868. case "(($ac_try" in
  5869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5870. *) ac_try_echo=$ac_try;;
  5871. esac
  5872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5873. $as_echo "$ac_try_echo") >&5
  5874. (eval "$ac_compile") 2>conftest.er1
  5875. ac_status=$?
  5876. grep -v '^ *+' conftest.er1 >conftest.err
  5877. rm -f conftest.er1
  5878. cat conftest.err >&5
  5879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); } && {
  5881. test -z "$ac_cxx_werror_flag" ||
  5882. test ! -s conftest.err
  5883. } && test -s conftest.$ac_objext; then
  5884. ac_cv_c_volatile=yes
  5885. else
  5886. $as_echo "$as_me: failed program was:" >&5
  5887. sed 's/^/| /' conftest.$ac_ext >&5
  5888. ac_cv_c_volatile=no
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5893. $as_echo "$ac_cv_c_volatile" >&6; }
  5894. if test $ac_cv_c_volatile = no; then
  5895. cat >>confdefs.h <<\_ACEOF
  5896. #define volatile /**/
  5897. _ACEOF
  5898. fi
  5899. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5900. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5901. if test "${ac_cv_c_bigendian+set}" = set; then
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. ac_cv_c_bigendian=unknown
  5905. # See if we're dealing with a universal compiler.
  5906. cat >conftest.$ac_ext <<_ACEOF
  5907. /* confdefs.h. */
  5908. _ACEOF
  5909. cat confdefs.h >>conftest.$ac_ext
  5910. cat >>conftest.$ac_ext <<_ACEOF
  5911. /* end confdefs.h. */
  5912. #ifndef __APPLE_CC__
  5913. not a universal capable compiler
  5914. #endif
  5915. typedef int dummy;
  5916. _ACEOF
  5917. rm -f conftest.$ac_objext
  5918. if { (ac_try="$ac_compile"
  5919. case "(($ac_try" in
  5920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5921. *) ac_try_echo=$ac_try;;
  5922. esac
  5923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5924. $as_echo "$ac_try_echo") >&5
  5925. (eval "$ac_compile") 2>conftest.er1
  5926. ac_status=$?
  5927. grep -v '^ *+' conftest.er1 >conftest.err
  5928. rm -f conftest.er1
  5929. cat conftest.err >&5
  5930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931. (exit $ac_status); } && {
  5932. test -z "$ac_cxx_werror_flag" ||
  5933. test ! -s conftest.err
  5934. } && test -s conftest.$ac_objext; then
  5935. # Check for potential -arch flags. It is not universal unless
  5936. # there are some -arch flags. Note that *ppc* also matches
  5937. # ppc64. This check is also rather less than ideal.
  5938. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5939. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5940. esac
  5941. else
  5942. $as_echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5946. if test $ac_cv_c_bigendian = unknown; then
  5947. # See if sys/param.h defines the BYTE_ORDER macro.
  5948. cat >conftest.$ac_ext <<_ACEOF
  5949. /* confdefs.h. */
  5950. _ACEOF
  5951. cat confdefs.h >>conftest.$ac_ext
  5952. cat >>conftest.$ac_ext <<_ACEOF
  5953. /* end confdefs.h. */
  5954. #include <sys/types.h>
  5955. #include <sys/param.h>
  5956. int
  5957. main ()
  5958. {
  5959. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5960. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5961. && LITTLE_ENDIAN)
  5962. bogus endian macros
  5963. #endif
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. rm -f conftest.$ac_objext
  5969. if { (ac_try="$ac_compile"
  5970. case "(($ac_try" in
  5971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5972. *) ac_try_echo=$ac_try;;
  5973. esac
  5974. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5975. $as_echo "$ac_try_echo") >&5
  5976. (eval "$ac_compile") 2>conftest.er1
  5977. ac_status=$?
  5978. grep -v '^ *+' conftest.er1 >conftest.err
  5979. rm -f conftest.er1
  5980. cat conftest.err >&5
  5981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); } && {
  5983. test -z "$ac_cxx_werror_flag" ||
  5984. test ! -s conftest.err
  5985. } && test -s conftest.$ac_objext; then
  5986. # It does; now see whether it defined to BIG_ENDIAN or not.
  5987. cat >conftest.$ac_ext <<_ACEOF
  5988. /* confdefs.h. */
  5989. _ACEOF
  5990. cat confdefs.h >>conftest.$ac_ext
  5991. cat >>conftest.$ac_ext <<_ACEOF
  5992. /* end confdefs.h. */
  5993. #include <sys/types.h>
  5994. #include <sys/param.h>
  5995. int
  5996. main ()
  5997. {
  5998. #if BYTE_ORDER != BIG_ENDIAN
  5999. not big endian
  6000. #endif
  6001. ;
  6002. return 0;
  6003. }
  6004. _ACEOF
  6005. rm -f conftest.$ac_objext
  6006. if { (ac_try="$ac_compile"
  6007. case "(($ac_try" in
  6008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6009. *) ac_try_echo=$ac_try;;
  6010. esac
  6011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6012. $as_echo "$ac_try_echo") >&5
  6013. (eval "$ac_compile") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_cxx_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest.$ac_objext; then
  6023. ac_cv_c_bigendian=yes
  6024. else
  6025. $as_echo "$as_me: failed program was:" >&5
  6026. sed 's/^/| /' conftest.$ac_ext >&5
  6027. ac_cv_c_bigendian=no
  6028. fi
  6029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6030. else
  6031. $as_echo "$as_me: failed program was:" >&5
  6032. sed 's/^/| /' conftest.$ac_ext >&5
  6033. fi
  6034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6035. fi
  6036. if test $ac_cv_c_bigendian = unknown; then
  6037. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6038. cat >conftest.$ac_ext <<_ACEOF
  6039. /* confdefs.h. */
  6040. _ACEOF
  6041. cat confdefs.h >>conftest.$ac_ext
  6042. cat >>conftest.$ac_ext <<_ACEOF
  6043. /* end confdefs.h. */
  6044. #include <limits.h>
  6045. int
  6046. main ()
  6047. {
  6048. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6049. bogus endian macros
  6050. #endif
  6051. ;
  6052. return 0;
  6053. }
  6054. _ACEOF
  6055. rm -f conftest.$ac_objext
  6056. if { (ac_try="$ac_compile"
  6057. case "(($ac_try" in
  6058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6059. *) ac_try_echo=$ac_try;;
  6060. esac
  6061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6062. $as_echo "$ac_try_echo") >&5
  6063. (eval "$ac_compile") 2>conftest.er1
  6064. ac_status=$?
  6065. grep -v '^ *+' conftest.er1 >conftest.err
  6066. rm -f conftest.er1
  6067. cat conftest.err >&5
  6068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); } && {
  6070. test -z "$ac_cxx_werror_flag" ||
  6071. test ! -s conftest.err
  6072. } && test -s conftest.$ac_objext; then
  6073. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6074. cat >conftest.$ac_ext <<_ACEOF
  6075. /* confdefs.h. */
  6076. _ACEOF
  6077. cat confdefs.h >>conftest.$ac_ext
  6078. cat >>conftest.$ac_ext <<_ACEOF
  6079. /* end confdefs.h. */
  6080. #include <limits.h>
  6081. int
  6082. main ()
  6083. {
  6084. #ifndef _BIG_ENDIAN
  6085. not big endian
  6086. #endif
  6087. ;
  6088. return 0;
  6089. }
  6090. _ACEOF
  6091. rm -f conftest.$ac_objext
  6092. if { (ac_try="$ac_compile"
  6093. case "(($ac_try" in
  6094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6095. *) ac_try_echo=$ac_try;;
  6096. esac
  6097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6098. $as_echo "$ac_try_echo") >&5
  6099. (eval "$ac_compile") 2>conftest.er1
  6100. ac_status=$?
  6101. grep -v '^ *+' conftest.er1 >conftest.err
  6102. rm -f conftest.er1
  6103. cat conftest.err >&5
  6104. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); } && {
  6106. test -z "$ac_cxx_werror_flag" ||
  6107. test ! -s conftest.err
  6108. } && test -s conftest.$ac_objext; then
  6109. ac_cv_c_bigendian=yes
  6110. else
  6111. $as_echo "$as_me: failed program was:" >&5
  6112. sed 's/^/| /' conftest.$ac_ext >&5
  6113. ac_cv_c_bigendian=no
  6114. fi
  6115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6116. else
  6117. $as_echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. fi
  6120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6121. fi
  6122. if test $ac_cv_c_bigendian = unknown; then
  6123. # Compile a test program.
  6124. if test "$cross_compiling" = yes; then
  6125. # Try to guess by grepping values from an object file.
  6126. cat >conftest.$ac_ext <<_ACEOF
  6127. /* confdefs.h. */
  6128. _ACEOF
  6129. cat confdefs.h >>conftest.$ac_ext
  6130. cat >>conftest.$ac_ext <<_ACEOF
  6131. /* end confdefs.h. */
  6132. short int ascii_mm[] =
  6133. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6134. short int ascii_ii[] =
  6135. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6136. int use_ascii (int i) {
  6137. return ascii_mm[i] + ascii_ii[i];
  6138. }
  6139. short int ebcdic_ii[] =
  6140. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6141. short int ebcdic_mm[] =
  6142. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6143. int use_ebcdic (int i) {
  6144. return ebcdic_mm[i] + ebcdic_ii[i];
  6145. }
  6146. extern int foo;
  6147. int
  6148. main ()
  6149. {
  6150. return use_ascii (foo) == use_ebcdic (foo);
  6151. ;
  6152. return 0;
  6153. }
  6154. _ACEOF
  6155. rm -f conftest.$ac_objext
  6156. if { (ac_try="$ac_compile"
  6157. case "(($ac_try" in
  6158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6159. *) ac_try_echo=$ac_try;;
  6160. esac
  6161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6162. $as_echo "$ac_try_echo") >&5
  6163. (eval "$ac_compile") 2>conftest.er1
  6164. ac_status=$?
  6165. grep -v '^ *+' conftest.er1 >conftest.err
  6166. rm -f conftest.er1
  6167. cat conftest.err >&5
  6168. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169. (exit $ac_status); } && {
  6170. test -z "$ac_cxx_werror_flag" ||
  6171. test ! -s conftest.err
  6172. } && test -s conftest.$ac_objext; then
  6173. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6174. ac_cv_c_bigendian=yes
  6175. fi
  6176. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6177. if test "$ac_cv_c_bigendian" = unknown; then
  6178. ac_cv_c_bigendian=no
  6179. else
  6180. # finding both strings is unlikely to happen, but who knows?
  6181. ac_cv_c_bigendian=unknown
  6182. fi
  6183. fi
  6184. else
  6185. $as_echo "$as_me: failed program was:" >&5
  6186. sed 's/^/| /' conftest.$ac_ext >&5
  6187. fi
  6188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6189. else
  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. int
  6198. main ()
  6199. {
  6200. /* Are we little or big endian? From Harbison&Steele. */
  6201. union
  6202. {
  6203. long int l;
  6204. char c[sizeof (long int)];
  6205. } u;
  6206. u.l = 1;
  6207. return u.c[sizeof (long int) - 1] == 1;
  6208. ;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. rm -f conftest$ac_exeext
  6213. if { (ac_try="$ac_link"
  6214. case "(($ac_try" in
  6215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6216. *) ac_try_echo=$ac_try;;
  6217. esac
  6218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6219. $as_echo "$ac_try_echo") >&5
  6220. (eval "$ac_link") 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6224. { (case "(($ac_try" in
  6225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6226. *) ac_try_echo=$ac_try;;
  6227. esac
  6228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6229. $as_echo "$ac_try_echo") >&5
  6230. (eval "$ac_try") 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6233. (exit $ac_status); }; }; then
  6234. ac_cv_c_bigendian=no
  6235. else
  6236. $as_echo "$as_me: program exited with status $ac_status" >&5
  6237. $as_echo "$as_me: failed program was:" >&5
  6238. sed 's/^/| /' conftest.$ac_ext >&5
  6239. ( exit $ac_status )
  6240. ac_cv_c_bigendian=yes
  6241. fi
  6242. rm -rf conftest.dSYM
  6243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6244. fi
  6245. fi
  6246. fi
  6247. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6248. $as_echo "$ac_cv_c_bigendian" >&6; }
  6249. case $ac_cv_c_bigendian in #(
  6250. yes)
  6251. cat >>confdefs.h <<\_ACEOF
  6252. #define B_ENDIAN 1
  6253. _ACEOF
  6254. ;; #(
  6255. no)
  6256. cat >>confdefs.h <<\_ACEOF
  6257. #define L_ENDIAN 1
  6258. _ACEOF
  6259. ;; #(
  6260. universal)
  6261. cat >>confdefs.h <<\_ACEOF
  6262. #define AC_APPLE_UNIVERSAL_BUILD 1
  6263. _ACEOF
  6264. ;; #(
  6265. *)
  6266. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6267. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6268. $as_echo "$as_me: error: unknown endianness
  6269. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6270. { (exit 1); exit 1; }; } ;;
  6271. esac
  6272. #AC_C_INLINE
  6273. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6274. $as_echo_n "checking whether char is unsigned... " >&6; }
  6275. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. cat >conftest.$ac_ext <<_ACEOF
  6279. /* confdefs.h. */
  6280. _ACEOF
  6281. cat confdefs.h >>conftest.$ac_ext
  6282. cat >>conftest.$ac_ext <<_ACEOF
  6283. /* end confdefs.h. */
  6284. $ac_includes_default
  6285. int
  6286. main ()
  6287. {
  6288. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6289. test_array [0] = 0
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. rm -f conftest.$ac_objext
  6295. if { (ac_try="$ac_compile"
  6296. case "(($ac_try" in
  6297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6298. *) ac_try_echo=$ac_try;;
  6299. esac
  6300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6301. $as_echo "$ac_try_echo") >&5
  6302. (eval "$ac_compile") 2>conftest.er1
  6303. ac_status=$?
  6304. grep -v '^ *+' conftest.er1 >conftest.err
  6305. rm -f conftest.er1
  6306. cat conftest.err >&5
  6307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308. (exit $ac_status); } && {
  6309. test -z "$ac_cxx_werror_flag" ||
  6310. test ! -s conftest.err
  6311. } && test -s conftest.$ac_objext; then
  6312. ac_cv_c_char_unsigned=no
  6313. else
  6314. $as_echo "$as_me: failed program was:" >&5
  6315. sed 's/^/| /' conftest.$ac_ext >&5
  6316. ac_cv_c_char_unsigned=yes
  6317. fi
  6318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6319. fi
  6320. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6321. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6322. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6323. cat >>confdefs.h <<\_ACEOF
  6324. #define __CHAR_UNSIGNED__ 1
  6325. _ACEOF
  6326. fi
  6327. #AC_C_STRINGIZE
  6328. #AC_C_PROTOTYPES
  6329. #checkpoint
  6330. cat >confcache <<\_ACEOF
  6331. # This file is a shell script that caches the results of configure
  6332. # tests run on this system so they can be shared between configure
  6333. # scripts and configure runs, see configure's option --config-cache.
  6334. # It is not useful on other systems. If it contains results you don't
  6335. # want to keep, you may remove or edit it.
  6336. #
  6337. # config.status only pays attention to the cache file if you give it
  6338. # the --recheck option to rerun configure.
  6339. #
  6340. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6341. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6342. # following values.
  6343. _ACEOF
  6344. # The following way of writing the cache mishandles newlines in values,
  6345. # but we know of no workaround that is simple, portable, and efficient.
  6346. # So, we kill variables containing newlines.
  6347. # Ultrix sh set writes to stderr and can't be redirected directly,
  6348. # and sets the high bit in the cache file unless we assign to the vars.
  6349. (
  6350. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6351. eval ac_val=\$$ac_var
  6352. case $ac_val in #(
  6353. *${as_nl}*)
  6354. case $ac_var in #(
  6355. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6356. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6357. esac
  6358. case $ac_var in #(
  6359. _ | IFS | as_nl) ;; #(
  6360. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6361. *) $as_unset $ac_var ;;
  6362. esac ;;
  6363. esac
  6364. done
  6365. (set) 2>&1 |
  6366. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6367. *${as_nl}ac_space=\ *)
  6368. # `set' does not quote correctly, so add quotes (double-quote
  6369. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6370. sed -n \
  6371. "s/'/'\\\\''/g;
  6372. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6373. ;; #(
  6374. *)
  6375. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6376. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6377. ;;
  6378. esac |
  6379. sort
  6380. ) |
  6381. sed '
  6382. /^ac_cv_env_/b end
  6383. t clear
  6384. :clear
  6385. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6386. t end
  6387. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6388. :end' >>confcache
  6389. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6390. if test -w "$cache_file"; then
  6391. test "x$cache_file" != "x/dev/null" &&
  6392. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6393. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6394. cat confcache >$cache_file
  6395. else
  6396. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6397. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6398. fi
  6399. fi
  6400. rm -f confcache
  6401. # The cast to long int works around a bug in the HP C Compiler
  6402. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6403. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6404. # This bug is HP SR number 8606223364.
  6405. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6406. $as_echo_n "checking size of short... " >&6; }
  6407. if test "${ac_cv_sizeof_short+set}" = set; then
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. if test "$cross_compiling" = yes; then
  6411. # Depending upon the size, compute the lo and hi bounds.
  6412. cat >conftest.$ac_ext <<_ACEOF
  6413. /* confdefs.h. */
  6414. _ACEOF
  6415. cat confdefs.h >>conftest.$ac_ext
  6416. cat >>conftest.$ac_ext <<_ACEOF
  6417. /* end confdefs.h. */
  6418. $ac_includes_default
  6419. int
  6420. main ()
  6421. {
  6422. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6423. test_array [0] = 0
  6424. ;
  6425. return 0;
  6426. }
  6427. _ACEOF
  6428. rm -f conftest.$ac_objext
  6429. if { (ac_try="$ac_compile"
  6430. case "(($ac_try" in
  6431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6432. *) ac_try_echo=$ac_try;;
  6433. esac
  6434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6435. $as_echo "$ac_try_echo") >&5
  6436. (eval "$ac_compile") 2>conftest.er1
  6437. ac_status=$?
  6438. grep -v '^ *+' conftest.er1 >conftest.err
  6439. rm -f conftest.er1
  6440. cat conftest.err >&5
  6441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6442. (exit $ac_status); } && {
  6443. test -z "$ac_cxx_werror_flag" ||
  6444. test ! -s conftest.err
  6445. } && test -s conftest.$ac_objext; then
  6446. ac_lo=0 ac_mid=0
  6447. while :; do
  6448. cat >conftest.$ac_ext <<_ACEOF
  6449. /* confdefs.h. */
  6450. _ACEOF
  6451. cat confdefs.h >>conftest.$ac_ext
  6452. cat >>conftest.$ac_ext <<_ACEOF
  6453. /* end confdefs.h. */
  6454. $ac_includes_default
  6455. int
  6456. main ()
  6457. {
  6458. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6459. test_array [0] = 0
  6460. ;
  6461. return 0;
  6462. }
  6463. _ACEOF
  6464. rm -f conftest.$ac_objext
  6465. if { (ac_try="$ac_compile"
  6466. case "(($ac_try" in
  6467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6468. *) ac_try_echo=$ac_try;;
  6469. esac
  6470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6471. $as_echo "$ac_try_echo") >&5
  6472. (eval "$ac_compile") 2>conftest.er1
  6473. ac_status=$?
  6474. grep -v '^ *+' conftest.er1 >conftest.err
  6475. rm -f conftest.er1
  6476. cat conftest.err >&5
  6477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } && {
  6479. test -z "$ac_cxx_werror_flag" ||
  6480. test ! -s conftest.err
  6481. } && test -s conftest.$ac_objext; then
  6482. ac_hi=$ac_mid; break
  6483. else
  6484. $as_echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_lo=`expr $ac_mid + 1`
  6487. if test $ac_lo -le $ac_mid; then
  6488. ac_lo= ac_hi=
  6489. break
  6490. fi
  6491. ac_mid=`expr 2 '*' $ac_mid + 1`
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6494. done
  6495. else
  6496. $as_echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. int
  6506. main ()
  6507. {
  6508. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6509. test_array [0] = 0
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. rm -f conftest.$ac_objext
  6515. if { (ac_try="$ac_compile"
  6516. case "(($ac_try" in
  6517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6518. *) ac_try_echo=$ac_try;;
  6519. esac
  6520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6521. $as_echo "$ac_try_echo") >&5
  6522. (eval "$ac_compile") 2>conftest.er1
  6523. ac_status=$?
  6524. grep -v '^ *+' conftest.er1 >conftest.err
  6525. rm -f conftest.er1
  6526. cat conftest.err >&5
  6527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } && {
  6529. test -z "$ac_cxx_werror_flag" ||
  6530. test ! -s conftest.err
  6531. } && test -s conftest.$ac_objext; then
  6532. ac_hi=-1 ac_mid=-1
  6533. while :; do
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. $ac_includes_default
  6541. int
  6542. main ()
  6543. {
  6544. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6545. test_array [0] = 0
  6546. ;
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. rm -f conftest.$ac_objext
  6551. if { (ac_try="$ac_compile"
  6552. case "(($ac_try" in
  6553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6554. *) ac_try_echo=$ac_try;;
  6555. esac
  6556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6557. $as_echo "$ac_try_echo") >&5
  6558. (eval "$ac_compile") 2>conftest.er1
  6559. ac_status=$?
  6560. grep -v '^ *+' conftest.er1 >conftest.err
  6561. rm -f conftest.er1
  6562. cat conftest.err >&5
  6563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } && {
  6565. test -z "$ac_cxx_werror_flag" ||
  6566. test ! -s conftest.err
  6567. } && test -s conftest.$ac_objext; then
  6568. ac_lo=$ac_mid; break
  6569. else
  6570. $as_echo "$as_me: failed program was:" >&5
  6571. sed 's/^/| /' conftest.$ac_ext >&5
  6572. ac_hi=`expr '(' $ac_mid ')' - 1`
  6573. if test $ac_mid -le $ac_hi; then
  6574. ac_lo= ac_hi=
  6575. break
  6576. fi
  6577. ac_mid=`expr 2 '*' $ac_mid`
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. done
  6581. else
  6582. $as_echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ac_lo= ac_hi=
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6589. # Binary search between lo and hi bounds.
  6590. while test "x$ac_lo" != "x$ac_hi"; do
  6591. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  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. int
  6600. main ()
  6601. {
  6602. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6603. test_array [0] = 0
  6604. ;
  6605. return 0;
  6606. }
  6607. _ACEOF
  6608. rm -f conftest.$ac_objext
  6609. if { (ac_try="$ac_compile"
  6610. case "(($ac_try" in
  6611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6612. *) ac_try_echo=$ac_try;;
  6613. esac
  6614. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6615. $as_echo "$ac_try_echo") >&5
  6616. (eval "$ac_compile") 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && {
  6623. test -z "$ac_cxx_werror_flag" ||
  6624. test ! -s conftest.err
  6625. } && test -s conftest.$ac_objext; then
  6626. ac_hi=$ac_mid
  6627. else
  6628. $as_echo "$as_me: failed program was:" >&5
  6629. sed 's/^/| /' conftest.$ac_ext >&5
  6630. ac_lo=`expr '(' $ac_mid ')' + 1`
  6631. fi
  6632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6633. done
  6634. case $ac_lo in
  6635. ?*) ac_cv_sizeof_short=$ac_lo;;
  6636. '') if test "$ac_cv_type_short" = yes; then
  6637. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6639. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6640. See \`config.log' for more details." >&5
  6641. $as_echo "$as_me: error: cannot compute sizeof (short)
  6642. See \`config.log' for more details." >&2;}
  6643. { (exit 77); exit 77; }; }; }
  6644. else
  6645. ac_cv_sizeof_short=0
  6646. fi ;;
  6647. esac
  6648. else
  6649. cat >conftest.$ac_ext <<_ACEOF
  6650. /* confdefs.h. */
  6651. _ACEOF
  6652. cat confdefs.h >>conftest.$ac_ext
  6653. cat >>conftest.$ac_ext <<_ACEOF
  6654. /* end confdefs.h. */
  6655. $ac_includes_default
  6656. static long int longval () { return (long int) (sizeof (short)); }
  6657. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6658. #include <stdio.h>
  6659. #include <stdlib.h>
  6660. int
  6661. main ()
  6662. {
  6663. FILE *f = fopen ("conftest.val", "w");
  6664. if (! f)
  6665. return 1;
  6666. if (((long int) (sizeof (short))) < 0)
  6667. {
  6668. long int i = longval ();
  6669. if (i != ((long int) (sizeof (short))))
  6670. return 1;
  6671. fprintf (f, "%ld", i);
  6672. }
  6673. else
  6674. {
  6675. unsigned long int i = ulongval ();
  6676. if (i != ((long int) (sizeof (short))))
  6677. return 1;
  6678. fprintf (f, "%lu", i);
  6679. }
  6680. /* Do not output a trailing newline, as this causes \r\n confusion
  6681. on some platforms. */
  6682. return ferror (f) || fclose (f) != 0;
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. rm -f conftest$ac_exeext
  6688. if { (ac_try="$ac_link"
  6689. case "(($ac_try" in
  6690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6691. *) ac_try_echo=$ac_try;;
  6692. esac
  6693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6694. $as_echo "$ac_try_echo") >&5
  6695. (eval "$ac_link") 2>&5
  6696. ac_status=$?
  6697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6699. { (case "(($ac_try" in
  6700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6701. *) ac_try_echo=$ac_try;;
  6702. esac
  6703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6704. $as_echo "$ac_try_echo") >&5
  6705. (eval "$ac_try") 2>&5
  6706. ac_status=$?
  6707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); }; }; then
  6709. ac_cv_sizeof_short=`cat conftest.val`
  6710. else
  6711. $as_echo "$as_me: program exited with status $ac_status" >&5
  6712. $as_echo "$as_me: failed program was:" >&5
  6713. sed 's/^/| /' conftest.$ac_ext >&5
  6714. ( exit $ac_status )
  6715. if test "$ac_cv_type_short" = yes; then
  6716. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6718. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6719. See \`config.log' for more details." >&5
  6720. $as_echo "$as_me: error: cannot compute sizeof (short)
  6721. See \`config.log' for more details." >&2;}
  6722. { (exit 77); exit 77; }; }; }
  6723. else
  6724. ac_cv_sizeof_short=0
  6725. fi
  6726. fi
  6727. rm -rf conftest.dSYM
  6728. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6729. fi
  6730. rm -f conftest.val
  6731. fi
  6732. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6733. $as_echo "$ac_cv_sizeof_short" >&6; }
  6734. cat >>confdefs.h <<_ACEOF
  6735. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6736. _ACEOF
  6737. # The cast to long int works around a bug in the HP C Compiler
  6738. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6739. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6740. # This bug is HP SR number 8606223364.
  6741. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6742. $as_echo_n "checking size of int... " >&6; }
  6743. if test "${ac_cv_sizeof_int+set}" = set; then
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. if test "$cross_compiling" = yes; then
  6747. # Depending upon the size, compute the lo and hi bounds.
  6748. cat >conftest.$ac_ext <<_ACEOF
  6749. /* confdefs.h. */
  6750. _ACEOF
  6751. cat confdefs.h >>conftest.$ac_ext
  6752. cat >>conftest.$ac_ext <<_ACEOF
  6753. /* end confdefs.h. */
  6754. $ac_includes_default
  6755. int
  6756. main ()
  6757. {
  6758. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6759. test_array [0] = 0
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. rm -f conftest.$ac_objext
  6765. if { (ac_try="$ac_compile"
  6766. case "(($ac_try" in
  6767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6768. *) ac_try_echo=$ac_try;;
  6769. esac
  6770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6771. $as_echo "$ac_try_echo") >&5
  6772. (eval "$ac_compile") 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } && {
  6779. test -z "$ac_cxx_werror_flag" ||
  6780. test ! -s conftest.err
  6781. } && test -s conftest.$ac_objext; then
  6782. ac_lo=0 ac_mid=0
  6783. while :; do
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. $ac_includes_default
  6791. int
  6792. main ()
  6793. {
  6794. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6795. test_array [0] = 0
  6796. ;
  6797. return 0;
  6798. }
  6799. _ACEOF
  6800. rm -f conftest.$ac_objext
  6801. if { (ac_try="$ac_compile"
  6802. case "(($ac_try" in
  6803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6804. *) ac_try_echo=$ac_try;;
  6805. esac
  6806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6807. $as_echo "$ac_try_echo") >&5
  6808. (eval "$ac_compile") 2>conftest.er1
  6809. ac_status=$?
  6810. grep -v '^ *+' conftest.er1 >conftest.err
  6811. rm -f conftest.er1
  6812. cat conftest.err >&5
  6813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); } && {
  6815. test -z "$ac_cxx_werror_flag" ||
  6816. test ! -s conftest.err
  6817. } && test -s conftest.$ac_objext; then
  6818. ac_hi=$ac_mid; break
  6819. else
  6820. $as_echo "$as_me: failed program was:" >&5
  6821. sed 's/^/| /' conftest.$ac_ext >&5
  6822. ac_lo=`expr $ac_mid + 1`
  6823. if test $ac_lo -le $ac_mid; then
  6824. ac_lo= ac_hi=
  6825. break
  6826. fi
  6827. ac_mid=`expr 2 '*' $ac_mid + 1`
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6830. done
  6831. else
  6832. $as_echo "$as_me: failed program was:" >&5
  6833. sed 's/^/| /' conftest.$ac_ext >&5
  6834. cat >conftest.$ac_ext <<_ACEOF
  6835. /* confdefs.h. */
  6836. _ACEOF
  6837. cat confdefs.h >>conftest.$ac_ext
  6838. cat >>conftest.$ac_ext <<_ACEOF
  6839. /* end confdefs.h. */
  6840. $ac_includes_default
  6841. int
  6842. main ()
  6843. {
  6844. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6845. test_array [0] = 0
  6846. ;
  6847. return 0;
  6848. }
  6849. _ACEOF
  6850. rm -f conftest.$ac_objext
  6851. if { (ac_try="$ac_compile"
  6852. case "(($ac_try" in
  6853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6854. *) ac_try_echo=$ac_try;;
  6855. esac
  6856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6857. $as_echo "$ac_try_echo") >&5
  6858. (eval "$ac_compile") 2>conftest.er1
  6859. ac_status=$?
  6860. grep -v '^ *+' conftest.er1 >conftest.err
  6861. rm -f conftest.er1
  6862. cat conftest.err >&5
  6863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6864. (exit $ac_status); } && {
  6865. test -z "$ac_cxx_werror_flag" ||
  6866. test ! -s conftest.err
  6867. } && test -s conftest.$ac_objext; then
  6868. ac_hi=-1 ac_mid=-1
  6869. while :; do
  6870. cat >conftest.$ac_ext <<_ACEOF
  6871. /* confdefs.h. */
  6872. _ACEOF
  6873. cat confdefs.h >>conftest.$ac_ext
  6874. cat >>conftest.$ac_ext <<_ACEOF
  6875. /* end confdefs.h. */
  6876. $ac_includes_default
  6877. int
  6878. main ()
  6879. {
  6880. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6881. test_array [0] = 0
  6882. ;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. rm -f conftest.$ac_objext
  6887. if { (ac_try="$ac_compile"
  6888. case "(($ac_try" in
  6889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6890. *) ac_try_echo=$ac_try;;
  6891. esac
  6892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6893. $as_echo "$ac_try_echo") >&5
  6894. (eval "$ac_compile") 2>conftest.er1
  6895. ac_status=$?
  6896. grep -v '^ *+' conftest.er1 >conftest.err
  6897. rm -f conftest.er1
  6898. cat conftest.err >&5
  6899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6900. (exit $ac_status); } && {
  6901. test -z "$ac_cxx_werror_flag" ||
  6902. test ! -s conftest.err
  6903. } && test -s conftest.$ac_objext; then
  6904. ac_lo=$ac_mid; break
  6905. else
  6906. $as_echo "$as_me: failed program was:" >&5
  6907. sed 's/^/| /' conftest.$ac_ext >&5
  6908. ac_hi=`expr '(' $ac_mid ')' - 1`
  6909. if test $ac_mid -le $ac_hi; then
  6910. ac_lo= ac_hi=
  6911. break
  6912. fi
  6913. ac_mid=`expr 2 '*' $ac_mid`
  6914. fi
  6915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6916. done
  6917. else
  6918. $as_echo "$as_me: failed program was:" >&5
  6919. sed 's/^/| /' conftest.$ac_ext >&5
  6920. ac_lo= ac_hi=
  6921. fi
  6922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6923. fi
  6924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6925. # Binary search between lo and hi bounds.
  6926. while test "x$ac_lo" != "x$ac_hi"; do
  6927. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6928. cat >conftest.$ac_ext <<_ACEOF
  6929. /* confdefs.h. */
  6930. _ACEOF
  6931. cat confdefs.h >>conftest.$ac_ext
  6932. cat >>conftest.$ac_ext <<_ACEOF
  6933. /* end confdefs.h. */
  6934. $ac_includes_default
  6935. int
  6936. main ()
  6937. {
  6938. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6939. test_array [0] = 0
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext
  6945. if { (ac_try="$ac_compile"
  6946. case "(($ac_try" in
  6947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6948. *) ac_try_echo=$ac_try;;
  6949. esac
  6950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6951. $as_echo "$ac_try_echo") >&5
  6952. (eval "$ac_compile") 2>conftest.er1
  6953. ac_status=$?
  6954. grep -v '^ *+' conftest.er1 >conftest.err
  6955. rm -f conftest.er1
  6956. cat conftest.err >&5
  6957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958. (exit $ac_status); } && {
  6959. test -z "$ac_cxx_werror_flag" ||
  6960. test ! -s conftest.err
  6961. } && test -s conftest.$ac_objext; then
  6962. ac_hi=$ac_mid
  6963. else
  6964. $as_echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966. ac_lo=`expr '(' $ac_mid ')' + 1`
  6967. fi
  6968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6969. done
  6970. case $ac_lo in
  6971. ?*) ac_cv_sizeof_int=$ac_lo;;
  6972. '') if test "$ac_cv_type_int" = yes; then
  6973. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6975. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6976. See \`config.log' for more details." >&5
  6977. $as_echo "$as_me: error: cannot compute sizeof (int)
  6978. See \`config.log' for more details." >&2;}
  6979. { (exit 77); exit 77; }; }; }
  6980. else
  6981. ac_cv_sizeof_int=0
  6982. fi ;;
  6983. esac
  6984. else
  6985. cat >conftest.$ac_ext <<_ACEOF
  6986. /* confdefs.h. */
  6987. _ACEOF
  6988. cat confdefs.h >>conftest.$ac_ext
  6989. cat >>conftest.$ac_ext <<_ACEOF
  6990. /* end confdefs.h. */
  6991. $ac_includes_default
  6992. static long int longval () { return (long int) (sizeof (int)); }
  6993. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6994. #include <stdio.h>
  6995. #include <stdlib.h>
  6996. int
  6997. main ()
  6998. {
  6999. FILE *f = fopen ("conftest.val", "w");
  7000. if (! f)
  7001. return 1;
  7002. if (((long int) (sizeof (int))) < 0)
  7003. {
  7004. long int i = longval ();
  7005. if (i != ((long int) (sizeof (int))))
  7006. return 1;
  7007. fprintf (f, "%ld", i);
  7008. }
  7009. else
  7010. {
  7011. unsigned long int i = ulongval ();
  7012. if (i != ((long int) (sizeof (int))))
  7013. return 1;
  7014. fprintf (f, "%lu", i);
  7015. }
  7016. /* Do not output a trailing newline, as this causes \r\n confusion
  7017. on some platforms. */
  7018. return ferror (f) || fclose (f) != 0;
  7019. ;
  7020. return 0;
  7021. }
  7022. _ACEOF
  7023. rm -f conftest$ac_exeext
  7024. if { (ac_try="$ac_link"
  7025. case "(($ac_try" in
  7026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7027. *) ac_try_echo=$ac_try;;
  7028. esac
  7029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7030. $as_echo "$ac_try_echo") >&5
  7031. (eval "$ac_link") 2>&5
  7032. ac_status=$?
  7033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7035. { (case "(($ac_try" in
  7036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7037. *) ac_try_echo=$ac_try;;
  7038. esac
  7039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7040. $as_echo "$ac_try_echo") >&5
  7041. (eval "$ac_try") 2>&5
  7042. ac_status=$?
  7043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); }; }; then
  7045. ac_cv_sizeof_int=`cat conftest.val`
  7046. else
  7047. $as_echo "$as_me: program exited with status $ac_status" >&5
  7048. $as_echo "$as_me: failed program was:" >&5
  7049. sed 's/^/| /' conftest.$ac_ext >&5
  7050. ( exit $ac_status )
  7051. if test "$ac_cv_type_int" = yes; then
  7052. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7054. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  7055. See \`config.log' for more details." >&5
  7056. $as_echo "$as_me: error: cannot compute sizeof (int)
  7057. See \`config.log' for more details." >&2;}
  7058. { (exit 77); exit 77; }; }; }
  7059. else
  7060. ac_cv_sizeof_int=0
  7061. fi
  7062. fi
  7063. rm -rf conftest.dSYM
  7064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7065. fi
  7066. rm -f conftest.val
  7067. fi
  7068. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7069. $as_echo "$ac_cv_sizeof_int" >&6; }
  7070. cat >>confdefs.h <<_ACEOF
  7071. #define SIZEOF_INT $ac_cv_sizeof_int
  7072. _ACEOF
  7073. # The cast to long int works around a bug in the HP C Compiler
  7074. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7075. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7076. # This bug is HP SR number 8606223364.
  7077. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  7078. $as_echo_n "checking size of long... " >&6; }
  7079. if test "${ac_cv_sizeof_long+set}" = set; then
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. if test "$cross_compiling" = yes; then
  7083. # Depending upon the size, compute the lo and hi bounds.
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. $ac_includes_default
  7091. int
  7092. main ()
  7093. {
  7094. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  7095. test_array [0] = 0
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. rm -f conftest.$ac_objext
  7101. if { (ac_try="$ac_compile"
  7102. case "(($ac_try" in
  7103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7104. *) ac_try_echo=$ac_try;;
  7105. esac
  7106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7107. $as_echo "$ac_try_echo") >&5
  7108. (eval "$ac_compile") 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } && {
  7115. test -z "$ac_cxx_werror_flag" ||
  7116. test ! -s conftest.err
  7117. } && test -s conftest.$ac_objext; then
  7118. ac_lo=0 ac_mid=0
  7119. while :; do
  7120. cat >conftest.$ac_ext <<_ACEOF
  7121. /* confdefs.h. */
  7122. _ACEOF
  7123. cat confdefs.h >>conftest.$ac_ext
  7124. cat >>conftest.$ac_ext <<_ACEOF
  7125. /* end confdefs.h. */
  7126. $ac_includes_default
  7127. int
  7128. main ()
  7129. {
  7130. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7131. test_array [0] = 0
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. rm -f conftest.$ac_objext
  7137. if { (ac_try="$ac_compile"
  7138. case "(($ac_try" in
  7139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7140. *) ac_try_echo=$ac_try;;
  7141. esac
  7142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7143. $as_echo "$ac_try_echo") >&5
  7144. (eval "$ac_compile") 2>conftest.er1
  7145. ac_status=$?
  7146. grep -v '^ *+' conftest.er1 >conftest.err
  7147. rm -f conftest.er1
  7148. cat conftest.err >&5
  7149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); } && {
  7151. test -z "$ac_cxx_werror_flag" ||
  7152. test ! -s conftest.err
  7153. } && test -s conftest.$ac_objext; then
  7154. ac_hi=$ac_mid; break
  7155. else
  7156. $as_echo "$as_me: failed program was:" >&5
  7157. sed 's/^/| /' conftest.$ac_ext >&5
  7158. ac_lo=`expr $ac_mid + 1`
  7159. if test $ac_lo -le $ac_mid; then
  7160. ac_lo= ac_hi=
  7161. break
  7162. fi
  7163. ac_mid=`expr 2 '*' $ac_mid + 1`
  7164. fi
  7165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7166. done
  7167. else
  7168. $as_echo "$as_me: failed program was:" >&5
  7169. sed 's/^/| /' conftest.$ac_ext >&5
  7170. cat >conftest.$ac_ext <<_ACEOF
  7171. /* confdefs.h. */
  7172. _ACEOF
  7173. cat confdefs.h >>conftest.$ac_ext
  7174. cat >>conftest.$ac_ext <<_ACEOF
  7175. /* end confdefs.h. */
  7176. $ac_includes_default
  7177. int
  7178. main ()
  7179. {
  7180. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  7181. test_array [0] = 0
  7182. ;
  7183. return 0;
  7184. }
  7185. _ACEOF
  7186. rm -f conftest.$ac_objext
  7187. if { (ac_try="$ac_compile"
  7188. case "(($ac_try" in
  7189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7190. *) ac_try_echo=$ac_try;;
  7191. esac
  7192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7193. $as_echo "$ac_try_echo") >&5
  7194. (eval "$ac_compile") 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } && {
  7201. test -z "$ac_cxx_werror_flag" ||
  7202. test ! -s conftest.err
  7203. } && test -s conftest.$ac_objext; then
  7204. ac_hi=-1 ac_mid=-1
  7205. while :; do
  7206. cat >conftest.$ac_ext <<_ACEOF
  7207. /* confdefs.h. */
  7208. _ACEOF
  7209. cat confdefs.h >>conftest.$ac_ext
  7210. cat >>conftest.$ac_ext <<_ACEOF
  7211. /* end confdefs.h. */
  7212. $ac_includes_default
  7213. int
  7214. main ()
  7215. {
  7216. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7217. test_array [0] = 0
  7218. ;
  7219. return 0;
  7220. }
  7221. _ACEOF
  7222. rm -f conftest.$ac_objext
  7223. if { (ac_try="$ac_compile"
  7224. case "(($ac_try" in
  7225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7226. *) ac_try_echo=$ac_try;;
  7227. esac
  7228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7229. $as_echo "$ac_try_echo") >&5
  7230. (eval "$ac_compile") 2>conftest.er1
  7231. ac_status=$?
  7232. grep -v '^ *+' conftest.er1 >conftest.err
  7233. rm -f conftest.er1
  7234. cat conftest.err >&5
  7235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); } && {
  7237. test -z "$ac_cxx_werror_flag" ||
  7238. test ! -s conftest.err
  7239. } && test -s conftest.$ac_objext; then
  7240. ac_lo=$ac_mid; break
  7241. else
  7242. $as_echo "$as_me: failed program was:" >&5
  7243. sed 's/^/| /' conftest.$ac_ext >&5
  7244. ac_hi=`expr '(' $ac_mid ')' - 1`
  7245. if test $ac_mid -le $ac_hi; then
  7246. ac_lo= ac_hi=
  7247. break
  7248. fi
  7249. ac_mid=`expr 2 '*' $ac_mid`
  7250. fi
  7251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7252. done
  7253. else
  7254. $as_echo "$as_me: failed program was:" >&5
  7255. sed 's/^/| /' conftest.$ac_ext >&5
  7256. ac_lo= ac_hi=
  7257. fi
  7258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7259. fi
  7260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7261. # Binary search between lo and hi bounds.
  7262. while test "x$ac_lo" != "x$ac_hi"; do
  7263. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  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. int
  7272. main ()
  7273. {
  7274. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7275. test_array [0] = 0
  7276. ;
  7277. return 0;
  7278. }
  7279. _ACEOF
  7280. rm -f conftest.$ac_objext
  7281. if { (ac_try="$ac_compile"
  7282. case "(($ac_try" in
  7283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7284. *) ac_try_echo=$ac_try;;
  7285. esac
  7286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7287. $as_echo "$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. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); } && {
  7295. test -z "$ac_cxx_werror_flag" ||
  7296. test ! -s conftest.err
  7297. } && test -s conftest.$ac_objext; then
  7298. ac_hi=$ac_mid
  7299. else
  7300. $as_echo "$as_me: failed program was:" >&5
  7301. sed 's/^/| /' conftest.$ac_ext >&5
  7302. ac_lo=`expr '(' $ac_mid ')' + 1`
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. done
  7306. case $ac_lo in
  7307. ?*) ac_cv_sizeof_long=$ac_lo;;
  7308. '') if test "$ac_cv_type_long" = yes; then
  7309. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7311. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7312. See \`config.log' for more details." >&5
  7313. $as_echo "$as_me: error: cannot compute sizeof (long)
  7314. See \`config.log' for more details." >&2;}
  7315. { (exit 77); exit 77; }; }; }
  7316. else
  7317. ac_cv_sizeof_long=0
  7318. fi ;;
  7319. esac
  7320. else
  7321. cat >conftest.$ac_ext <<_ACEOF
  7322. /* confdefs.h. */
  7323. _ACEOF
  7324. cat confdefs.h >>conftest.$ac_ext
  7325. cat >>conftest.$ac_ext <<_ACEOF
  7326. /* end confdefs.h. */
  7327. $ac_includes_default
  7328. static long int longval () { return (long int) (sizeof (long)); }
  7329. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7330. #include <stdio.h>
  7331. #include <stdlib.h>
  7332. int
  7333. main ()
  7334. {
  7335. FILE *f = fopen ("conftest.val", "w");
  7336. if (! f)
  7337. return 1;
  7338. if (((long int) (sizeof (long))) < 0)
  7339. {
  7340. long int i = longval ();
  7341. if (i != ((long int) (sizeof (long))))
  7342. return 1;
  7343. fprintf (f, "%ld", i);
  7344. }
  7345. else
  7346. {
  7347. unsigned long int i = ulongval ();
  7348. if (i != ((long int) (sizeof (long))))
  7349. return 1;
  7350. fprintf (f, "%lu", i);
  7351. }
  7352. /* Do not output a trailing newline, as this causes \r\n confusion
  7353. on some platforms. */
  7354. return ferror (f) || fclose (f) != 0;
  7355. ;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. rm -f conftest$ac_exeext
  7360. if { (ac_try="$ac_link"
  7361. case "(($ac_try" in
  7362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7363. *) ac_try_echo=$ac_try;;
  7364. esac
  7365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7366. $as_echo "$ac_try_echo") >&5
  7367. (eval "$ac_link") 2>&5
  7368. ac_status=$?
  7369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7371. { (case "(($ac_try" in
  7372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7373. *) ac_try_echo=$ac_try;;
  7374. esac
  7375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7376. $as_echo "$ac_try_echo") >&5
  7377. (eval "$ac_try") 2>&5
  7378. ac_status=$?
  7379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); }; }; then
  7381. ac_cv_sizeof_long=`cat conftest.val`
  7382. else
  7383. $as_echo "$as_me: program exited with status $ac_status" >&5
  7384. $as_echo "$as_me: failed program was:" >&5
  7385. sed 's/^/| /' conftest.$ac_ext >&5
  7386. ( exit $ac_status )
  7387. if test "$ac_cv_type_long" = yes; then
  7388. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7390. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7391. See \`config.log' for more details." >&5
  7392. $as_echo "$as_me: error: cannot compute sizeof (long)
  7393. See \`config.log' for more details." >&2;}
  7394. { (exit 77); exit 77; }; }; }
  7395. else
  7396. ac_cv_sizeof_long=0
  7397. fi
  7398. fi
  7399. rm -rf conftest.dSYM
  7400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7401. fi
  7402. rm -f conftest.val
  7403. fi
  7404. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7405. $as_echo "$ac_cv_sizeof_long" >&6; }
  7406. cat >>confdefs.h <<_ACEOF
  7407. #define SIZEOF_LONG $ac_cv_sizeof_long
  7408. _ACEOF
  7409. # The cast to long int works around a bug in the HP C Compiler
  7410. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7411. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7412. # This bug is HP SR number 8606223364.
  7413. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7414. $as_echo_n "checking size of long long... " >&6; }
  7415. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. if test "$cross_compiling" = yes; then
  7419. # Depending upon the size, compute the lo and hi bounds.
  7420. cat >conftest.$ac_ext <<_ACEOF
  7421. /* confdefs.h. */
  7422. _ACEOF
  7423. cat confdefs.h >>conftest.$ac_ext
  7424. cat >>conftest.$ac_ext <<_ACEOF
  7425. /* end confdefs.h. */
  7426. $ac_includes_default
  7427. int
  7428. main ()
  7429. {
  7430. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7431. test_array [0] = 0
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. rm -f conftest.$ac_objext
  7437. if { (ac_try="$ac_compile"
  7438. case "(($ac_try" in
  7439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7440. *) ac_try_echo=$ac_try;;
  7441. esac
  7442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7443. $as_echo "$ac_try_echo") >&5
  7444. (eval "$ac_compile") 2>conftest.er1
  7445. ac_status=$?
  7446. grep -v '^ *+' conftest.er1 >conftest.err
  7447. rm -f conftest.er1
  7448. cat conftest.err >&5
  7449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); } && {
  7451. test -z "$ac_cxx_werror_flag" ||
  7452. test ! -s conftest.err
  7453. } && test -s conftest.$ac_objext; then
  7454. ac_lo=0 ac_mid=0
  7455. while :; do
  7456. cat >conftest.$ac_ext <<_ACEOF
  7457. /* confdefs.h. */
  7458. _ACEOF
  7459. cat confdefs.h >>conftest.$ac_ext
  7460. cat >>conftest.$ac_ext <<_ACEOF
  7461. /* end confdefs.h. */
  7462. $ac_includes_default
  7463. int
  7464. main ()
  7465. {
  7466. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7467. test_array [0] = 0
  7468. ;
  7469. return 0;
  7470. }
  7471. _ACEOF
  7472. rm -f conftest.$ac_objext
  7473. if { (ac_try="$ac_compile"
  7474. case "(($ac_try" in
  7475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7476. *) ac_try_echo=$ac_try;;
  7477. esac
  7478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7479. $as_echo "$ac_try_echo") >&5
  7480. (eval "$ac_compile") 2>conftest.er1
  7481. ac_status=$?
  7482. grep -v '^ *+' conftest.er1 >conftest.err
  7483. rm -f conftest.er1
  7484. cat conftest.err >&5
  7485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. (exit $ac_status); } && {
  7487. test -z "$ac_cxx_werror_flag" ||
  7488. test ! -s conftest.err
  7489. } && test -s conftest.$ac_objext; then
  7490. ac_hi=$ac_mid; break
  7491. else
  7492. $as_echo "$as_me: failed program was:" >&5
  7493. sed 's/^/| /' conftest.$ac_ext >&5
  7494. ac_lo=`expr $ac_mid + 1`
  7495. if test $ac_lo -le $ac_mid; then
  7496. ac_lo= ac_hi=
  7497. break
  7498. fi
  7499. ac_mid=`expr 2 '*' $ac_mid + 1`
  7500. fi
  7501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7502. done
  7503. else
  7504. $as_echo "$as_me: failed program was:" >&5
  7505. sed 's/^/| /' conftest.$ac_ext >&5
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. $ac_includes_default
  7513. int
  7514. main ()
  7515. {
  7516. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7517. test_array [0] = 0
  7518. ;
  7519. return 0;
  7520. }
  7521. _ACEOF
  7522. rm -f conftest.$ac_objext
  7523. if { (ac_try="$ac_compile"
  7524. case "(($ac_try" in
  7525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7526. *) ac_try_echo=$ac_try;;
  7527. esac
  7528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7529. $as_echo "$ac_try_echo") >&5
  7530. (eval "$ac_compile") 2>conftest.er1
  7531. ac_status=$?
  7532. grep -v '^ *+' conftest.er1 >conftest.err
  7533. rm -f conftest.er1
  7534. cat conftest.err >&5
  7535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. (exit $ac_status); } && {
  7537. test -z "$ac_cxx_werror_flag" ||
  7538. test ! -s conftest.err
  7539. } && test -s conftest.$ac_objext; then
  7540. ac_hi=-1 ac_mid=-1
  7541. while :; do
  7542. cat >conftest.$ac_ext <<_ACEOF
  7543. /* confdefs.h. */
  7544. _ACEOF
  7545. cat confdefs.h >>conftest.$ac_ext
  7546. cat >>conftest.$ac_ext <<_ACEOF
  7547. /* end confdefs.h. */
  7548. $ac_includes_default
  7549. int
  7550. main ()
  7551. {
  7552. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7553. test_array [0] = 0
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. rm -f conftest.$ac_objext
  7559. if { (ac_try="$ac_compile"
  7560. case "(($ac_try" in
  7561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7562. *) ac_try_echo=$ac_try;;
  7563. esac
  7564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7565. $as_echo "$ac_try_echo") >&5
  7566. (eval "$ac_compile") 2>conftest.er1
  7567. ac_status=$?
  7568. grep -v '^ *+' conftest.er1 >conftest.err
  7569. rm -f conftest.er1
  7570. cat conftest.err >&5
  7571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); } && {
  7573. test -z "$ac_cxx_werror_flag" ||
  7574. test ! -s conftest.err
  7575. } && test -s conftest.$ac_objext; then
  7576. ac_lo=$ac_mid; break
  7577. else
  7578. $as_echo "$as_me: failed program was:" >&5
  7579. sed 's/^/| /' conftest.$ac_ext >&5
  7580. ac_hi=`expr '(' $ac_mid ')' - 1`
  7581. if test $ac_mid -le $ac_hi; then
  7582. ac_lo= ac_hi=
  7583. break
  7584. fi
  7585. ac_mid=`expr 2 '*' $ac_mid`
  7586. fi
  7587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7588. done
  7589. else
  7590. $as_echo "$as_me: failed program was:" >&5
  7591. sed 's/^/| /' conftest.$ac_ext >&5
  7592. ac_lo= ac_hi=
  7593. fi
  7594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. fi
  7596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7597. # Binary search between lo and hi bounds.
  7598. while test "x$ac_lo" != "x$ac_hi"; do
  7599. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7600. cat >conftest.$ac_ext <<_ACEOF
  7601. /* confdefs.h. */
  7602. _ACEOF
  7603. cat confdefs.h >>conftest.$ac_ext
  7604. cat >>conftest.$ac_ext <<_ACEOF
  7605. /* end confdefs.h. */
  7606. $ac_includes_default
  7607. int
  7608. main ()
  7609. {
  7610. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7611. test_array [0] = 0
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. rm -f conftest.$ac_objext
  7617. if { (ac_try="$ac_compile"
  7618. case "(($ac_try" in
  7619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7620. *) ac_try_echo=$ac_try;;
  7621. esac
  7622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7623. $as_echo "$ac_try_echo") >&5
  7624. (eval "$ac_compile") 2>conftest.er1
  7625. ac_status=$?
  7626. grep -v '^ *+' conftest.er1 >conftest.err
  7627. rm -f conftest.er1
  7628. cat conftest.err >&5
  7629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. (exit $ac_status); } && {
  7631. test -z "$ac_cxx_werror_flag" ||
  7632. test ! -s conftest.err
  7633. } && test -s conftest.$ac_objext; then
  7634. ac_hi=$ac_mid
  7635. else
  7636. $as_echo "$as_me: failed program was:" >&5
  7637. sed 's/^/| /' conftest.$ac_ext >&5
  7638. ac_lo=`expr '(' $ac_mid ')' + 1`
  7639. fi
  7640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7641. done
  7642. case $ac_lo in
  7643. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7644. '') if test "$ac_cv_type_long_long" = yes; then
  7645. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7647. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7648. See \`config.log' for more details." >&5
  7649. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7650. See \`config.log' for more details." >&2;}
  7651. { (exit 77); exit 77; }; }; }
  7652. else
  7653. ac_cv_sizeof_long_long=0
  7654. fi ;;
  7655. esac
  7656. else
  7657. cat >conftest.$ac_ext <<_ACEOF
  7658. /* confdefs.h. */
  7659. _ACEOF
  7660. cat confdefs.h >>conftest.$ac_ext
  7661. cat >>conftest.$ac_ext <<_ACEOF
  7662. /* end confdefs.h. */
  7663. $ac_includes_default
  7664. static long int longval () { return (long int) (sizeof (long long)); }
  7665. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7666. #include <stdio.h>
  7667. #include <stdlib.h>
  7668. int
  7669. main ()
  7670. {
  7671. FILE *f = fopen ("conftest.val", "w");
  7672. if (! f)
  7673. return 1;
  7674. if (((long int) (sizeof (long long))) < 0)
  7675. {
  7676. long int i = longval ();
  7677. if (i != ((long int) (sizeof (long long))))
  7678. return 1;
  7679. fprintf (f, "%ld", i);
  7680. }
  7681. else
  7682. {
  7683. unsigned long int i = ulongval ();
  7684. if (i != ((long int) (sizeof (long long))))
  7685. return 1;
  7686. fprintf (f, "%lu", i);
  7687. }
  7688. /* Do not output a trailing newline, as this causes \r\n confusion
  7689. on some platforms. */
  7690. return ferror (f) || fclose (f) != 0;
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. rm -f conftest$ac_exeext
  7696. if { (ac_try="$ac_link"
  7697. case "(($ac_try" in
  7698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7699. *) ac_try_echo=$ac_try;;
  7700. esac
  7701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7702. $as_echo "$ac_try_echo") >&5
  7703. (eval "$ac_link") 2>&5
  7704. ac_status=$?
  7705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7707. { (case "(($ac_try" in
  7708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7709. *) ac_try_echo=$ac_try;;
  7710. esac
  7711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7712. $as_echo "$ac_try_echo") >&5
  7713. (eval "$ac_try") 2>&5
  7714. ac_status=$?
  7715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); }; }; then
  7717. ac_cv_sizeof_long_long=`cat conftest.val`
  7718. else
  7719. $as_echo "$as_me: program exited with status $ac_status" >&5
  7720. $as_echo "$as_me: failed program was:" >&5
  7721. sed 's/^/| /' conftest.$ac_ext >&5
  7722. ( exit $ac_status )
  7723. if test "$ac_cv_type_long_long" = yes; then
  7724. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7725. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7726. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7727. See \`config.log' for more details." >&5
  7728. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7729. See \`config.log' for more details." >&2;}
  7730. { (exit 77); exit 77; }; }; }
  7731. else
  7732. ac_cv_sizeof_long_long=0
  7733. fi
  7734. fi
  7735. rm -rf conftest.dSYM
  7736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7737. fi
  7738. rm -f conftest.val
  7739. fi
  7740. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7741. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7742. cat >>confdefs.h <<_ACEOF
  7743. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7744. _ACEOF
  7745. # The cast to long int works around a bug in the HP C Compiler
  7746. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7747. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7748. # This bug is HP SR number 8606223364.
  7749. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7750. $as_echo_n "checking size of size_t... " >&6; }
  7751. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. if test "$cross_compiling" = yes; then
  7755. # Depending upon the size, compute the lo and hi bounds.
  7756. cat >conftest.$ac_ext <<_ACEOF
  7757. /* confdefs.h. */
  7758. _ACEOF
  7759. cat confdefs.h >>conftest.$ac_ext
  7760. cat >>conftest.$ac_ext <<_ACEOF
  7761. /* end confdefs.h. */
  7762. $ac_includes_default
  7763. int
  7764. main ()
  7765. {
  7766. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7767. test_array [0] = 0
  7768. ;
  7769. return 0;
  7770. }
  7771. _ACEOF
  7772. rm -f conftest.$ac_objext
  7773. if { (ac_try="$ac_compile"
  7774. case "(($ac_try" in
  7775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7776. *) ac_try_echo=$ac_try;;
  7777. esac
  7778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7779. $as_echo "$ac_try_echo") >&5
  7780. (eval "$ac_compile") 2>conftest.er1
  7781. ac_status=$?
  7782. grep -v '^ *+' conftest.er1 >conftest.err
  7783. rm -f conftest.er1
  7784. cat conftest.err >&5
  7785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); } && {
  7787. test -z "$ac_cxx_werror_flag" ||
  7788. test ! -s conftest.err
  7789. } && test -s conftest.$ac_objext; then
  7790. ac_lo=0 ac_mid=0
  7791. while :; do
  7792. cat >conftest.$ac_ext <<_ACEOF
  7793. /* confdefs.h. */
  7794. _ACEOF
  7795. cat confdefs.h >>conftest.$ac_ext
  7796. cat >>conftest.$ac_ext <<_ACEOF
  7797. /* end confdefs.h. */
  7798. $ac_includes_default
  7799. int
  7800. main ()
  7801. {
  7802. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7803. test_array [0] = 0
  7804. ;
  7805. return 0;
  7806. }
  7807. _ACEOF
  7808. rm -f conftest.$ac_objext
  7809. if { (ac_try="$ac_compile"
  7810. case "(($ac_try" in
  7811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7812. *) ac_try_echo=$ac_try;;
  7813. esac
  7814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7815. $as_echo "$ac_try_echo") >&5
  7816. (eval "$ac_compile") 2>conftest.er1
  7817. ac_status=$?
  7818. grep -v '^ *+' conftest.er1 >conftest.err
  7819. rm -f conftest.er1
  7820. cat conftest.err >&5
  7821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7822. (exit $ac_status); } && {
  7823. test -z "$ac_cxx_werror_flag" ||
  7824. test ! -s conftest.err
  7825. } && test -s conftest.$ac_objext; then
  7826. ac_hi=$ac_mid; break
  7827. else
  7828. $as_echo "$as_me: failed program was:" >&5
  7829. sed 's/^/| /' conftest.$ac_ext >&5
  7830. ac_lo=`expr $ac_mid + 1`
  7831. if test $ac_lo -le $ac_mid; then
  7832. ac_lo= ac_hi=
  7833. break
  7834. fi
  7835. ac_mid=`expr 2 '*' $ac_mid + 1`
  7836. fi
  7837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7838. done
  7839. else
  7840. $as_echo "$as_me: failed program was:" >&5
  7841. sed 's/^/| /' conftest.$ac_ext >&5
  7842. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. $ac_includes_default
  7849. int
  7850. main ()
  7851. {
  7852. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7853. test_array [0] = 0
  7854. ;
  7855. return 0;
  7856. }
  7857. _ACEOF
  7858. rm -f conftest.$ac_objext
  7859. if { (ac_try="$ac_compile"
  7860. case "(($ac_try" in
  7861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7862. *) ac_try_echo=$ac_try;;
  7863. esac
  7864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7865. $as_echo "$ac_try_echo") >&5
  7866. (eval "$ac_compile") 2>conftest.er1
  7867. ac_status=$?
  7868. grep -v '^ *+' conftest.er1 >conftest.err
  7869. rm -f conftest.er1
  7870. cat conftest.err >&5
  7871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); } && {
  7873. test -z "$ac_cxx_werror_flag" ||
  7874. test ! -s conftest.err
  7875. } && test -s conftest.$ac_objext; then
  7876. ac_hi=-1 ac_mid=-1
  7877. while :; do
  7878. cat >conftest.$ac_ext <<_ACEOF
  7879. /* confdefs.h. */
  7880. _ACEOF
  7881. cat confdefs.h >>conftest.$ac_ext
  7882. cat >>conftest.$ac_ext <<_ACEOF
  7883. /* end confdefs.h. */
  7884. $ac_includes_default
  7885. int
  7886. main ()
  7887. {
  7888. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7889. test_array [0] = 0
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext
  7895. if { (ac_try="$ac_compile"
  7896. case "(($ac_try" in
  7897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7898. *) ac_try_echo=$ac_try;;
  7899. esac
  7900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7901. $as_echo "$ac_try_echo") >&5
  7902. (eval "$ac_compile") 2>conftest.er1
  7903. ac_status=$?
  7904. grep -v '^ *+' conftest.er1 >conftest.err
  7905. rm -f conftest.er1
  7906. cat conftest.err >&5
  7907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); } && {
  7909. test -z "$ac_cxx_werror_flag" ||
  7910. test ! -s conftest.err
  7911. } && test -s conftest.$ac_objext; then
  7912. ac_lo=$ac_mid; break
  7913. else
  7914. $as_echo "$as_me: failed program was:" >&5
  7915. sed 's/^/| /' conftest.$ac_ext >&5
  7916. ac_hi=`expr '(' $ac_mid ')' - 1`
  7917. if test $ac_mid -le $ac_hi; then
  7918. ac_lo= ac_hi=
  7919. break
  7920. fi
  7921. ac_mid=`expr 2 '*' $ac_mid`
  7922. fi
  7923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7924. done
  7925. else
  7926. $as_echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. ac_lo= ac_hi=
  7929. fi
  7930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7933. # Binary search between lo and hi bounds.
  7934. while test "x$ac_lo" != "x$ac_hi"; do
  7935. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7936. cat >conftest.$ac_ext <<_ACEOF
  7937. /* confdefs.h. */
  7938. _ACEOF
  7939. cat confdefs.h >>conftest.$ac_ext
  7940. cat >>conftest.$ac_ext <<_ACEOF
  7941. /* end confdefs.h. */
  7942. $ac_includes_default
  7943. int
  7944. main ()
  7945. {
  7946. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7947. test_array [0] = 0
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. rm -f conftest.$ac_objext
  7953. if { (ac_try="$ac_compile"
  7954. case "(($ac_try" in
  7955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7956. *) ac_try_echo=$ac_try;;
  7957. esac
  7958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7959. $as_echo "$ac_try_echo") >&5
  7960. (eval "$ac_compile") 2>conftest.er1
  7961. ac_status=$?
  7962. grep -v '^ *+' conftest.er1 >conftest.err
  7963. rm -f conftest.er1
  7964. cat conftest.err >&5
  7965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. (exit $ac_status); } && {
  7967. test -z "$ac_cxx_werror_flag" ||
  7968. test ! -s conftest.err
  7969. } && test -s conftest.$ac_objext; then
  7970. ac_hi=$ac_mid
  7971. else
  7972. $as_echo "$as_me: failed program was:" >&5
  7973. sed 's/^/| /' conftest.$ac_ext >&5
  7974. ac_lo=`expr '(' $ac_mid ')' + 1`
  7975. fi
  7976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7977. done
  7978. case $ac_lo in
  7979. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7980. '') if test "$ac_cv_type_size_t" = yes; then
  7981. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7983. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7984. See \`config.log' for more details." >&5
  7985. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7986. See \`config.log' for more details." >&2;}
  7987. { (exit 77); exit 77; }; }; }
  7988. else
  7989. ac_cv_sizeof_size_t=0
  7990. fi ;;
  7991. esac
  7992. else
  7993. cat >conftest.$ac_ext <<_ACEOF
  7994. /* confdefs.h. */
  7995. _ACEOF
  7996. cat confdefs.h >>conftest.$ac_ext
  7997. cat >>conftest.$ac_ext <<_ACEOF
  7998. /* end confdefs.h. */
  7999. $ac_includes_default
  8000. static long int longval () { return (long int) (sizeof (size_t)); }
  8001. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  8002. #include <stdio.h>
  8003. #include <stdlib.h>
  8004. int
  8005. main ()
  8006. {
  8007. FILE *f = fopen ("conftest.val", "w");
  8008. if (! f)
  8009. return 1;
  8010. if (((long int) (sizeof (size_t))) < 0)
  8011. {
  8012. long int i = longval ();
  8013. if (i != ((long int) (sizeof (size_t))))
  8014. return 1;
  8015. fprintf (f, "%ld", i);
  8016. }
  8017. else
  8018. {
  8019. unsigned long int i = ulongval ();
  8020. if (i != ((long int) (sizeof (size_t))))
  8021. return 1;
  8022. fprintf (f, "%lu", i);
  8023. }
  8024. /* Do not output a trailing newline, as this causes \r\n confusion
  8025. on some platforms. */
  8026. return ferror (f) || fclose (f) != 0;
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. rm -f conftest$ac_exeext
  8032. if { (ac_try="$ac_link"
  8033. case "(($ac_try" in
  8034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8035. *) ac_try_echo=$ac_try;;
  8036. esac
  8037. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8038. $as_echo "$ac_try_echo") >&5
  8039. (eval "$ac_link") 2>&5
  8040. ac_status=$?
  8041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8043. { (case "(($ac_try" in
  8044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8045. *) ac_try_echo=$ac_try;;
  8046. esac
  8047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8048. $as_echo "$ac_try_echo") >&5
  8049. (eval "$ac_try") 2>&5
  8050. ac_status=$?
  8051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); }; }; then
  8053. ac_cv_sizeof_size_t=`cat conftest.val`
  8054. else
  8055. $as_echo "$as_me: program exited with status $ac_status" >&5
  8056. $as_echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058. ( exit $ac_status )
  8059. if test "$ac_cv_type_size_t" = yes; then
  8060. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8062. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  8063. See \`config.log' for more details." >&5
  8064. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  8065. See \`config.log' for more details." >&2;}
  8066. { (exit 77); exit 77; }; }; }
  8067. else
  8068. ac_cv_sizeof_size_t=0
  8069. fi
  8070. fi
  8071. rm -rf conftest.dSYM
  8072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8073. fi
  8074. rm -f conftest.val
  8075. fi
  8076. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  8077. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  8078. cat >>confdefs.h <<_ACEOF
  8079. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  8080. _ACEOF
  8081. # The cast to long int works around a bug in the HP C Compiler
  8082. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8083. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8084. # This bug is HP SR number 8606223364.
  8085. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  8086. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  8087. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  8088. $as_echo_n "(cached) " >&6
  8089. else
  8090. if test "$cross_compiling" = yes; then
  8091. # Depending upon the size, compute the lo and hi bounds.
  8092. cat >conftest.$ac_ext <<_ACEOF
  8093. /* confdefs.h. */
  8094. _ACEOF
  8095. cat confdefs.h >>conftest.$ac_ext
  8096. cat >>conftest.$ac_ext <<_ACEOF
  8097. /* end confdefs.h. */
  8098. $ac_includes_default
  8099. int
  8100. main ()
  8101. {
  8102. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  8103. test_array [0] = 0
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. rm -f conftest.$ac_objext
  8109. if { (ac_try="$ac_compile"
  8110. case "(($ac_try" in
  8111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8112. *) ac_try_echo=$ac_try;;
  8113. esac
  8114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8115. $as_echo "$ac_try_echo") >&5
  8116. (eval "$ac_compile") 2>conftest.er1
  8117. ac_status=$?
  8118. grep -v '^ *+' conftest.er1 >conftest.err
  8119. rm -f conftest.er1
  8120. cat conftest.err >&5
  8121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); } && {
  8123. test -z "$ac_cxx_werror_flag" ||
  8124. test ! -s conftest.err
  8125. } && test -s conftest.$ac_objext; then
  8126. ac_lo=0 ac_mid=0
  8127. while :; do
  8128. cat >conftest.$ac_ext <<_ACEOF
  8129. /* confdefs.h. */
  8130. _ACEOF
  8131. cat confdefs.h >>conftest.$ac_ext
  8132. cat >>conftest.$ac_ext <<_ACEOF
  8133. /* end confdefs.h. */
  8134. $ac_includes_default
  8135. int
  8136. main ()
  8137. {
  8138. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8139. test_array [0] = 0
  8140. ;
  8141. return 0;
  8142. }
  8143. _ACEOF
  8144. rm -f conftest.$ac_objext
  8145. if { (ac_try="$ac_compile"
  8146. case "(($ac_try" in
  8147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8148. *) ac_try_echo=$ac_try;;
  8149. esac
  8150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8151. $as_echo "$ac_try_echo") >&5
  8152. (eval "$ac_compile") 2>conftest.er1
  8153. ac_status=$?
  8154. grep -v '^ *+' conftest.er1 >conftest.err
  8155. rm -f conftest.er1
  8156. cat conftest.err >&5
  8157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8158. (exit $ac_status); } && {
  8159. test -z "$ac_cxx_werror_flag" ||
  8160. test ! -s conftest.err
  8161. } && test -s conftest.$ac_objext; then
  8162. ac_hi=$ac_mid; break
  8163. else
  8164. $as_echo "$as_me: failed program was:" >&5
  8165. sed 's/^/| /' conftest.$ac_ext >&5
  8166. ac_lo=`expr $ac_mid + 1`
  8167. if test $ac_lo -le $ac_mid; then
  8168. ac_lo= ac_hi=
  8169. break
  8170. fi
  8171. ac_mid=`expr 2 '*' $ac_mid + 1`
  8172. fi
  8173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8174. done
  8175. else
  8176. $as_echo "$as_me: failed program was:" >&5
  8177. sed 's/^/| /' conftest.$ac_ext >&5
  8178. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. _ACEOF
  8181. cat confdefs.h >>conftest.$ac_ext
  8182. cat >>conftest.$ac_ext <<_ACEOF
  8183. /* end confdefs.h. */
  8184. $ac_includes_default
  8185. int
  8186. main ()
  8187. {
  8188. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8189. test_array [0] = 0
  8190. ;
  8191. return 0;
  8192. }
  8193. _ACEOF
  8194. rm -f conftest.$ac_objext
  8195. if { (ac_try="$ac_compile"
  8196. case "(($ac_try" in
  8197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8198. *) ac_try_echo=$ac_try;;
  8199. esac
  8200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8201. $as_echo "$ac_try_echo") >&5
  8202. (eval "$ac_compile") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_cxx_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest.$ac_objext; then
  8212. ac_hi=-1 ac_mid=-1
  8213. while :; do
  8214. cat >conftest.$ac_ext <<_ACEOF
  8215. /* confdefs.h. */
  8216. _ACEOF
  8217. cat confdefs.h >>conftest.$ac_ext
  8218. cat >>conftest.$ac_ext <<_ACEOF
  8219. /* end confdefs.h. */
  8220. $ac_includes_default
  8221. int
  8222. main ()
  8223. {
  8224. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8225. test_array [0] = 0
  8226. ;
  8227. return 0;
  8228. }
  8229. _ACEOF
  8230. rm -f conftest.$ac_objext
  8231. if { (ac_try="$ac_compile"
  8232. case "(($ac_try" in
  8233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8234. *) ac_try_echo=$ac_try;;
  8235. esac
  8236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8237. $as_echo "$ac_try_echo") >&5
  8238. (eval "$ac_compile") 2>conftest.er1
  8239. ac_status=$?
  8240. grep -v '^ *+' conftest.er1 >conftest.err
  8241. rm -f conftest.er1
  8242. cat conftest.err >&5
  8243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } && {
  8245. test -z "$ac_cxx_werror_flag" ||
  8246. test ! -s conftest.err
  8247. } && test -s conftest.$ac_objext; then
  8248. ac_lo=$ac_mid; break
  8249. else
  8250. $as_echo "$as_me: failed program was:" >&5
  8251. sed 's/^/| /' conftest.$ac_ext >&5
  8252. ac_hi=`expr '(' $ac_mid ')' - 1`
  8253. if test $ac_mid -le $ac_hi; then
  8254. ac_lo= ac_hi=
  8255. break
  8256. fi
  8257. ac_mid=`expr 2 '*' $ac_mid`
  8258. fi
  8259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8260. done
  8261. else
  8262. $as_echo "$as_me: failed program was:" >&5
  8263. sed 's/^/| /' conftest.$ac_ext >&5
  8264. ac_lo= ac_hi=
  8265. fi
  8266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8267. fi
  8268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8269. # Binary search between lo and hi bounds.
  8270. while test "x$ac_lo" != "x$ac_hi"; do
  8271. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8272. cat >conftest.$ac_ext <<_ACEOF
  8273. /* confdefs.h. */
  8274. _ACEOF
  8275. cat confdefs.h >>conftest.$ac_ext
  8276. cat >>conftest.$ac_ext <<_ACEOF
  8277. /* end confdefs.h. */
  8278. $ac_includes_default
  8279. int
  8280. main ()
  8281. {
  8282. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8283. test_array [0] = 0
  8284. ;
  8285. return 0;
  8286. }
  8287. _ACEOF
  8288. rm -f conftest.$ac_objext
  8289. if { (ac_try="$ac_compile"
  8290. case "(($ac_try" in
  8291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8292. *) ac_try_echo=$ac_try;;
  8293. esac
  8294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8295. $as_echo "$ac_try_echo") >&5
  8296. (eval "$ac_compile") 2>conftest.er1
  8297. ac_status=$?
  8298. grep -v '^ *+' conftest.er1 >conftest.err
  8299. rm -f conftest.er1
  8300. cat conftest.err >&5
  8301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8302. (exit $ac_status); } && {
  8303. test -z "$ac_cxx_werror_flag" ||
  8304. test ! -s conftest.err
  8305. } && test -s conftest.$ac_objext; then
  8306. ac_hi=$ac_mid
  8307. else
  8308. $as_echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_lo=`expr '(' $ac_mid ')' + 1`
  8311. fi
  8312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. done
  8314. case $ac_lo in
  8315. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8316. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8317. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8319. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8320. See \`config.log' for more details." >&5
  8321. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8322. See \`config.log' for more details." >&2;}
  8323. { (exit 77); exit 77; }; }; }
  8324. else
  8325. ac_cv_sizeof_ptrdiff_t=0
  8326. fi ;;
  8327. esac
  8328. else
  8329. cat >conftest.$ac_ext <<_ACEOF
  8330. /* confdefs.h. */
  8331. _ACEOF
  8332. cat confdefs.h >>conftest.$ac_ext
  8333. cat >>conftest.$ac_ext <<_ACEOF
  8334. /* end confdefs.h. */
  8335. $ac_includes_default
  8336. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8337. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8338. #include <stdio.h>
  8339. #include <stdlib.h>
  8340. int
  8341. main ()
  8342. {
  8343. FILE *f = fopen ("conftest.val", "w");
  8344. if (! f)
  8345. return 1;
  8346. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8347. {
  8348. long int i = longval ();
  8349. if (i != ((long int) (sizeof (ptrdiff_t))))
  8350. return 1;
  8351. fprintf (f, "%ld", i);
  8352. }
  8353. else
  8354. {
  8355. unsigned long int i = ulongval ();
  8356. if (i != ((long int) (sizeof (ptrdiff_t))))
  8357. return 1;
  8358. fprintf (f, "%lu", i);
  8359. }
  8360. /* Do not output a trailing newline, as this causes \r\n confusion
  8361. on some platforms. */
  8362. return ferror (f) || fclose (f) != 0;
  8363. ;
  8364. return 0;
  8365. }
  8366. _ACEOF
  8367. rm -f conftest$ac_exeext
  8368. if { (ac_try="$ac_link"
  8369. case "(($ac_try" in
  8370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8371. *) ac_try_echo=$ac_try;;
  8372. esac
  8373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8374. $as_echo "$ac_try_echo") >&5
  8375. (eval "$ac_link") 2>&5
  8376. ac_status=$?
  8377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8379. { (case "(($ac_try" in
  8380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8381. *) ac_try_echo=$ac_try;;
  8382. esac
  8383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8384. $as_echo "$ac_try_echo") >&5
  8385. (eval "$ac_try") 2>&5
  8386. ac_status=$?
  8387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8388. (exit $ac_status); }; }; then
  8389. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8390. else
  8391. $as_echo "$as_me: program exited with status $ac_status" >&5
  8392. $as_echo "$as_me: failed program was:" >&5
  8393. sed 's/^/| /' conftest.$ac_ext >&5
  8394. ( exit $ac_status )
  8395. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8396. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8398. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8399. See \`config.log' for more details." >&5
  8400. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8401. See \`config.log' for more details." >&2;}
  8402. { (exit 77); exit 77; }; }; }
  8403. else
  8404. ac_cv_sizeof_ptrdiff_t=0
  8405. fi
  8406. fi
  8407. rm -rf conftest.dSYM
  8408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8409. fi
  8410. rm -f conftest.val
  8411. fi
  8412. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8413. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8414. cat >>confdefs.h <<_ACEOF
  8415. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8416. _ACEOF
  8417. # The cast to long int works around a bug in the HP C Compiler
  8418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8420. # This bug is HP SR number 8606223364.
  8421. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8422. $as_echo_n "checking size of time_t... " >&6; }
  8423. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. if test "$cross_compiling" = yes; then
  8427. # Depending upon the size, compute the lo and hi bounds.
  8428. cat >conftest.$ac_ext <<_ACEOF
  8429. /* confdefs.h. */
  8430. _ACEOF
  8431. cat confdefs.h >>conftest.$ac_ext
  8432. cat >>conftest.$ac_ext <<_ACEOF
  8433. /* end confdefs.h. */
  8434. $ac_includes_default
  8435. int
  8436. main ()
  8437. {
  8438. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8439. test_array [0] = 0
  8440. ;
  8441. return 0;
  8442. }
  8443. _ACEOF
  8444. rm -f conftest.$ac_objext
  8445. if { (ac_try="$ac_compile"
  8446. case "(($ac_try" in
  8447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8448. *) ac_try_echo=$ac_try;;
  8449. esac
  8450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8451. $as_echo "$ac_try_echo") >&5
  8452. (eval "$ac_compile") 2>conftest.er1
  8453. ac_status=$?
  8454. grep -v '^ *+' conftest.er1 >conftest.err
  8455. rm -f conftest.er1
  8456. cat conftest.err >&5
  8457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8458. (exit $ac_status); } && {
  8459. test -z "$ac_cxx_werror_flag" ||
  8460. test ! -s conftest.err
  8461. } && test -s conftest.$ac_objext; then
  8462. ac_lo=0 ac_mid=0
  8463. while :; do
  8464. cat >conftest.$ac_ext <<_ACEOF
  8465. /* confdefs.h. */
  8466. _ACEOF
  8467. cat confdefs.h >>conftest.$ac_ext
  8468. cat >>conftest.$ac_ext <<_ACEOF
  8469. /* end confdefs.h. */
  8470. $ac_includes_default
  8471. int
  8472. main ()
  8473. {
  8474. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8475. test_array [0] = 0
  8476. ;
  8477. return 0;
  8478. }
  8479. _ACEOF
  8480. rm -f conftest.$ac_objext
  8481. if { (ac_try="$ac_compile"
  8482. case "(($ac_try" in
  8483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8484. *) ac_try_echo=$ac_try;;
  8485. esac
  8486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8487. $as_echo "$ac_try_echo") >&5
  8488. (eval "$ac_compile") 2>conftest.er1
  8489. ac_status=$?
  8490. grep -v '^ *+' conftest.er1 >conftest.err
  8491. rm -f conftest.er1
  8492. cat conftest.err >&5
  8493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); } && {
  8495. test -z "$ac_cxx_werror_flag" ||
  8496. test ! -s conftest.err
  8497. } && test -s conftest.$ac_objext; then
  8498. ac_hi=$ac_mid; break
  8499. else
  8500. $as_echo "$as_me: failed program was:" >&5
  8501. sed 's/^/| /' conftest.$ac_ext >&5
  8502. ac_lo=`expr $ac_mid + 1`
  8503. if test $ac_lo -le $ac_mid; then
  8504. ac_lo= ac_hi=
  8505. break
  8506. fi
  8507. ac_mid=`expr 2 '*' $ac_mid + 1`
  8508. fi
  8509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8510. done
  8511. else
  8512. $as_echo "$as_me: failed program was:" >&5
  8513. sed 's/^/| /' conftest.$ac_ext >&5
  8514. cat >conftest.$ac_ext <<_ACEOF
  8515. /* confdefs.h. */
  8516. _ACEOF
  8517. cat confdefs.h >>conftest.$ac_ext
  8518. cat >>conftest.$ac_ext <<_ACEOF
  8519. /* end confdefs.h. */
  8520. $ac_includes_default
  8521. int
  8522. main ()
  8523. {
  8524. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8525. test_array [0] = 0
  8526. ;
  8527. return 0;
  8528. }
  8529. _ACEOF
  8530. rm -f conftest.$ac_objext
  8531. if { (ac_try="$ac_compile"
  8532. case "(($ac_try" in
  8533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8534. *) ac_try_echo=$ac_try;;
  8535. esac
  8536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8537. $as_echo "$ac_try_echo") >&5
  8538. (eval "$ac_compile") 2>conftest.er1
  8539. ac_status=$?
  8540. grep -v '^ *+' conftest.er1 >conftest.err
  8541. rm -f conftest.er1
  8542. cat conftest.err >&5
  8543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. (exit $ac_status); } && {
  8545. test -z "$ac_cxx_werror_flag" ||
  8546. test ! -s conftest.err
  8547. } && test -s conftest.$ac_objext; then
  8548. ac_hi=-1 ac_mid=-1
  8549. while :; do
  8550. cat >conftest.$ac_ext <<_ACEOF
  8551. /* confdefs.h. */
  8552. _ACEOF
  8553. cat confdefs.h >>conftest.$ac_ext
  8554. cat >>conftest.$ac_ext <<_ACEOF
  8555. /* end confdefs.h. */
  8556. $ac_includes_default
  8557. int
  8558. main ()
  8559. {
  8560. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8561. test_array [0] = 0
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. rm -f conftest.$ac_objext
  8567. if { (ac_try="$ac_compile"
  8568. case "(($ac_try" in
  8569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8570. *) ac_try_echo=$ac_try;;
  8571. esac
  8572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8573. $as_echo "$ac_try_echo") >&5
  8574. (eval "$ac_compile") 2>conftest.er1
  8575. ac_status=$?
  8576. grep -v '^ *+' conftest.er1 >conftest.err
  8577. rm -f conftest.er1
  8578. cat conftest.err >&5
  8579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8580. (exit $ac_status); } && {
  8581. test -z "$ac_cxx_werror_flag" ||
  8582. test ! -s conftest.err
  8583. } && test -s conftest.$ac_objext; then
  8584. ac_lo=$ac_mid; break
  8585. else
  8586. $as_echo "$as_me: failed program was:" >&5
  8587. sed 's/^/| /' conftest.$ac_ext >&5
  8588. ac_hi=`expr '(' $ac_mid ')' - 1`
  8589. if test $ac_mid -le $ac_hi; then
  8590. ac_lo= ac_hi=
  8591. break
  8592. fi
  8593. ac_mid=`expr 2 '*' $ac_mid`
  8594. fi
  8595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8596. done
  8597. else
  8598. $as_echo "$as_me: failed program was:" >&5
  8599. sed 's/^/| /' conftest.$ac_ext >&5
  8600. ac_lo= ac_hi=
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. fi
  8604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8605. # Binary search between lo and hi bounds.
  8606. while test "x$ac_lo" != "x$ac_hi"; do
  8607. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8608. cat >conftest.$ac_ext <<_ACEOF
  8609. /* confdefs.h. */
  8610. _ACEOF
  8611. cat confdefs.h >>conftest.$ac_ext
  8612. cat >>conftest.$ac_ext <<_ACEOF
  8613. /* end confdefs.h. */
  8614. $ac_includes_default
  8615. int
  8616. main ()
  8617. {
  8618. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8619. test_array [0] = 0
  8620. ;
  8621. return 0;
  8622. }
  8623. _ACEOF
  8624. rm -f conftest.$ac_objext
  8625. if { (ac_try="$ac_compile"
  8626. case "(($ac_try" in
  8627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8628. *) ac_try_echo=$ac_try;;
  8629. esac
  8630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8631. $as_echo "$ac_try_echo") >&5
  8632. (eval "$ac_compile") 2>conftest.er1
  8633. ac_status=$?
  8634. grep -v '^ *+' conftest.er1 >conftest.err
  8635. rm -f conftest.er1
  8636. cat conftest.err >&5
  8637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); } && {
  8639. test -z "$ac_cxx_werror_flag" ||
  8640. test ! -s conftest.err
  8641. } && test -s conftest.$ac_objext; then
  8642. ac_hi=$ac_mid
  8643. else
  8644. $as_echo "$as_me: failed program was:" >&5
  8645. sed 's/^/| /' conftest.$ac_ext >&5
  8646. ac_lo=`expr '(' $ac_mid ')' + 1`
  8647. fi
  8648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8649. done
  8650. case $ac_lo in
  8651. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8652. '') if test "$ac_cv_type_time_t" = yes; then
  8653. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8655. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8656. See \`config.log' for more details." >&5
  8657. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8658. See \`config.log' for more details." >&2;}
  8659. { (exit 77); exit 77; }; }; }
  8660. else
  8661. ac_cv_sizeof_time_t=0
  8662. fi ;;
  8663. esac
  8664. else
  8665. cat >conftest.$ac_ext <<_ACEOF
  8666. /* confdefs.h. */
  8667. _ACEOF
  8668. cat confdefs.h >>conftest.$ac_ext
  8669. cat >>conftest.$ac_ext <<_ACEOF
  8670. /* end confdefs.h. */
  8671. $ac_includes_default
  8672. static long int longval () { return (long int) (sizeof (time_t)); }
  8673. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8674. #include <stdio.h>
  8675. #include <stdlib.h>
  8676. int
  8677. main ()
  8678. {
  8679. FILE *f = fopen ("conftest.val", "w");
  8680. if (! f)
  8681. return 1;
  8682. if (((long int) (sizeof (time_t))) < 0)
  8683. {
  8684. long int i = longval ();
  8685. if (i != ((long int) (sizeof (time_t))))
  8686. return 1;
  8687. fprintf (f, "%ld", i);
  8688. }
  8689. else
  8690. {
  8691. unsigned long int i = ulongval ();
  8692. if (i != ((long int) (sizeof (time_t))))
  8693. return 1;
  8694. fprintf (f, "%lu", i);
  8695. }
  8696. /* Do not output a trailing newline, as this causes \r\n confusion
  8697. on some platforms. */
  8698. return ferror (f) || fclose (f) != 0;
  8699. ;
  8700. return 0;
  8701. }
  8702. _ACEOF
  8703. rm -f conftest$ac_exeext
  8704. if { (ac_try="$ac_link"
  8705. case "(($ac_try" in
  8706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8707. *) ac_try_echo=$ac_try;;
  8708. esac
  8709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8710. $as_echo "$ac_try_echo") >&5
  8711. (eval "$ac_link") 2>&5
  8712. ac_status=$?
  8713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8715. { (case "(($ac_try" in
  8716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8717. *) ac_try_echo=$ac_try;;
  8718. esac
  8719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8720. $as_echo "$ac_try_echo") >&5
  8721. (eval "$ac_try") 2>&5
  8722. ac_status=$?
  8723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); }; }; then
  8725. ac_cv_sizeof_time_t=`cat conftest.val`
  8726. else
  8727. $as_echo "$as_me: program exited with status $ac_status" >&5
  8728. $as_echo "$as_me: failed program was:" >&5
  8729. sed 's/^/| /' conftest.$ac_ext >&5
  8730. ( exit $ac_status )
  8731. if test "$ac_cv_type_time_t" = yes; then
  8732. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8734. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8735. See \`config.log' for more details." >&5
  8736. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8737. See \`config.log' for more details." >&2;}
  8738. { (exit 77); exit 77; }; }; }
  8739. else
  8740. ac_cv_sizeof_time_t=0
  8741. fi
  8742. fi
  8743. rm -rf conftest.dSYM
  8744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8745. fi
  8746. rm -f conftest.val
  8747. fi
  8748. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8749. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8750. cat >>confdefs.h <<_ACEOF
  8751. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8752. _ACEOF
  8753. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8754. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8755. if test "${ac_cv_struct_tm+set}" = set; then
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. cat >conftest.$ac_ext <<_ACEOF
  8759. /* confdefs.h. */
  8760. _ACEOF
  8761. cat confdefs.h >>conftest.$ac_ext
  8762. cat >>conftest.$ac_ext <<_ACEOF
  8763. /* end confdefs.h. */
  8764. #include <sys/types.h>
  8765. #include <time.h>
  8766. int
  8767. main ()
  8768. {
  8769. struct tm tm;
  8770. int *p = &tm.tm_sec;
  8771. return !p;
  8772. ;
  8773. return 0;
  8774. }
  8775. _ACEOF
  8776. rm -f conftest.$ac_objext
  8777. if { (ac_try="$ac_compile"
  8778. case "(($ac_try" in
  8779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8780. *) ac_try_echo=$ac_try;;
  8781. esac
  8782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8783. $as_echo "$ac_try_echo") >&5
  8784. (eval "$ac_compile") 2>conftest.er1
  8785. ac_status=$?
  8786. grep -v '^ *+' conftest.er1 >conftest.err
  8787. rm -f conftest.er1
  8788. cat conftest.err >&5
  8789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8790. (exit $ac_status); } && {
  8791. test -z "$ac_cxx_werror_flag" ||
  8792. test ! -s conftest.err
  8793. } && test -s conftest.$ac_objext; then
  8794. ac_cv_struct_tm=time.h
  8795. else
  8796. $as_echo "$as_me: failed program was:" >&5
  8797. sed 's/^/| /' conftest.$ac_ext >&5
  8798. ac_cv_struct_tm=sys/time.h
  8799. fi
  8800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8801. fi
  8802. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8803. $as_echo "$ac_cv_struct_tm" >&6; }
  8804. if test $ac_cv_struct_tm = sys/time.h; then
  8805. cat >>confdefs.h <<\_ACEOF
  8806. #define TM_IN_SYS_TIME 1
  8807. _ACEOF
  8808. fi
  8809. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8810. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8811. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8812. $as_echo_n "(cached) " >&6
  8813. else
  8814. cat >conftest.$ac_ext <<_ACEOF
  8815. /* confdefs.h. */
  8816. _ACEOF
  8817. cat confdefs.h >>conftest.$ac_ext
  8818. cat >>conftest.$ac_ext <<_ACEOF
  8819. /* end confdefs.h. */
  8820. #include <sys/types.h>
  8821. #include <$ac_cv_struct_tm>
  8822. int
  8823. main ()
  8824. {
  8825. static struct tm ac_aggr;
  8826. if (ac_aggr.tm_zone)
  8827. return 0;
  8828. ;
  8829. return 0;
  8830. }
  8831. _ACEOF
  8832. rm -f conftest.$ac_objext
  8833. if { (ac_try="$ac_compile"
  8834. case "(($ac_try" in
  8835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8836. *) ac_try_echo=$ac_try;;
  8837. esac
  8838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8839. $as_echo "$ac_try_echo") >&5
  8840. (eval "$ac_compile") 2>conftest.er1
  8841. ac_status=$?
  8842. grep -v '^ *+' conftest.er1 >conftest.err
  8843. rm -f conftest.er1
  8844. cat conftest.err >&5
  8845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8846. (exit $ac_status); } && {
  8847. test -z "$ac_cxx_werror_flag" ||
  8848. test ! -s conftest.err
  8849. } && test -s conftest.$ac_objext; then
  8850. ac_cv_member_struct_tm_tm_zone=yes
  8851. else
  8852. $as_echo "$as_me: failed program was:" >&5
  8853. sed 's/^/| /' conftest.$ac_ext >&5
  8854. cat >conftest.$ac_ext <<_ACEOF
  8855. /* confdefs.h. */
  8856. _ACEOF
  8857. cat confdefs.h >>conftest.$ac_ext
  8858. cat >>conftest.$ac_ext <<_ACEOF
  8859. /* end confdefs.h. */
  8860. #include <sys/types.h>
  8861. #include <$ac_cv_struct_tm>
  8862. int
  8863. main ()
  8864. {
  8865. static struct tm ac_aggr;
  8866. if (sizeof ac_aggr.tm_zone)
  8867. return 0;
  8868. ;
  8869. return 0;
  8870. }
  8871. _ACEOF
  8872. rm -f conftest.$ac_objext
  8873. if { (ac_try="$ac_compile"
  8874. case "(($ac_try" in
  8875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8876. *) ac_try_echo=$ac_try;;
  8877. esac
  8878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8879. $as_echo "$ac_try_echo") >&5
  8880. (eval "$ac_compile") 2>conftest.er1
  8881. ac_status=$?
  8882. grep -v '^ *+' conftest.er1 >conftest.err
  8883. rm -f conftest.er1
  8884. cat conftest.err >&5
  8885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8886. (exit $ac_status); } && {
  8887. test -z "$ac_cxx_werror_flag" ||
  8888. test ! -s conftest.err
  8889. } && test -s conftest.$ac_objext; then
  8890. ac_cv_member_struct_tm_tm_zone=yes
  8891. else
  8892. $as_echo "$as_me: failed program was:" >&5
  8893. sed 's/^/| /' conftest.$ac_ext >&5
  8894. ac_cv_member_struct_tm_tm_zone=no
  8895. fi
  8896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8897. fi
  8898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8899. fi
  8900. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8901. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8902. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8903. cat >>confdefs.h <<_ACEOF
  8904. #define HAVE_STRUCT_TM_TM_ZONE 1
  8905. _ACEOF
  8906. fi
  8907. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8908. cat >>confdefs.h <<\_ACEOF
  8909. #define HAVE_TM_ZONE 1
  8910. _ACEOF
  8911. else
  8912. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8913. $as_echo_n "checking whether tzname is declared... " >&6; }
  8914. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8915. $as_echo_n "(cached) " >&6
  8916. else
  8917. cat >conftest.$ac_ext <<_ACEOF
  8918. /* confdefs.h. */
  8919. _ACEOF
  8920. cat confdefs.h >>conftest.$ac_ext
  8921. cat >>conftest.$ac_ext <<_ACEOF
  8922. /* end confdefs.h. */
  8923. #include <time.h>
  8924. int
  8925. main ()
  8926. {
  8927. #ifndef tzname
  8928. (void) tzname;
  8929. #endif
  8930. ;
  8931. return 0;
  8932. }
  8933. _ACEOF
  8934. rm -f conftest.$ac_objext
  8935. if { (ac_try="$ac_compile"
  8936. case "(($ac_try" in
  8937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8938. *) ac_try_echo=$ac_try;;
  8939. esac
  8940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8941. $as_echo "$ac_try_echo") >&5
  8942. (eval "$ac_compile") 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } && {
  8949. test -z "$ac_cxx_werror_flag" ||
  8950. test ! -s conftest.err
  8951. } && test -s conftest.$ac_objext; then
  8952. ac_cv_have_decl_tzname=yes
  8953. else
  8954. $as_echo "$as_me: failed program was:" >&5
  8955. sed 's/^/| /' conftest.$ac_ext >&5
  8956. ac_cv_have_decl_tzname=no
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8959. fi
  8960. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8961. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8962. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8963. cat >>confdefs.h <<_ACEOF
  8964. #define HAVE_DECL_TZNAME 1
  8965. _ACEOF
  8966. else
  8967. cat >>confdefs.h <<_ACEOF
  8968. #define HAVE_DECL_TZNAME 0
  8969. _ACEOF
  8970. fi
  8971. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8972. $as_echo_n "checking for tzname... " >&6; }
  8973. if test "${ac_cv_var_tzname+set}" = set; then
  8974. $as_echo_n "(cached) " >&6
  8975. else
  8976. cat >conftest.$ac_ext <<_ACEOF
  8977. /* confdefs.h. */
  8978. _ACEOF
  8979. cat confdefs.h >>conftest.$ac_ext
  8980. cat >>conftest.$ac_ext <<_ACEOF
  8981. /* end confdefs.h. */
  8982. #include <time.h>
  8983. #if !HAVE_DECL_TZNAME
  8984. extern char *tzname[];
  8985. #endif
  8986. int
  8987. main ()
  8988. {
  8989. return tzname[0][0];
  8990. ;
  8991. return 0;
  8992. }
  8993. _ACEOF
  8994. rm -f conftest.$ac_objext conftest$ac_exeext
  8995. if { (ac_try="$ac_link"
  8996. case "(($ac_try" in
  8997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8998. *) ac_try_echo=$ac_try;;
  8999. esac
  9000. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9001. $as_echo "$ac_try_echo") >&5
  9002. (eval "$ac_link") 2>conftest.er1
  9003. ac_status=$?
  9004. grep -v '^ *+' conftest.er1 >conftest.err
  9005. rm -f conftest.er1
  9006. cat conftest.err >&5
  9007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9008. (exit $ac_status); } && {
  9009. test -z "$ac_cxx_werror_flag" ||
  9010. test ! -s conftest.err
  9011. } && test -s conftest$ac_exeext && {
  9012. test "$cross_compiling" = yes ||
  9013. $as_test_x conftest$ac_exeext
  9014. }; then
  9015. ac_cv_var_tzname=yes
  9016. else
  9017. $as_echo "$as_me: failed program was:" >&5
  9018. sed 's/^/| /' conftest.$ac_ext >&5
  9019. ac_cv_var_tzname=no
  9020. fi
  9021. rm -rf conftest.dSYM
  9022. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9023. conftest$ac_exeext conftest.$ac_ext
  9024. fi
  9025. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  9026. $as_echo "$ac_cv_var_tzname" >&6; }
  9027. if test $ac_cv_var_tzname = yes; then
  9028. cat >>confdefs.h <<\_ACEOF
  9029. #define HAVE_TZNAME 1
  9030. _ACEOF
  9031. fi
  9032. fi
  9033. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9034. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9035. if test "${ac_cv_struct_tm+set}" = set; then
  9036. $as_echo_n "(cached) " >&6
  9037. else
  9038. cat >conftest.$ac_ext <<_ACEOF
  9039. /* confdefs.h. */
  9040. _ACEOF
  9041. cat confdefs.h >>conftest.$ac_ext
  9042. cat >>conftest.$ac_ext <<_ACEOF
  9043. /* end confdefs.h. */
  9044. #include <sys/types.h>
  9045. #include <time.h>
  9046. int
  9047. main ()
  9048. {
  9049. struct tm tm;
  9050. int *p = &tm.tm_sec;
  9051. return !p;
  9052. ;
  9053. return 0;
  9054. }
  9055. _ACEOF
  9056. rm -f conftest.$ac_objext
  9057. if { (ac_try="$ac_compile"
  9058. case "(($ac_try" in
  9059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9060. *) ac_try_echo=$ac_try;;
  9061. esac
  9062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9063. $as_echo "$ac_try_echo") >&5
  9064. (eval "$ac_compile") 2>conftest.er1
  9065. ac_status=$?
  9066. grep -v '^ *+' conftest.er1 >conftest.err
  9067. rm -f conftest.er1
  9068. cat conftest.err >&5
  9069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9070. (exit $ac_status); } && {
  9071. test -z "$ac_cxx_werror_flag" ||
  9072. test ! -s conftest.err
  9073. } && test -s conftest.$ac_objext; then
  9074. ac_cv_struct_tm=time.h
  9075. else
  9076. $as_echo "$as_me: failed program was:" >&5
  9077. sed 's/^/| /' conftest.$ac_ext >&5
  9078. ac_cv_struct_tm=sys/time.h
  9079. fi
  9080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9081. fi
  9082. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9083. $as_echo "$ac_cv_struct_tm" >&6; }
  9084. if test $ac_cv_struct_tm = sys/time.h; then
  9085. cat >>confdefs.h <<\_ACEOF
  9086. #define TM_IN_SYS_TIME 1
  9087. _ACEOF
  9088. fi
  9089. # Checks for library functions
  9090. for ac_header in vfork.h
  9091. do
  9092. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9093. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9094. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9095. $as_echo_n "checking for $ac_header... " >&6; }
  9096. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9097. $as_echo_n "(cached) " >&6
  9098. fi
  9099. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9100. $as_echo "$as_val"'`
  9101. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9102. $as_echo "$ac_res" >&6; }
  9103. else
  9104. # Is the header compilable?
  9105. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9106. $as_echo_n "checking $ac_header usability... " >&6; }
  9107. cat >conftest.$ac_ext <<_ACEOF
  9108. /* confdefs.h. */
  9109. _ACEOF
  9110. cat confdefs.h >>conftest.$ac_ext
  9111. cat >>conftest.$ac_ext <<_ACEOF
  9112. /* end confdefs.h. */
  9113. $ac_includes_default
  9114. #include <$ac_header>
  9115. _ACEOF
  9116. rm -f conftest.$ac_objext
  9117. if { (ac_try="$ac_compile"
  9118. case "(($ac_try" in
  9119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9120. *) ac_try_echo=$ac_try;;
  9121. esac
  9122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9123. $as_echo "$ac_try_echo") >&5
  9124. (eval "$ac_compile") 2>conftest.er1
  9125. ac_status=$?
  9126. grep -v '^ *+' conftest.er1 >conftest.err
  9127. rm -f conftest.er1
  9128. cat conftest.err >&5
  9129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9130. (exit $ac_status); } && {
  9131. test -z "$ac_cxx_werror_flag" ||
  9132. test ! -s conftest.err
  9133. } && test -s conftest.$ac_objext; then
  9134. ac_header_compiler=yes
  9135. else
  9136. $as_echo "$as_me: failed program was:" >&5
  9137. sed 's/^/| /' conftest.$ac_ext >&5
  9138. ac_header_compiler=no
  9139. fi
  9140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9141. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9142. $as_echo "$ac_header_compiler" >&6; }
  9143. # Is the header present?
  9144. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9145. $as_echo_n "checking $ac_header presence... " >&6; }
  9146. cat >conftest.$ac_ext <<_ACEOF
  9147. /* confdefs.h. */
  9148. _ACEOF
  9149. cat confdefs.h >>conftest.$ac_ext
  9150. cat >>conftest.$ac_ext <<_ACEOF
  9151. /* end confdefs.h. */
  9152. #include <$ac_header>
  9153. _ACEOF
  9154. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9155. case "(($ac_try" in
  9156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157. *) ac_try_echo=$ac_try;;
  9158. esac
  9159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9160. $as_echo "$ac_try_echo") >&5
  9161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9162. ac_status=$?
  9163. grep -v '^ *+' conftest.er1 >conftest.err
  9164. rm -f conftest.er1
  9165. cat conftest.err >&5
  9166. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9167. (exit $ac_status); } >/dev/null && {
  9168. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9169. test ! -s conftest.err
  9170. }; then
  9171. ac_header_preproc=yes
  9172. else
  9173. $as_echo "$as_me: failed program was:" >&5
  9174. sed 's/^/| /' conftest.$ac_ext >&5
  9175. ac_header_preproc=no
  9176. fi
  9177. rm -f conftest.err conftest.$ac_ext
  9178. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9179. $as_echo "$ac_header_preproc" >&6; }
  9180. # So? What about this header?
  9181. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9182. yes:no: )
  9183. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9184. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9185. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9186. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9187. ac_header_preproc=yes
  9188. ;;
  9189. no:yes:* )
  9190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9191. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9193. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9194. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9195. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9197. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9199. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9200. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9201. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9202. ;;
  9203. esac
  9204. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9205. $as_echo_n "checking for $ac_header... " >&6; }
  9206. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9207. $as_echo_n "(cached) " >&6
  9208. else
  9209. eval "$as_ac_Header=\$ac_header_preproc"
  9210. fi
  9211. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9212. $as_echo "$as_val"'`
  9213. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9214. $as_echo "$ac_res" >&6; }
  9215. fi
  9216. as_val=`eval 'as_val=${'$as_ac_Header'}
  9217. $as_echo "$as_val"'`
  9218. if test "x$as_val" = x""yes; then
  9219. cat >>confdefs.h <<_ACEOF
  9220. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9221. _ACEOF
  9222. fi
  9223. done
  9224. for ac_func in fork vfork
  9225. do
  9226. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9227. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9228. $as_echo_n "checking for $ac_func... " >&6; }
  9229. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9230. $as_echo_n "(cached) " >&6
  9231. else
  9232. cat >conftest.$ac_ext <<_ACEOF
  9233. /* confdefs.h. */
  9234. _ACEOF
  9235. cat confdefs.h >>conftest.$ac_ext
  9236. cat >>conftest.$ac_ext <<_ACEOF
  9237. /* end confdefs.h. */
  9238. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9239. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9240. #define $ac_func innocuous_$ac_func
  9241. /* System header to define __stub macros and hopefully few prototypes,
  9242. which can conflict with char $ac_func (); below.
  9243. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9244. <limits.h> exists even on freestanding compilers. */
  9245. #ifdef __STDC__
  9246. # include <limits.h>
  9247. #else
  9248. # include <assert.h>
  9249. #endif
  9250. #undef $ac_func
  9251. /* Override any GCC internal prototype to avoid an error.
  9252. Use char because int might match the return type of a GCC
  9253. builtin and then its argument prototype would still apply. */
  9254. #ifdef __cplusplus
  9255. extern "C"
  9256. #endif
  9257. char $ac_func ();
  9258. /* The GNU C library defines this for functions which it implements
  9259. to always fail with ENOSYS. Some functions are actually named
  9260. something starting with __ and the normal name is an alias. */
  9261. #if defined __stub_$ac_func || defined __stub___$ac_func
  9262. choke me
  9263. #endif
  9264. int
  9265. main ()
  9266. {
  9267. return $ac_func ();
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. rm -f conftest.$ac_objext conftest$ac_exeext
  9273. if { (ac_try="$ac_link"
  9274. case "(($ac_try" in
  9275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9276. *) ac_try_echo=$ac_try;;
  9277. esac
  9278. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9279. $as_echo "$ac_try_echo") >&5
  9280. (eval "$ac_link") 2>conftest.er1
  9281. ac_status=$?
  9282. grep -v '^ *+' conftest.er1 >conftest.err
  9283. rm -f conftest.er1
  9284. cat conftest.err >&5
  9285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9286. (exit $ac_status); } && {
  9287. test -z "$ac_cxx_werror_flag" ||
  9288. test ! -s conftest.err
  9289. } && test -s conftest$ac_exeext && {
  9290. test "$cross_compiling" = yes ||
  9291. $as_test_x conftest$ac_exeext
  9292. }; then
  9293. eval "$as_ac_var=yes"
  9294. else
  9295. $as_echo "$as_me: failed program was:" >&5
  9296. sed 's/^/| /' conftest.$ac_ext >&5
  9297. eval "$as_ac_var=no"
  9298. fi
  9299. rm -rf conftest.dSYM
  9300. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9301. conftest$ac_exeext conftest.$ac_ext
  9302. fi
  9303. ac_res=`eval 'as_val=${'$as_ac_var'}
  9304. $as_echo "$as_val"'`
  9305. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9306. $as_echo "$ac_res" >&6; }
  9307. as_val=`eval 'as_val=${'$as_ac_var'}
  9308. $as_echo "$as_val"'`
  9309. if test "x$as_val" = x""yes; then
  9310. cat >>confdefs.h <<_ACEOF
  9311. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9312. _ACEOF
  9313. fi
  9314. done
  9315. if test "x$ac_cv_func_fork" = xyes; then
  9316. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9317. $as_echo_n "checking for working fork... " >&6; }
  9318. if test "${ac_cv_func_fork_works+set}" = set; then
  9319. $as_echo_n "(cached) " >&6
  9320. else
  9321. if test "$cross_compiling" = yes; then
  9322. ac_cv_func_fork_works=cross
  9323. else
  9324. cat >conftest.$ac_ext <<_ACEOF
  9325. /* confdefs.h. */
  9326. _ACEOF
  9327. cat confdefs.h >>conftest.$ac_ext
  9328. cat >>conftest.$ac_ext <<_ACEOF
  9329. /* end confdefs.h. */
  9330. $ac_includes_default
  9331. int
  9332. main ()
  9333. {
  9334. /* By Ruediger Kuhlmann. */
  9335. return fork () < 0;
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest$ac_exeext
  9341. if { (ac_try="$ac_link"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9347. $as_echo "$ac_try_echo") >&5
  9348. (eval "$ac_link") 2>&5
  9349. ac_status=$?
  9350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9351. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9352. { (case "(($ac_try" in
  9353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9354. *) ac_try_echo=$ac_try;;
  9355. esac
  9356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9357. $as_echo "$ac_try_echo") >&5
  9358. (eval "$ac_try") 2>&5
  9359. ac_status=$?
  9360. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9361. (exit $ac_status); }; }; then
  9362. ac_cv_func_fork_works=yes
  9363. else
  9364. $as_echo "$as_me: program exited with status $ac_status" >&5
  9365. $as_echo "$as_me: failed program was:" >&5
  9366. sed 's/^/| /' conftest.$ac_ext >&5
  9367. ( exit $ac_status )
  9368. ac_cv_func_fork_works=no
  9369. fi
  9370. rm -rf conftest.dSYM
  9371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9372. fi
  9373. fi
  9374. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9375. $as_echo "$ac_cv_func_fork_works" >&6; }
  9376. else
  9377. ac_cv_func_fork_works=$ac_cv_func_fork
  9378. fi
  9379. if test "x$ac_cv_func_fork_works" = xcross; then
  9380. case $host in
  9381. *-*-amigaos* | *-*-msdosdjgpp*)
  9382. # Override, as these systems have only a dummy fork() stub
  9383. ac_cv_func_fork_works=no
  9384. ;;
  9385. *)
  9386. ac_cv_func_fork_works=yes
  9387. ;;
  9388. esac
  9389. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9390. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9391. fi
  9392. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9393. if test "x$ac_cv_func_vfork" = xyes; then
  9394. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9395. $as_echo_n "checking for working vfork... " >&6; }
  9396. if test "${ac_cv_func_vfork_works+set}" = set; then
  9397. $as_echo_n "(cached) " >&6
  9398. else
  9399. if test "$cross_compiling" = yes; then
  9400. ac_cv_func_vfork_works=cross
  9401. else
  9402. cat >conftest.$ac_ext <<_ACEOF
  9403. /* confdefs.h. */
  9404. _ACEOF
  9405. cat confdefs.h >>conftest.$ac_ext
  9406. cat >>conftest.$ac_ext <<_ACEOF
  9407. /* end confdefs.h. */
  9408. /* Thanks to Paul Eggert for this test. */
  9409. $ac_includes_default
  9410. #include <sys/wait.h>
  9411. #ifdef HAVE_VFORK_H
  9412. # include <vfork.h>
  9413. #endif
  9414. /* On some sparc systems, changes by the child to local and incoming
  9415. argument registers are propagated back to the parent. The compiler
  9416. is told about this with #include <vfork.h>, but some compilers
  9417. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9418. static variable whose address is put into a register that is
  9419. clobbered by the vfork. */
  9420. static void
  9421. #ifdef __cplusplus
  9422. sparc_address_test (int arg)
  9423. # else
  9424. sparc_address_test (arg) int arg;
  9425. #endif
  9426. {
  9427. static pid_t child;
  9428. if (!child) {
  9429. child = vfork ();
  9430. if (child < 0) {
  9431. perror ("vfork");
  9432. _exit(2);
  9433. }
  9434. if (!child) {
  9435. arg = getpid();
  9436. write(-1, "", 0);
  9437. _exit (arg);
  9438. }
  9439. }
  9440. }
  9441. int
  9442. main ()
  9443. {
  9444. pid_t parent = getpid ();
  9445. pid_t child;
  9446. sparc_address_test (0);
  9447. child = vfork ();
  9448. if (child == 0) {
  9449. /* Here is another test for sparc vfork register problems. This
  9450. test uses lots of local variables, at least as many local
  9451. variables as main has allocated so far including compiler
  9452. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9453. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9454. reuse the register of parent for one of the local variables,
  9455. since it will think that parent can't possibly be used any more
  9456. in this routine. Assigning to the local variable will thus
  9457. munge parent in the parent process. */
  9458. pid_t
  9459. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9460. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9461. /* Convince the compiler that p..p7 are live; otherwise, it might
  9462. use the same hardware register for all 8 local variables. */
  9463. if (p != p1 || p != p2 || p != p3 || p != p4
  9464. || p != p5 || p != p6 || p != p7)
  9465. _exit(1);
  9466. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9467. from child file descriptors. If the child closes a descriptor
  9468. before it execs or exits, this munges the parent's descriptor
  9469. as well. Test for this by closing stdout in the child. */
  9470. _exit(close(fileno(stdout)) != 0);
  9471. } else {
  9472. int status;
  9473. struct stat st;
  9474. while (wait(&status) != child)
  9475. ;
  9476. return (
  9477. /* Was there some problem with vforking? */
  9478. child < 0
  9479. /* Did the child fail? (This shouldn't happen.) */
  9480. || status
  9481. /* Did the vfork/compiler bug occur? */
  9482. || parent != getpid()
  9483. /* Did the file descriptor bug occur? */
  9484. || fstat(fileno(stdout), &st) != 0
  9485. );
  9486. }
  9487. }
  9488. _ACEOF
  9489. rm -f conftest$ac_exeext
  9490. if { (ac_try="$ac_link"
  9491. case "(($ac_try" in
  9492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9493. *) ac_try_echo=$ac_try;;
  9494. esac
  9495. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9496. $as_echo "$ac_try_echo") >&5
  9497. (eval "$ac_link") 2>&5
  9498. ac_status=$?
  9499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9500. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9501. { (case "(($ac_try" in
  9502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9503. *) ac_try_echo=$ac_try;;
  9504. esac
  9505. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9506. $as_echo "$ac_try_echo") >&5
  9507. (eval "$ac_try") 2>&5
  9508. ac_status=$?
  9509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); }; }; then
  9511. ac_cv_func_vfork_works=yes
  9512. else
  9513. $as_echo "$as_me: program exited with status $ac_status" >&5
  9514. $as_echo "$as_me: failed program was:" >&5
  9515. sed 's/^/| /' conftest.$ac_ext >&5
  9516. ( exit $ac_status )
  9517. ac_cv_func_vfork_works=no
  9518. fi
  9519. rm -rf conftest.dSYM
  9520. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9521. fi
  9522. fi
  9523. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9524. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9525. fi;
  9526. if test "x$ac_cv_func_fork_works" = xcross; then
  9527. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9528. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9529. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9530. fi
  9531. if test "x$ac_cv_func_vfork_works" = xyes; then
  9532. cat >>confdefs.h <<\_ACEOF
  9533. #define HAVE_WORKING_VFORK 1
  9534. _ACEOF
  9535. else
  9536. cat >>confdefs.h <<\_ACEOF
  9537. #define vfork fork
  9538. _ACEOF
  9539. fi
  9540. if test "x$ac_cv_func_fork_works" = xyes; then
  9541. cat >>confdefs.h <<\_ACEOF
  9542. #define HAVE_WORKING_FORK 1
  9543. _ACEOF
  9544. fi
  9545. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9546. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9547. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. rm -f conftest.sym conftest.file
  9551. echo >conftest.file
  9552. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9553. if test "$cross_compiling" = yes; then
  9554. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9555. else
  9556. cat >conftest.$ac_ext <<_ACEOF
  9557. /* confdefs.h. */
  9558. _ACEOF
  9559. cat confdefs.h >>conftest.$ac_ext
  9560. cat >>conftest.$ac_ext <<_ACEOF
  9561. /* end confdefs.h. */
  9562. $ac_includes_default
  9563. int
  9564. main ()
  9565. {
  9566. struct stat sbuf;
  9567. /* Linux will dereference the symlink and fail.
  9568. That is better in the sense that it means we will not
  9569. have to compile and use the lstat wrapper. */
  9570. return lstat ("conftest.sym/", &sbuf) == 0;
  9571. ;
  9572. return 0;
  9573. }
  9574. _ACEOF
  9575. rm -f conftest$ac_exeext
  9576. if { (ac_try="$ac_link"
  9577. case "(($ac_try" in
  9578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9579. *) ac_try_echo=$ac_try;;
  9580. esac
  9581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9582. $as_echo "$ac_try_echo") >&5
  9583. (eval "$ac_link") 2>&5
  9584. ac_status=$?
  9585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9586. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9587. { (case "(($ac_try" in
  9588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9589. *) ac_try_echo=$ac_try;;
  9590. esac
  9591. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9592. $as_echo "$ac_try_echo") >&5
  9593. (eval "$ac_try") 2>&5
  9594. ac_status=$?
  9595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9596. (exit $ac_status); }; }; then
  9597. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9598. else
  9599. $as_echo "$as_me: program exited with status $ac_status" >&5
  9600. $as_echo "$as_me: failed program was:" >&5
  9601. sed 's/^/| /' conftest.$ac_ext >&5
  9602. ( exit $ac_status )
  9603. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9604. fi
  9605. rm -rf conftest.dSYM
  9606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9607. fi
  9608. else
  9609. # If the `ln -s' command failed, then we probably don't even
  9610. # have an lstat function.
  9611. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9612. fi
  9613. rm -f conftest.sym conftest.file
  9614. fi
  9615. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9616. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9617. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9618. cat >>confdefs.h <<_ACEOF
  9619. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9620. _ACEOF
  9621. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9622. case " $LIBOBJS " in
  9623. *" lstat.$ac_objext "* ) ;;
  9624. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9625. ;;
  9626. esac
  9627. fi
  9628. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9629. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9630. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9631. $as_echo_n "(cached) " >&6
  9632. else
  9633. if test "$cross_compiling" = yes; then
  9634. ac_cv_func_lstat_empty_string_bug=yes
  9635. else
  9636. cat >conftest.$ac_ext <<_ACEOF
  9637. /* confdefs.h. */
  9638. _ACEOF
  9639. cat confdefs.h >>conftest.$ac_ext
  9640. cat >>conftest.$ac_ext <<_ACEOF
  9641. /* end confdefs.h. */
  9642. $ac_includes_default
  9643. int
  9644. main ()
  9645. {
  9646. struct stat sbuf;
  9647. return lstat ("", &sbuf) == 0;
  9648. ;
  9649. return 0;
  9650. }
  9651. _ACEOF
  9652. rm -f conftest$ac_exeext
  9653. if { (ac_try="$ac_link"
  9654. case "(($ac_try" in
  9655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9656. *) ac_try_echo=$ac_try;;
  9657. esac
  9658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9659. $as_echo "$ac_try_echo") >&5
  9660. (eval "$ac_link") 2>&5
  9661. ac_status=$?
  9662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9663. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9664. { (case "(($ac_try" in
  9665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9666. *) ac_try_echo=$ac_try;;
  9667. esac
  9668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9669. $as_echo "$ac_try_echo") >&5
  9670. (eval "$ac_try") 2>&5
  9671. ac_status=$?
  9672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9673. (exit $ac_status); }; }; then
  9674. ac_cv_func_lstat_empty_string_bug=no
  9675. else
  9676. $as_echo "$as_me: program exited with status $ac_status" >&5
  9677. $as_echo "$as_me: failed program was:" >&5
  9678. sed 's/^/| /' conftest.$ac_ext >&5
  9679. ( exit $ac_status )
  9680. ac_cv_func_lstat_empty_string_bug=yes
  9681. fi
  9682. rm -rf conftest.dSYM
  9683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9684. fi
  9685. fi
  9686. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9687. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9688. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9689. case " $LIBOBJS " in
  9690. *" lstat.$ac_objext "* ) ;;
  9691. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9692. ;;
  9693. esac
  9694. cat >>confdefs.h <<_ACEOF
  9695. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9696. _ACEOF
  9697. fi
  9698. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9699. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9700. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9701. $as_echo_n "(cached) " >&6
  9702. else
  9703. rm -f conftest.sym conftest.file
  9704. echo >conftest.file
  9705. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9706. if test "$cross_compiling" = yes; then
  9707. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9708. else
  9709. cat >conftest.$ac_ext <<_ACEOF
  9710. /* confdefs.h. */
  9711. _ACEOF
  9712. cat confdefs.h >>conftest.$ac_ext
  9713. cat >>conftest.$ac_ext <<_ACEOF
  9714. /* end confdefs.h. */
  9715. $ac_includes_default
  9716. int
  9717. main ()
  9718. {
  9719. struct stat sbuf;
  9720. /* Linux will dereference the symlink and fail.
  9721. That is better in the sense that it means we will not
  9722. have to compile and use the lstat wrapper. */
  9723. return lstat ("conftest.sym/", &sbuf) == 0;
  9724. ;
  9725. return 0;
  9726. }
  9727. _ACEOF
  9728. rm -f conftest$ac_exeext
  9729. if { (ac_try="$ac_link"
  9730. case "(($ac_try" in
  9731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9732. *) ac_try_echo=$ac_try;;
  9733. esac
  9734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9735. $as_echo "$ac_try_echo") >&5
  9736. (eval "$ac_link") 2>&5
  9737. ac_status=$?
  9738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9740. { (case "(($ac_try" in
  9741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9742. *) ac_try_echo=$ac_try;;
  9743. esac
  9744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9745. $as_echo "$ac_try_echo") >&5
  9746. (eval "$ac_try") 2>&5
  9747. ac_status=$?
  9748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); }; }; then
  9750. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9751. else
  9752. $as_echo "$as_me: program exited with status $ac_status" >&5
  9753. $as_echo "$as_me: failed program was:" >&5
  9754. sed 's/^/| /' conftest.$ac_ext >&5
  9755. ( exit $ac_status )
  9756. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9757. fi
  9758. rm -rf conftest.dSYM
  9759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9760. fi
  9761. else
  9762. # If the `ln -s' command failed, then we probably don't even
  9763. # have an lstat function.
  9764. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9765. fi
  9766. rm -f conftest.sym conftest.file
  9767. fi
  9768. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9769. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9770. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9771. cat >>confdefs.h <<_ACEOF
  9772. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9773. _ACEOF
  9774. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9775. case " $LIBOBJS " in
  9776. *" lstat.$ac_objext "* ) ;;
  9777. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9778. ;;
  9779. esac
  9780. fi
  9781. for ac_header in stdlib.h
  9782. do
  9783. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9784. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9785. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9786. $as_echo_n "checking for $ac_header... " >&6; }
  9787. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9788. $as_echo_n "(cached) " >&6
  9789. fi
  9790. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9791. $as_echo "$as_val"'`
  9792. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9793. $as_echo "$ac_res" >&6; }
  9794. else
  9795. # Is the header compilable?
  9796. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9797. $as_echo_n "checking $ac_header usability... " >&6; }
  9798. cat >conftest.$ac_ext <<_ACEOF
  9799. /* confdefs.h. */
  9800. _ACEOF
  9801. cat confdefs.h >>conftest.$ac_ext
  9802. cat >>conftest.$ac_ext <<_ACEOF
  9803. /* end confdefs.h. */
  9804. $ac_includes_default
  9805. #include <$ac_header>
  9806. _ACEOF
  9807. rm -f conftest.$ac_objext
  9808. if { (ac_try="$ac_compile"
  9809. case "(($ac_try" in
  9810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9811. *) ac_try_echo=$ac_try;;
  9812. esac
  9813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9814. $as_echo "$ac_try_echo") >&5
  9815. (eval "$ac_compile") 2>conftest.er1
  9816. ac_status=$?
  9817. grep -v '^ *+' conftest.er1 >conftest.err
  9818. rm -f conftest.er1
  9819. cat conftest.err >&5
  9820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9821. (exit $ac_status); } && {
  9822. test -z "$ac_cxx_werror_flag" ||
  9823. test ! -s conftest.err
  9824. } && test -s conftest.$ac_objext; then
  9825. ac_header_compiler=yes
  9826. else
  9827. $as_echo "$as_me: failed program was:" >&5
  9828. sed 's/^/| /' conftest.$ac_ext >&5
  9829. ac_header_compiler=no
  9830. fi
  9831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9832. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9833. $as_echo "$ac_header_compiler" >&6; }
  9834. # Is the header present?
  9835. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9836. $as_echo_n "checking $ac_header presence... " >&6; }
  9837. cat >conftest.$ac_ext <<_ACEOF
  9838. /* confdefs.h. */
  9839. _ACEOF
  9840. cat confdefs.h >>conftest.$ac_ext
  9841. cat >>conftest.$ac_ext <<_ACEOF
  9842. /* end confdefs.h. */
  9843. #include <$ac_header>
  9844. _ACEOF
  9845. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9846. case "(($ac_try" in
  9847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9848. *) ac_try_echo=$ac_try;;
  9849. esac
  9850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9851. $as_echo "$ac_try_echo") >&5
  9852. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9853. ac_status=$?
  9854. grep -v '^ *+' conftest.er1 >conftest.err
  9855. rm -f conftest.er1
  9856. cat conftest.err >&5
  9857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); } >/dev/null && {
  9859. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9860. test ! -s conftest.err
  9861. }; then
  9862. ac_header_preproc=yes
  9863. else
  9864. $as_echo "$as_me: failed program was:" >&5
  9865. sed 's/^/| /' conftest.$ac_ext >&5
  9866. ac_header_preproc=no
  9867. fi
  9868. rm -f conftest.err conftest.$ac_ext
  9869. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9870. $as_echo "$ac_header_preproc" >&6; }
  9871. # So? What about this header?
  9872. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9873. yes:no: )
  9874. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9875. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9876. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9877. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9878. ac_header_preproc=yes
  9879. ;;
  9880. no:yes:* )
  9881. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9882. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9883. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9884. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9885. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9886. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9887. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9888. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9889. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9890. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9891. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9892. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9893. ;;
  9894. esac
  9895. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9896. $as_echo_n "checking for $ac_header... " >&6; }
  9897. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9898. $as_echo_n "(cached) " >&6
  9899. else
  9900. eval "$as_ac_Header=\$ac_header_preproc"
  9901. fi
  9902. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9903. $as_echo "$as_val"'`
  9904. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9905. $as_echo "$ac_res" >&6; }
  9906. fi
  9907. as_val=`eval 'as_val=${'$as_ac_Header'}
  9908. $as_echo "$as_val"'`
  9909. if test "x$as_val" = x""yes; then
  9910. cat >>confdefs.h <<_ACEOF
  9911. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9912. _ACEOF
  9913. fi
  9914. done
  9915. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9916. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9917. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9918. $as_echo_n "(cached) " >&6
  9919. else
  9920. if test "$cross_compiling" = yes; then
  9921. ac_cv_func_malloc_0_nonnull=no
  9922. else
  9923. cat >conftest.$ac_ext <<_ACEOF
  9924. /* confdefs.h. */
  9925. _ACEOF
  9926. cat confdefs.h >>conftest.$ac_ext
  9927. cat >>conftest.$ac_ext <<_ACEOF
  9928. /* end confdefs.h. */
  9929. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9930. # include <stdlib.h>
  9931. #else
  9932. char *malloc ();
  9933. #endif
  9934. int
  9935. main ()
  9936. {
  9937. return ! malloc (0);
  9938. ;
  9939. return 0;
  9940. }
  9941. _ACEOF
  9942. rm -f conftest$ac_exeext
  9943. if { (ac_try="$ac_link"
  9944. case "(($ac_try" in
  9945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9946. *) ac_try_echo=$ac_try;;
  9947. esac
  9948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9949. $as_echo "$ac_try_echo") >&5
  9950. (eval "$ac_link") 2>&5
  9951. ac_status=$?
  9952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9954. { (case "(($ac_try" in
  9955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9956. *) ac_try_echo=$ac_try;;
  9957. esac
  9958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9959. $as_echo "$ac_try_echo") >&5
  9960. (eval "$ac_try") 2>&5
  9961. ac_status=$?
  9962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); }; }; then
  9964. ac_cv_func_malloc_0_nonnull=yes
  9965. else
  9966. $as_echo "$as_me: program exited with status $ac_status" >&5
  9967. $as_echo "$as_me: failed program was:" >&5
  9968. sed 's/^/| /' conftest.$ac_ext >&5
  9969. ( exit $ac_status )
  9970. ac_cv_func_malloc_0_nonnull=no
  9971. fi
  9972. rm -rf conftest.dSYM
  9973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9974. fi
  9975. fi
  9976. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9977. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9978. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9979. cat >>confdefs.h <<\_ACEOF
  9980. #define HAVE_MALLOC 1
  9981. _ACEOF
  9982. else
  9983. cat >>confdefs.h <<\_ACEOF
  9984. #define HAVE_MALLOC 0
  9985. _ACEOF
  9986. case " $LIBOBJS " in
  9987. *" malloc.$ac_objext "* ) ;;
  9988. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9989. ;;
  9990. esac
  9991. cat >>confdefs.h <<\_ACEOF
  9992. #define malloc rpl_malloc
  9993. _ACEOF
  9994. fi
  9995. for ac_header in $ac_header_list
  9996. do
  9997. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9998. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9999. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10000. $as_echo_n "checking for $ac_header... " >&6; }
  10001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10002. $as_echo_n "(cached) " >&6
  10003. fi
  10004. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10005. $as_echo "$as_val"'`
  10006. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10007. $as_echo "$ac_res" >&6; }
  10008. else
  10009. # Is the header compilable?
  10010. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10011. $as_echo_n "checking $ac_header usability... " >&6; }
  10012. cat >conftest.$ac_ext <<_ACEOF
  10013. /* confdefs.h. */
  10014. _ACEOF
  10015. cat confdefs.h >>conftest.$ac_ext
  10016. cat >>conftest.$ac_ext <<_ACEOF
  10017. /* end confdefs.h. */
  10018. $ac_includes_default
  10019. #include <$ac_header>
  10020. _ACEOF
  10021. rm -f conftest.$ac_objext
  10022. if { (ac_try="$ac_compile"
  10023. case "(($ac_try" in
  10024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10025. *) ac_try_echo=$ac_try;;
  10026. esac
  10027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10028. $as_echo "$ac_try_echo") >&5
  10029. (eval "$ac_compile") 2>conftest.er1
  10030. ac_status=$?
  10031. grep -v '^ *+' conftest.er1 >conftest.err
  10032. rm -f conftest.er1
  10033. cat conftest.err >&5
  10034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10035. (exit $ac_status); } && {
  10036. test -z "$ac_cxx_werror_flag" ||
  10037. test ! -s conftest.err
  10038. } && test -s conftest.$ac_objext; then
  10039. ac_header_compiler=yes
  10040. else
  10041. $as_echo "$as_me: failed program was:" >&5
  10042. sed 's/^/| /' conftest.$ac_ext >&5
  10043. ac_header_compiler=no
  10044. fi
  10045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10046. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10047. $as_echo "$ac_header_compiler" >&6; }
  10048. # Is the header present?
  10049. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10050. $as_echo_n "checking $ac_header presence... " >&6; }
  10051. cat >conftest.$ac_ext <<_ACEOF
  10052. /* confdefs.h. */
  10053. _ACEOF
  10054. cat confdefs.h >>conftest.$ac_ext
  10055. cat >>conftest.$ac_ext <<_ACEOF
  10056. /* end confdefs.h. */
  10057. #include <$ac_header>
  10058. _ACEOF
  10059. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10060. case "(($ac_try" in
  10061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10062. *) ac_try_echo=$ac_try;;
  10063. esac
  10064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10065. $as_echo "$ac_try_echo") >&5
  10066. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10067. ac_status=$?
  10068. grep -v '^ *+' conftest.er1 >conftest.err
  10069. rm -f conftest.er1
  10070. cat conftest.err >&5
  10071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10072. (exit $ac_status); } >/dev/null && {
  10073. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10074. test ! -s conftest.err
  10075. }; then
  10076. ac_header_preproc=yes
  10077. else
  10078. $as_echo "$as_me: failed program was:" >&5
  10079. sed 's/^/| /' conftest.$ac_ext >&5
  10080. ac_header_preproc=no
  10081. fi
  10082. rm -f conftest.err conftest.$ac_ext
  10083. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10084. $as_echo "$ac_header_preproc" >&6; }
  10085. # So? What about this header?
  10086. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10087. yes:no: )
  10088. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10089. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10090. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10091. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10092. ac_header_preproc=yes
  10093. ;;
  10094. no:yes:* )
  10095. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10096. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10097. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10098. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10099. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10100. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10101. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10102. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10103. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10104. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10105. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10106. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10107. ;;
  10108. esac
  10109. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10110. $as_echo_n "checking for $ac_header... " >&6; }
  10111. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10112. $as_echo_n "(cached) " >&6
  10113. else
  10114. eval "$as_ac_Header=\$ac_header_preproc"
  10115. fi
  10116. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10117. $as_echo "$as_val"'`
  10118. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10119. $as_echo "$ac_res" >&6; }
  10120. fi
  10121. as_val=`eval 'as_val=${'$as_ac_Header'}
  10122. $as_echo "$as_val"'`
  10123. if test "x$as_val" = x""yes; then
  10124. cat >>confdefs.h <<_ACEOF
  10125. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10126. _ACEOF
  10127. fi
  10128. done
  10129. for ac_func in $ac_func_list
  10130. do
  10131. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10132. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10133. $as_echo_n "checking for $ac_func... " >&6; }
  10134. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10135. $as_echo_n "(cached) " >&6
  10136. else
  10137. cat >conftest.$ac_ext <<_ACEOF
  10138. /* confdefs.h. */
  10139. _ACEOF
  10140. cat confdefs.h >>conftest.$ac_ext
  10141. cat >>conftest.$ac_ext <<_ACEOF
  10142. /* end confdefs.h. */
  10143. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10144. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10145. #define $ac_func innocuous_$ac_func
  10146. /* System header to define __stub macros and hopefully few prototypes,
  10147. which can conflict with char $ac_func (); below.
  10148. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10149. <limits.h> exists even on freestanding compilers. */
  10150. #ifdef __STDC__
  10151. # include <limits.h>
  10152. #else
  10153. # include <assert.h>
  10154. #endif
  10155. #undef $ac_func
  10156. /* Override any GCC internal prototype to avoid an error.
  10157. Use char because int might match the return type of a GCC
  10158. builtin and then its argument prototype would still apply. */
  10159. #ifdef __cplusplus
  10160. extern "C"
  10161. #endif
  10162. char $ac_func ();
  10163. /* The GNU C library defines this for functions which it implements
  10164. to always fail with ENOSYS. Some functions are actually named
  10165. something starting with __ and the normal name is an alias. */
  10166. #if defined __stub_$ac_func || defined __stub___$ac_func
  10167. choke me
  10168. #endif
  10169. int
  10170. main ()
  10171. {
  10172. return $ac_func ();
  10173. ;
  10174. return 0;
  10175. }
  10176. _ACEOF
  10177. rm -f conftest.$ac_objext conftest$ac_exeext
  10178. if { (ac_try="$ac_link"
  10179. case "(($ac_try" in
  10180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10181. *) ac_try_echo=$ac_try;;
  10182. esac
  10183. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10184. $as_echo "$ac_try_echo") >&5
  10185. (eval "$ac_link") 2>conftest.er1
  10186. ac_status=$?
  10187. grep -v '^ *+' conftest.er1 >conftest.err
  10188. rm -f conftest.er1
  10189. cat conftest.err >&5
  10190. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10191. (exit $ac_status); } && {
  10192. test -z "$ac_cxx_werror_flag" ||
  10193. test ! -s conftest.err
  10194. } && test -s conftest$ac_exeext && {
  10195. test "$cross_compiling" = yes ||
  10196. $as_test_x conftest$ac_exeext
  10197. }; then
  10198. eval "$as_ac_var=yes"
  10199. else
  10200. $as_echo "$as_me: failed program was:" >&5
  10201. sed 's/^/| /' conftest.$ac_ext >&5
  10202. eval "$as_ac_var=no"
  10203. fi
  10204. rm -rf conftest.dSYM
  10205. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10206. conftest$ac_exeext conftest.$ac_ext
  10207. fi
  10208. ac_res=`eval 'as_val=${'$as_ac_var'}
  10209. $as_echo "$as_val"'`
  10210. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10211. $as_echo "$ac_res" >&6; }
  10212. as_val=`eval 'as_val=${'$as_ac_var'}
  10213. $as_echo "$as_val"'`
  10214. if test "x$as_val" = x""yes; then
  10215. cat >>confdefs.h <<_ACEOF
  10216. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10217. _ACEOF
  10218. fi
  10219. done
  10220. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10221. $as_echo_n "checking for working mktime... " >&6; }
  10222. if test "${ac_cv_func_working_mktime+set}" = set; then
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. if test "$cross_compiling" = yes; then
  10226. ac_cv_func_working_mktime=no
  10227. else
  10228. cat >conftest.$ac_ext <<_ACEOF
  10229. /* confdefs.h. */
  10230. _ACEOF
  10231. cat confdefs.h >>conftest.$ac_ext
  10232. cat >>conftest.$ac_ext <<_ACEOF
  10233. /* end confdefs.h. */
  10234. /* Test program from Paul Eggert and Tony Leneis. */
  10235. #ifdef TIME_WITH_SYS_TIME
  10236. # include <sys/time.h>
  10237. # include <time.h>
  10238. #else
  10239. # ifdef HAVE_SYS_TIME_H
  10240. # include <sys/time.h>
  10241. # else
  10242. # include <time.h>
  10243. # endif
  10244. #endif
  10245. #include <limits.h>
  10246. #include <stdlib.h>
  10247. #ifdef HAVE_UNISTD_H
  10248. # include <unistd.h>
  10249. #endif
  10250. #ifndef HAVE_ALARM
  10251. # define alarm(X) /* empty */
  10252. #endif
  10253. /* Work around redefinition to rpl_putenv by other config tests. */
  10254. #undef putenv
  10255. static time_t time_t_max;
  10256. static time_t time_t_min;
  10257. /* Values we'll use to set the TZ environment variable. */
  10258. static char *tz_strings[] = {
  10259. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10260. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10261. };
  10262. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10263. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10264. Based on a problem report from Andreas Jaeger. */
  10265. static int
  10266. spring_forward_gap ()
  10267. {
  10268. /* glibc (up to about 1998-10-07) failed this test. */
  10269. struct tm tm;
  10270. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10271. instead of "TZ=America/Vancouver" in order to detect the bug even
  10272. on systems that don't support the Olson extension, or don't have the
  10273. full zoneinfo tables installed. */
  10274. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10275. tm.tm_year = 98;
  10276. tm.tm_mon = 3;
  10277. tm.tm_mday = 5;
  10278. tm.tm_hour = 2;
  10279. tm.tm_min = 0;
  10280. tm.tm_sec = 0;
  10281. tm.tm_isdst = -1;
  10282. return mktime (&tm) != (time_t) -1;
  10283. }
  10284. static int
  10285. mktime_test1 (now)
  10286. time_t now;
  10287. {
  10288. struct tm *lt;
  10289. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10290. }
  10291. static int
  10292. mktime_test (now)
  10293. time_t now;
  10294. {
  10295. return (mktime_test1 (now)
  10296. && mktime_test1 ((time_t) (time_t_max - now))
  10297. && mktime_test1 ((time_t) (time_t_min + now)));
  10298. }
  10299. static int
  10300. irix_6_4_bug ()
  10301. {
  10302. /* Based on code from Ariel Faigon. */
  10303. struct tm tm;
  10304. tm.tm_year = 96;
  10305. tm.tm_mon = 3;
  10306. tm.tm_mday = 0;
  10307. tm.tm_hour = 0;
  10308. tm.tm_min = 0;
  10309. tm.tm_sec = 0;
  10310. tm.tm_isdst = -1;
  10311. mktime (&tm);
  10312. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10313. }
  10314. static int
  10315. bigtime_test (j)
  10316. int j;
  10317. {
  10318. struct tm tm;
  10319. time_t now;
  10320. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10321. now = mktime (&tm);
  10322. if (now != (time_t) -1)
  10323. {
  10324. struct tm *lt = localtime (&now);
  10325. if (! (lt
  10326. && lt->tm_year == tm.tm_year
  10327. && lt->tm_mon == tm.tm_mon
  10328. && lt->tm_mday == tm.tm_mday
  10329. && lt->tm_hour == tm.tm_hour
  10330. && lt->tm_min == tm.tm_min
  10331. && lt->tm_sec == tm.tm_sec
  10332. && lt->tm_yday == tm.tm_yday
  10333. && lt->tm_wday == tm.tm_wday
  10334. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10335. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10336. return 0;
  10337. }
  10338. return 1;
  10339. }
  10340. static int
  10341. year_2050_test ()
  10342. {
  10343. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10344. ignoring leap seconds. */
  10345. unsigned long int answer = 2527315200UL;
  10346. struct tm tm;
  10347. time_t t;
  10348. tm.tm_year = 2050 - 1900;
  10349. tm.tm_mon = 2 - 1;
  10350. tm.tm_mday = 1;
  10351. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10352. tm.tm_isdst = -1;
  10353. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10354. instead of "TZ=America/Vancouver" in order to detect the bug even
  10355. on systems that don't support the Olson extension, or don't have the
  10356. full zoneinfo tables installed. */
  10357. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10358. t = mktime (&tm);
  10359. /* Check that the result is either a failure, or close enough
  10360. to the correct answer that we can assume the discrepancy is
  10361. due to leap seconds. */
  10362. return (t == (time_t) -1
  10363. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10364. }
  10365. int
  10366. main ()
  10367. {
  10368. time_t t, delta;
  10369. int i, j;
  10370. /* This test makes some buggy mktime implementations loop.
  10371. Give up after 60 seconds; a mktime slower than that
  10372. isn't worth using anyway. */
  10373. alarm (60);
  10374. for (;;)
  10375. {
  10376. t = (time_t_max << 1) + 1;
  10377. if (t <= time_t_max)
  10378. break;
  10379. time_t_max = t;
  10380. }
  10381. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10382. delta = time_t_max / 997; /* a suitable prime number */
  10383. for (i = 0; i < N_STRINGS; i++)
  10384. {
  10385. if (tz_strings[i])
  10386. putenv (tz_strings[i]);
  10387. for (t = 0; t <= time_t_max - delta; t += delta)
  10388. if (! mktime_test (t))
  10389. return 1;
  10390. if (! (mktime_test ((time_t) 1)
  10391. && mktime_test ((time_t) (60 * 60))
  10392. && mktime_test ((time_t) (60 * 60 * 24))))
  10393. return 1;
  10394. for (j = 1; ; j <<= 1)
  10395. if (! bigtime_test (j))
  10396. return 1;
  10397. else if (INT_MAX / 2 < j)
  10398. break;
  10399. if (! bigtime_test (INT_MAX))
  10400. return 1;
  10401. }
  10402. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10403. }
  10404. _ACEOF
  10405. rm -f conftest$ac_exeext
  10406. if { (ac_try="$ac_link"
  10407. case "(($ac_try" in
  10408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10409. *) ac_try_echo=$ac_try;;
  10410. esac
  10411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10412. $as_echo "$ac_try_echo") >&5
  10413. (eval "$ac_link") 2>&5
  10414. ac_status=$?
  10415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10416. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10417. { (case "(($ac_try" in
  10418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10419. *) ac_try_echo=$ac_try;;
  10420. esac
  10421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10422. $as_echo "$ac_try_echo") >&5
  10423. (eval "$ac_try") 2>&5
  10424. ac_status=$?
  10425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10426. (exit $ac_status); }; }; then
  10427. ac_cv_func_working_mktime=yes
  10428. else
  10429. $as_echo "$as_me: program exited with status $ac_status" >&5
  10430. $as_echo "$as_me: failed program was:" >&5
  10431. sed 's/^/| /' conftest.$ac_ext >&5
  10432. ( exit $ac_status )
  10433. ac_cv_func_working_mktime=no
  10434. fi
  10435. rm -rf conftest.dSYM
  10436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10437. fi
  10438. fi
  10439. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10440. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10441. if test $ac_cv_func_working_mktime = no; then
  10442. case " $LIBOBJS " in
  10443. *" mktime.$ac_objext "* ) ;;
  10444. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10445. ;;
  10446. esac
  10447. fi
  10448. for ac_header in stdlib.h unistd.h
  10449. do
  10450. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10451. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10452. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10453. $as_echo_n "checking for $ac_header... " >&6; }
  10454. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10455. $as_echo_n "(cached) " >&6
  10456. fi
  10457. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10458. $as_echo "$as_val"'`
  10459. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10460. $as_echo "$ac_res" >&6; }
  10461. else
  10462. # Is the header compilable?
  10463. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10464. $as_echo_n "checking $ac_header usability... " >&6; }
  10465. cat >conftest.$ac_ext <<_ACEOF
  10466. /* confdefs.h. */
  10467. _ACEOF
  10468. cat confdefs.h >>conftest.$ac_ext
  10469. cat >>conftest.$ac_ext <<_ACEOF
  10470. /* end confdefs.h. */
  10471. $ac_includes_default
  10472. #include <$ac_header>
  10473. _ACEOF
  10474. rm -f conftest.$ac_objext
  10475. if { (ac_try="$ac_compile"
  10476. case "(($ac_try" in
  10477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10478. *) ac_try_echo=$ac_try;;
  10479. esac
  10480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10481. $as_echo "$ac_try_echo") >&5
  10482. (eval "$ac_compile") 2>conftest.er1
  10483. ac_status=$?
  10484. grep -v '^ *+' conftest.er1 >conftest.err
  10485. rm -f conftest.er1
  10486. cat conftest.err >&5
  10487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10488. (exit $ac_status); } && {
  10489. test -z "$ac_cxx_werror_flag" ||
  10490. test ! -s conftest.err
  10491. } && test -s conftest.$ac_objext; then
  10492. ac_header_compiler=yes
  10493. else
  10494. $as_echo "$as_me: failed program was:" >&5
  10495. sed 's/^/| /' conftest.$ac_ext >&5
  10496. ac_header_compiler=no
  10497. fi
  10498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10499. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10500. $as_echo "$ac_header_compiler" >&6; }
  10501. # Is the header present?
  10502. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10503. $as_echo_n "checking $ac_header presence... " >&6; }
  10504. cat >conftest.$ac_ext <<_ACEOF
  10505. /* confdefs.h. */
  10506. _ACEOF
  10507. cat confdefs.h >>conftest.$ac_ext
  10508. cat >>conftest.$ac_ext <<_ACEOF
  10509. /* end confdefs.h. */
  10510. #include <$ac_header>
  10511. _ACEOF
  10512. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10513. case "(($ac_try" in
  10514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10515. *) ac_try_echo=$ac_try;;
  10516. esac
  10517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10518. $as_echo "$ac_try_echo") >&5
  10519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10520. ac_status=$?
  10521. grep -v '^ *+' conftest.er1 >conftest.err
  10522. rm -f conftest.er1
  10523. cat conftest.err >&5
  10524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10525. (exit $ac_status); } >/dev/null && {
  10526. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10527. test ! -s conftest.err
  10528. }; then
  10529. ac_header_preproc=yes
  10530. else
  10531. $as_echo "$as_me: failed program was:" >&5
  10532. sed 's/^/| /' conftest.$ac_ext >&5
  10533. ac_header_preproc=no
  10534. fi
  10535. rm -f conftest.err conftest.$ac_ext
  10536. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10537. $as_echo "$ac_header_preproc" >&6; }
  10538. # So? What about this header?
  10539. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10540. yes:no: )
  10541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10542. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10544. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10545. ac_header_preproc=yes
  10546. ;;
  10547. no:yes:* )
  10548. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10549. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10550. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10551. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10552. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10553. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10554. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10555. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10556. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10557. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10558. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10559. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10560. ;;
  10561. esac
  10562. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10563. $as_echo_n "checking for $ac_header... " >&6; }
  10564. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. eval "$as_ac_Header=\$ac_header_preproc"
  10568. fi
  10569. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10570. $as_echo "$as_val"'`
  10571. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10572. $as_echo "$ac_res" >&6; }
  10573. fi
  10574. as_val=`eval 'as_val=${'$as_ac_Header'}
  10575. $as_echo "$as_val"'`
  10576. if test "x$as_val" = x""yes; then
  10577. cat >>confdefs.h <<_ACEOF
  10578. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10579. _ACEOF
  10580. fi
  10581. done
  10582. for ac_func in getpagesize
  10583. do
  10584. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10585. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10586. $as_echo_n "checking for $ac_func... " >&6; }
  10587. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. cat >conftest.$ac_ext <<_ACEOF
  10591. /* confdefs.h. */
  10592. _ACEOF
  10593. cat confdefs.h >>conftest.$ac_ext
  10594. cat >>conftest.$ac_ext <<_ACEOF
  10595. /* end confdefs.h. */
  10596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10598. #define $ac_func innocuous_$ac_func
  10599. /* System header to define __stub macros and hopefully few prototypes,
  10600. which can conflict with char $ac_func (); below.
  10601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10602. <limits.h> exists even on freestanding compilers. */
  10603. #ifdef __STDC__
  10604. # include <limits.h>
  10605. #else
  10606. # include <assert.h>
  10607. #endif
  10608. #undef $ac_func
  10609. /* Override any GCC internal prototype to avoid an error.
  10610. Use char because int might match the return type of a GCC
  10611. builtin and then its argument prototype would still apply. */
  10612. #ifdef __cplusplus
  10613. extern "C"
  10614. #endif
  10615. char $ac_func ();
  10616. /* The GNU C library defines this for functions which it implements
  10617. to always fail with ENOSYS. Some functions are actually named
  10618. something starting with __ and the normal name is an alias. */
  10619. #if defined __stub_$ac_func || defined __stub___$ac_func
  10620. choke me
  10621. #endif
  10622. int
  10623. main ()
  10624. {
  10625. return $ac_func ();
  10626. ;
  10627. return 0;
  10628. }
  10629. _ACEOF
  10630. rm -f conftest.$ac_objext conftest$ac_exeext
  10631. if { (ac_try="$ac_link"
  10632. case "(($ac_try" in
  10633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10634. *) ac_try_echo=$ac_try;;
  10635. esac
  10636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10637. $as_echo "$ac_try_echo") >&5
  10638. (eval "$ac_link") 2>conftest.er1
  10639. ac_status=$?
  10640. grep -v '^ *+' conftest.er1 >conftest.err
  10641. rm -f conftest.er1
  10642. cat conftest.err >&5
  10643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10644. (exit $ac_status); } && {
  10645. test -z "$ac_cxx_werror_flag" ||
  10646. test ! -s conftest.err
  10647. } && test -s conftest$ac_exeext && {
  10648. test "$cross_compiling" = yes ||
  10649. $as_test_x conftest$ac_exeext
  10650. }; then
  10651. eval "$as_ac_var=yes"
  10652. else
  10653. $as_echo "$as_me: failed program was:" >&5
  10654. sed 's/^/| /' conftest.$ac_ext >&5
  10655. eval "$as_ac_var=no"
  10656. fi
  10657. rm -rf conftest.dSYM
  10658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10659. conftest$ac_exeext conftest.$ac_ext
  10660. fi
  10661. ac_res=`eval 'as_val=${'$as_ac_var'}
  10662. $as_echo "$as_val"'`
  10663. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10664. $as_echo "$ac_res" >&6; }
  10665. as_val=`eval 'as_val=${'$as_ac_var'}
  10666. $as_echo "$as_val"'`
  10667. if test "x$as_val" = x""yes; then
  10668. cat >>confdefs.h <<_ACEOF
  10669. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10670. _ACEOF
  10671. fi
  10672. done
  10673. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10674. $as_echo_n "checking for working mmap... " >&6; }
  10675. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. if test "$cross_compiling" = yes; then
  10679. ac_cv_func_mmap_fixed_mapped=no
  10680. else
  10681. cat >conftest.$ac_ext <<_ACEOF
  10682. /* confdefs.h. */
  10683. _ACEOF
  10684. cat confdefs.h >>conftest.$ac_ext
  10685. cat >>conftest.$ac_ext <<_ACEOF
  10686. /* end confdefs.h. */
  10687. $ac_includes_default
  10688. /* malloc might have been renamed as rpl_malloc. */
  10689. #undef malloc
  10690. /* Thanks to Mike Haertel and Jim Avera for this test.
  10691. Here is a matrix of mmap possibilities:
  10692. mmap private not fixed
  10693. mmap private fixed at somewhere currently unmapped
  10694. mmap private fixed at somewhere already mapped
  10695. mmap shared not fixed
  10696. mmap shared fixed at somewhere currently unmapped
  10697. mmap shared fixed at somewhere already mapped
  10698. For private mappings, we should verify that changes cannot be read()
  10699. back from the file, nor mmap's back from the file at a different
  10700. address. (There have been systems where private was not correctly
  10701. implemented like the infamous i386 svr4.0, and systems where the
  10702. VM page cache was not coherent with the file system buffer cache
  10703. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10704. For shared mappings, we should conversely verify that changes get
  10705. propagated back to all the places they're supposed to be.
  10706. Grep wants private fixed already mapped.
  10707. The main things grep needs to know about mmap are:
  10708. * does it exist and is it safe to write into the mmap'd area
  10709. * how to use it (BSD variants) */
  10710. #include <fcntl.h>
  10711. #include <sys/mman.h>
  10712. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10713. char *malloc ();
  10714. #endif
  10715. /* This mess was copied from the GNU getpagesize.h. */
  10716. #ifndef HAVE_GETPAGESIZE
  10717. /* Assume that all systems that can run configure have sys/param.h. */
  10718. # ifndef HAVE_SYS_PARAM_H
  10719. # define HAVE_SYS_PARAM_H 1
  10720. # endif
  10721. # ifdef _SC_PAGESIZE
  10722. # define getpagesize() sysconf(_SC_PAGESIZE)
  10723. # else /* no _SC_PAGESIZE */
  10724. # ifdef HAVE_SYS_PARAM_H
  10725. # include <sys/param.h>
  10726. # ifdef EXEC_PAGESIZE
  10727. # define getpagesize() EXEC_PAGESIZE
  10728. # else /* no EXEC_PAGESIZE */
  10729. # ifdef NBPG
  10730. # define getpagesize() NBPG * CLSIZE
  10731. # ifndef CLSIZE
  10732. # define CLSIZE 1
  10733. # endif /* no CLSIZE */
  10734. # else /* no NBPG */
  10735. # ifdef NBPC
  10736. # define getpagesize() NBPC
  10737. # else /* no NBPC */
  10738. # ifdef PAGESIZE
  10739. # define getpagesize() PAGESIZE
  10740. # endif /* PAGESIZE */
  10741. # endif /* no NBPC */
  10742. # endif /* no NBPG */
  10743. # endif /* no EXEC_PAGESIZE */
  10744. # else /* no HAVE_SYS_PARAM_H */
  10745. # define getpagesize() 8192 /* punt totally */
  10746. # endif /* no HAVE_SYS_PARAM_H */
  10747. # endif /* no _SC_PAGESIZE */
  10748. #endif /* no HAVE_GETPAGESIZE */
  10749. int
  10750. main ()
  10751. {
  10752. char *data, *data2, *data3;
  10753. int i, pagesize;
  10754. int fd;
  10755. pagesize = getpagesize ();
  10756. /* First, make a file with some known garbage in it. */
  10757. data = (char *) malloc (pagesize);
  10758. if (!data)
  10759. return 1;
  10760. for (i = 0; i < pagesize; ++i)
  10761. *(data + i) = rand ();
  10762. umask (0);
  10763. fd = creat ("conftest.mmap", 0600);
  10764. if (fd < 0)
  10765. return 1;
  10766. if (write (fd, data, pagesize) != pagesize)
  10767. return 1;
  10768. close (fd);
  10769. /* Next, try to mmap the file at a fixed address which already has
  10770. something else allocated at it. If we can, also make sure that
  10771. we see the same garbage. */
  10772. fd = open ("conftest.mmap", O_RDWR);
  10773. if (fd < 0)
  10774. return 1;
  10775. data2 = (char *) malloc (2 * pagesize);
  10776. if (!data2)
  10777. return 1;
  10778. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10779. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10780. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10781. return 1;
  10782. for (i = 0; i < pagesize; ++i)
  10783. if (*(data + i) != *(data2 + i))
  10784. return 1;
  10785. /* Finally, make sure that changes to the mapped area do not
  10786. percolate back to the file as seen by read(). (This is a bug on
  10787. some variants of i386 svr4.0.) */
  10788. for (i = 0; i < pagesize; ++i)
  10789. *(data2 + i) = *(data2 + i) + 1;
  10790. data3 = (char *) malloc (pagesize);
  10791. if (!data3)
  10792. return 1;
  10793. if (read (fd, data3, pagesize) != pagesize)
  10794. return 1;
  10795. for (i = 0; i < pagesize; ++i)
  10796. if (*(data + i) != *(data3 + i))
  10797. return 1;
  10798. close (fd);
  10799. return 0;
  10800. }
  10801. _ACEOF
  10802. rm -f conftest$ac_exeext
  10803. if { (ac_try="$ac_link"
  10804. case "(($ac_try" in
  10805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10806. *) ac_try_echo=$ac_try;;
  10807. esac
  10808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10809. $as_echo "$ac_try_echo") >&5
  10810. (eval "$ac_link") 2>&5
  10811. ac_status=$?
  10812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10813. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10814. { (case "(($ac_try" in
  10815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10816. *) ac_try_echo=$ac_try;;
  10817. esac
  10818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10819. $as_echo "$ac_try_echo") >&5
  10820. (eval "$ac_try") 2>&5
  10821. ac_status=$?
  10822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10823. (exit $ac_status); }; }; then
  10824. ac_cv_func_mmap_fixed_mapped=yes
  10825. else
  10826. $as_echo "$as_me: program exited with status $ac_status" >&5
  10827. $as_echo "$as_me: failed program was:" >&5
  10828. sed 's/^/| /' conftest.$ac_ext >&5
  10829. ( exit $ac_status )
  10830. ac_cv_func_mmap_fixed_mapped=no
  10831. fi
  10832. rm -rf conftest.dSYM
  10833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10834. fi
  10835. fi
  10836. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10837. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10838. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10839. cat >>confdefs.h <<\_ACEOF
  10840. #define HAVE_MMAP 1
  10841. _ACEOF
  10842. fi
  10843. rm -f conftest.mmap
  10844. for ac_header in stdlib.h
  10845. do
  10846. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10848. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10849. $as_echo_n "checking for $ac_header... " >&6; }
  10850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10851. $as_echo_n "(cached) " >&6
  10852. fi
  10853. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10854. $as_echo "$as_val"'`
  10855. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10856. $as_echo "$ac_res" >&6; }
  10857. else
  10858. # Is the header compilable?
  10859. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10860. $as_echo_n "checking $ac_header usability... " >&6; }
  10861. cat >conftest.$ac_ext <<_ACEOF
  10862. /* confdefs.h. */
  10863. _ACEOF
  10864. cat confdefs.h >>conftest.$ac_ext
  10865. cat >>conftest.$ac_ext <<_ACEOF
  10866. /* end confdefs.h. */
  10867. $ac_includes_default
  10868. #include <$ac_header>
  10869. _ACEOF
  10870. rm -f conftest.$ac_objext
  10871. if { (ac_try="$ac_compile"
  10872. case "(($ac_try" in
  10873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10874. *) ac_try_echo=$ac_try;;
  10875. esac
  10876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10877. $as_echo "$ac_try_echo") >&5
  10878. (eval "$ac_compile") 2>conftest.er1
  10879. ac_status=$?
  10880. grep -v '^ *+' conftest.er1 >conftest.err
  10881. rm -f conftest.er1
  10882. cat conftest.err >&5
  10883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10884. (exit $ac_status); } && {
  10885. test -z "$ac_cxx_werror_flag" ||
  10886. test ! -s conftest.err
  10887. } && test -s conftest.$ac_objext; then
  10888. ac_header_compiler=yes
  10889. else
  10890. $as_echo "$as_me: failed program was:" >&5
  10891. sed 's/^/| /' conftest.$ac_ext >&5
  10892. ac_header_compiler=no
  10893. fi
  10894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10895. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10896. $as_echo "$ac_header_compiler" >&6; }
  10897. # Is the header present?
  10898. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10899. $as_echo_n "checking $ac_header presence... " >&6; }
  10900. cat >conftest.$ac_ext <<_ACEOF
  10901. /* confdefs.h. */
  10902. _ACEOF
  10903. cat confdefs.h >>conftest.$ac_ext
  10904. cat >>conftest.$ac_ext <<_ACEOF
  10905. /* end confdefs.h. */
  10906. #include <$ac_header>
  10907. _ACEOF
  10908. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10909. case "(($ac_try" in
  10910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10911. *) ac_try_echo=$ac_try;;
  10912. esac
  10913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10914. $as_echo "$ac_try_echo") >&5
  10915. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10916. ac_status=$?
  10917. grep -v '^ *+' conftest.er1 >conftest.err
  10918. rm -f conftest.er1
  10919. cat conftest.err >&5
  10920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10921. (exit $ac_status); } >/dev/null && {
  10922. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10923. test ! -s conftest.err
  10924. }; then
  10925. ac_header_preproc=yes
  10926. else
  10927. $as_echo "$as_me: failed program was:" >&5
  10928. sed 's/^/| /' conftest.$ac_ext >&5
  10929. ac_header_preproc=no
  10930. fi
  10931. rm -f conftest.err conftest.$ac_ext
  10932. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10933. $as_echo "$ac_header_preproc" >&6; }
  10934. # So? What about this header?
  10935. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10936. yes:no: )
  10937. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10938. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10939. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10940. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10941. ac_header_preproc=yes
  10942. ;;
  10943. no:yes:* )
  10944. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10945. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10946. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10947. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10948. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10949. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10950. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10951. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10952. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10953. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10954. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10955. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10956. ;;
  10957. esac
  10958. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10959. $as_echo_n "checking for $ac_header... " >&6; }
  10960. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10961. $as_echo_n "(cached) " >&6
  10962. else
  10963. eval "$as_ac_Header=\$ac_header_preproc"
  10964. fi
  10965. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10966. $as_echo "$as_val"'`
  10967. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10968. $as_echo "$ac_res" >&6; }
  10969. fi
  10970. as_val=`eval 'as_val=${'$as_ac_Header'}
  10971. $as_echo "$as_val"'`
  10972. if test "x$as_val" = x""yes; then
  10973. cat >>confdefs.h <<_ACEOF
  10974. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10975. _ACEOF
  10976. fi
  10977. done
  10978. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10979. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10980. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. if test "$cross_compiling" = yes; then
  10984. ac_cv_func_realloc_0_nonnull=no
  10985. else
  10986. cat >conftest.$ac_ext <<_ACEOF
  10987. /* confdefs.h. */
  10988. _ACEOF
  10989. cat confdefs.h >>conftest.$ac_ext
  10990. cat >>conftest.$ac_ext <<_ACEOF
  10991. /* end confdefs.h. */
  10992. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10993. # include <stdlib.h>
  10994. #else
  10995. char *realloc ();
  10996. #endif
  10997. int
  10998. main ()
  10999. {
  11000. return ! realloc (0, 0);
  11001. ;
  11002. return 0;
  11003. }
  11004. _ACEOF
  11005. rm -f conftest$ac_exeext
  11006. if { (ac_try="$ac_link"
  11007. case "(($ac_try" in
  11008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11009. *) ac_try_echo=$ac_try;;
  11010. esac
  11011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11012. $as_echo "$ac_try_echo") >&5
  11013. (eval "$ac_link") 2>&5
  11014. ac_status=$?
  11015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11017. { (case "(($ac_try" in
  11018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11019. *) ac_try_echo=$ac_try;;
  11020. esac
  11021. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11022. $as_echo "$ac_try_echo") >&5
  11023. (eval "$ac_try") 2>&5
  11024. ac_status=$?
  11025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11026. (exit $ac_status); }; }; then
  11027. ac_cv_func_realloc_0_nonnull=yes
  11028. else
  11029. $as_echo "$as_me: program exited with status $ac_status" >&5
  11030. $as_echo "$as_me: failed program was:" >&5
  11031. sed 's/^/| /' conftest.$ac_ext >&5
  11032. ( exit $ac_status )
  11033. ac_cv_func_realloc_0_nonnull=no
  11034. fi
  11035. rm -rf conftest.dSYM
  11036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11037. fi
  11038. fi
  11039. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11040. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  11041. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11042. cat >>confdefs.h <<\_ACEOF
  11043. #define HAVE_REALLOC 1
  11044. _ACEOF
  11045. else
  11046. cat >>confdefs.h <<\_ACEOF
  11047. #define HAVE_REALLOC 0
  11048. _ACEOF
  11049. case " $LIBOBJS " in
  11050. *" realloc.$ac_objext "* ) ;;
  11051. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11052. ;;
  11053. esac
  11054. cat >>confdefs.h <<\_ACEOF
  11055. #define realloc rpl_realloc
  11056. _ACEOF
  11057. fi
  11058. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11059. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11060. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. if test "$cross_compiling" = yes; then
  11064. ac_cv_func_stat_empty_string_bug=yes
  11065. else
  11066. cat >conftest.$ac_ext <<_ACEOF
  11067. /* confdefs.h. */
  11068. _ACEOF
  11069. cat confdefs.h >>conftest.$ac_ext
  11070. cat >>conftest.$ac_ext <<_ACEOF
  11071. /* end confdefs.h. */
  11072. $ac_includes_default
  11073. int
  11074. main ()
  11075. {
  11076. struct stat sbuf;
  11077. return stat ("", &sbuf) == 0;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. rm -f conftest$ac_exeext
  11083. if { (ac_try="$ac_link"
  11084. case "(($ac_try" in
  11085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11086. *) ac_try_echo=$ac_try;;
  11087. esac
  11088. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11089. $as_echo "$ac_try_echo") >&5
  11090. (eval "$ac_link") 2>&5
  11091. ac_status=$?
  11092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11093. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11094. { (case "(($ac_try" in
  11095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11096. *) ac_try_echo=$ac_try;;
  11097. esac
  11098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11099. $as_echo "$ac_try_echo") >&5
  11100. (eval "$ac_try") 2>&5
  11101. ac_status=$?
  11102. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11103. (exit $ac_status); }; }; then
  11104. ac_cv_func_stat_empty_string_bug=no
  11105. else
  11106. $as_echo "$as_me: program exited with status $ac_status" >&5
  11107. $as_echo "$as_me: failed program was:" >&5
  11108. sed 's/^/| /' conftest.$ac_ext >&5
  11109. ( exit $ac_status )
  11110. ac_cv_func_stat_empty_string_bug=yes
  11111. fi
  11112. rm -rf conftest.dSYM
  11113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11114. fi
  11115. fi
  11116. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11117. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11118. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11119. case " $LIBOBJS " in
  11120. *" stat.$ac_objext "* ) ;;
  11121. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11122. ;;
  11123. esac
  11124. cat >>confdefs.h <<_ACEOF
  11125. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11126. _ACEOF
  11127. fi
  11128. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  11129. $as_echo_n "checking for struct timespec... " >&6; }
  11130. if test "${ac_cv_type_struct_timespec+set}" = set; then
  11131. $as_echo_n "(cached) " >&6
  11132. else
  11133. ac_cv_type_struct_timespec=no
  11134. cat >conftest.$ac_ext <<_ACEOF
  11135. /* confdefs.h. */
  11136. _ACEOF
  11137. cat confdefs.h >>conftest.$ac_ext
  11138. cat >>conftest.$ac_ext <<_ACEOF
  11139. /* end confdefs.h. */
  11140. #include <sys/types.h>
  11141. #include <sys/time.h>
  11142. #include <time.h>
  11143. int
  11144. main ()
  11145. {
  11146. if (sizeof (struct timespec))
  11147. return 0;
  11148. ;
  11149. return 0;
  11150. }
  11151. _ACEOF
  11152. rm -f conftest.$ac_objext
  11153. if { (ac_try="$ac_compile"
  11154. case "(($ac_try" in
  11155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11156. *) ac_try_echo=$ac_try;;
  11157. esac
  11158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11159. $as_echo "$ac_try_echo") >&5
  11160. (eval "$ac_compile") 2>conftest.er1
  11161. ac_status=$?
  11162. grep -v '^ *+' conftest.er1 >conftest.err
  11163. rm -f conftest.er1
  11164. cat conftest.err >&5
  11165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11166. (exit $ac_status); } && {
  11167. test -z "$ac_cxx_werror_flag" ||
  11168. test ! -s conftest.err
  11169. } && test -s conftest.$ac_objext; then
  11170. cat >conftest.$ac_ext <<_ACEOF
  11171. /* confdefs.h. */
  11172. _ACEOF
  11173. cat confdefs.h >>conftest.$ac_ext
  11174. cat >>conftest.$ac_ext <<_ACEOF
  11175. /* end confdefs.h. */
  11176. #include <sys/types.h>
  11177. #include <sys/time.h>
  11178. #include <time.h>
  11179. int
  11180. main ()
  11181. {
  11182. if (sizeof ((struct timespec)))
  11183. return 0;
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. rm -f conftest.$ac_objext
  11189. if { (ac_try="$ac_compile"
  11190. case "(($ac_try" in
  11191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11192. *) ac_try_echo=$ac_try;;
  11193. esac
  11194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11195. $as_echo "$ac_try_echo") >&5
  11196. (eval "$ac_compile") 2>conftest.er1
  11197. ac_status=$?
  11198. grep -v '^ *+' conftest.er1 >conftest.err
  11199. rm -f conftest.er1
  11200. cat conftest.err >&5
  11201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11202. (exit $ac_status); } && {
  11203. test -z "$ac_cxx_werror_flag" ||
  11204. test ! -s conftest.err
  11205. } && test -s conftest.$ac_objext; then
  11206. :
  11207. else
  11208. $as_echo "$as_me: failed program was:" >&5
  11209. sed 's/^/| /' conftest.$ac_ext >&5
  11210. ac_cv_type_struct_timespec=yes
  11211. fi
  11212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11213. else
  11214. $as_echo "$as_me: failed program was:" >&5
  11215. sed 's/^/| /' conftest.$ac_ext >&5
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11218. fi
  11219. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11220. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11221. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11222. cat >>confdefs.h <<\_ACEOF
  11223. #define HAVE_TIMESPEC 1
  11224. _ACEOF
  11225. fi
  11226. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11227. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11228. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11229. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11230. $as_echo_n "(cached) " >&6
  11231. else
  11232. cat >conftest.$ac_ext <<_ACEOF
  11233. /* confdefs.h. */
  11234. _ACEOF
  11235. cat confdefs.h >>conftest.$ac_ext
  11236. cat >>conftest.$ac_ext <<_ACEOF
  11237. /* end confdefs.h. */
  11238. $ac_includes_default
  11239. int
  11240. main ()
  11241. {
  11242. static struct stat ac_aggr;
  11243. if (ac_aggr.st_mtim)
  11244. return 0;
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. rm -f conftest.$ac_objext
  11250. if { (ac_try="$ac_compile"
  11251. case "(($ac_try" in
  11252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. *) ac_try_echo=$ac_try;;
  11254. esac
  11255. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11256. $as_echo "$ac_try_echo") >&5
  11257. (eval "$ac_compile") 2>conftest.er1
  11258. ac_status=$?
  11259. grep -v '^ *+' conftest.er1 >conftest.err
  11260. rm -f conftest.er1
  11261. cat conftest.err >&5
  11262. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11263. (exit $ac_status); } && {
  11264. test -z "$ac_cxx_werror_flag" ||
  11265. test ! -s conftest.err
  11266. } && test -s conftest.$ac_objext; then
  11267. ac_cv_member_struct_stat_st_mtim=yes
  11268. else
  11269. $as_echo "$as_me: failed program was:" >&5
  11270. sed 's/^/| /' conftest.$ac_ext >&5
  11271. cat >conftest.$ac_ext <<_ACEOF
  11272. /* confdefs.h. */
  11273. _ACEOF
  11274. cat confdefs.h >>conftest.$ac_ext
  11275. cat >>conftest.$ac_ext <<_ACEOF
  11276. /* end confdefs.h. */
  11277. $ac_includes_default
  11278. int
  11279. main ()
  11280. {
  11281. static struct stat ac_aggr;
  11282. if (sizeof ac_aggr.st_mtim)
  11283. return 0;
  11284. ;
  11285. return 0;
  11286. }
  11287. _ACEOF
  11288. rm -f conftest.$ac_objext
  11289. if { (ac_try="$ac_compile"
  11290. case "(($ac_try" in
  11291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11292. *) ac_try_echo=$ac_try;;
  11293. esac
  11294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11295. $as_echo "$ac_try_echo") >&5
  11296. (eval "$ac_compile") 2>conftest.er1
  11297. ac_status=$?
  11298. grep -v '^ *+' conftest.er1 >conftest.err
  11299. rm -f conftest.er1
  11300. cat conftest.err >&5
  11301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11302. (exit $ac_status); } && {
  11303. test -z "$ac_cxx_werror_flag" ||
  11304. test ! -s conftest.err
  11305. } && test -s conftest.$ac_objext; then
  11306. ac_cv_member_struct_stat_st_mtim=yes
  11307. else
  11308. $as_echo "$as_me: failed program was:" >&5
  11309. sed 's/^/| /' conftest.$ac_ext >&5
  11310. ac_cv_member_struct_stat_st_mtim=no
  11311. fi
  11312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11315. fi
  11316. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11317. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11318. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11319. cat >>confdefs.h <<\_ACEOF
  11320. #define HAVE_ST_MTIM 1
  11321. _ACEOF
  11322. else
  11323. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11324. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11325. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11326. $as_echo_n "(cached) " >&6
  11327. else
  11328. cat >conftest.$ac_ext <<_ACEOF
  11329. /* confdefs.h. */
  11330. _ACEOF
  11331. cat confdefs.h >>conftest.$ac_ext
  11332. cat >>conftest.$ac_ext <<_ACEOF
  11333. /* end confdefs.h. */
  11334. $ac_includes_default
  11335. int
  11336. main ()
  11337. {
  11338. static struct stat ac_aggr;
  11339. if (ac_aggr.st_mtimespec)
  11340. return 0;
  11341. ;
  11342. return 0;
  11343. }
  11344. _ACEOF
  11345. rm -f conftest.$ac_objext
  11346. if { (ac_try="$ac_compile"
  11347. case "(($ac_try" in
  11348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11349. *) ac_try_echo=$ac_try;;
  11350. esac
  11351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11352. $as_echo "$ac_try_echo") >&5
  11353. (eval "$ac_compile") 2>conftest.er1
  11354. ac_status=$?
  11355. grep -v '^ *+' conftest.er1 >conftest.err
  11356. rm -f conftest.er1
  11357. cat conftest.err >&5
  11358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11359. (exit $ac_status); } && {
  11360. test -z "$ac_cxx_werror_flag" ||
  11361. test ! -s conftest.err
  11362. } && test -s conftest.$ac_objext; then
  11363. ac_cv_member_struct_stat_st_mtimespec=yes
  11364. else
  11365. $as_echo "$as_me: failed program was:" >&5
  11366. sed 's/^/| /' conftest.$ac_ext >&5
  11367. cat >conftest.$ac_ext <<_ACEOF
  11368. /* confdefs.h. */
  11369. _ACEOF
  11370. cat confdefs.h >>conftest.$ac_ext
  11371. cat >>conftest.$ac_ext <<_ACEOF
  11372. /* end confdefs.h. */
  11373. $ac_includes_default
  11374. int
  11375. main ()
  11376. {
  11377. static struct stat ac_aggr;
  11378. if (sizeof ac_aggr.st_mtimespec)
  11379. return 0;
  11380. ;
  11381. return 0;
  11382. }
  11383. _ACEOF
  11384. rm -f conftest.$ac_objext
  11385. if { (ac_try="$ac_compile"
  11386. case "(($ac_try" in
  11387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11388. *) ac_try_echo=$ac_try;;
  11389. esac
  11390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11391. $as_echo "$ac_try_echo") >&5
  11392. (eval "$ac_compile") 2>conftest.er1
  11393. ac_status=$?
  11394. grep -v '^ *+' conftest.er1 >conftest.err
  11395. rm -f conftest.er1
  11396. cat conftest.err >&5
  11397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11398. (exit $ac_status); } && {
  11399. test -z "$ac_cxx_werror_flag" ||
  11400. test ! -s conftest.err
  11401. } && test -s conftest.$ac_objext; then
  11402. ac_cv_member_struct_stat_st_mtimespec=yes
  11403. else
  11404. $as_echo "$as_me: failed program was:" >&5
  11405. sed 's/^/| /' conftest.$ac_ext >&5
  11406. ac_cv_member_struct_stat_st_mtimespec=no
  11407. fi
  11408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11409. fi
  11410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11411. fi
  11412. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11413. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11414. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11415. cat >>confdefs.h <<\_ACEOF
  11416. #define HAVE_ST_MTIMESPEC 1
  11417. _ACEOF
  11418. fi
  11419. fi
  11420. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11421. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11422. cat >conftest.$ac_ext <<_ACEOF
  11423. /* confdefs.h. */
  11424. _ACEOF
  11425. cat confdefs.h >>conftest.$ac_ext
  11426. cat >>conftest.$ac_ext <<_ACEOF
  11427. /* end confdefs.h. */
  11428. #include <sys/types.h>
  11429. #include <sys/time.h>
  11430. int
  11431. main ()
  11432. {
  11433. struct timespec ts1, ts2;
  11434. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11435. #ifndef timespecsub
  11436. #error missing timespecsub
  11437. #endif
  11438. timespecsub(&ts1, &ts2);
  11439. ;
  11440. return 0;
  11441. }
  11442. _ACEOF
  11443. rm -f conftest.$ac_objext
  11444. if { (ac_try="$ac_compile"
  11445. case "(($ac_try" in
  11446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11447. *) ac_try_echo=$ac_try;;
  11448. esac
  11449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11450. $as_echo "$ac_try_echo") >&5
  11451. (eval "$ac_compile") 2>conftest.er1
  11452. ac_status=$?
  11453. grep -v '^ *+' conftest.er1 >conftest.err
  11454. rm -f conftest.er1
  11455. cat conftest.err >&5
  11456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11457. (exit $ac_status); } && {
  11458. test -z "$ac_cxx_werror_flag" ||
  11459. test ! -s conftest.err
  11460. } && test -s conftest.$ac_objext; then
  11461. cat >>confdefs.h <<\_ACEOF
  11462. #define HAVE_TIMESPECSUB2 1
  11463. _ACEOF
  11464. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11465. $as_echo "yes" >&6; }
  11466. else
  11467. $as_echo "$as_me: failed program was:" >&5
  11468. sed 's/^/| /' conftest.$ac_ext >&5
  11469. { $as_echo "$as_me:$LINENO: result: no" >&5
  11470. $as_echo "no" >&6; }
  11471. fi
  11472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11473. fi
  11474. for ac_func in strftime
  11475. do
  11476. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11477. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11478. $as_echo_n "checking for $ac_func... " >&6; }
  11479. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. cat >conftest.$ac_ext <<_ACEOF
  11483. /* confdefs.h. */
  11484. _ACEOF
  11485. cat confdefs.h >>conftest.$ac_ext
  11486. cat >>conftest.$ac_ext <<_ACEOF
  11487. /* end confdefs.h. */
  11488. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11489. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11490. #define $ac_func innocuous_$ac_func
  11491. /* System header to define __stub macros and hopefully few prototypes,
  11492. which can conflict with char $ac_func (); below.
  11493. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11494. <limits.h> exists even on freestanding compilers. */
  11495. #ifdef __STDC__
  11496. # include <limits.h>
  11497. #else
  11498. # include <assert.h>
  11499. #endif
  11500. #undef $ac_func
  11501. /* Override any GCC internal prototype to avoid an error.
  11502. Use char because int might match the return type of a GCC
  11503. builtin and then its argument prototype would still apply. */
  11504. #ifdef __cplusplus
  11505. extern "C"
  11506. #endif
  11507. char $ac_func ();
  11508. /* The GNU C library defines this for functions which it implements
  11509. to always fail with ENOSYS. Some functions are actually named
  11510. something starting with __ and the normal name is an alias. */
  11511. #if defined __stub_$ac_func || defined __stub___$ac_func
  11512. choke me
  11513. #endif
  11514. int
  11515. main ()
  11516. {
  11517. return $ac_func ();
  11518. ;
  11519. return 0;
  11520. }
  11521. _ACEOF
  11522. rm -f conftest.$ac_objext conftest$ac_exeext
  11523. if { (ac_try="$ac_link"
  11524. case "(($ac_try" in
  11525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11526. *) ac_try_echo=$ac_try;;
  11527. esac
  11528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11529. $as_echo "$ac_try_echo") >&5
  11530. (eval "$ac_link") 2>conftest.er1
  11531. ac_status=$?
  11532. grep -v '^ *+' conftest.er1 >conftest.err
  11533. rm -f conftest.er1
  11534. cat conftest.err >&5
  11535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11536. (exit $ac_status); } && {
  11537. test -z "$ac_cxx_werror_flag" ||
  11538. test ! -s conftest.err
  11539. } && test -s conftest$ac_exeext && {
  11540. test "$cross_compiling" = yes ||
  11541. $as_test_x conftest$ac_exeext
  11542. }; then
  11543. eval "$as_ac_var=yes"
  11544. else
  11545. $as_echo "$as_me: failed program was:" >&5
  11546. sed 's/^/| /' conftest.$ac_ext >&5
  11547. eval "$as_ac_var=no"
  11548. fi
  11549. rm -rf conftest.dSYM
  11550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. fi
  11553. ac_res=`eval 'as_val=${'$as_ac_var'}
  11554. $as_echo "$as_val"'`
  11555. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11556. $as_echo "$ac_res" >&6; }
  11557. as_val=`eval 'as_val=${'$as_ac_var'}
  11558. $as_echo "$as_val"'`
  11559. if test "x$as_val" = x""yes; then
  11560. cat >>confdefs.h <<_ACEOF
  11561. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11562. _ACEOF
  11563. else
  11564. # strftime is in -lintl on SCO UNIX.
  11565. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11566. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11567. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11568. $as_echo_n "(cached) " >&6
  11569. else
  11570. ac_check_lib_save_LIBS=$LIBS
  11571. LIBS="-lintl $LIBS"
  11572. cat >conftest.$ac_ext <<_ACEOF
  11573. /* confdefs.h. */
  11574. _ACEOF
  11575. cat confdefs.h >>conftest.$ac_ext
  11576. cat >>conftest.$ac_ext <<_ACEOF
  11577. /* end confdefs.h. */
  11578. /* Override any GCC internal prototype to avoid an error.
  11579. Use char because int might match the return type of a GCC
  11580. builtin and then its argument prototype would still apply. */
  11581. #ifdef __cplusplus
  11582. extern "C"
  11583. #endif
  11584. char strftime ();
  11585. int
  11586. main ()
  11587. {
  11588. return strftime ();
  11589. ;
  11590. return 0;
  11591. }
  11592. _ACEOF
  11593. rm -f conftest.$ac_objext conftest$ac_exeext
  11594. if { (ac_try="$ac_link"
  11595. case "(($ac_try" in
  11596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11597. *) ac_try_echo=$ac_try;;
  11598. esac
  11599. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11600. $as_echo "$ac_try_echo") >&5
  11601. (eval "$ac_link") 2>conftest.er1
  11602. ac_status=$?
  11603. grep -v '^ *+' conftest.er1 >conftest.err
  11604. rm -f conftest.er1
  11605. cat conftest.err >&5
  11606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11607. (exit $ac_status); } && {
  11608. test -z "$ac_cxx_werror_flag" ||
  11609. test ! -s conftest.err
  11610. } && test -s conftest$ac_exeext && {
  11611. test "$cross_compiling" = yes ||
  11612. $as_test_x conftest$ac_exeext
  11613. }; then
  11614. ac_cv_lib_intl_strftime=yes
  11615. else
  11616. $as_echo "$as_me: failed program was:" >&5
  11617. sed 's/^/| /' conftest.$ac_ext >&5
  11618. ac_cv_lib_intl_strftime=no
  11619. fi
  11620. rm -rf conftest.dSYM
  11621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11622. conftest$ac_exeext conftest.$ac_ext
  11623. LIBS=$ac_check_lib_save_LIBS
  11624. fi
  11625. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11626. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11627. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11628. cat >>confdefs.h <<\_ACEOF
  11629. #define HAVE_STRFTIME 1
  11630. _ACEOF
  11631. LIBS="-lintl $LIBS"
  11632. fi
  11633. fi
  11634. done
  11635. #checkpoint
  11636. cat >confcache <<\_ACEOF
  11637. # This file is a shell script that caches the results of configure
  11638. # tests run on this system so they can be shared between configure
  11639. # scripts and configure runs, see configure's option --config-cache.
  11640. # It is not useful on other systems. If it contains results you don't
  11641. # want to keep, you may remove or edit it.
  11642. #
  11643. # config.status only pays attention to the cache file if you give it
  11644. # the --recheck option to rerun configure.
  11645. #
  11646. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11647. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11648. # following values.
  11649. _ACEOF
  11650. # The following way of writing the cache mishandles newlines in values,
  11651. # but we know of no workaround that is simple, portable, and efficient.
  11652. # So, we kill variables containing newlines.
  11653. # Ultrix sh set writes to stderr and can't be redirected directly,
  11654. # and sets the high bit in the cache file unless we assign to the vars.
  11655. (
  11656. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11657. eval ac_val=\$$ac_var
  11658. case $ac_val in #(
  11659. *${as_nl}*)
  11660. case $ac_var in #(
  11661. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11662. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11663. esac
  11664. case $ac_var in #(
  11665. _ | IFS | as_nl) ;; #(
  11666. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11667. *) $as_unset $ac_var ;;
  11668. esac ;;
  11669. esac
  11670. done
  11671. (set) 2>&1 |
  11672. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11673. *${as_nl}ac_space=\ *)
  11674. # `set' does not quote correctly, so add quotes (double-quote
  11675. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11676. sed -n \
  11677. "s/'/'\\\\''/g;
  11678. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11679. ;; #(
  11680. *)
  11681. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11682. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11683. ;;
  11684. esac |
  11685. sort
  11686. ) |
  11687. sed '
  11688. /^ac_cv_env_/b end
  11689. t clear
  11690. :clear
  11691. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11692. t end
  11693. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11694. :end' >>confcache
  11695. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11696. if test -w "$cache_file"; then
  11697. test "x$cache_file" != "x/dev/null" &&
  11698. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11699. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11700. cat confcache >$cache_file
  11701. else
  11702. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11703. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11704. fi
  11705. fi
  11706. rm -f confcache
  11707. for ac_func in clock fsync getrusage isascii getpassphrase
  11708. do
  11709. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11710. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11711. $as_echo_n "checking for $ac_func... " >&6; }
  11712. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11713. $as_echo_n "(cached) " >&6
  11714. else
  11715. cat >conftest.$ac_ext <<_ACEOF
  11716. /* confdefs.h. */
  11717. _ACEOF
  11718. cat confdefs.h >>conftest.$ac_ext
  11719. cat >>conftest.$ac_ext <<_ACEOF
  11720. /* end confdefs.h. */
  11721. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11723. #define $ac_func innocuous_$ac_func
  11724. /* System header to define __stub macros and hopefully few prototypes,
  11725. which can conflict with char $ac_func (); below.
  11726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11727. <limits.h> exists even on freestanding compilers. */
  11728. #ifdef __STDC__
  11729. # include <limits.h>
  11730. #else
  11731. # include <assert.h>
  11732. #endif
  11733. #undef $ac_func
  11734. /* Override any GCC internal prototype to avoid an error.
  11735. Use char because int might match the return type of a GCC
  11736. builtin and then its argument prototype would still apply. */
  11737. #ifdef __cplusplus
  11738. extern "C"
  11739. #endif
  11740. char $ac_func ();
  11741. /* The GNU C library defines this for functions which it implements
  11742. to always fail with ENOSYS. Some functions are actually named
  11743. something starting with __ and the normal name is an alias. */
  11744. #if defined __stub_$ac_func || defined __stub___$ac_func
  11745. choke me
  11746. #endif
  11747. int
  11748. main ()
  11749. {
  11750. return $ac_func ();
  11751. ;
  11752. return 0;
  11753. }
  11754. _ACEOF
  11755. rm -f conftest.$ac_objext conftest$ac_exeext
  11756. if { (ac_try="$ac_link"
  11757. case "(($ac_try" in
  11758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11759. *) ac_try_echo=$ac_try;;
  11760. esac
  11761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11762. $as_echo "$ac_try_echo") >&5
  11763. (eval "$ac_link") 2>conftest.er1
  11764. ac_status=$?
  11765. grep -v '^ *+' conftest.er1 >conftest.err
  11766. rm -f conftest.er1
  11767. cat conftest.err >&5
  11768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11769. (exit $ac_status); } && {
  11770. test -z "$ac_cxx_werror_flag" ||
  11771. test ! -s conftest.err
  11772. } && test -s conftest$ac_exeext && {
  11773. test "$cross_compiling" = yes ||
  11774. $as_test_x conftest$ac_exeext
  11775. }; then
  11776. eval "$as_ac_var=yes"
  11777. else
  11778. $as_echo "$as_me: failed program was:" >&5
  11779. sed 's/^/| /' conftest.$ac_ext >&5
  11780. eval "$as_ac_var=no"
  11781. fi
  11782. rm -rf conftest.dSYM
  11783. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11784. conftest$ac_exeext conftest.$ac_ext
  11785. fi
  11786. ac_res=`eval 'as_val=${'$as_ac_var'}
  11787. $as_echo "$as_val"'`
  11788. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11789. $as_echo "$ac_res" >&6; }
  11790. as_val=`eval 'as_val=${'$as_ac_var'}
  11791. $as_echo "$as_val"'`
  11792. if test "x$as_val" = x""yes; then
  11793. cat >>confdefs.h <<_ACEOF
  11794. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11795. _ACEOF
  11796. fi
  11797. done
  11798. for ac_func in memcpy memset random rename snprintf srandom gettime
  11799. do
  11800. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11801. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11802. $as_echo_n "checking for $ac_func... " >&6; }
  11803. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11804. $as_echo_n "(cached) " >&6
  11805. else
  11806. cat >conftest.$ac_ext <<_ACEOF
  11807. /* confdefs.h. */
  11808. _ACEOF
  11809. cat confdefs.h >>conftest.$ac_ext
  11810. cat >>conftest.$ac_ext <<_ACEOF
  11811. /* end confdefs.h. */
  11812. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11813. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11814. #define $ac_func innocuous_$ac_func
  11815. /* System header to define __stub macros and hopefully few prototypes,
  11816. which can conflict with char $ac_func (); below.
  11817. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11818. <limits.h> exists even on freestanding compilers. */
  11819. #ifdef __STDC__
  11820. # include <limits.h>
  11821. #else
  11822. # include <assert.h>
  11823. #endif
  11824. #undef $ac_func
  11825. /* Override any GCC internal prototype to avoid an error.
  11826. Use char because int might match the return type of a GCC
  11827. builtin and then its argument prototype would still apply. */
  11828. #ifdef __cplusplus
  11829. extern "C"
  11830. #endif
  11831. char $ac_func ();
  11832. /* The GNU C library defines this for functions which it implements
  11833. to always fail with ENOSYS. Some functions are actually named
  11834. something starting with __ and the normal name is an alias. */
  11835. #if defined __stub_$ac_func || defined __stub___$ac_func
  11836. choke me
  11837. #endif
  11838. int
  11839. main ()
  11840. {
  11841. return $ac_func ();
  11842. ;
  11843. return 0;
  11844. }
  11845. _ACEOF
  11846. rm -f conftest.$ac_objext conftest$ac_exeext
  11847. if { (ac_try="$ac_link"
  11848. case "(($ac_try" in
  11849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11850. *) ac_try_echo=$ac_try;;
  11851. esac
  11852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11853. $as_echo "$ac_try_echo") >&5
  11854. (eval "$ac_link") 2>conftest.er1
  11855. ac_status=$?
  11856. grep -v '^ *+' conftest.er1 >conftest.err
  11857. rm -f conftest.er1
  11858. cat conftest.err >&5
  11859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11860. (exit $ac_status); } && {
  11861. test -z "$ac_cxx_werror_flag" ||
  11862. test ! -s conftest.err
  11863. } && test -s conftest$ac_exeext && {
  11864. test "$cross_compiling" = yes ||
  11865. $as_test_x conftest$ac_exeext
  11866. }; then
  11867. eval "$as_ac_var=yes"
  11868. else
  11869. $as_echo "$as_me: failed program was:" >&5
  11870. sed 's/^/| /' conftest.$ac_ext >&5
  11871. eval "$as_ac_var=no"
  11872. fi
  11873. rm -rf conftest.dSYM
  11874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11875. conftest$ac_exeext conftest.$ac_ext
  11876. fi
  11877. ac_res=`eval 'as_val=${'$as_ac_var'}
  11878. $as_echo "$as_val"'`
  11879. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11880. $as_echo "$ac_res" >&6; }
  11881. as_val=`eval 'as_val=${'$as_ac_var'}
  11882. $as_echo "$as_val"'`
  11883. if test "x$as_val" = x""yes; then
  11884. cat >>confdefs.h <<_ACEOF
  11885. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11886. _ACEOF
  11887. fi
  11888. done
  11889. #checkpoint
  11890. cat >confcache <<\_ACEOF
  11891. # This file is a shell script that caches the results of configure
  11892. # tests run on this system so they can be shared between configure
  11893. # scripts and configure runs, see configure's option --config-cache.
  11894. # It is not useful on other systems. If it contains results you don't
  11895. # want to keep, you may remove or edit it.
  11896. #
  11897. # config.status only pays attention to the cache file if you give it
  11898. # the --recheck option to rerun configure.
  11899. #
  11900. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11901. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11902. # following values.
  11903. _ACEOF
  11904. # The following way of writing the cache mishandles newlines in values,
  11905. # but we know of no workaround that is simple, portable, and efficient.
  11906. # So, we kill variables containing newlines.
  11907. # Ultrix sh set writes to stderr and can't be redirected directly,
  11908. # and sets the high bit in the cache file unless we assign to the vars.
  11909. (
  11910. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11911. eval ac_val=\$$ac_var
  11912. case $ac_val in #(
  11913. *${as_nl}*)
  11914. case $ac_var in #(
  11915. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11917. esac
  11918. case $ac_var in #(
  11919. _ | IFS | as_nl) ;; #(
  11920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11921. *) $as_unset $ac_var ;;
  11922. esac ;;
  11923. esac
  11924. done
  11925. (set) 2>&1 |
  11926. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11927. *${as_nl}ac_space=\ *)
  11928. # `set' does not quote correctly, so add quotes (double-quote
  11929. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11930. sed -n \
  11931. "s/'/'\\\\''/g;
  11932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11933. ;; #(
  11934. *)
  11935. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11936. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11937. ;;
  11938. esac |
  11939. sort
  11940. ) |
  11941. sed '
  11942. /^ac_cv_env_/b end
  11943. t clear
  11944. :clear
  11945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11946. t end
  11947. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11948. :end' >>confcache
  11949. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11950. if test -w "$cache_file"; then
  11951. test "x$cache_file" != "x/dev/null" &&
  11952. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11953. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11954. cat confcache >$cache_file
  11955. else
  11956. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11957. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11958. fi
  11959. fi
  11960. rm -f confcache
  11961. for ac_func in strcasecmp strncasecmp vsnprintf
  11962. do
  11963. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11964. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11965. $as_echo_n "checking for $ac_func... " >&6; }
  11966. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11967. $as_echo_n "(cached) " >&6
  11968. else
  11969. cat >conftest.$ac_ext <<_ACEOF
  11970. /* confdefs.h. */
  11971. _ACEOF
  11972. cat confdefs.h >>conftest.$ac_ext
  11973. cat >>conftest.$ac_ext <<_ACEOF
  11974. /* end confdefs.h. */
  11975. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11976. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11977. #define $ac_func innocuous_$ac_func
  11978. /* System header to define __stub macros and hopefully few prototypes,
  11979. which can conflict with char $ac_func (); below.
  11980. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11981. <limits.h> exists even on freestanding compilers. */
  11982. #ifdef __STDC__
  11983. # include <limits.h>
  11984. #else
  11985. # include <assert.h>
  11986. #endif
  11987. #undef $ac_func
  11988. /* Override any GCC internal prototype to avoid an error.
  11989. Use char because int might match the return type of a GCC
  11990. builtin and then its argument prototype would still apply. */
  11991. #ifdef __cplusplus
  11992. extern "C"
  11993. #endif
  11994. char $ac_func ();
  11995. /* The GNU C library defines this for functions which it implements
  11996. to always fail with ENOSYS. Some functions are actually named
  11997. something starting with __ and the normal name is an alias. */
  11998. #if defined __stub_$ac_func || defined __stub___$ac_func
  11999. choke me
  12000. #endif
  12001. int
  12002. main ()
  12003. {
  12004. return $ac_func ();
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. rm -f conftest.$ac_objext conftest$ac_exeext
  12010. if { (ac_try="$ac_link"
  12011. case "(($ac_try" in
  12012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12013. *) ac_try_echo=$ac_try;;
  12014. esac
  12015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12016. $as_echo "$ac_try_echo") >&5
  12017. (eval "$ac_link") 2>conftest.er1
  12018. ac_status=$?
  12019. grep -v '^ *+' conftest.er1 >conftest.err
  12020. rm -f conftest.er1
  12021. cat conftest.err >&5
  12022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. (exit $ac_status); } && {
  12024. test -z "$ac_cxx_werror_flag" ||
  12025. test ! -s conftest.err
  12026. } && test -s conftest$ac_exeext && {
  12027. test "$cross_compiling" = yes ||
  12028. $as_test_x conftest$ac_exeext
  12029. }; then
  12030. eval "$as_ac_var=yes"
  12031. else
  12032. $as_echo "$as_me: failed program was:" >&5
  12033. sed 's/^/| /' conftest.$ac_ext >&5
  12034. eval "$as_ac_var=no"
  12035. fi
  12036. rm -rf conftest.dSYM
  12037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. fi
  12040. ac_res=`eval 'as_val=${'$as_ac_var'}
  12041. $as_echo "$as_val"'`
  12042. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12043. $as_echo "$ac_res" >&6; }
  12044. as_val=`eval 'as_val=${'$as_ac_var'}
  12045. $as_echo "$as_val"'`
  12046. if test "x$as_val" = x""yes; then
  12047. cat >>confdefs.h <<_ACEOF
  12048. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12049. _ACEOF
  12050. fi
  12051. done
  12052. #autoscan suggested this....
  12053. #These are recommended by autoscan, but no code supports it currently
  12054. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  12055. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  12056. for ac_func in vsprintf
  12057. do
  12058. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12059. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12060. $as_echo_n "checking for $ac_func... " >&6; }
  12061. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12062. $as_echo_n "(cached) " >&6
  12063. else
  12064. cat >conftest.$ac_ext <<_ACEOF
  12065. /* confdefs.h. */
  12066. _ACEOF
  12067. cat confdefs.h >>conftest.$ac_ext
  12068. cat >>conftest.$ac_ext <<_ACEOF
  12069. /* end confdefs.h. */
  12070. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12071. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12072. #define $ac_func innocuous_$ac_func
  12073. /* System header to define __stub macros and hopefully few prototypes,
  12074. which can conflict with char $ac_func (); below.
  12075. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12076. <limits.h> exists even on freestanding compilers. */
  12077. #ifdef __STDC__
  12078. # include <limits.h>
  12079. #else
  12080. # include <assert.h>
  12081. #endif
  12082. #undef $ac_func
  12083. /* Override any GCC internal prototype to avoid an error.
  12084. Use char because int might match the return type of a GCC
  12085. builtin and then its argument prototype would still apply. */
  12086. #ifdef __cplusplus
  12087. extern "C"
  12088. #endif
  12089. char $ac_func ();
  12090. /* The GNU C library defines this for functions which it implements
  12091. to always fail with ENOSYS. Some functions are actually named
  12092. something starting with __ and the normal name is an alias. */
  12093. #if defined __stub_$ac_func || defined __stub___$ac_func
  12094. choke me
  12095. #endif
  12096. int
  12097. main ()
  12098. {
  12099. return $ac_func ();
  12100. ;
  12101. return 0;
  12102. }
  12103. _ACEOF
  12104. rm -f conftest.$ac_objext conftest$ac_exeext
  12105. if { (ac_try="$ac_link"
  12106. case "(($ac_try" in
  12107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12108. *) ac_try_echo=$ac_try;;
  12109. esac
  12110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12111. $as_echo "$ac_try_echo") >&5
  12112. (eval "$ac_link") 2>conftest.er1
  12113. ac_status=$?
  12114. grep -v '^ *+' conftest.er1 >conftest.err
  12115. rm -f conftest.er1
  12116. cat conftest.err >&5
  12117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. (exit $ac_status); } && {
  12119. test -z "$ac_cxx_werror_flag" ||
  12120. test ! -s conftest.err
  12121. } && test -s conftest$ac_exeext && {
  12122. test "$cross_compiling" = yes ||
  12123. $as_test_x conftest$ac_exeext
  12124. }; then
  12125. eval "$as_ac_var=yes"
  12126. else
  12127. $as_echo "$as_me: failed program was:" >&5
  12128. sed 's/^/| /' conftest.$ac_ext >&5
  12129. eval "$as_ac_var=no"
  12130. fi
  12131. rm -rf conftest.dSYM
  12132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12133. conftest$ac_exeext conftest.$ac_ext
  12134. fi
  12135. ac_res=`eval 'as_val=${'$as_ac_var'}
  12136. $as_echo "$as_val"'`
  12137. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12138. $as_echo "$ac_res" >&6; }
  12139. as_val=`eval 'as_val=${'$as_ac_var'}
  12140. $as_echo "$as_val"'`
  12141. if test "x$as_val" = x""yes; then
  12142. cat >>confdefs.h <<_ACEOF
  12143. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12144. _ACEOF
  12145. fi
  12146. done
  12147. if test "$ac_cv_func_vsprintf" = "no"
  12148. then
  12149. cat << 'EOF' >&2
  12150. configure: error:
  12151. Your system does not have the sprintf/vsprintf libraries.
  12152. These are required to compile almost anything. Sorry.
  12153. EOF
  12154. exit 1
  12155. fi
  12156. for ac_func in uname
  12157. do
  12158. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12159. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12160. $as_echo_n "checking for $ac_func... " >&6; }
  12161. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12162. $as_echo_n "(cached) " >&6
  12163. else
  12164. cat >conftest.$ac_ext <<_ACEOF
  12165. /* confdefs.h. */
  12166. _ACEOF
  12167. cat confdefs.h >>conftest.$ac_ext
  12168. cat >>conftest.$ac_ext <<_ACEOF
  12169. /* end confdefs.h. */
  12170. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12171. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12172. #define $ac_func innocuous_$ac_func
  12173. /* System header to define __stub macros and hopefully few prototypes,
  12174. which can conflict with char $ac_func (); below.
  12175. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12176. <limits.h> exists even on freestanding compilers. */
  12177. #ifdef __STDC__
  12178. # include <limits.h>
  12179. #else
  12180. # include <assert.h>
  12181. #endif
  12182. #undef $ac_func
  12183. /* Override any GCC internal prototype to avoid an error.
  12184. Use char because int might match the return type of a GCC
  12185. builtin and then its argument prototype would still apply. */
  12186. #ifdef __cplusplus
  12187. extern "C"
  12188. #endif
  12189. char $ac_func ();
  12190. /* The GNU C library defines this for functions which it implements
  12191. to always fail with ENOSYS. Some functions are actually named
  12192. something starting with __ and the normal name is an alias. */
  12193. #if defined __stub_$ac_func || defined __stub___$ac_func
  12194. choke me
  12195. #endif
  12196. int
  12197. main ()
  12198. {
  12199. return $ac_func ();
  12200. ;
  12201. return 0;
  12202. }
  12203. _ACEOF
  12204. rm -f conftest.$ac_objext conftest$ac_exeext
  12205. if { (ac_try="$ac_link"
  12206. case "(($ac_try" in
  12207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12208. *) ac_try_echo=$ac_try;;
  12209. esac
  12210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12211. $as_echo "$ac_try_echo") >&5
  12212. (eval "$ac_link") 2>conftest.er1
  12213. ac_status=$?
  12214. grep -v '^ *+' conftest.er1 >conftest.err
  12215. rm -f conftest.er1
  12216. cat conftest.err >&5
  12217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12218. (exit $ac_status); } && {
  12219. test -z "$ac_cxx_werror_flag" ||
  12220. test ! -s conftest.err
  12221. } && test -s conftest$ac_exeext && {
  12222. test "$cross_compiling" = yes ||
  12223. $as_test_x conftest$ac_exeext
  12224. }; then
  12225. eval "$as_ac_var=yes"
  12226. else
  12227. $as_echo "$as_me: failed program was:" >&5
  12228. sed 's/^/| /' conftest.$ac_ext >&5
  12229. eval "$as_ac_var=no"
  12230. fi
  12231. rm -rf conftest.dSYM
  12232. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12233. conftest$ac_exeext conftest.$ac_ext
  12234. fi
  12235. ac_res=`eval 'as_val=${'$as_ac_var'}
  12236. $as_echo "$as_val"'`
  12237. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12238. $as_echo "$ac_res" >&6; }
  12239. as_val=`eval 'as_val=${'$as_ac_var'}
  12240. $as_echo "$as_val"'`
  12241. if test "x$as_val" = x""yes; then
  12242. cat >>confdefs.h <<_ACEOF
  12243. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12244. _ACEOF
  12245. fi
  12246. done
  12247. if test "$ac_cv_func_uname" = "no"
  12248. then
  12249. cat << 'EOF' >&2
  12250. configure: error:
  12251. Your system does not have the uname() function.
  12252. This is required for the botpack.
  12253. EOF
  12254. exit 1
  12255. fi
  12256. # Make sure we have stdc headers, since we can't compile without them
  12257. if test "$ac_cv_header_stdc" = "no"
  12258. then
  12259. cat << 'EOF' >&2
  12260. configure: error:
  12261. Your system must support ANSI C Header files.
  12262. These are required for the language support. Sorry.
  12263. EOF
  12264. exit 1
  12265. fi
  12266. #checkpoint
  12267. cat >confcache <<\_ACEOF
  12268. # This file is a shell script that caches the results of configure
  12269. # tests run on this system so they can be shared between configure
  12270. # scripts and configure runs, see configure's option --config-cache.
  12271. # It is not useful on other systems. If it contains results you don't
  12272. # want to keep, you may remove or edit it.
  12273. #
  12274. # config.status only pays attention to the cache file if you give it
  12275. # the --recheck option to rerun configure.
  12276. #
  12277. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12278. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12279. # following values.
  12280. _ACEOF
  12281. # The following way of writing the cache mishandles newlines in values,
  12282. # but we know of no workaround that is simple, portable, and efficient.
  12283. # So, we kill variables containing newlines.
  12284. # Ultrix sh set writes to stderr and can't be redirected directly,
  12285. # and sets the high bit in the cache file unless we assign to the vars.
  12286. (
  12287. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12288. eval ac_val=\$$ac_var
  12289. case $ac_val in #(
  12290. *${as_nl}*)
  12291. case $ac_var in #(
  12292. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12293. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12294. esac
  12295. case $ac_var in #(
  12296. _ | IFS | as_nl) ;; #(
  12297. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12298. *) $as_unset $ac_var ;;
  12299. esac ;;
  12300. esac
  12301. done
  12302. (set) 2>&1 |
  12303. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12304. *${as_nl}ac_space=\ *)
  12305. # `set' does not quote correctly, so add quotes (double-quote
  12306. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12307. sed -n \
  12308. "s/'/'\\\\''/g;
  12309. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12310. ;; #(
  12311. *)
  12312. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12313. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12314. ;;
  12315. esac |
  12316. sort
  12317. ) |
  12318. sed '
  12319. /^ac_cv_env_/b end
  12320. t clear
  12321. :clear
  12322. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12323. t end
  12324. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12325. :end' >>confcache
  12326. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12327. if test -w "$cache_file"; then
  12328. test "x$cache_file" != "x/dev/null" &&
  12329. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12330. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12331. cat confcache >$cache_file
  12332. else
  12333. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12334. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12335. fi
  12336. fi
  12337. rm -f confcache
  12338. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12339. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12340. cat >>confdefs.h <<_ACEOF
  12341. #define EGG_VERSION $version_num
  12342. _ACEOF
  12343. #FIND_WRAPS
  12344. case "$srcdir" in
  12345. [\\/]* | ?:[\\/]*)
  12346. MOD_UPDIR=""
  12347. ;;
  12348. *)
  12349. MOD_UPDIR="../"
  12350. ;;
  12351. esac
  12352. 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/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12353. for mf in $files; do
  12354. # Strip MF so we end up with the name of the file.
  12355. # echo "MF: $mf"
  12356. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12357. dirpart=`$as_dirname -- "$mf" ||
  12358. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12359. X"$mf" : 'X\(//\)[^/]' \| \
  12360. X"$mf" : 'X\(//\)$' \| \
  12361. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12362. $as_echo X"$mf" |
  12363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12364. s//\1/
  12365. q
  12366. }
  12367. /^X\(\/\/\)[^/].*/{
  12368. s//\1/
  12369. q
  12370. }
  12371. /^X\(\/\/\)$/{
  12372. s//\1/
  12373. q
  12374. }
  12375. /^X\(\/\).*/{
  12376. s//\1/
  12377. q
  12378. }
  12379. s/.*/./; q'`
  12380. # echo "dirpart: $dirpart mf: $mf"
  12381. # rm -rf "$dirpart/.deps/"
  12382. rm -f "$dirpart/.deps/includes"
  12383. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12384. for file in `sed -n -e '
  12385. /^OBJS = .*\\\\$/ {
  12386. s/^OBJS = //
  12387. :loop
  12388. s/\\\\$//
  12389. p
  12390. n
  12391. /\\\\$/ b loop
  12392. p
  12393. }
  12394. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12395. do
  12396. base=`basename $file .o`
  12397. test -f "$dirpart/$base.c" || continue
  12398. if ! test -f "$dirpart/.deps/$base.Po"; then
  12399. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12400. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12401. if test -f "$dirpart/$base.o"; then
  12402. rm -f "$dirpart/$base.o"
  12403. fi
  12404. fi
  12405. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12406. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12407. done
  12408. done
  12409. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12410. cat >confcache <<\_ACEOF
  12411. # This file is a shell script that caches the results of configure
  12412. # tests run on this system so they can be shared between configure
  12413. # scripts and configure runs, see configure's option --config-cache.
  12414. # It is not useful on other systems. If it contains results you don't
  12415. # want to keep, you may remove or edit it.
  12416. #
  12417. # config.status only pays attention to the cache file if you give it
  12418. # the --recheck option to rerun configure.
  12419. #
  12420. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12421. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12422. # following values.
  12423. _ACEOF
  12424. # The following way of writing the cache mishandles newlines in values,
  12425. # but we know of no workaround that is simple, portable, and efficient.
  12426. # So, we kill variables containing newlines.
  12427. # Ultrix sh set writes to stderr and can't be redirected directly,
  12428. # and sets the high bit in the cache file unless we assign to the vars.
  12429. (
  12430. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12431. eval ac_val=\$$ac_var
  12432. case $ac_val in #(
  12433. *${as_nl}*)
  12434. case $ac_var in #(
  12435. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12436. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12437. esac
  12438. case $ac_var in #(
  12439. _ | IFS | as_nl) ;; #(
  12440. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12441. *) $as_unset $ac_var ;;
  12442. esac ;;
  12443. esac
  12444. done
  12445. (set) 2>&1 |
  12446. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12447. *${as_nl}ac_space=\ *)
  12448. # `set' does not quote correctly, so add quotes (double-quote
  12449. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12450. sed -n \
  12451. "s/'/'\\\\''/g;
  12452. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12453. ;; #(
  12454. *)
  12455. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12456. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12457. ;;
  12458. esac |
  12459. sort
  12460. ) |
  12461. sed '
  12462. /^ac_cv_env_/b end
  12463. t clear
  12464. :clear
  12465. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12466. t end
  12467. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12468. :end' >>confcache
  12469. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12470. if test -w "$cache_file"; then
  12471. test "x$cache_file" != "x/dev/null" &&
  12472. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12473. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12474. cat confcache >$cache_file
  12475. else
  12476. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12477. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12478. fi
  12479. fi
  12480. rm -f confcache
  12481. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12482. # Let make expand exec_prefix.
  12483. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12484. DEFS=-DHAVE_CONFIG_H
  12485. ac_libobjs=
  12486. ac_ltlibobjs=
  12487. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12488. # 1. Remove the extension, and $U if already installed.
  12489. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12490. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12491. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12492. # will be set to the directory where LIBOBJS objects are built.
  12493. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12494. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12495. done
  12496. LIBOBJS=$ac_libobjs
  12497. LTLIBOBJS=$ac_ltlibobjs
  12498. : ${CONFIG_STATUS=./config.status}
  12499. ac_write_fail=0
  12500. ac_clean_files_save=$ac_clean_files
  12501. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12502. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12503. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12504. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12505. #! $SHELL
  12506. # Generated by $as_me.
  12507. # Run this file to recreate the current configuration.
  12508. # Compiler output produced by configure, useful for debugging
  12509. # configure, is in config.log if it exists.
  12510. debug=false
  12511. ac_cs_recheck=false
  12512. ac_cs_silent=false
  12513. SHELL=\${CONFIG_SHELL-$SHELL}
  12514. _ACEOF
  12515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12516. ## --------------------- ##
  12517. ## M4sh Initialization. ##
  12518. ## --------------------- ##
  12519. # Be more Bourne compatible
  12520. DUALCASE=1; export DUALCASE # for MKS sh
  12521. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12522. emulate sh
  12523. NULLCMD=:
  12524. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12525. # is contrary to our usage. Disable this feature.
  12526. alias -g '${1+"$@"}'='"$@"'
  12527. setopt NO_GLOB_SUBST
  12528. else
  12529. case `(set -o) 2>/dev/null` in
  12530. *posix*) set -o posix ;;
  12531. esac
  12532. fi
  12533. # PATH needs CR
  12534. # Avoid depending upon Character Ranges.
  12535. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12536. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12537. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12538. as_cr_digits='0123456789'
  12539. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12540. as_nl='
  12541. '
  12542. export as_nl
  12543. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12544. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12545. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12546. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12547. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12548. as_echo='printf %s\n'
  12549. as_echo_n='printf %s'
  12550. else
  12551. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12552. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12553. as_echo_n='/usr/ucb/echo -n'
  12554. else
  12555. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12556. as_echo_n_body='eval
  12557. arg=$1;
  12558. case $arg in
  12559. *"$as_nl"*)
  12560. expr "X$arg" : "X\\(.*\\)$as_nl";
  12561. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12562. esac;
  12563. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12564. '
  12565. export as_echo_n_body
  12566. as_echo_n='sh -c $as_echo_n_body as_echo'
  12567. fi
  12568. export as_echo_body
  12569. as_echo='sh -c $as_echo_body as_echo'
  12570. fi
  12571. # The user is always right.
  12572. if test "${PATH_SEPARATOR+set}" != set; then
  12573. PATH_SEPARATOR=:
  12574. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12575. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12576. PATH_SEPARATOR=';'
  12577. }
  12578. fi
  12579. # Support unset when possible.
  12580. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12581. as_unset=unset
  12582. else
  12583. as_unset=false
  12584. fi
  12585. # IFS
  12586. # We need space, tab and new line, in precisely that order. Quoting is
  12587. # there to prevent editors from complaining about space-tab.
  12588. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12589. # splitting by setting IFS to empty value.)
  12590. IFS=" "" $as_nl"
  12591. # Find who we are. Look in the path if we contain no directory separator.
  12592. case $0 in
  12593. *[\\/]* ) as_myself=$0 ;;
  12594. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12595. for as_dir in $PATH
  12596. do
  12597. IFS=$as_save_IFS
  12598. test -z "$as_dir" && as_dir=.
  12599. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12600. done
  12601. IFS=$as_save_IFS
  12602. ;;
  12603. esac
  12604. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12605. # in which case we are not to be found in the path.
  12606. if test "x$as_myself" = x; then
  12607. as_myself=$0
  12608. fi
  12609. if test ! -f "$as_myself"; then
  12610. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12611. { (exit 1); exit 1; }
  12612. fi
  12613. # Work around bugs in pre-3.0 UWIN ksh.
  12614. for as_var in ENV MAIL MAILPATH
  12615. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12616. done
  12617. PS1='$ '
  12618. PS2='> '
  12619. PS4='+ '
  12620. # NLS nuisances.
  12621. LC_ALL=C
  12622. export LC_ALL
  12623. LANGUAGE=C
  12624. export LANGUAGE
  12625. # Required to use basename.
  12626. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12627. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12628. as_expr=expr
  12629. else
  12630. as_expr=false
  12631. fi
  12632. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12633. as_basename=basename
  12634. else
  12635. as_basename=false
  12636. fi
  12637. # Name of the executable.
  12638. as_me=`$as_basename -- "$0" ||
  12639. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12640. X"$0" : 'X\(//\)$' \| \
  12641. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12642. $as_echo X/"$0" |
  12643. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12644. s//\1/
  12645. q
  12646. }
  12647. /^X\/\(\/\/\)$/{
  12648. s//\1/
  12649. q
  12650. }
  12651. /^X\/\(\/\).*/{
  12652. s//\1/
  12653. q
  12654. }
  12655. s/.*/./; q'`
  12656. # CDPATH.
  12657. $as_unset CDPATH
  12658. as_lineno_1=$LINENO
  12659. as_lineno_2=$LINENO
  12660. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12661. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12662. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12663. # uniformly replaced by the line number. The first 'sed' inserts a
  12664. # line-number line after each line using $LINENO; the second 'sed'
  12665. # does the real work. The second script uses 'N' to pair each
  12666. # line-number line with the line containing $LINENO, and appends
  12667. # trailing '-' during substitution so that $LINENO is not a special
  12668. # case at line end.
  12669. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12670. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12671. # E. McMahon (1931-1989) for sed's syntax. :-)
  12672. sed -n '
  12673. p
  12674. /[$]LINENO/=
  12675. ' <$as_myself |
  12676. sed '
  12677. s/[$]LINENO.*/&-/
  12678. t lineno
  12679. b
  12680. :lineno
  12681. N
  12682. :loop
  12683. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12684. t loop
  12685. s/-\n.*//
  12686. ' >$as_me.lineno &&
  12687. chmod +x "$as_me.lineno" ||
  12688. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12689. { (exit 1); exit 1; }; }
  12690. # Don't try to exec as it changes $[0], causing all sort of problems
  12691. # (the dirname of $[0] is not the place where we might find the
  12692. # original and so on. Autoconf is especially sensitive to this).
  12693. . "./$as_me.lineno"
  12694. # Exit status is that of the last command.
  12695. exit
  12696. }
  12697. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12698. as_dirname=dirname
  12699. else
  12700. as_dirname=false
  12701. fi
  12702. ECHO_C= ECHO_N= ECHO_T=
  12703. case `echo -n x` in
  12704. -n*)
  12705. case `echo 'x\c'` in
  12706. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12707. *) ECHO_C='\c';;
  12708. esac;;
  12709. *)
  12710. ECHO_N='-n';;
  12711. esac
  12712. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12713. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12714. as_expr=expr
  12715. else
  12716. as_expr=false
  12717. fi
  12718. rm -f conf$$ conf$$.exe conf$$.file
  12719. if test -d conf$$.dir; then
  12720. rm -f conf$$.dir/conf$$.file
  12721. else
  12722. rm -f conf$$.dir
  12723. mkdir conf$$.dir 2>/dev/null
  12724. fi
  12725. if (echo >conf$$.file) 2>/dev/null; then
  12726. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12727. as_ln_s='ln -s'
  12728. # ... but there are two gotchas:
  12729. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12730. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12731. # In both cases, we have to default to `cp -p'.
  12732. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12733. as_ln_s='cp -p'
  12734. elif ln conf$$.file conf$$ 2>/dev/null; then
  12735. as_ln_s=ln
  12736. else
  12737. as_ln_s='cp -p'
  12738. fi
  12739. else
  12740. as_ln_s='cp -p'
  12741. fi
  12742. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12743. rmdir conf$$.dir 2>/dev/null
  12744. if mkdir -p . 2>/dev/null; then
  12745. as_mkdir_p=:
  12746. else
  12747. test -d ./-p && rmdir ./-p
  12748. as_mkdir_p=false
  12749. fi
  12750. if test -x / >/dev/null 2>&1; then
  12751. as_test_x='test -x'
  12752. else
  12753. if ls -dL / >/dev/null 2>&1; then
  12754. as_ls_L_option=L
  12755. else
  12756. as_ls_L_option=
  12757. fi
  12758. as_test_x='
  12759. eval sh -c '\''
  12760. if test -d "$1"; then
  12761. test -d "$1/.";
  12762. else
  12763. case $1 in
  12764. -*)set "./$1";;
  12765. esac;
  12766. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12767. ???[sx]*):;;*)false;;esac;fi
  12768. '\'' sh
  12769. '
  12770. fi
  12771. as_executable_p=$as_test_x
  12772. # Sed expression to map a string onto a valid CPP name.
  12773. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12774. # Sed expression to map a string onto a valid variable name.
  12775. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12776. exec 6>&1
  12777. # Save the log message, to keep $[0] and so on meaningful, and to
  12778. # report actual input values of CONFIG_FILES etc. instead of their
  12779. # values after options handling.
  12780. ac_log="
  12781. This file was extended by $as_me, which was
  12782. generated by GNU Autoconf 2.63. Invocation command line was
  12783. CONFIG_FILES = $CONFIG_FILES
  12784. CONFIG_HEADERS = $CONFIG_HEADERS
  12785. CONFIG_LINKS = $CONFIG_LINKS
  12786. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12787. $ $0 $@
  12788. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12789. "
  12790. _ACEOF
  12791. case $ac_config_files in *"
  12792. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12793. esac
  12794. case $ac_config_headers in *"
  12795. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12796. esac
  12797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12798. # Files that config.status was made for.
  12799. config_files="$ac_config_files"
  12800. config_headers="$ac_config_headers"
  12801. _ACEOF
  12802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12803. ac_cs_usage="\
  12804. \`$as_me' instantiates files from templates according to the
  12805. current configuration.
  12806. Usage: $0 [OPTION]... [FILE]...
  12807. -h, --help print this help, then exit
  12808. -V, --version print version number and configuration settings, then exit
  12809. -q, --quiet, --silent
  12810. do not print progress messages
  12811. -d, --debug don't remove temporary files
  12812. --recheck update $as_me by reconfiguring in the same conditions
  12813. --file=FILE[:TEMPLATE]
  12814. instantiate the configuration file FILE
  12815. --header=FILE[:TEMPLATE]
  12816. instantiate the configuration header FILE
  12817. Configuration files:
  12818. $config_files
  12819. Configuration headers:
  12820. $config_headers
  12821. Report bugs to <bug-autoconf@gnu.org>."
  12822. _ACEOF
  12823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12824. ac_cs_version="\\
  12825. config.status
  12826. configured by $0, generated by GNU Autoconf 2.63,
  12827. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12828. Copyright (C) 2008 Free Software Foundation, Inc.
  12829. This config.status script is free software; the Free Software Foundation
  12830. gives unlimited permission to copy, distribute and modify it."
  12831. ac_pwd='$ac_pwd'
  12832. srcdir='$srcdir'
  12833. AWK='$AWK'
  12834. test -n "\$AWK" || AWK=awk
  12835. _ACEOF
  12836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12837. # The default lists apply if the user does not specify any file.
  12838. ac_need_defaults=:
  12839. while test $# != 0
  12840. do
  12841. case $1 in
  12842. --*=*)
  12843. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12844. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12845. ac_shift=:
  12846. ;;
  12847. *)
  12848. ac_option=$1
  12849. ac_optarg=$2
  12850. ac_shift=shift
  12851. ;;
  12852. esac
  12853. case $ac_option in
  12854. # Handling of the options.
  12855. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12856. ac_cs_recheck=: ;;
  12857. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12858. $as_echo "$ac_cs_version"; exit ;;
  12859. --debug | --debu | --deb | --de | --d | -d )
  12860. debug=: ;;
  12861. --file | --fil | --fi | --f )
  12862. $ac_shift
  12863. case $ac_optarg in
  12864. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12865. esac
  12866. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12867. ac_need_defaults=false;;
  12868. --header | --heade | --head | --hea )
  12869. $ac_shift
  12870. case $ac_optarg in
  12871. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12872. esac
  12873. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12874. ac_need_defaults=false;;
  12875. --he | --h)
  12876. # Conflict between --help and --header
  12877. { $as_echo "$as_me: error: ambiguous option: $1
  12878. Try \`$0 --help' for more information." >&2
  12879. { (exit 1); exit 1; }; };;
  12880. --help | --hel | -h )
  12881. $as_echo "$ac_cs_usage"; exit ;;
  12882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12883. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12884. ac_cs_silent=: ;;
  12885. # This is an error.
  12886. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12887. Try \`$0 --help' for more information." >&2
  12888. { (exit 1); exit 1; }; } ;;
  12889. *) ac_config_targets="$ac_config_targets $1"
  12890. ac_need_defaults=false ;;
  12891. esac
  12892. shift
  12893. done
  12894. ac_configure_extra_args=
  12895. if $ac_cs_silent; then
  12896. exec 6>/dev/null
  12897. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12898. fi
  12899. _ACEOF
  12900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12901. if \$ac_cs_recheck; then
  12902. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12903. shift
  12904. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12905. CONFIG_SHELL='$SHELL'
  12906. export CONFIG_SHELL
  12907. exec "\$@"
  12908. fi
  12909. _ACEOF
  12910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12911. exec 5>>config.log
  12912. {
  12913. echo
  12914. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12915. ## Running $as_me. ##
  12916. _ASBOX
  12917. $as_echo "$ac_log"
  12918. } >&5
  12919. _ACEOF
  12920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12921. _ACEOF
  12922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12923. # Handling of arguments.
  12924. for ac_config_target in $ac_config_targets
  12925. do
  12926. case $ac_config_target in
  12927. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12928. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12929. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12930. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12931. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12932. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12933. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12934. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12935. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12936. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12937. { (exit 1); exit 1; }; };;
  12938. esac
  12939. done
  12940. # If the user did not use the arguments to specify the items to instantiate,
  12941. # then the envvar interface is used. Set only those that are not.
  12942. # We use the long form for the default assignment because of an extremely
  12943. # bizarre bug on SunOS 4.1.3.
  12944. if $ac_need_defaults; then
  12945. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12946. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12947. fi
  12948. # Have a temporary directory for convenience. Make it in the build tree
  12949. # simply because there is no reason against having it here, and in addition,
  12950. # creating and moving files from /tmp can sometimes cause problems.
  12951. # Hook for its removal unless debugging.
  12952. # Note that there is a small window in which the directory will not be cleaned:
  12953. # after its creation but before its name has been assigned to `$tmp'.
  12954. $debug ||
  12955. {
  12956. tmp=
  12957. trap 'exit_status=$?
  12958. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12959. ' 0
  12960. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12961. }
  12962. # Create a (secure) tmp directory for tmp files.
  12963. {
  12964. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12965. test -n "$tmp" && test -d "$tmp"
  12966. } ||
  12967. {
  12968. tmp=./conf$$-$RANDOM
  12969. (umask 077 && mkdir "$tmp")
  12970. } ||
  12971. {
  12972. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12973. { (exit 1); exit 1; }
  12974. }
  12975. # Set up the scripts for CONFIG_FILES section.
  12976. # No need to generate them if there are no CONFIG_FILES.
  12977. # This happens for instance with `./config.status config.h'.
  12978. if test -n "$CONFIG_FILES"; then
  12979. ac_cr=' '
  12980. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12981. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12982. ac_cs_awk_cr='\\r'
  12983. else
  12984. ac_cs_awk_cr=$ac_cr
  12985. fi
  12986. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12987. _ACEOF
  12988. {
  12989. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12990. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12991. echo "_ACEOF"
  12992. } >conf$$subs.sh ||
  12993. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12994. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12995. { (exit 1); exit 1; }; }
  12996. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12997. ac_delim='%!_!# '
  12998. for ac_last_try in false false false false false :; do
  12999. . ./conf$$subs.sh ||
  13000. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13001. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13002. { (exit 1); exit 1; }; }
  13003. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13004. if test $ac_delim_n = $ac_delim_num; then
  13005. break
  13006. elif $ac_last_try; then
  13007. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13008. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13009. { (exit 1); exit 1; }; }
  13010. else
  13011. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13012. fi
  13013. done
  13014. rm -f conf$$subs.sh
  13015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13016. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13017. _ACEOF
  13018. sed -n '
  13019. h
  13020. s/^/S["/; s/!.*/"]=/
  13021. p
  13022. g
  13023. s/^[^!]*!//
  13024. :repl
  13025. t repl
  13026. s/'"$ac_delim"'$//
  13027. t delim
  13028. :nl
  13029. h
  13030. s/\(.\{148\}\).*/\1/
  13031. t more1
  13032. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13033. p
  13034. n
  13035. b repl
  13036. :more1
  13037. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13038. p
  13039. g
  13040. s/.\{148\}//
  13041. t nl
  13042. :delim
  13043. h
  13044. s/\(.\{148\}\).*/\1/
  13045. t more2
  13046. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13047. p
  13048. b
  13049. :more2
  13050. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13051. p
  13052. g
  13053. s/.\{148\}//
  13054. t delim
  13055. ' <conf$$subs.awk | sed '
  13056. /^[^""]/{
  13057. N
  13058. s/\n//
  13059. }
  13060. ' >>$CONFIG_STATUS || ac_write_fail=1
  13061. rm -f conf$$subs.awk
  13062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13063. _ACAWK
  13064. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13065. for (key in S) S_is_set[key] = 1
  13066. FS = ""
  13067. }
  13068. {
  13069. line = $ 0
  13070. nfields = split(line, field, "@")
  13071. substed = 0
  13072. len = length(field[1])
  13073. for (i = 2; i < nfields; i++) {
  13074. key = field[i]
  13075. keylen = length(key)
  13076. if (S_is_set[key]) {
  13077. value = S[key]
  13078. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13079. len += length(value) + length(field[++i])
  13080. substed = 1
  13081. } else
  13082. len += 1 + keylen
  13083. }
  13084. print line
  13085. }
  13086. _ACAWK
  13087. _ACEOF
  13088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13089. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13090. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13091. else
  13092. cat
  13093. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13094. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13095. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13096. { (exit 1); exit 1; }; }
  13097. _ACEOF
  13098. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13099. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13100. # trailing colons and then remove the whole line if VPATH becomes empty
  13101. # (actually we leave an empty line to preserve line numbers).
  13102. if test "x$srcdir" = x.; then
  13103. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13104. s/:*\$(srcdir):*/:/
  13105. s/:*\${srcdir}:*/:/
  13106. s/:*@srcdir@:*/:/
  13107. s/^\([^=]*=[ ]*\):*/\1/
  13108. s/:*$//
  13109. s/^[^=]*=[ ]*$//
  13110. }'
  13111. fi
  13112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13113. fi # test -n "$CONFIG_FILES"
  13114. # Set up the scripts for CONFIG_HEADERS section.
  13115. # No need to generate them if there are no CONFIG_HEADERS.
  13116. # This happens for instance with `./config.status Makefile'.
  13117. if test -n "$CONFIG_HEADERS"; then
  13118. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13119. BEGIN {
  13120. _ACEOF
  13121. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13122. # here-document in config.status, that substitutes the proper values into
  13123. # config.h.in to produce config.h.
  13124. # Create a delimiter string that does not exist in confdefs.h, to ease
  13125. # handling of long lines.
  13126. ac_delim='%!_!# '
  13127. for ac_last_try in false false :; do
  13128. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13129. if test -z "$ac_t"; then
  13130. break
  13131. elif $ac_last_try; then
  13132. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13133. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13134. { (exit 1); exit 1; }; }
  13135. else
  13136. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13137. fi
  13138. done
  13139. # For the awk script, D is an array of macro values keyed by name,
  13140. # likewise P contains macro parameters if any. Preserve backslash
  13141. # newline sequences.
  13142. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13143. sed -n '
  13144. s/.\{148\}/&'"$ac_delim"'/g
  13145. t rset
  13146. :rset
  13147. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13148. t def
  13149. d
  13150. :def
  13151. s/\\$//
  13152. t bsnl
  13153. s/["\\]/\\&/g
  13154. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13155. D["\1"]=" \3"/p
  13156. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13157. d
  13158. :bsnl
  13159. s/["\\]/\\&/g
  13160. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13161. D["\1"]=" \3\\\\\\n"\\/p
  13162. t cont
  13163. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13164. t cont
  13165. d
  13166. :cont
  13167. n
  13168. s/.\{148\}/&'"$ac_delim"'/g
  13169. t clear
  13170. :clear
  13171. s/\\$//
  13172. t bsnlc
  13173. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13174. d
  13175. :bsnlc
  13176. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13177. b cont
  13178. ' <confdefs.h | sed '
  13179. s/'"$ac_delim"'/"\\\
  13180. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13181. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13182. for (key in D) D_is_set[key] = 1
  13183. FS = ""
  13184. }
  13185. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13186. line = \$ 0
  13187. split(line, arg, " ")
  13188. if (arg[1] == "#") {
  13189. defundef = arg[2]
  13190. mac1 = arg[3]
  13191. } else {
  13192. defundef = substr(arg[1], 2)
  13193. mac1 = arg[2]
  13194. }
  13195. split(mac1, mac2, "(") #)
  13196. macro = mac2[1]
  13197. prefix = substr(line, 1, index(line, defundef) - 1)
  13198. if (D_is_set[macro]) {
  13199. # Preserve the white space surrounding the "#".
  13200. print prefix "define", macro P[macro] D[macro]
  13201. next
  13202. } else {
  13203. # Replace #undef with comments. This is necessary, for example,
  13204. # in the case of _POSIX_SOURCE, which is predefined and required
  13205. # on some systems where configure will not decide to define it.
  13206. if (defundef == "undef") {
  13207. print "/*", prefix defundef, macro, "*/"
  13208. next
  13209. }
  13210. }
  13211. }
  13212. { print }
  13213. _ACAWK
  13214. _ACEOF
  13215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13216. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13217. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13218. { (exit 1); exit 1; }; }
  13219. fi # test -n "$CONFIG_HEADERS"
  13220. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13221. shift
  13222. for ac_tag
  13223. do
  13224. case $ac_tag in
  13225. :[FHLC]) ac_mode=$ac_tag; continue;;
  13226. esac
  13227. case $ac_mode$ac_tag in
  13228. :[FHL]*:*);;
  13229. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13230. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13231. { (exit 1); exit 1; }; };;
  13232. :[FH]-) ac_tag=-:-;;
  13233. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13234. esac
  13235. ac_save_IFS=$IFS
  13236. IFS=:
  13237. set x $ac_tag
  13238. IFS=$ac_save_IFS
  13239. shift
  13240. ac_file=$1
  13241. shift
  13242. case $ac_mode in
  13243. :L) ac_source=$1;;
  13244. :[FH])
  13245. ac_file_inputs=
  13246. for ac_f
  13247. do
  13248. case $ac_f in
  13249. -) ac_f="$tmp/stdin";;
  13250. *) # Look for the file first in the build tree, then in the source tree
  13251. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13252. # because $ac_f cannot contain `:'.
  13253. test -f "$ac_f" ||
  13254. case $ac_f in
  13255. [\\/$]*) false;;
  13256. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13257. esac ||
  13258. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13259. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13260. { (exit 1); exit 1; }; };;
  13261. esac
  13262. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13263. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13264. done
  13265. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13266. # use $as_me), people would be surprised to read:
  13267. # /* config.h. Generated by config.status. */
  13268. configure_input='Generated from '`
  13269. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13270. `' by configure.'
  13271. if test x"$ac_file" != x-; then
  13272. configure_input="$ac_file. $configure_input"
  13273. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13274. $as_echo "$as_me: creating $ac_file" >&6;}
  13275. fi
  13276. # Neutralize special characters interpreted by sed in replacement strings.
  13277. case $configure_input in #(
  13278. *\&* | *\|* | *\\* )
  13279. ac_sed_conf_input=`$as_echo "$configure_input" |
  13280. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13281. *) ac_sed_conf_input=$configure_input;;
  13282. esac
  13283. case $ac_tag in
  13284. *:-:* | *:-) cat >"$tmp/stdin" \
  13285. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13286. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13287. { (exit 1); exit 1; }; } ;;
  13288. esac
  13289. ;;
  13290. esac
  13291. ac_dir=`$as_dirname -- "$ac_file" ||
  13292. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13293. X"$ac_file" : 'X\(//\)[^/]' \| \
  13294. X"$ac_file" : 'X\(//\)$' \| \
  13295. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13296. $as_echo X"$ac_file" |
  13297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\(\/\/\)[^/].*/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\(\/\/\)$/{
  13306. s//\1/
  13307. q
  13308. }
  13309. /^X\(\/\).*/{
  13310. s//\1/
  13311. q
  13312. }
  13313. s/.*/./; q'`
  13314. { as_dir="$ac_dir"
  13315. case $as_dir in #(
  13316. -*) as_dir=./$as_dir;;
  13317. esac
  13318. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13319. as_dirs=
  13320. while :; do
  13321. case $as_dir in #(
  13322. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13323. *) as_qdir=$as_dir;;
  13324. esac
  13325. as_dirs="'$as_qdir' $as_dirs"
  13326. as_dir=`$as_dirname -- "$as_dir" ||
  13327. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13328. X"$as_dir" : 'X\(//\)[^/]' \| \
  13329. X"$as_dir" : 'X\(//\)$' \| \
  13330. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13331. $as_echo X"$as_dir" |
  13332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13333. s//\1/
  13334. q
  13335. }
  13336. /^X\(\/\/\)[^/].*/{
  13337. s//\1/
  13338. q
  13339. }
  13340. /^X\(\/\/\)$/{
  13341. s//\1/
  13342. q
  13343. }
  13344. /^X\(\/\).*/{
  13345. s//\1/
  13346. q
  13347. }
  13348. s/.*/./; q'`
  13349. test -d "$as_dir" && break
  13350. done
  13351. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13352. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13353. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13354. { (exit 1); exit 1; }; }; }
  13355. ac_builddir=.
  13356. case "$ac_dir" in
  13357. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13358. *)
  13359. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13360. # A ".." for each directory in $ac_dir_suffix.
  13361. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13362. case $ac_top_builddir_sub in
  13363. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13364. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13365. esac ;;
  13366. esac
  13367. ac_abs_top_builddir=$ac_pwd
  13368. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13369. # for backward compatibility:
  13370. ac_top_builddir=$ac_top_build_prefix
  13371. case $srcdir in
  13372. .) # We are building in place.
  13373. ac_srcdir=.
  13374. ac_top_srcdir=$ac_top_builddir_sub
  13375. ac_abs_top_srcdir=$ac_pwd ;;
  13376. [\\/]* | ?:[\\/]* ) # Absolute name.
  13377. ac_srcdir=$srcdir$ac_dir_suffix;
  13378. ac_top_srcdir=$srcdir
  13379. ac_abs_top_srcdir=$srcdir ;;
  13380. *) # Relative name.
  13381. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13382. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13383. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13384. esac
  13385. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13386. case $ac_mode in
  13387. :F)
  13388. #
  13389. # CONFIG_FILE
  13390. #
  13391. _ACEOF
  13392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13393. # If the template does not know about datarootdir, expand it.
  13394. # FIXME: This hack should be removed a few years after 2.60.
  13395. ac_datarootdir_hack=; ac_datarootdir_seen=
  13396. ac_sed_dataroot='
  13397. /datarootdir/ {
  13398. p
  13399. q
  13400. }
  13401. /@datadir@/p
  13402. /@docdir@/p
  13403. /@infodir@/p
  13404. /@localedir@/p
  13405. /@mandir@/p
  13406. '
  13407. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13408. *datarootdir*) ac_datarootdir_seen=yes;;
  13409. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13410. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13411. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13412. _ACEOF
  13413. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13414. ac_datarootdir_hack='
  13415. s&@datadir@&$datadir&g
  13416. s&@docdir@&$docdir&g
  13417. s&@infodir@&$infodir&g
  13418. s&@localedir@&$localedir&g
  13419. s&@mandir@&$mandir&g
  13420. s&\\\${datarootdir}&$datarootdir&g' ;;
  13421. esac
  13422. _ACEOF
  13423. # Neutralize VPATH when `$srcdir' = `.'.
  13424. # Shell code in configure.ac might set extrasub.
  13425. # FIXME: do we really want to maintain this feature?
  13426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13427. ac_sed_extra="$ac_vpsub
  13428. $extrasub
  13429. _ACEOF
  13430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13431. :t
  13432. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13433. s|@configure_input@|$ac_sed_conf_input|;t t
  13434. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13435. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13436. s&@srcdir@&$ac_srcdir&;t t
  13437. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13438. s&@top_srcdir@&$ac_top_srcdir&;t t
  13439. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13440. s&@builddir@&$ac_builddir&;t t
  13441. s&@abs_builddir@&$ac_abs_builddir&;t t
  13442. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13443. $ac_datarootdir_hack
  13444. "
  13445. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13446. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13447. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13448. { (exit 1); exit 1; }; }
  13449. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13450. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13451. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13452. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13453. which seems to be undefined. Please make sure it is defined." >&5
  13454. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13455. which seems to be undefined. Please make sure it is defined." >&2;}
  13456. rm -f "$tmp/stdin"
  13457. case $ac_file in
  13458. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13459. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13460. esac \
  13461. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13462. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13463. { (exit 1); exit 1; }; }
  13464. ;;
  13465. :H)
  13466. #
  13467. # CONFIG_HEADER
  13468. #
  13469. if test x"$ac_file" != x-; then
  13470. {
  13471. $as_echo "/* $configure_input */" \
  13472. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13473. } >"$tmp/config.h" \
  13474. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13475. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13476. { (exit 1); exit 1; }; }
  13477. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13478. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13479. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13480. else
  13481. rm -f "$ac_file"
  13482. mv "$tmp/config.h" "$ac_file" \
  13483. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13484. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13485. { (exit 1); exit 1; }; }
  13486. fi
  13487. else
  13488. $as_echo "/* $configure_input */" \
  13489. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13490. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13491. $as_echo "$as_me: error: could not create -" >&2;}
  13492. { (exit 1); exit 1; }; }
  13493. fi
  13494. ;;
  13495. esac
  13496. done # for ac_tag
  13497. { (exit 0); exit 0; }
  13498. _ACEOF
  13499. chmod +x $CONFIG_STATUS
  13500. ac_clean_files=$ac_clean_files_save
  13501. test $ac_write_fail = 0 ||
  13502. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13503. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13504. { (exit 1); exit 1; }; }
  13505. # configure is writing to config.log, and then calls config.status.
  13506. # config.status does its own redirection, appending to config.log.
  13507. # Unfortunately, on DOS this fails, as config.log is still kept open
  13508. # by configure, so config.status won't be able to write to it; its
  13509. # output is simply discarded. So we exec the FD to /dev/null,
  13510. # effectively closing config.log, so it can be properly (re)opened and
  13511. # appended to by config.status. When coming back to configure, we
  13512. # need to make the FD available again.
  13513. if test "$no_create" != yes; then
  13514. ac_cs_success=:
  13515. ac_config_status_args=
  13516. test "$silent" = yes &&
  13517. ac_config_status_args="$ac_config_status_args --quiet"
  13518. exec 5>/dev/null
  13519. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13520. exec 5>>config.log
  13521. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13522. # would make configure fail if this is the last instruction.
  13523. $ac_cs_success || { (exit 1); exit 1; }
  13524. fi
  13525. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13526. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13527. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13528. fi
  13529. GIT_REQUIRED=1
  13530. if [ "$GIT_REQUIRED" = "1" ]; then
  13531. if ! test -d .git; then
  13532. echo ""
  13533. echo ""
  13534. echo "You have downloaded a GIT version of wraith."
  13535. echo "Either 'git clone' from a git repository or download a source tarball"
  13536. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  13537. echo ""
  13538. echo ""
  13539. exit 1
  13540. fi
  13541. fi
  13542. echo ""
  13543. echo ""
  13544. echo "------------ Configuring BDLIB ------------"
  13545. if test -d .git; then
  13546. git submodule init
  13547. git submodule update
  13548. fi
  13549. test -f lib/bdlib/configure && cd lib/bdlib && MAKEJOBS="$MAKEJOBS" ./configure