configure 247 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.65.
  5. #
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # Copyright (c) 2003 - 2010 Bryan Drewery
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  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. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  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
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. BASH_ENV=/dev/null
  204. ENV=/dev/null
  205. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  206. export CONFIG_SHELL
  207. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  208. fi
  209. if test x$as_have_required = xno; then :
  210. $as_echo "$0: This script requires a shell more modern than all"
  211. $as_echo "$0: the shells that I found on your system."
  212. if test x${ZSH_VERSION+set} = xset ; then
  213. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  214. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  215. else
  216. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee 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; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME=
  507. PACKAGE_TARNAME=
  508. PACKAGE_VERSION=
  509. PACKAGE_STRING=
  510. PACKAGE_BUGREPORT=
  511. PACKAGE_URL=
  512. ac_unique_file="wraith"
  513. ac_unique_file="src/eggdrop.h"
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='LTLIBOBJS
  552. MOD_UPDIR
  553. NUMVER
  554. VERSION
  555. LIBOBJS
  556. SSL_LIBS
  557. SSL_INCLUDES
  558. MAKEJOBS
  559. CCDEBUG
  560. STATIC
  561. BUILDARCH
  562. BUILDOS
  563. DISTCC
  564. CCACHE
  565. UNAME
  566. DIFF
  567. STRIP
  568. OBJCOPY
  569. BASENAME
  570. AWK
  571. HEAD_1
  572. SET_MAKE
  573. GCC4DEB
  574. GCC3DEB
  575. GCC3
  576. CCDEPMODE
  577. EGREP
  578. GREP
  579. CXXCPP
  580. OBJEXT
  581. EXEEXT
  582. ac_ct_CXX
  583. CPPFLAGS
  584. LDFLAGS
  585. CXXFLAGS
  586. CXX
  587. egg_ac_parameters
  588. target_alias
  589. host_alias
  590. build_alias
  591. LIBS
  592. ECHO_T
  593. ECHO_N
  594. ECHO_C
  595. DEFS
  596. mandir
  597. localedir
  598. libdir
  599. psdir
  600. pdfdir
  601. dvidir
  602. htmldir
  603. infodir
  604. docdir
  605. oldincludedir
  606. includedir
  607. localstatedir
  608. sharedstatedir
  609. sysconfdir
  610. datadir
  611. datarootdir
  612. libexecdir
  613. sbindir
  614. bindir
  615. program_transform_name
  616. prefix
  617. exec_prefix
  618. PACKAGE_URL
  619. PACKAGE_BUGREPORT
  620. PACKAGE_STRING
  621. PACKAGE_VERSION
  622. PACKAGE_TARNAME
  623. PACKAGE_NAME
  624. PATH_SEPARATOR
  625. SHELL'
  626. ac_subst_files=''
  627. ac_user_opts='
  628. enable_option_checking
  629. enable_ipv6
  630. with_openssl
  631. '
  632. ac_precious_vars='build_alias
  633. host_alias
  634. target_alias
  635. CXX
  636. CXXFLAGS
  637. LDFLAGS
  638. LIBS
  639. CPPFLAGS
  640. CCC
  641. CXXCPP'
  642. # Initialize some variables set by options.
  643. ac_init_help=
  644. ac_init_version=false
  645. ac_unrecognized_opts=
  646. ac_unrecognized_sep=
  647. # The variables have the same names as the options, with
  648. # dashes changed to underlines.
  649. cache_file=./config.cache
  650. exec_prefix=NONE
  651. no_create=
  652. no_recursion=
  653. prefix=NONE
  654. program_prefix=NONE
  655. program_suffix=NONE
  656. program_transform_name=s,x,x,
  657. silent=
  658. site=
  659. srcdir=
  660. verbose=
  661. x_includes=NONE
  662. x_libraries=NONE
  663. # Installation directory options.
  664. # These are left unexpanded so users can "make install exec_prefix=/foo"
  665. # and all the variables that are supposed to be based on exec_prefix
  666. # by default will actually change.
  667. # Use braces instead of parens because sh, perl, etc. also accept them.
  668. # (The list follows the same order as the GNU Coding Standards.)
  669. bindir='${exec_prefix}/bin'
  670. sbindir='${exec_prefix}/sbin'
  671. libexecdir='${exec_prefix}/libexec'
  672. datarootdir='${prefix}/share'
  673. datadir='${datarootdir}'
  674. sysconfdir='${prefix}/etc'
  675. sharedstatedir='${prefix}/com'
  676. localstatedir='${prefix}/var'
  677. includedir='${prefix}/include'
  678. oldincludedir='/usr/include'
  679. docdir='${datarootdir}/doc/${PACKAGE}'
  680. infodir='${datarootdir}/info'
  681. htmldir='${docdir}'
  682. dvidir='${docdir}'
  683. pdfdir='${docdir}'
  684. psdir='${docdir}'
  685. libdir='${exec_prefix}/lib'
  686. localedir='${datarootdir}/locale'
  687. mandir='${datarootdir}/man'
  688. ac_prev=
  689. ac_dashdash=
  690. for ac_option
  691. do
  692. # If the previous option needs an argument, assign it.
  693. if test -n "$ac_prev"; then
  694. eval $ac_prev=\$ac_option
  695. ac_prev=
  696. continue
  697. fi
  698. case $ac_option in
  699. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  700. *) ac_optarg=yes ;;
  701. esac
  702. # Accept the important Cygnus configure options, so we can diagnose typos.
  703. case $ac_dashdash$ac_option in
  704. --)
  705. ac_dashdash=yes ;;
  706. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  707. ac_prev=bindir ;;
  708. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  709. bindir=$ac_optarg ;;
  710. -build | --build | --buil | --bui | --bu)
  711. ac_prev=build_alias ;;
  712. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  713. build_alias=$ac_optarg ;;
  714. -cache-file | --cache-file | --cache-fil | --cache-fi \
  715. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  716. ac_prev=cache_file ;;
  717. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  718. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  719. cache_file=$ac_optarg ;;
  720. --config-cache | -C)
  721. cache_file=config.cache ;;
  722. -datadir | --datadir | --datadi | --datad)
  723. ac_prev=datadir ;;
  724. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  725. datadir=$ac_optarg ;;
  726. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  727. | --dataroo | --dataro | --datar)
  728. ac_prev=datarootdir ;;
  729. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  730. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  731. datarootdir=$ac_optarg ;;
  732. -disable-* | --disable-*)
  733. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  734. # Reject names that are not valid shell variable names.
  735. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  736. as_fn_error "invalid feature name: $ac_useropt"
  737. ac_useropt_orig=$ac_useropt
  738. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  739. case $ac_user_opts in
  740. *"
  741. "enable_$ac_useropt"
  742. "*) ;;
  743. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  744. ac_unrecognized_sep=', ';;
  745. esac
  746. eval enable_$ac_useropt=no ;;
  747. -docdir | --docdir | --docdi | --doc | --do)
  748. ac_prev=docdir ;;
  749. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  750. docdir=$ac_optarg ;;
  751. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  752. ac_prev=dvidir ;;
  753. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  754. dvidir=$ac_optarg ;;
  755. -enable-* | --enable-*)
  756. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  757. # Reject names that are not valid shell variable names.
  758. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  759. as_fn_error "invalid feature name: $ac_useropt"
  760. ac_useropt_orig=$ac_useropt
  761. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  762. case $ac_user_opts in
  763. *"
  764. "enable_$ac_useropt"
  765. "*) ;;
  766. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  767. ac_unrecognized_sep=', ';;
  768. esac
  769. eval enable_$ac_useropt=\$ac_optarg ;;
  770. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  771. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  772. | --exec | --exe | --ex)
  773. ac_prev=exec_prefix ;;
  774. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  775. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  776. | --exec=* | --exe=* | --ex=*)
  777. exec_prefix=$ac_optarg ;;
  778. -gas | --gas | --ga | --g)
  779. # Obsolete; use --with-gas.
  780. with_gas=yes ;;
  781. -help | --help | --hel | --he | -h)
  782. ac_init_help=long ;;
  783. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  784. ac_init_help=recursive ;;
  785. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  786. ac_init_help=short ;;
  787. -host | --host | --hos | --ho)
  788. ac_prev=host_alias ;;
  789. -host=* | --host=* | --hos=* | --ho=*)
  790. host_alias=$ac_optarg ;;
  791. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  792. ac_prev=htmldir ;;
  793. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  794. | --ht=*)
  795. htmldir=$ac_optarg ;;
  796. -includedir | --includedir | --includedi | --included | --include \
  797. | --includ | --inclu | --incl | --inc)
  798. ac_prev=includedir ;;
  799. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  800. | --includ=* | --inclu=* | --incl=* | --inc=*)
  801. includedir=$ac_optarg ;;
  802. -infodir | --infodir | --infodi | --infod | --info | --inf)
  803. ac_prev=infodir ;;
  804. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  805. infodir=$ac_optarg ;;
  806. -libdir | --libdir | --libdi | --libd)
  807. ac_prev=libdir ;;
  808. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  809. libdir=$ac_optarg ;;
  810. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  811. | --libexe | --libex | --libe)
  812. ac_prev=libexecdir ;;
  813. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  814. | --libexe=* | --libex=* | --libe=*)
  815. libexecdir=$ac_optarg ;;
  816. -localedir | --localedir | --localedi | --localed | --locale)
  817. ac_prev=localedir ;;
  818. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  819. localedir=$ac_optarg ;;
  820. -localstatedir | --localstatedir | --localstatedi | --localstated \
  821. | --localstate | --localstat | --localsta | --localst | --locals)
  822. ac_prev=localstatedir ;;
  823. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  824. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  825. localstatedir=$ac_optarg ;;
  826. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  827. ac_prev=mandir ;;
  828. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  829. mandir=$ac_optarg ;;
  830. -nfp | --nfp | --nf)
  831. # Obsolete; use --without-fp.
  832. with_fp=no ;;
  833. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  834. | --no-cr | --no-c | -n)
  835. no_create=yes ;;
  836. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  837. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  838. no_recursion=yes ;;
  839. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  840. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  841. | --oldin | --oldi | --old | --ol | --o)
  842. ac_prev=oldincludedir ;;
  843. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  844. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  845. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  846. oldincludedir=$ac_optarg ;;
  847. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  848. ac_prev=prefix ;;
  849. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  850. prefix=$ac_optarg ;;
  851. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  852. | --program-pre | --program-pr | --program-p)
  853. ac_prev=program_prefix ;;
  854. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  855. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  856. program_prefix=$ac_optarg ;;
  857. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  858. | --program-suf | --program-su | --program-s)
  859. ac_prev=program_suffix ;;
  860. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  861. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  862. program_suffix=$ac_optarg ;;
  863. -program-transform-name | --program-transform-name \
  864. | --program-transform-nam | --program-transform-na \
  865. | --program-transform-n | --program-transform- \
  866. | --program-transform | --program-transfor \
  867. | --program-transfo | --program-transf \
  868. | --program-trans | --program-tran \
  869. | --progr-tra | --program-tr | --program-t)
  870. ac_prev=program_transform_name ;;
  871. -program-transform-name=* | --program-transform-name=* \
  872. | --program-transform-nam=* | --program-transform-na=* \
  873. | --program-transform-n=* | --program-transform-=* \
  874. | --program-transform=* | --program-transfor=* \
  875. | --program-transfo=* | --program-transf=* \
  876. | --program-trans=* | --program-tran=* \
  877. | --progr-tra=* | --program-tr=* | --program-t=*)
  878. program_transform_name=$ac_optarg ;;
  879. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  880. ac_prev=pdfdir ;;
  881. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  882. pdfdir=$ac_optarg ;;
  883. -psdir | --psdir | --psdi | --psd | --ps)
  884. ac_prev=psdir ;;
  885. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  886. psdir=$ac_optarg ;;
  887. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  888. | -silent | --silent | --silen | --sile | --sil)
  889. silent=yes ;;
  890. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  891. ac_prev=sbindir ;;
  892. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  893. | --sbi=* | --sb=*)
  894. sbindir=$ac_optarg ;;
  895. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  896. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  897. | --sharedst | --shareds | --shared | --share | --shar \
  898. | --sha | --sh)
  899. ac_prev=sharedstatedir ;;
  900. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  901. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  902. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  903. | --sha=* | --sh=*)
  904. sharedstatedir=$ac_optarg ;;
  905. -site | --site | --sit)
  906. ac_prev=site ;;
  907. -site=* | --site=* | --sit=*)
  908. site=$ac_optarg ;;
  909. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  910. ac_prev=srcdir ;;
  911. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  912. srcdir=$ac_optarg ;;
  913. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  914. | --syscon | --sysco | --sysc | --sys | --sy)
  915. ac_prev=sysconfdir ;;
  916. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  917. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  918. sysconfdir=$ac_optarg ;;
  919. -target | --target | --targe | --targ | --tar | --ta | --t)
  920. ac_prev=target_alias ;;
  921. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  922. target_alias=$ac_optarg ;;
  923. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  924. verbose=yes ;;
  925. -version | --version | --versio | --versi | --vers | -V)
  926. ac_init_version=: ;;
  927. -with-* | --with-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid package name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "with_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval with_$ac_useropt=\$ac_optarg ;;
  942. -without-* | --without-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error "invalid package name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "with_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval with_$ac_useropt=no ;;
  957. --x)
  958. # Obsolete; use --with-x.
  959. with_x=yes ;;
  960. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  961. | --x-incl | --x-inc | --x-in | --x-i)
  962. ac_prev=x_includes ;;
  963. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  964. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  965. x_includes=$ac_optarg ;;
  966. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  967. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  968. ac_prev=x_libraries ;;
  969. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  970. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  971. x_libraries=$ac_optarg ;;
  972. -*) as_fn_error "unrecognized option: \`$ac_option'
  973. Try \`$0 --help' for more information."
  974. ;;
  975. *=*)
  976. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  977. # Reject names that are not valid shell variable names.
  978. case $ac_envvar in #(
  979. '' | [0-9]* | *[!_$as_cr_alnum]* )
  980. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  981. esac
  982. eval $ac_envvar=\$ac_optarg
  983. export $ac_envvar ;;
  984. *)
  985. # FIXME: should be removed in autoconf 3.0.
  986. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  987. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  988. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  989. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  990. ;;
  991. esac
  992. done
  993. if test -n "$ac_prev"; then
  994. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  995. as_fn_error "missing argument to $ac_option"
  996. fi
  997. if test -n "$ac_unrecognized_opts"; then
  998. case $enable_option_checking in
  999. no) ;;
  1000. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1001. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1002. esac
  1003. fi
  1004. # Check all directory arguments for consistency.
  1005. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1006. datadir sysconfdir sharedstatedir localstatedir includedir \
  1007. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1008. libdir localedir mandir
  1009. do
  1010. eval ac_val=\$$ac_var
  1011. # Remove trailing slashes.
  1012. case $ac_val in
  1013. */ )
  1014. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1015. eval $ac_var=\$ac_val;;
  1016. esac
  1017. # Be sure to have absolute directory names.
  1018. case $ac_val in
  1019. [\\/$]* | ?:[\\/]* ) continue;;
  1020. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1021. esac
  1022. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1023. done
  1024. # There might be people who depend on the old broken behavior: `$host'
  1025. # used to hold the argument of --host etc.
  1026. # FIXME: To remove some day.
  1027. build=$build_alias
  1028. host=$host_alias
  1029. target=$target_alias
  1030. # FIXME: To remove some day.
  1031. if test "x$host_alias" != x; then
  1032. if test "x$build_alias" = x; then
  1033. cross_compiling=maybe
  1034. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1035. If a cross compiler is detected then cross compile mode will be used." >&2
  1036. elif test "x$build_alias" != "x$host_alias"; then
  1037. cross_compiling=yes
  1038. fi
  1039. fi
  1040. ac_tool_prefix=
  1041. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1042. test "$silent" = yes && exec 6>/dev/null
  1043. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1044. ac_ls_di=`ls -di .` &&
  1045. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1046. as_fn_error "working directory cannot be determined"
  1047. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1048. as_fn_error "pwd does not report name of working directory"
  1049. # Find the source files, if location was not specified.
  1050. if test -z "$srcdir"; then
  1051. ac_srcdir_defaulted=yes
  1052. # Try the directory containing this script, then the parent directory.
  1053. ac_confdir=`$as_dirname -- "$as_myself" ||
  1054. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1055. X"$as_myself" : 'X\(//\)[^/]' \| \
  1056. X"$as_myself" : 'X\(//\)$' \| \
  1057. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1058. $as_echo X"$as_myself" |
  1059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1060. s//\1/
  1061. q
  1062. }
  1063. /^X\(\/\/\)[^/].*/{
  1064. s//\1/
  1065. q
  1066. }
  1067. /^X\(\/\/\)$/{
  1068. s//\1/
  1069. q
  1070. }
  1071. /^X\(\/\).*/{
  1072. s//\1/
  1073. q
  1074. }
  1075. s/.*/./; q'`
  1076. srcdir=$ac_confdir
  1077. if test ! -r "$srcdir/$ac_unique_file"; then
  1078. srcdir=..
  1079. fi
  1080. else
  1081. ac_srcdir_defaulted=no
  1082. fi
  1083. if test ! -r "$srcdir/$ac_unique_file"; then
  1084. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1085. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1086. fi
  1087. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1088. ac_abs_confdir=`(
  1089. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1090. pwd)`
  1091. # When building in place, set srcdir=.
  1092. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1093. srcdir=.
  1094. fi
  1095. # Remove unnecessary trailing slashes from srcdir.
  1096. # Double slashes in file names in object file debugging info
  1097. # mess up M-x gdb in Emacs.
  1098. case $srcdir in
  1099. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1100. esac
  1101. for ac_var in $ac_precious_vars; do
  1102. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1103. eval ac_env_${ac_var}_value=\$${ac_var}
  1104. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1105. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1106. done
  1107. #
  1108. # Report the --help message.
  1109. #
  1110. if test "$ac_init_help" = "long"; then
  1111. # Omit some internal or obsolete options to make the list less imposing.
  1112. # This message is too long to be a string in the A/UX 3.1 sh.
  1113. cat <<_ACEOF
  1114. \`configure' configures this package to adapt to many kinds of systems.
  1115. Usage: $0 [OPTION]... [VAR=VALUE]...
  1116. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1117. VAR=VALUE. See below for descriptions of some of the useful variables.
  1118. Defaults for the options are specified in brackets.
  1119. Configuration:
  1120. -h, --help display this help and exit
  1121. --help=short display options specific to this package
  1122. --help=recursive display the short help of all the included packages
  1123. -V, --version display version information and exit
  1124. -q, --quiet, --silent do not print \`checking...' messages
  1125. --cache-file=FILE cache test results in FILE [disabled]
  1126. -C, --config-cache alias for \`--cache-file=config.cache'
  1127. -n, --no-create do not create output files
  1128. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1129. Installation directories:
  1130. --prefix=PREFIX install architecture-independent files in PREFIX
  1131. [$ac_default_prefix]
  1132. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1133. [PREFIX]
  1134. By default, \`make install' will install all the files in
  1135. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1136. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1137. for instance \`--prefix=\$HOME'.
  1138. For better control, use the options below.
  1139. Fine tuning of the installation directories:
  1140. --bindir=DIR user executables [EPREFIX/bin]
  1141. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1142. --libexecdir=DIR program executables [EPREFIX/libexec]
  1143. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1144. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1145. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1146. --libdir=DIR object code libraries [EPREFIX/lib]
  1147. --includedir=DIR C header files [PREFIX/include]
  1148. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1149. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1150. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1151. --infodir=DIR info documentation [DATAROOTDIR/info]
  1152. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1153. --mandir=DIR man documentation [DATAROOTDIR/man]
  1154. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1155. --htmldir=DIR html documentation [DOCDIR]
  1156. --dvidir=DIR dvi documentation [DOCDIR]
  1157. --pdfdir=DIR pdf documentation [DOCDIR]
  1158. --psdir=DIR ps documentation [DOCDIR]
  1159. _ACEOF
  1160. cat <<\_ACEOF
  1161. _ACEOF
  1162. fi
  1163. if test -n "$ac_init_help"; then
  1164. cat <<\_ACEOF
  1165. Optional Features:
  1166. --disable-option-checking ignore unrecognized --enable/--with options
  1167. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1168. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1169. --disable-ipv6 disable IPv6 support
  1170. Optional Packages:
  1171. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1172. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1173. --with-openssl=DIR Path to OpenSSL
  1174. Some influential environment variables:
  1175. CXX C++ compiler command
  1176. CXXFLAGS C++ compiler flags
  1177. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1178. nonstandard directory <lib dir>
  1179. LIBS libraries to pass to the linker, e.g. -l<library>
  1180. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1181. you have headers in a nonstandard directory <include dir>
  1182. CXXCPP C++ preprocessor
  1183. Use these variables to override the choices made by `configure' or to help
  1184. it to find libraries and programs with nonstandard names/locations.
  1185. Report bugs to the package provider.
  1186. _ACEOF
  1187. ac_status=$?
  1188. fi
  1189. if test "$ac_init_help" = "recursive"; then
  1190. # If there are subdirs, report their specific --help.
  1191. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1192. test -d "$ac_dir" ||
  1193. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1194. continue
  1195. ac_builddir=.
  1196. case "$ac_dir" in
  1197. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1198. *)
  1199. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1200. # A ".." for each directory in $ac_dir_suffix.
  1201. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1202. case $ac_top_builddir_sub in
  1203. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1204. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1205. esac ;;
  1206. esac
  1207. ac_abs_top_builddir=$ac_pwd
  1208. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1209. # for backward compatibility:
  1210. ac_top_builddir=$ac_top_build_prefix
  1211. case $srcdir in
  1212. .) # We are building in place.
  1213. ac_srcdir=.
  1214. ac_top_srcdir=$ac_top_builddir_sub
  1215. ac_abs_top_srcdir=$ac_pwd ;;
  1216. [\\/]* | ?:[\\/]* ) # Absolute name.
  1217. ac_srcdir=$srcdir$ac_dir_suffix;
  1218. ac_top_srcdir=$srcdir
  1219. ac_abs_top_srcdir=$srcdir ;;
  1220. *) # Relative name.
  1221. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1222. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1223. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1224. esac
  1225. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1226. cd "$ac_dir" || { ac_status=$?; continue; }
  1227. # Check for guested configure.
  1228. if test -f "$ac_srcdir/configure.gnu"; then
  1229. echo &&
  1230. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1231. elif test -f "$ac_srcdir/configure"; then
  1232. echo &&
  1233. $SHELL "$ac_srcdir/configure" --help=recursive
  1234. else
  1235. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1236. fi || ac_status=$?
  1237. cd "$ac_pwd" || { ac_status=$?; break; }
  1238. done
  1239. fi
  1240. test -n "$ac_init_help" && exit $ac_status
  1241. if $ac_init_version; then
  1242. cat <<\_ACEOF
  1243. configure
  1244. generated by GNU Autoconf 2.65
  1245. Copyright (C) 2009 Free Software Foundation, Inc.
  1246. This configure script is free software; the Free Software Foundation
  1247. gives unlimited permission to copy, distribute and modify it.
  1248. Copyright (c) 2003 - 2010 Bryan Drewery
  1249. _ACEOF
  1250. exit
  1251. fi
  1252. ## ------------------------ ##
  1253. ## Autoconf initialization. ##
  1254. ## ------------------------ ##
  1255. # ac_fn_cxx_try_compile LINENO
  1256. # ----------------------------
  1257. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1258. ac_fn_cxx_try_compile ()
  1259. {
  1260. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1261. rm -f conftest.$ac_objext
  1262. if { { ac_try="$ac_compile"
  1263. case "(($ac_try" in
  1264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1265. *) ac_try_echo=$ac_try;;
  1266. esac
  1267. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1268. $as_echo "$ac_try_echo"; } >&5
  1269. (eval "$ac_compile") 2>conftest.err
  1270. ac_status=$?
  1271. if test -s conftest.err; then
  1272. grep -v '^ *+' conftest.err >conftest.er1
  1273. cat conftest.er1 >&5
  1274. mv -f conftest.er1 conftest.err
  1275. fi
  1276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1277. test $ac_status = 0; } && {
  1278. test -z "$ac_cxx_werror_flag" ||
  1279. test ! -s conftest.err
  1280. } && test -s conftest.$ac_objext; then :
  1281. ac_retval=0
  1282. else
  1283. $as_echo "$as_me: failed program was:" >&5
  1284. sed 's/^/| /' conftest.$ac_ext >&5
  1285. ac_retval=1
  1286. fi
  1287. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1288. as_fn_set_status $ac_retval
  1289. } # ac_fn_cxx_try_compile
  1290. # ac_fn_cxx_try_cpp LINENO
  1291. # ------------------------
  1292. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1293. ac_fn_cxx_try_cpp ()
  1294. {
  1295. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1296. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1297. case "(($ac_try" in
  1298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1299. *) ac_try_echo=$ac_try;;
  1300. esac
  1301. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1302. $as_echo "$ac_try_echo"; } >&5
  1303. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1304. ac_status=$?
  1305. if test -s conftest.err; then
  1306. grep -v '^ *+' conftest.err >conftest.er1
  1307. cat conftest.er1 >&5
  1308. mv -f conftest.er1 conftest.err
  1309. fi
  1310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1311. test $ac_status = 0; } >/dev/null && {
  1312. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1313. test ! -s conftest.err
  1314. }; then :
  1315. ac_retval=0
  1316. else
  1317. $as_echo "$as_me: failed program was:" >&5
  1318. sed 's/^/| /' conftest.$ac_ext >&5
  1319. ac_retval=1
  1320. fi
  1321. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1322. as_fn_set_status $ac_retval
  1323. } # ac_fn_cxx_try_cpp
  1324. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1325. # ---------------------------------------------------------
  1326. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1327. # the include files in INCLUDES and setting the cache variable VAR
  1328. # accordingly.
  1329. ac_fn_cxx_check_header_mongrel ()
  1330. {
  1331. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1332. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1334. $as_echo_n "checking for $2... " >&6; }
  1335. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1336. $as_echo_n "(cached) " >&6
  1337. fi
  1338. eval ac_res=\$$3
  1339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1340. $as_echo "$ac_res" >&6; }
  1341. else
  1342. # Is the header compilable?
  1343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1344. $as_echo_n "checking $2 usability... " >&6; }
  1345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1346. /* end confdefs.h. */
  1347. $4
  1348. #include <$2>
  1349. _ACEOF
  1350. if ac_fn_cxx_try_compile "$LINENO"; then :
  1351. ac_header_compiler=yes
  1352. else
  1353. ac_header_compiler=no
  1354. fi
  1355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1357. $as_echo "$ac_header_compiler" >&6; }
  1358. # Is the header present?
  1359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1360. $as_echo_n "checking $2 presence... " >&6; }
  1361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1362. /* end confdefs.h. */
  1363. #include <$2>
  1364. _ACEOF
  1365. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1366. ac_header_preproc=yes
  1367. else
  1368. ac_header_preproc=no
  1369. fi
  1370. rm -f conftest.err conftest.$ac_ext
  1371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1372. $as_echo "$ac_header_preproc" >&6; }
  1373. # So? What about this header?
  1374. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1375. yes:no: )
  1376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1377. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1379. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1380. ;;
  1381. no:yes:* )
  1382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1383. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1385. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1387. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1389. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1391. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1392. ;;
  1393. esac
  1394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1395. $as_echo_n "checking for $2... " >&6; }
  1396. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1397. $as_echo_n "(cached) " >&6
  1398. else
  1399. eval "$3=\$ac_header_compiler"
  1400. fi
  1401. eval ac_res=\$$3
  1402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1403. $as_echo "$ac_res" >&6; }
  1404. fi
  1405. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1406. } # ac_fn_cxx_check_header_mongrel
  1407. # ac_fn_cxx_try_run LINENO
  1408. # ------------------------
  1409. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1410. # that executables *can* be run.
  1411. ac_fn_cxx_try_run ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. if { { ac_try="$ac_link"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_link") 2>&5
  1422. ac_status=$?
  1423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1424. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1425. { { case "(($ac_try" in
  1426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1427. *) ac_try_echo=$ac_try;;
  1428. esac
  1429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1430. $as_echo "$ac_try_echo"; } >&5
  1431. (eval "$ac_try") 2>&5
  1432. ac_status=$?
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; }; }; then :
  1435. ac_retval=0
  1436. else
  1437. $as_echo "$as_me: program exited with status $ac_status" >&5
  1438. $as_echo "$as_me: failed program was:" >&5
  1439. sed 's/^/| /' conftest.$ac_ext >&5
  1440. ac_retval=$ac_status
  1441. fi
  1442. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1443. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1444. as_fn_set_status $ac_retval
  1445. } # ac_fn_cxx_try_run
  1446. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1447. # ---------------------------------------------------------
  1448. # Tests whether HEADER exists and can be compiled using the include files in
  1449. # INCLUDES, setting the cache variable VAR accordingly.
  1450. ac_fn_cxx_check_header_compile ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1454. $as_echo_n "checking for $2... " >&6; }
  1455. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1456. $as_echo_n "(cached) " >&6
  1457. else
  1458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1459. /* end confdefs.h. */
  1460. $4
  1461. #include <$2>
  1462. _ACEOF
  1463. if ac_fn_cxx_try_compile "$LINENO"; then :
  1464. eval "$3=yes"
  1465. else
  1466. eval "$3=no"
  1467. fi
  1468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1469. fi
  1470. eval ac_res=\$$3
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1472. $as_echo "$ac_res" >&6; }
  1473. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1474. } # ac_fn_cxx_check_header_compile
  1475. # ac_fn_cxx_try_link LINENO
  1476. # -------------------------
  1477. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_cxx_try_link ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext conftest$ac_exeext
  1482. if { { ac_try="$ac_link"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_link") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_cxx_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest$ac_exeext && {
  1501. test "$cross_compiling" = yes ||
  1502. $as_test_x conftest$ac_exeext
  1503. }; then :
  1504. ac_retval=0
  1505. else
  1506. $as_echo "$as_me: failed program was:" >&5
  1507. sed 's/^/| /' conftest.$ac_ext >&5
  1508. ac_retval=1
  1509. fi
  1510. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1511. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1512. # interfere with the next link command; also delete a directory that is
  1513. # left behind by Apple's compiler. We do this before executing the actions.
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_cxx_try_link
  1518. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1519. # ---------------------------------------------
  1520. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1521. # variable VAR accordingly.
  1522. ac_fn_cxx_check_type ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. eval "$3=no"
  1531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1532. /* end confdefs.h. */
  1533. $4
  1534. int
  1535. main ()
  1536. {
  1537. if (sizeof ($2))
  1538. return 0;
  1539. ;
  1540. return 0;
  1541. }
  1542. _ACEOF
  1543. if ac_fn_cxx_try_compile "$LINENO"; then :
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. int
  1548. main ()
  1549. {
  1550. if (sizeof (($2)))
  1551. return 0;
  1552. ;
  1553. return 0;
  1554. }
  1555. _ACEOF
  1556. if ac_fn_cxx_try_compile "$LINENO"; then :
  1557. else
  1558. eval "$3=yes"
  1559. fi
  1560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1561. fi
  1562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1563. fi
  1564. eval ac_res=\$$3
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1566. $as_echo "$ac_res" >&6; }
  1567. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1568. } # ac_fn_cxx_check_type
  1569. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  1570. # ----------------------------------------------
  1571. # Tries to find the compile-time value of EXPR in a program that includes
  1572. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1573. # computed
  1574. ac_fn_cxx_compute_int ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. if test "$cross_compiling" = yes; then
  1578. # Depending upon the size, compute the lo and hi bounds.
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. $4
  1582. int
  1583. main ()
  1584. {
  1585. static int test_array [1 - 2 * !(($2) >= 0)];
  1586. test_array [0] = 0
  1587. ;
  1588. return 0;
  1589. }
  1590. _ACEOF
  1591. if ac_fn_cxx_try_compile "$LINENO"; then :
  1592. ac_lo=0 ac_mid=0
  1593. while :; do
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. int
  1598. main ()
  1599. {
  1600. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1601. test_array [0] = 0
  1602. ;
  1603. return 0;
  1604. }
  1605. _ACEOF
  1606. if ac_fn_cxx_try_compile "$LINENO"; then :
  1607. ac_hi=$ac_mid; break
  1608. else
  1609. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1610. if test $ac_lo -le $ac_mid; then
  1611. ac_lo= ac_hi=
  1612. break
  1613. fi
  1614. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1615. fi
  1616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1617. done
  1618. else
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. $4
  1622. int
  1623. main ()
  1624. {
  1625. static int test_array [1 - 2 * !(($2) < 0)];
  1626. test_array [0] = 0
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. if ac_fn_cxx_try_compile "$LINENO"; then :
  1632. ac_hi=-1 ac_mid=-1
  1633. while :; do
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. int
  1638. main ()
  1639. {
  1640. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1641. test_array [0] = 0
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_cxx_try_compile "$LINENO"; then :
  1647. ac_lo=$ac_mid; break
  1648. else
  1649. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1650. if test $ac_mid -le $ac_hi; then
  1651. ac_lo= ac_hi=
  1652. break
  1653. fi
  1654. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. done
  1658. else
  1659. ac_lo= ac_hi=
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1662. fi
  1663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. # Binary search between lo and hi bounds.
  1665. while test "x$ac_lo" != "x$ac_hi"; do
  1666. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1668. /* end confdefs.h. */
  1669. $4
  1670. int
  1671. main ()
  1672. {
  1673. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1674. test_array [0] = 0
  1675. ;
  1676. return 0;
  1677. }
  1678. _ACEOF
  1679. if ac_fn_cxx_try_compile "$LINENO"; then :
  1680. ac_hi=$ac_mid
  1681. else
  1682. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1685. done
  1686. case $ac_lo in #((
  1687. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1688. '') ac_retval=1 ;;
  1689. esac
  1690. else
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. $4
  1694. static long int longval () { return $2; }
  1695. static unsigned long int ulongval () { return $2; }
  1696. #include <stdio.h>
  1697. #include <stdlib.h>
  1698. int
  1699. main ()
  1700. {
  1701. FILE *f = fopen ("conftest.val", "w");
  1702. if (! f)
  1703. return 1;
  1704. if (($2) < 0)
  1705. {
  1706. long int i = longval ();
  1707. if (i != ($2))
  1708. return 1;
  1709. fprintf (f, "%ld", i);
  1710. }
  1711. else
  1712. {
  1713. unsigned long int i = ulongval ();
  1714. if (i != ($2))
  1715. return 1;
  1716. fprintf (f, "%lu", i);
  1717. }
  1718. /* Do not output a trailing newline, as this causes \r\n confusion
  1719. on some platforms. */
  1720. return ferror (f) || fclose (f) != 0;
  1721. ;
  1722. return 0;
  1723. }
  1724. _ACEOF
  1725. if ac_fn_cxx_try_run "$LINENO"; then :
  1726. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1727. else
  1728. ac_retval=1
  1729. fi
  1730. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1731. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1732. rm -f conftest.val
  1733. fi
  1734. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_cxx_compute_int
  1737. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1738. # ------------------------------------------------------
  1739. # Tries to find if the field MEMBER exists in type AGGR, after including
  1740. # INCLUDES, setting cache variable VAR accordingly.
  1741. ac_fn_cxx_check_member ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1745. $as_echo_n "checking for $2.$3... " >&6; }
  1746. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  1747. $as_echo_n "(cached) " >&6
  1748. else
  1749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1750. /* end confdefs.h. */
  1751. $5
  1752. int
  1753. main ()
  1754. {
  1755. static $2 ac_aggr;
  1756. if (ac_aggr.$3)
  1757. return 0;
  1758. ;
  1759. return 0;
  1760. }
  1761. _ACEOF
  1762. if ac_fn_cxx_try_compile "$LINENO"; then :
  1763. eval "$4=yes"
  1764. else
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. $5
  1768. int
  1769. main ()
  1770. {
  1771. static $2 ac_aggr;
  1772. if (sizeof ac_aggr.$3)
  1773. return 0;
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_cxx_try_compile "$LINENO"; then :
  1779. eval "$4=yes"
  1780. else
  1781. eval "$4=no"
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1786. fi
  1787. eval ac_res=\$$4
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1789. $as_echo "$ac_res" >&6; }
  1790. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1791. } # ac_fn_cxx_check_member
  1792. # ac_fn_cxx_check_decl LINENO SYMBOL VAR
  1793. # --------------------------------------
  1794. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1795. ac_fn_cxx_check_decl ()
  1796. {
  1797. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  1799. $as_echo_n "checking whether $2 is declared... " >&6; }
  1800. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1801. $as_echo_n "(cached) " >&6
  1802. else
  1803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. #ifndef $2
  1810. (void) $2;
  1811. #endif
  1812. ;
  1813. return 0;
  1814. }
  1815. _ACEOF
  1816. if ac_fn_cxx_try_compile "$LINENO"; then :
  1817. eval "$3=yes"
  1818. else
  1819. eval "$3=no"
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1827. } # ac_fn_cxx_check_decl
  1828. # ac_fn_cxx_check_func LINENO FUNC VAR
  1829. # ------------------------------------
  1830. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1831. ac_fn_cxx_check_func ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1835. $as_echo_n "checking for $2... " >&6; }
  1836. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1837. $as_echo_n "(cached) " >&6
  1838. else
  1839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1840. /* end confdefs.h. */
  1841. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1843. #define $2 innocuous_$2
  1844. /* System header to define __stub macros and hopefully few prototypes,
  1845. which can conflict with char $2 (); below.
  1846. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1847. <limits.h> exists even on freestanding compilers. */
  1848. #ifdef __STDC__
  1849. # include <limits.h>
  1850. #else
  1851. # include <assert.h>
  1852. #endif
  1853. #undef $2
  1854. /* Override any GCC internal prototype to avoid an error.
  1855. Use char because int might match the return type of a GCC
  1856. builtin and then its argument prototype would still apply. */
  1857. #ifdef __cplusplus
  1858. extern "C"
  1859. #endif
  1860. char $2 ();
  1861. /* The GNU C library defines this for functions which it implements
  1862. to always fail with ENOSYS. Some functions are actually named
  1863. something starting with __ and the normal name is an alias. */
  1864. #if defined __stub_$2 || defined __stub___$2
  1865. choke me
  1866. #endif
  1867. int
  1868. main ()
  1869. {
  1870. return $2 ();
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_cxx_try_link "$LINENO"; then :
  1876. eval "$3=yes"
  1877. else
  1878. eval "$3=no"
  1879. fi
  1880. rm -f core conftest.err conftest.$ac_objext \
  1881. conftest$ac_exeext conftest.$ac_ext
  1882. fi
  1883. eval ac_res=\$$3
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1885. $as_echo "$ac_res" >&6; }
  1886. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1887. } # ac_fn_cxx_check_func
  1888. cat >config.log <<_ACEOF
  1889. This file contains any messages produced by compilers while
  1890. running configure, to aid debugging if configure makes a mistake.
  1891. It was created by $as_me, which was
  1892. generated by GNU Autoconf 2.65. Invocation command line was
  1893. $ $0 $@
  1894. _ACEOF
  1895. exec 5>>config.log
  1896. {
  1897. cat <<_ASUNAME
  1898. ## --------- ##
  1899. ## Platform. ##
  1900. ## --------- ##
  1901. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1902. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1903. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1904. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1905. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1906. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1907. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1908. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1909. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1910. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1911. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1912. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1913. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1914. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1915. _ASUNAME
  1916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1917. for as_dir in $PATH
  1918. do
  1919. IFS=$as_save_IFS
  1920. test -z "$as_dir" && as_dir=.
  1921. $as_echo "PATH: $as_dir"
  1922. done
  1923. IFS=$as_save_IFS
  1924. } >&5
  1925. cat >&5 <<_ACEOF
  1926. ## ----------- ##
  1927. ## Core tests. ##
  1928. ## ----------- ##
  1929. _ACEOF
  1930. # Keep a trace of the command line.
  1931. # Strip out --no-create and --no-recursion so they do not pile up.
  1932. # Strip out --silent because we don't want to record it for future runs.
  1933. # Also quote any args containing shell meta-characters.
  1934. # Make two passes to allow for proper duplicate-argument suppression.
  1935. ac_configure_args=
  1936. ac_configure_args0=
  1937. ac_configure_args1=
  1938. ac_must_keep_next=false
  1939. for ac_pass in 1 2
  1940. do
  1941. for ac_arg
  1942. do
  1943. case $ac_arg in
  1944. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1945. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1946. | -silent | --silent | --silen | --sile | --sil)
  1947. continue ;;
  1948. *\'*)
  1949. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1950. esac
  1951. case $ac_pass in
  1952. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1953. 2)
  1954. as_fn_append ac_configure_args1 " '$ac_arg'"
  1955. if test $ac_must_keep_next = true; then
  1956. ac_must_keep_next=false # Got value, back to normal.
  1957. else
  1958. case $ac_arg in
  1959. *=* | --config-cache | -C | -disable-* | --disable-* \
  1960. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1961. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1962. | -with-* | --with-* | -without-* | --without-* | --x)
  1963. case "$ac_configure_args0 " in
  1964. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1965. esac
  1966. ;;
  1967. -* ) ac_must_keep_next=true ;;
  1968. esac
  1969. fi
  1970. as_fn_append ac_configure_args " '$ac_arg'"
  1971. ;;
  1972. esac
  1973. done
  1974. done
  1975. { ac_configure_args0=; unset ac_configure_args0;}
  1976. { ac_configure_args1=; unset ac_configure_args1;}
  1977. # When interrupted or exit'd, cleanup temporary files, and complete
  1978. # config.log. We remove comments because anyway the quotes in there
  1979. # would cause problems or look ugly.
  1980. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1981. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1982. trap 'exit_status=$?
  1983. # Save into config.log some information that might help in debugging.
  1984. {
  1985. echo
  1986. cat <<\_ASBOX
  1987. ## ---------------- ##
  1988. ## Cache variables. ##
  1989. ## ---------------- ##
  1990. _ASBOX
  1991. echo
  1992. # The following way of writing the cache mishandles newlines in values,
  1993. (
  1994. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1995. eval ac_val=\$$ac_var
  1996. case $ac_val in #(
  1997. *${as_nl}*)
  1998. case $ac_var in #(
  1999. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2000. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2001. esac
  2002. case $ac_var in #(
  2003. _ | IFS | as_nl) ;; #(
  2004. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2005. *) { eval $ac_var=; unset $ac_var;} ;;
  2006. esac ;;
  2007. esac
  2008. done
  2009. (set) 2>&1 |
  2010. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2011. *${as_nl}ac_space=\ *)
  2012. sed -n \
  2013. "s/'\''/'\''\\\\'\'''\''/g;
  2014. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2015. ;; #(
  2016. *)
  2017. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2018. ;;
  2019. esac |
  2020. sort
  2021. )
  2022. echo
  2023. cat <<\_ASBOX
  2024. ## ----------------- ##
  2025. ## Output variables. ##
  2026. ## ----------------- ##
  2027. _ASBOX
  2028. echo
  2029. for ac_var in $ac_subst_vars
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. if test -n "$ac_subst_files"; then
  2039. cat <<\_ASBOX
  2040. ## ------------------- ##
  2041. ## File substitutions. ##
  2042. ## ------------------- ##
  2043. _ASBOX
  2044. echo
  2045. for ac_var in $ac_subst_files
  2046. do
  2047. eval ac_val=\$$ac_var
  2048. case $ac_val in
  2049. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2050. esac
  2051. $as_echo "$ac_var='\''$ac_val'\''"
  2052. done | sort
  2053. echo
  2054. fi
  2055. if test -s confdefs.h; then
  2056. cat <<\_ASBOX
  2057. ## ----------- ##
  2058. ## confdefs.h. ##
  2059. ## ----------- ##
  2060. _ASBOX
  2061. echo
  2062. cat confdefs.h
  2063. echo
  2064. fi
  2065. test "$ac_signal" != 0 &&
  2066. $as_echo "$as_me: caught signal $ac_signal"
  2067. $as_echo "$as_me: exit $exit_status"
  2068. } >&5
  2069. rm -f core *.core core.conftest.* &&
  2070. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2071. exit $exit_status
  2072. ' 0
  2073. for ac_signal in 1 2 13 15; do
  2074. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2075. done
  2076. ac_signal=0
  2077. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2078. rm -f -r conftest* confdefs.h
  2079. $as_echo "/* confdefs.h */" > confdefs.h
  2080. # Predefined preprocessor variables.
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_NAME "$PACKAGE_NAME"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_STRING "$PACKAGE_STRING"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_URL "$PACKAGE_URL"
  2098. _ACEOF
  2099. # Let the site file select an alternate cache file if it wants to.
  2100. # Prefer an explicitly selected file to automatically selected ones.
  2101. ac_site_file1=NONE
  2102. ac_site_file2=NONE
  2103. if test -n "$CONFIG_SITE"; then
  2104. ac_site_file1=$CONFIG_SITE
  2105. elif test "x$prefix" != xNONE; then
  2106. ac_site_file1=$prefix/share/config.site
  2107. ac_site_file2=$prefix/etc/config.site
  2108. else
  2109. ac_site_file1=$ac_default_prefix/share/config.site
  2110. ac_site_file2=$ac_default_prefix/etc/config.site
  2111. fi
  2112. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2113. do
  2114. test "x$ac_site_file" = xNONE && continue
  2115. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2117. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2118. sed 's/^/| /' "$ac_site_file" >&5
  2119. . "$ac_site_file"
  2120. fi
  2121. done
  2122. if test -r "$cache_file"; then
  2123. # Some versions of bash will fail to source /dev/null (special files
  2124. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2125. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2127. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2128. case $cache_file in
  2129. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2130. *) . "./$cache_file";;
  2131. esac
  2132. fi
  2133. else
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2135. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2136. >$cache_file
  2137. fi
  2138. as_fn_append ac_header_list " sys/time.h"
  2139. as_fn_append ac_header_list " unistd.h"
  2140. as_fn_append ac_func_list " alarm"
  2141. as_fn_append ac_header_list " stdlib.h"
  2142. as_fn_append ac_header_list " sys/param.h"
  2143. # Check that the precious variables saved in the cache have kept the same
  2144. # value.
  2145. ac_cache_corrupted=false
  2146. for ac_var in $ac_precious_vars; do
  2147. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2148. eval ac_new_set=\$ac_env_${ac_var}_set
  2149. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2150. eval ac_new_val=\$ac_env_${ac_var}_value
  2151. case $ac_old_set,$ac_new_set in
  2152. set,)
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2154. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2155. ac_cache_corrupted=: ;;
  2156. ,set)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,);;
  2161. *)
  2162. if test "x$ac_old_val" != "x$ac_new_val"; then
  2163. # differences in whitespace do not lead to failure.
  2164. ac_old_val_w=`echo x $ac_old_val`
  2165. ac_new_val_w=`echo x $ac_new_val`
  2166. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2168. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2169. ac_cache_corrupted=:
  2170. else
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2172. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2173. eval $ac_var=\$ac_old_val
  2174. fi
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2176. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2178. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2179. fi;;
  2180. esac
  2181. # Pass precious variables to config.status.
  2182. if test "$ac_new_set" = set; then
  2183. case $ac_new_val in
  2184. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2185. *) ac_arg=$ac_var=$ac_new_val ;;
  2186. esac
  2187. case " $ac_configure_args " in
  2188. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2189. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2190. esac
  2191. fi
  2192. done
  2193. if $ac_cache_corrupted; then
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2195. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2197. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2198. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2199. fi
  2200. ## -------------------- ##
  2201. ## Main body of script. ##
  2202. ## -------------------- ##
  2203. ac_ext=c
  2204. ac_cpp='$CPP $CPPFLAGS'
  2205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2208. ac_config_headers="$ac_config_headers config.h"
  2209. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2210. egg_ac_parameters=
  2211. ac_prev=
  2212. for ac_arg in $ac_configure_args; do
  2213. if test -n "$ac_prev"; then
  2214. ac_prev=
  2215. continue
  2216. fi
  2217. case $ac_arg in
  2218. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2219. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2220. ac_prev=cache_file ;;
  2221. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2222. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2223. | --c=*)
  2224. ;;
  2225. --config-cache | -C)
  2226. ;;
  2227. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2228. ac_prev=srcdir ;;
  2229. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2230. ;;
  2231. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2232. esac
  2233. done
  2234. # Setup build environment
  2235. #AC_REQUIRE_CPP
  2236. ac_ext=cpp
  2237. ac_cpp='$CXXCPP $CPPFLAGS'
  2238. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2239. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2240. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2241. ac_ext=cpp
  2242. ac_cpp='$CXXCPP $CPPFLAGS'
  2243. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2244. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2245. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2246. if test -z "$CXX"; then
  2247. if test -n "$CCC"; then
  2248. CXX=$CCC
  2249. else
  2250. if test -n "$ac_tool_prefix"; then
  2251. 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
  2252. do
  2253. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2254. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2256. $as_echo_n "checking for $ac_word... " >&6; }
  2257. if test "${ac_cv_prog_CXX+set}" = set; then :
  2258. $as_echo_n "(cached) " >&6
  2259. else
  2260. if test -n "$CXX"; then
  2261. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2262. else
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2270. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2272. break 2
  2273. fi
  2274. done
  2275. done
  2276. IFS=$as_save_IFS
  2277. fi
  2278. fi
  2279. CXX=$ac_cv_prog_CXX
  2280. if test -n "$CXX"; then
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2282. $as_echo "$CXX" >&6; }
  2283. else
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2285. $as_echo "no" >&6; }
  2286. fi
  2287. test -n "$CXX" && break
  2288. done
  2289. fi
  2290. if test -z "$CXX"; then
  2291. ac_ct_CXX=$CXX
  2292. 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
  2293. do
  2294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2295. set dummy $ac_prog; ac_word=$2
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2297. $as_echo_n "checking for $ac_word... " >&6; }
  2298. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. if test -n "$ac_ct_CXX"; then
  2302. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2311. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. fi
  2319. fi
  2320. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2321. if test -n "$ac_ct_CXX"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2323. $as_echo "$ac_ct_CXX" >&6; }
  2324. else
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. fi
  2328. test -n "$ac_ct_CXX" && break
  2329. done
  2330. if test "x$ac_ct_CXX" = x; then
  2331. CXX="g++"
  2332. else
  2333. case $cross_compiling:$ac_tool_warned in
  2334. yes:)
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2337. ac_tool_warned=yes ;;
  2338. esac
  2339. CXX=$ac_ct_CXX
  2340. fi
  2341. fi
  2342. fi
  2343. fi
  2344. # Provide some information about the compiler.
  2345. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2346. set X $ac_compile
  2347. ac_compiler=$2
  2348. for ac_option in --version -v -V -qversion; do
  2349. { { ac_try="$ac_compiler $ac_option >&5"
  2350. case "(($ac_try" in
  2351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2352. *) ac_try_echo=$ac_try;;
  2353. esac
  2354. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2355. $as_echo "$ac_try_echo"; } >&5
  2356. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2357. ac_status=$?
  2358. if test -s conftest.err; then
  2359. sed '10a\
  2360. ... rest of stderr output deleted ...
  2361. 10q' conftest.err >conftest.er1
  2362. cat conftest.er1 >&5
  2363. fi
  2364. rm -f conftest.er1 conftest.err
  2365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2366. test $ac_status = 0; }
  2367. done
  2368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2369. /* end confdefs.h. */
  2370. int
  2371. main ()
  2372. {
  2373. ;
  2374. return 0;
  2375. }
  2376. _ACEOF
  2377. ac_clean_files_save=$ac_clean_files
  2378. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2379. # Try to create an executable without -o first, disregard a.out.
  2380. # It will help us diagnose broken compilers, and finding out an intuition
  2381. # of exeext.
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2383. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2384. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2385. # The possible output files:
  2386. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2387. ac_rmfiles=
  2388. for ac_file in $ac_files
  2389. do
  2390. case $ac_file in
  2391. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2392. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2393. esac
  2394. done
  2395. rm -f $ac_rmfiles
  2396. if { { ac_try="$ac_link_default"
  2397. case "(($ac_try" in
  2398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2399. *) ac_try_echo=$ac_try;;
  2400. esac
  2401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2402. $as_echo "$ac_try_echo"; } >&5
  2403. (eval "$ac_link_default") 2>&5
  2404. ac_status=$?
  2405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2406. test $ac_status = 0; }; then :
  2407. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2408. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2409. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2410. # so that the user can short-circuit this test for compilers unknown to
  2411. # Autoconf.
  2412. for ac_file in $ac_files ''
  2413. do
  2414. test -f "$ac_file" || continue
  2415. case $ac_file in
  2416. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2417. ;;
  2418. [ab].out )
  2419. # We found the default executable, but exeext='' is most
  2420. # certainly right.
  2421. break;;
  2422. *.* )
  2423. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2424. then :; else
  2425. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2426. fi
  2427. # We set ac_cv_exeext here because the later test for it is not
  2428. # safe: cross compilers may not add the suffix if given an `-o'
  2429. # argument, so we may need to know it at that point already.
  2430. # Even if this section looks crufty: it has the advantage of
  2431. # actually working.
  2432. break;;
  2433. * )
  2434. break;;
  2435. esac
  2436. done
  2437. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2438. else
  2439. ac_file=''
  2440. fi
  2441. if test -z "$ac_file"; then :
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2443. $as_echo "no" >&6; }
  2444. $as_echo "$as_me: failed program was:" >&5
  2445. sed 's/^/| /' conftest.$ac_ext >&5
  2446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2448. { as_fn_set_status 77
  2449. as_fn_error "C++ compiler cannot create executables
  2450. See \`config.log' for more details." "$LINENO" 5; }; }
  2451. else
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2453. $as_echo "yes" >&6; }
  2454. fi
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2456. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2458. $as_echo "$ac_file" >&6; }
  2459. ac_exeext=$ac_cv_exeext
  2460. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2461. ac_clean_files=$ac_clean_files_save
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2463. $as_echo_n "checking for suffix of executables... " >&6; }
  2464. if { { ac_try="$ac_link"
  2465. case "(($ac_try" in
  2466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2467. *) ac_try_echo=$ac_try;;
  2468. esac
  2469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2470. $as_echo "$ac_try_echo"; } >&5
  2471. (eval "$ac_link") 2>&5
  2472. ac_status=$?
  2473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2474. test $ac_status = 0; }; then :
  2475. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2476. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2477. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2478. # `rm'.
  2479. for ac_file in conftest.exe conftest conftest.*; do
  2480. test -f "$ac_file" || continue
  2481. case $ac_file in
  2482. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2483. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2484. break;;
  2485. * ) break;;
  2486. esac
  2487. done
  2488. else
  2489. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2490. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2491. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2492. See \`config.log' for more details." "$LINENO" 5; }
  2493. fi
  2494. rm -f conftest conftest$ac_cv_exeext
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2496. $as_echo "$ac_cv_exeext" >&6; }
  2497. rm -f conftest.$ac_ext
  2498. EXEEXT=$ac_cv_exeext
  2499. ac_exeext=$EXEEXT
  2500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2501. /* end confdefs.h. */
  2502. #include <stdio.h>
  2503. int
  2504. main ()
  2505. {
  2506. FILE *f = fopen ("conftest.out", "w");
  2507. return ferror (f) || fclose (f) != 0;
  2508. ;
  2509. return 0;
  2510. }
  2511. _ACEOF
  2512. ac_clean_files="$ac_clean_files conftest.out"
  2513. # Check that the compiler produces executables we can run. If not, either
  2514. # the compiler is broken, or we cross compile.
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2516. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2517. if test "$cross_compiling" != yes; then
  2518. { { ac_try="$ac_link"
  2519. case "(($ac_try" in
  2520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2521. *) ac_try_echo=$ac_try;;
  2522. esac
  2523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2524. $as_echo "$ac_try_echo"; } >&5
  2525. (eval "$ac_link") 2>&5
  2526. ac_status=$?
  2527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2528. test $ac_status = 0; }
  2529. if { ac_try='./conftest$ac_cv_exeext'
  2530. { { case "(($ac_try" in
  2531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2532. *) ac_try_echo=$ac_try;;
  2533. esac
  2534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2535. $as_echo "$ac_try_echo"; } >&5
  2536. (eval "$ac_try") 2>&5
  2537. ac_status=$?
  2538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2539. test $ac_status = 0; }; }; then
  2540. cross_compiling=no
  2541. else
  2542. if test "$cross_compiling" = maybe; then
  2543. cross_compiling=yes
  2544. else
  2545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2547. as_fn_error "cannot run C++ compiled programs.
  2548. If you meant to cross compile, use \`--host'.
  2549. See \`config.log' for more details." "$LINENO" 5; }
  2550. fi
  2551. fi
  2552. fi
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2554. $as_echo "$cross_compiling" >&6; }
  2555. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2556. ac_clean_files=$ac_clean_files_save
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2558. $as_echo_n "checking for suffix of object files... " >&6; }
  2559. if test "${ac_cv_objext+set}" = set; then :
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2563. /* end confdefs.h. */
  2564. int
  2565. main ()
  2566. {
  2567. ;
  2568. return 0;
  2569. }
  2570. _ACEOF
  2571. rm -f conftest.o conftest.obj
  2572. if { { ac_try="$ac_compile"
  2573. case "(($ac_try" in
  2574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2575. *) ac_try_echo=$ac_try;;
  2576. esac
  2577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2578. $as_echo "$ac_try_echo"; } >&5
  2579. (eval "$ac_compile") 2>&5
  2580. ac_status=$?
  2581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2582. test $ac_status = 0; }; then :
  2583. for ac_file in conftest.o conftest.obj conftest.*; do
  2584. test -f "$ac_file" || continue;
  2585. case $ac_file in
  2586. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2587. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2588. break;;
  2589. esac
  2590. done
  2591. else
  2592. $as_echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2596. as_fn_error "cannot compute suffix of object files: cannot compile
  2597. See \`config.log' for more details." "$LINENO" 5; }
  2598. fi
  2599. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2600. fi
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2602. $as_echo "$ac_cv_objext" >&6; }
  2603. OBJEXT=$ac_cv_objext
  2604. ac_objext=$OBJEXT
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2606. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2607. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2611. /* end confdefs.h. */
  2612. int
  2613. main ()
  2614. {
  2615. #ifndef __GNUC__
  2616. choke me
  2617. #endif
  2618. ;
  2619. return 0;
  2620. }
  2621. _ACEOF
  2622. if ac_fn_cxx_try_compile "$LINENO"; then :
  2623. ac_compiler_gnu=yes
  2624. else
  2625. ac_compiler_gnu=no
  2626. fi
  2627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2628. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2629. fi
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2631. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2632. if test $ac_compiler_gnu = yes; then
  2633. GXX=yes
  2634. else
  2635. GXX=
  2636. fi
  2637. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2638. ac_save_CXXFLAGS=$CXXFLAGS
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2640. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2641. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  2642. $as_echo_n "(cached) " >&6
  2643. else
  2644. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2645. ac_cxx_werror_flag=yes
  2646. ac_cv_prog_cxx_g=no
  2647. CXXFLAGS="-g"
  2648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2649. /* end confdefs.h. */
  2650. int
  2651. main ()
  2652. {
  2653. ;
  2654. return 0;
  2655. }
  2656. _ACEOF
  2657. if ac_fn_cxx_try_compile "$LINENO"; then :
  2658. ac_cv_prog_cxx_g=yes
  2659. else
  2660. CXXFLAGS=""
  2661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2662. /* end confdefs.h. */
  2663. int
  2664. main ()
  2665. {
  2666. ;
  2667. return 0;
  2668. }
  2669. _ACEOF
  2670. if ac_fn_cxx_try_compile "$LINENO"; then :
  2671. else
  2672. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2673. CXXFLAGS="-g"
  2674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2675. /* end confdefs.h. */
  2676. int
  2677. main ()
  2678. {
  2679. ;
  2680. return 0;
  2681. }
  2682. _ACEOF
  2683. if ac_fn_cxx_try_compile "$LINENO"; then :
  2684. ac_cv_prog_cxx_g=yes
  2685. fi
  2686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2687. fi
  2688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2689. fi
  2690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2691. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2694. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2695. if test "$ac_test_CXXFLAGS" = set; then
  2696. CXXFLAGS=$ac_save_CXXFLAGS
  2697. elif test $ac_cv_prog_cxx_g = yes; then
  2698. if test "$GXX" = yes; then
  2699. CXXFLAGS="-g -O2"
  2700. else
  2701. CXXFLAGS="-g"
  2702. fi
  2703. else
  2704. if test "$GXX" = yes; then
  2705. CXXFLAGS="-O2"
  2706. else
  2707. CXXFLAGS=
  2708. fi
  2709. fi
  2710. ac_ext=cpp
  2711. ac_cpp='$CXXCPP $CPPFLAGS'
  2712. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2713. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2714. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2715. if test "${cross_compiling-x}" = "x"
  2716. then
  2717. cat << 'EOF' >&2
  2718. configure: error:
  2719. This system does not appear to have a working C compiler.
  2720. A working C compiler is required to compile Eggdrop.
  2721. EOF
  2722. exit 1
  2723. fi
  2724. if test -n "$GXX"; then
  2725. CXXFLAGS="$CXXFLAGS"
  2726. fi
  2727. # Crazy machines
  2728. ac_ext=cpp
  2729. ac_cpp='$CXXCPP $CPPFLAGS'
  2730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2734. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2735. if test -z "$CXXCPP"; then
  2736. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  2737. $as_echo_n "(cached) " >&6
  2738. else
  2739. # Double quotes because CXXCPP needs to be expanded
  2740. for CXXCPP in "$CXX -E" "/lib/cpp"
  2741. do
  2742. ac_preproc_ok=false
  2743. for ac_cxx_preproc_warn_flag in '' yes
  2744. do
  2745. # Use a header file that comes with gcc, so configuring glibc
  2746. # with a fresh cross-compiler works.
  2747. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2748. # <limits.h> exists even on freestanding compilers.
  2749. # On the NeXT, cc -E runs the code through the compiler's parser,
  2750. # not just through cpp. "Syntax error" is here to catch this case.
  2751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2752. /* end confdefs.h. */
  2753. #ifdef __STDC__
  2754. # include <limits.h>
  2755. #else
  2756. # include <assert.h>
  2757. #endif
  2758. Syntax error
  2759. _ACEOF
  2760. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2761. else
  2762. # Broken: fails on valid input.
  2763. continue
  2764. fi
  2765. rm -f conftest.err conftest.$ac_ext
  2766. # OK, works on sane cases. Now check whether nonexistent headers
  2767. # can be detected and how.
  2768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2769. /* end confdefs.h. */
  2770. #include <ac_nonexistent.h>
  2771. _ACEOF
  2772. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2773. # Broken: success on invalid input.
  2774. continue
  2775. else
  2776. # Passes both tests.
  2777. ac_preproc_ok=:
  2778. break
  2779. fi
  2780. rm -f conftest.err conftest.$ac_ext
  2781. done
  2782. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2783. rm -f conftest.err conftest.$ac_ext
  2784. if $ac_preproc_ok; then :
  2785. break
  2786. fi
  2787. done
  2788. ac_cv_prog_CXXCPP=$CXXCPP
  2789. fi
  2790. CXXCPP=$ac_cv_prog_CXXCPP
  2791. else
  2792. ac_cv_prog_CXXCPP=$CXXCPP
  2793. fi
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2795. $as_echo "$CXXCPP" >&6; }
  2796. ac_preproc_ok=false
  2797. for ac_cxx_preproc_warn_flag in '' yes
  2798. do
  2799. # Use a header file that comes with gcc, so configuring glibc
  2800. # with a fresh cross-compiler works.
  2801. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2802. # <limits.h> exists even on freestanding compilers.
  2803. # On the NeXT, cc -E runs the code through the compiler's parser,
  2804. # not just through cpp. "Syntax error" is here to catch this case.
  2805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2806. /* end confdefs.h. */
  2807. #ifdef __STDC__
  2808. # include <limits.h>
  2809. #else
  2810. # include <assert.h>
  2811. #endif
  2812. Syntax error
  2813. _ACEOF
  2814. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2815. else
  2816. # Broken: fails on valid input.
  2817. continue
  2818. fi
  2819. rm -f conftest.err conftest.$ac_ext
  2820. # OK, works on sane cases. Now check whether nonexistent headers
  2821. # can be detected and how.
  2822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end confdefs.h. */
  2824. #include <ac_nonexistent.h>
  2825. _ACEOF
  2826. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2827. # Broken: success on invalid input.
  2828. continue
  2829. else
  2830. # Passes both tests.
  2831. ac_preproc_ok=:
  2832. break
  2833. fi
  2834. rm -f conftest.err conftest.$ac_ext
  2835. done
  2836. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2837. rm -f conftest.err conftest.$ac_ext
  2838. if $ac_preproc_ok; then :
  2839. else
  2840. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2842. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  2843. See \`config.log' for more details." "$LINENO" 5; }
  2844. fi
  2845. ac_ext=cpp
  2846. ac_cpp='$CXXCPP $CPPFLAGS'
  2847. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2848. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2849. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2851. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2852. if test "${ac_cv_path_GREP+set}" = set; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -z "$GREP"; then
  2856. ac_path_GREP_found=false
  2857. # Loop through the user's path and test for each of PROGNAME-LIST
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_prog in grep ggrep; do
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2866. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2867. # Check for GNU ac_path_GREP and select it if it is found.
  2868. # Check for GNU $ac_path_GREP
  2869. case `"$ac_path_GREP" --version 2>&1` in
  2870. *GNU*)
  2871. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2872. *)
  2873. ac_count=0
  2874. $as_echo_n 0123456789 >"conftest.in"
  2875. while :
  2876. do
  2877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2878. mv "conftest.tmp" "conftest.in"
  2879. cp "conftest.in" "conftest.nl"
  2880. $as_echo 'GREP' >> "conftest.nl"
  2881. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2883. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2884. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2885. # Best one so far, save it but keep looking for a better one
  2886. ac_cv_path_GREP="$ac_path_GREP"
  2887. ac_path_GREP_max=$ac_count
  2888. fi
  2889. # 10*(2^10) chars as input seems more than enough
  2890. test $ac_count -gt 10 && break
  2891. done
  2892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2893. esac
  2894. $ac_path_GREP_found && break 3
  2895. done
  2896. done
  2897. done
  2898. IFS=$as_save_IFS
  2899. if test -z "$ac_cv_path_GREP"; then
  2900. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2901. fi
  2902. else
  2903. ac_cv_path_GREP=$GREP
  2904. fi
  2905. fi
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2907. $as_echo "$ac_cv_path_GREP" >&6; }
  2908. GREP="$ac_cv_path_GREP"
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2910. $as_echo_n "checking for egrep... " >&6; }
  2911. if test "${ac_cv_path_EGREP+set}" = set; then :
  2912. $as_echo_n "(cached) " >&6
  2913. else
  2914. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2915. then ac_cv_path_EGREP="$GREP -E"
  2916. else
  2917. if test -z "$EGREP"; then
  2918. ac_path_EGREP_found=false
  2919. # Loop through the user's path and test for each of PROGNAME-LIST
  2920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2921. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2922. do
  2923. IFS=$as_save_IFS
  2924. test -z "$as_dir" && as_dir=.
  2925. for ac_prog in egrep; do
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2928. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2929. # Check for GNU ac_path_EGREP and select it if it is found.
  2930. # Check for GNU $ac_path_EGREP
  2931. case `"$ac_path_EGREP" --version 2>&1` in
  2932. *GNU*)
  2933. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2934. *)
  2935. ac_count=0
  2936. $as_echo_n 0123456789 >"conftest.in"
  2937. while :
  2938. do
  2939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2940. mv "conftest.tmp" "conftest.in"
  2941. cp "conftest.in" "conftest.nl"
  2942. $as_echo 'EGREP' >> "conftest.nl"
  2943. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2945. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2946. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2947. # Best one so far, save it but keep looking for a better one
  2948. ac_cv_path_EGREP="$ac_path_EGREP"
  2949. ac_path_EGREP_max=$ac_count
  2950. fi
  2951. # 10*(2^10) chars as input seems more than enough
  2952. test $ac_count -gt 10 && break
  2953. done
  2954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2955. esac
  2956. $ac_path_EGREP_found && break 3
  2957. done
  2958. done
  2959. done
  2960. IFS=$as_save_IFS
  2961. if test -z "$ac_cv_path_EGREP"; then
  2962. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2963. fi
  2964. else
  2965. ac_cv_path_EGREP=$EGREP
  2966. fi
  2967. fi
  2968. fi
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2970. $as_echo "$ac_cv_path_EGREP" >&6; }
  2971. EGREP="$ac_cv_path_EGREP"
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2973. $as_echo_n "checking for ANSI C header files... " >&6; }
  2974. if test "${ac_cv_header_stdc+set}" = set; then :
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2978. /* end confdefs.h. */
  2979. #include <stdlib.h>
  2980. #include <stdarg.h>
  2981. #include <string.h>
  2982. #include <float.h>
  2983. int
  2984. main ()
  2985. {
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. if ac_fn_cxx_try_compile "$LINENO"; then :
  2991. ac_cv_header_stdc=yes
  2992. else
  2993. ac_cv_header_stdc=no
  2994. fi
  2995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2996. if test $ac_cv_header_stdc = yes; then
  2997. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2999. /* end confdefs.h. */
  3000. #include <string.h>
  3001. _ACEOF
  3002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3003. $EGREP "memchr" >/dev/null 2>&1; then :
  3004. else
  3005. ac_cv_header_stdc=no
  3006. fi
  3007. rm -f conftest*
  3008. fi
  3009. if test $ac_cv_header_stdc = yes; then
  3010. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3012. /* end confdefs.h. */
  3013. #include <stdlib.h>
  3014. _ACEOF
  3015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3016. $EGREP "free" >/dev/null 2>&1; then :
  3017. else
  3018. ac_cv_header_stdc=no
  3019. fi
  3020. rm -f conftest*
  3021. fi
  3022. if test $ac_cv_header_stdc = yes; then
  3023. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3024. if test "$cross_compiling" = yes; then :
  3025. :
  3026. else
  3027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3028. /* end confdefs.h. */
  3029. #include <ctype.h>
  3030. #include <stdlib.h>
  3031. #if ((' ' & 0x0FF) == 0x020)
  3032. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3033. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3034. #else
  3035. # define ISLOWER(c) \
  3036. (('a' <= (c) && (c) <= 'i') \
  3037. || ('j' <= (c) && (c) <= 'r') \
  3038. || ('s' <= (c) && (c) <= 'z'))
  3039. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3040. #endif
  3041. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3042. int
  3043. main ()
  3044. {
  3045. int i;
  3046. for (i = 0; i < 256; i++)
  3047. if (XOR (islower (i), ISLOWER (i))
  3048. || toupper (i) != TOUPPER (i))
  3049. return 2;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. if ac_fn_cxx_try_run "$LINENO"; then :
  3054. else
  3055. ac_cv_header_stdc=no
  3056. fi
  3057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3058. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3059. fi
  3060. fi
  3061. fi
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3063. $as_echo "$ac_cv_header_stdc" >&6; }
  3064. if test $ac_cv_header_stdc = yes; then
  3065. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3066. fi
  3067. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3068. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3069. inttypes.h stdint.h unistd.h
  3070. do :
  3071. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3072. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3073. "
  3074. eval as_val=\$$as_ac_Header
  3075. if test "x$as_val" = x""yes; then :
  3076. cat >>confdefs.h <<_ACEOF
  3077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3078. _ACEOF
  3079. fi
  3080. done
  3081. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3082. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3083. MINIX=yes
  3084. else
  3085. MINIX=
  3086. fi
  3087. if test "$MINIX" = yes; then
  3088. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3089. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3090. $as_echo "#define _MINIX 1" >>confdefs.h
  3091. fi
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3093. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3094. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3098. /* end confdefs.h. */
  3099. # define __EXTENSIONS__ 1
  3100. $ac_includes_default
  3101. int
  3102. main ()
  3103. {
  3104. ;
  3105. return 0;
  3106. }
  3107. _ACEOF
  3108. if ac_fn_cxx_try_compile "$LINENO"; then :
  3109. ac_cv_safe_to_define___extensions__=yes
  3110. else
  3111. ac_cv_safe_to_define___extensions__=no
  3112. fi
  3113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3116. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3117. test $ac_cv_safe_to_define___extensions__ = yes &&
  3118. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3119. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3120. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3121. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3122. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3124. $as_echo_n "checking for library containing strerror... " >&6; }
  3125. if test "${ac_cv_search_strerror+set}" = set; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. ac_func_search_save_LIBS=$LIBS
  3129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3130. /* end confdefs.h. */
  3131. /* Override any GCC internal prototype to avoid an error.
  3132. Use char because int might match the return type of a GCC
  3133. builtin and then its argument prototype would still apply. */
  3134. #ifdef __cplusplus
  3135. extern "C"
  3136. #endif
  3137. char strerror ();
  3138. int
  3139. main ()
  3140. {
  3141. return strerror ();
  3142. ;
  3143. return 0;
  3144. }
  3145. _ACEOF
  3146. for ac_lib in '' cposix; do
  3147. if test -z "$ac_lib"; then
  3148. ac_res="none required"
  3149. else
  3150. ac_res=-l$ac_lib
  3151. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3152. fi
  3153. if ac_fn_cxx_try_link "$LINENO"; then :
  3154. ac_cv_search_strerror=$ac_res
  3155. fi
  3156. rm -f core conftest.err conftest.$ac_objext \
  3157. conftest$ac_exeext
  3158. if test "${ac_cv_search_strerror+set}" = set; then :
  3159. break
  3160. fi
  3161. done
  3162. if test "${ac_cv_search_strerror+set}" = set; then :
  3163. else
  3164. ac_cv_search_strerror=no
  3165. fi
  3166. rm conftest.$ac_ext
  3167. LIBS=$ac_func_search_save_LIBS
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3170. $as_echo "$ac_cv_search_strerror" >&6; }
  3171. ac_res=$ac_cv_search_strerror
  3172. if test "$ac_res" != no; then :
  3173. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3174. fi
  3175. #checkpoint
  3176. cat >confcache <<\_ACEOF
  3177. # This file is a shell script that caches the results of configure
  3178. # tests run on this system so they can be shared between configure
  3179. # scripts and configure runs, see configure's option --config-cache.
  3180. # It is not useful on other systems. If it contains results you don't
  3181. # want to keep, you may remove or edit it.
  3182. #
  3183. # config.status only pays attention to the cache file if you give it
  3184. # the --recheck option to rerun configure.
  3185. #
  3186. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3187. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3188. # following values.
  3189. _ACEOF
  3190. # The following way of writing the cache mishandles newlines in values,
  3191. # but we know of no workaround that is simple, portable, and efficient.
  3192. # So, we kill variables containing newlines.
  3193. # Ultrix sh set writes to stderr and can't be redirected directly,
  3194. # and sets the high bit in the cache file unless we assign to the vars.
  3195. (
  3196. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3197. eval ac_val=\$$ac_var
  3198. case $ac_val in #(
  3199. *${as_nl}*)
  3200. case $ac_var in #(
  3201. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3202. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3203. esac
  3204. case $ac_var in #(
  3205. _ | IFS | as_nl) ;; #(
  3206. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3207. *) { eval $ac_var=; unset $ac_var;} ;;
  3208. esac ;;
  3209. esac
  3210. done
  3211. (set) 2>&1 |
  3212. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3213. *${as_nl}ac_space=\ *)
  3214. # `set' does not quote correctly, so add quotes: double-quote
  3215. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3216. sed -n \
  3217. "s/'/'\\\\''/g;
  3218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3219. ;; #(
  3220. *)
  3221. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3222. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3223. ;;
  3224. esac |
  3225. sort
  3226. ) |
  3227. sed '
  3228. /^ac_cv_env_/b end
  3229. t clear
  3230. :clear
  3231. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3232. t end
  3233. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3234. :end' >>confcache
  3235. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3236. if test -w "$cache_file"; then
  3237. test "x$cache_file" != "x/dev/null" &&
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3239. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3240. cat confcache >$cache_file
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3243. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3244. fi
  3245. fi
  3246. rm -f confcache
  3247. # Speedup compile
  3248. if test -n "$GXX" && test -z "$no_wall"; then
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3250. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3251. if test "${egg_cv_var_ccwall+set}" = set; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. ac_old_CXXFLAGS="$CXXFLAGS"
  3255. CXXFLAGS="$CXXFLAGS -Wall"
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int main ()
  3259. {
  3260. return(0);
  3261. }
  3262. _ACEOF
  3263. if ac_fn_cxx_try_compile "$LINENO"; then :
  3264. egg_cv_var_ccwall="yes"
  3265. else
  3266. egg_cv_var_ccwall="no"
  3267. fi
  3268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3269. CXXFLAGS="$ac_old_CXXFLAGS"
  3270. fi
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3272. $as_echo "$egg_cv_var_ccwall" >&6; }
  3273. if test "$egg_cv_var_ccwall" = "yes"; then
  3274. CXXFLAGS="$CXXFLAGS -Wall"
  3275. fi
  3276. fi
  3277. if test -n "$GXX" && test -z "$no_pipe"; then
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3279. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3280. if test "${egg_cv_var_ccpipe+set}" = set; then :
  3281. $as_echo_n "(cached) " >&6
  3282. else
  3283. ac_old_CXX="$CXX"
  3284. CXX="$CXX -pipe"
  3285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3286. /* end confdefs.h. */
  3287. int main ()
  3288. {
  3289. return(0);
  3290. }
  3291. _ACEOF
  3292. if ac_fn_cxx_try_compile "$LINENO"; then :
  3293. egg_cv_var_ccpipe="yes"
  3294. else
  3295. egg_cv_var_ccpipe="no"
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. CXX="$ac_old_CXX"
  3299. fi
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3301. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3302. if test "$egg_cv_var_ccpipe" = "yes"; then
  3303. CXX="$CXX -pipe"
  3304. fi
  3305. fi
  3306. CCDEPMODE=gcc
  3307. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3308. if test $num -ge "3"; then
  3309. CCDEPMODE=gcc3
  3310. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3311. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3312. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3313. fi
  3314. if test $num -ge "4"; then
  3315. GCC4DEB="-fstack-protector-all"
  3316. fi
  3317. #checkpoint
  3318. cat >confcache <<\_ACEOF
  3319. # This file is a shell script that caches the results of configure
  3320. # tests run on this system so they can be shared between configure
  3321. # scripts and configure runs, see configure's option --config-cache.
  3322. # It is not useful on other systems. If it contains results you don't
  3323. # want to keep, you may remove or edit it.
  3324. #
  3325. # config.status only pays attention to the cache file if you give it
  3326. # the --recheck option to rerun configure.
  3327. #
  3328. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3329. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3330. # following values.
  3331. _ACEOF
  3332. # The following way of writing the cache mishandles newlines in values,
  3333. # but we know of no workaround that is simple, portable, and efficient.
  3334. # So, we kill variables containing newlines.
  3335. # Ultrix sh set writes to stderr and can't be redirected directly,
  3336. # and sets the high bit in the cache file unless we assign to the vars.
  3337. (
  3338. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3339. eval ac_val=\$$ac_var
  3340. case $ac_val in #(
  3341. *${as_nl}*)
  3342. case $ac_var in #(
  3343. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3344. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3345. esac
  3346. case $ac_var in #(
  3347. _ | IFS | as_nl) ;; #(
  3348. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3349. *) { eval $ac_var=; unset $ac_var;} ;;
  3350. esac ;;
  3351. esac
  3352. done
  3353. (set) 2>&1 |
  3354. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3355. *${as_nl}ac_space=\ *)
  3356. # `set' does not quote correctly, so add quotes: double-quote
  3357. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3358. sed -n \
  3359. "s/'/'\\\\''/g;
  3360. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3361. ;; #(
  3362. *)
  3363. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3364. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3365. ;;
  3366. esac |
  3367. sort
  3368. ) |
  3369. sed '
  3370. /^ac_cv_env_/b end
  3371. t clear
  3372. :clear
  3373. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3374. t end
  3375. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3376. :end' >>confcache
  3377. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3378. if test -w "$cache_file"; then
  3379. test "x$cache_file" != "x/dev/null" &&
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3381. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3382. cat confcache >$cache_file
  3383. else
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3385. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3386. fi
  3387. fi
  3388. rm -f confcache
  3389. # Checks for programs
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3391. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3392. set x ${MAKE-make}
  3393. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3394. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. cat >conftest.make <<\_ACEOF
  3398. SHELL = /bin/sh
  3399. all:
  3400. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3401. _ACEOF
  3402. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3403. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3404. *@@@%%%=?*=@@@%%%*)
  3405. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3406. *)
  3407. eval ac_cv_prog_make_${ac_make}_set=no;;
  3408. esac
  3409. rm -f conftest.make
  3410. fi
  3411. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3413. $as_echo "yes" >&6; }
  3414. SET_MAKE=
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. SET_MAKE="MAKE=${MAKE-make}"
  3419. fi
  3420. cat << 'EOF' > conftest.head
  3421. a
  3422. b
  3423. c
  3424. EOF
  3425. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3426. do
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3428. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3429. if test "${ac_cv_prog_HEAD_1+set}" = set; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. if test -n "$HEAD_1"
  3433. then
  3434. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3435. else
  3436. if test "`cat conftest.head | $ac_prog`" = "a";
  3437. then
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3439. $as_echo "yes" >&6; }
  3440. ac_cv_prog_HEAD_1=$ac_prog
  3441. else
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3443. $as_echo "no" >&6; }
  3444. fi
  3445. fi
  3446. fi
  3447. test -n "$ac_cv_prog_HEAD_1" && break
  3448. done
  3449. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3450. then
  3451. cat << 'EOF' >&2
  3452. configure: error:
  3453. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3454. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3455. EOF
  3456. exit 1
  3457. fi
  3458. rm -f conftest.head
  3459. HEAD_1=$ac_cv_prog_HEAD_1
  3460. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3461. for ac_prog in gawk mawk nawk awk
  3462. do
  3463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3464. set dummy $ac_prog; ac_word=$2
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3466. $as_echo_n "checking for $ac_word... " >&6; }
  3467. if test "${ac_cv_prog_AWK+set}" = set; then :
  3468. $as_echo_n "(cached) " >&6
  3469. else
  3470. if test -n "$AWK"; then
  3471. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3472. else
  3473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3474. for as_dir in $PATH
  3475. do
  3476. IFS=$as_save_IFS
  3477. test -z "$as_dir" && as_dir=.
  3478. for ac_exec_ext in '' $ac_executable_extensions; do
  3479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3480. ac_cv_prog_AWK="$ac_prog"
  3481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3482. break 2
  3483. fi
  3484. done
  3485. done
  3486. IFS=$as_save_IFS
  3487. fi
  3488. fi
  3489. AWK=$ac_cv_prog_AWK
  3490. if test -n "$AWK"; then
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3492. $as_echo "$AWK" >&6; }
  3493. else
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3495. $as_echo "no" >&6; }
  3496. fi
  3497. test -n "$AWK" && break
  3498. done
  3499. if test "${AWK-x}" = "x"
  3500. then
  3501. cat << 'EOF' >&2
  3502. configure: error:
  3503. This system seems to lack a working 'awk' command.
  3504. A working 'awk' command is required to compile Eggdrop.
  3505. EOF
  3506. exit 1
  3507. fi
  3508. # basename is needed for Tcl library and header checks
  3509. # Extract the first word of "basename", so it can be a program name with args.
  3510. set dummy basename; ac_word=$2
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3512. $as_echo_n "checking for $ac_word... " >&6; }
  3513. if test "${ac_cv_prog_BASENAME+set}" = set; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if test -n "$BASENAME"; then
  3517. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3518. else
  3519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3520. for as_dir in $PATH
  3521. do
  3522. IFS=$as_save_IFS
  3523. test -z "$as_dir" && as_dir=.
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3526. ac_cv_prog_BASENAME="basename"
  3527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3528. break 2
  3529. fi
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. fi
  3534. fi
  3535. BASENAME=$ac_cv_prog_BASENAME
  3536. if test -n "$BASENAME"; then
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3538. $as_echo "$BASENAME" >&6; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. $as_echo "no" >&6; }
  3542. fi
  3543. if test "${BASENAME-x}" = "x"
  3544. then
  3545. cat << 'EOF' >&2
  3546. configure: error:
  3547. This system seems to lack a working 'basename' command.
  3548. A working 'basename' command is required to compile Eggdrop.
  3549. EOF
  3550. exit 1
  3551. fi
  3552. # Extract the first word of "objcopy", so it can be a program name with args.
  3553. set dummy objcopy; ac_word=$2
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3555. $as_echo_n "checking for $ac_word... " >&6; }
  3556. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  3557. $as_echo_n "(cached) " >&6
  3558. else
  3559. if test -n "$OBJCOPY"; then
  3560. ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3570. $as_echo "$as_me:${as_lineno-$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. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3577. fi
  3578. fi
  3579. OBJCOPY=$ac_cv_prog_OBJCOPY
  3580. if test -n "$OBJCOPY"; then
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3582. $as_echo "$OBJCOPY" >&6; }
  3583. else
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3585. $as_echo "no" >&6; }
  3586. fi
  3587. # Extract the first word of "strip", so it can be a program name with args.
  3588. set dummy strip; ac_word=$2
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. $as_echo_n "checking for $ac_word... " >&6; }
  3591. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. if test -n "$STRIP"; then
  3595. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3596. else
  3597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3598. for as_dir in $PATH
  3599. do
  3600. IFS=$as_save_IFS
  3601. test -z "$as_dir" && as_dir=.
  3602. for ac_exec_ext in '' $ac_executable_extensions; do
  3603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3604. ac_cv_prog_STRIP="strip"
  3605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3606. break 2
  3607. fi
  3608. done
  3609. done
  3610. IFS=$as_save_IFS
  3611. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3612. fi
  3613. fi
  3614. STRIP=$ac_cv_prog_STRIP
  3615. if test -n "$STRIP"; then
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3617. $as_echo "$STRIP" >&6; }
  3618. else
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3620. $as_echo "no" >&6; }
  3621. fi
  3622. # Extract the first word of "gdiff", so it can be a program name with args.
  3623. set dummy gdiff; ac_word=$2
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3625. $as_echo_n "checking for $ac_word... " >&6; }
  3626. if test "${ac_cv_prog_DIFF+set}" = set; then :
  3627. $as_echo_n "(cached) " >&6
  3628. else
  3629. if test -n "$DIFF"; then
  3630. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3639. ac_cv_prog_DIFF="gdiff"
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3641. break 2
  3642. fi
  3643. done
  3644. done
  3645. IFS=$as_save_IFS
  3646. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3647. fi
  3648. fi
  3649. DIFF=$ac_cv_prog_DIFF
  3650. if test -n "$DIFF"; then
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3652. $as_echo "$DIFF" >&6; }
  3653. else
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3655. $as_echo "no" >&6; }
  3656. fi
  3657. # Extract the first word of "uname", so it can be a program name with args.
  3658. set dummy uname; ac_word=$2
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3660. $as_echo_n "checking for $ac_word... " >&6; }
  3661. if test "${ac_cv_prog_UNAME+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. if test -n "$UNAME"; then
  3665. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3666. else
  3667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3668. for as_dir in $PATH
  3669. do
  3670. IFS=$as_save_IFS
  3671. test -z "$as_dir" && as_dir=.
  3672. for ac_exec_ext in '' $ac_executable_extensions; do
  3673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3674. ac_cv_prog_UNAME="uname"
  3675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3676. break 2
  3677. fi
  3678. done
  3679. done
  3680. IFS=$as_save_IFS
  3681. fi
  3682. fi
  3683. UNAME=$ac_cv_prog_UNAME
  3684. if test -n "$UNAME"; then
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3686. $as_echo "$UNAME" >&6; }
  3687. else
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3689. $as_echo "no" >&6; }
  3690. fi
  3691. # Extract the first word of "ccache", so it can be a program name with args.
  3692. set dummy ccache; ac_word=$2
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. $as_echo_n "checking for $ac_word... " >&6; }
  3695. if test "${ac_cv_prog_CCACHE+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. if test -n "$CCACHE"; then
  3699. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3700. else
  3701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3702. for as_dir in $PATH
  3703. do
  3704. IFS=$as_save_IFS
  3705. test -z "$as_dir" && as_dir=.
  3706. for ac_exec_ext in '' $ac_executable_extensions; do
  3707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3708. ac_cv_prog_CCACHE="ccache"
  3709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3710. break 2
  3711. fi
  3712. done
  3713. done
  3714. IFS=$as_save_IFS
  3715. fi
  3716. fi
  3717. CCACHE=$ac_cv_prog_CCACHE
  3718. if test -n "$CCACHE"; then
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3720. $as_echo "$CCACHE" >&6; }
  3721. else
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3723. $as_echo "no" >&6; }
  3724. fi
  3725. # Extract the first word of "distcc", so it can be a program name with args.
  3726. set dummy distcc; ac_word=$2
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3728. $as_echo_n "checking for $ac_word... " >&6; }
  3729. if test "${ac_cv_prog_DISTCC+set}" = set; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if test -n "$DISTCC"; then
  3733. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. test -z "$as_dir" && as_dir=.
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3742. ac_cv_prog_DISTCC="distcc"
  3743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744. break 2
  3745. fi
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. fi
  3750. fi
  3751. DISTCC=$ac_cv_prog_DISTCC
  3752. if test -n "$DISTCC"; then
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3754. $as_echo "$DISTCC" >&6; }
  3755. else
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3757. $as_echo "no" >&6; }
  3758. fi
  3759. # Test the os and set the module linking settings
  3760. USE_STATIC=yes
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3762. $as_echo_n "checking system type... " >&6; }
  3763. if test "${egg_cv_var_system_type+set}" = set; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. egg_cv_var_system_type=`$UNAME -s`
  3767. fi
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3769. $as_echo "$egg_cv_var_system_type" >&6; }
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3771. $as_echo_n "checking system release... " >&6; }
  3772. if test "${egg_cv_var_system_release+set}" = set; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. egg_cv_var_system_release=`$UNAME -r`
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3778. $as_echo "$egg_cv_var_system_release" >&6; }
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3780. $as_echo_n "checking system machine... " >&6; }
  3781. if test "${egg_cv_var_system_machine+set}" = set; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. egg_cv_var_system_machine=`$UNAME -m`
  3785. fi
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3787. $as_echo "$egg_cv_var_system_machine" >&6; }
  3788. BUILDOS="$egg_cv_var_system_type"
  3789. BUILDARCH="$egg_cv_var_system_machine"
  3790. USE_GENERIC_I486="yes"
  3791. case "$egg_cv_var_system_type" in
  3792. BSD/OS)
  3793. ;;
  3794. IRIX)
  3795. ;;
  3796. HP-UX)
  3797. $as_echo "#define MD32_XARRAY 1" >>confdefs.h
  3798. ;;
  3799. Ultrix)
  3800. SHELL=/bin/sh5
  3801. ;;
  3802. SINIX*)
  3803. ;;
  3804. BeOS)
  3805. ;;
  3806. Linux)
  3807. ;;
  3808. Lynx)
  3809. ;;
  3810. QNX)
  3811. ;;
  3812. OSF1)
  3813. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3814. V*)
  3815. if test "$AWK" = "gawk"
  3816. then
  3817. AWK=awk
  3818. fi
  3819. ;;
  3820. 1.0|1.1|1.2)
  3821. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3822. ;;
  3823. 1.*)
  3824. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3825. ;;
  3826. *)
  3827. ;;
  3828. esac
  3829. $as_echo "#define STOP_UAC 1" >>confdefs.h
  3830. $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
  3831. ;;
  3832. SunOS)
  3833. SUNOS="yes"
  3834. USE_STATIC="no"
  3835. ;;
  3836. Darwin)
  3837. USE_STATIC="no"
  3838. USE_GENERIC_I486="no"
  3839. ;;
  3840. *BSD)
  3841. # FreeBSD/OpenBSD/NetBSD
  3842. ;;
  3843. *)
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3845. $as_echo_n "checking if system is Mach based... " >&6; }
  3846. if test -r /mach
  3847. then
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3849. $as_echo "yes" >&6; }
  3850. $as_echo "#define BORGCUBES 1" >>confdefs.h
  3851. else
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3853. $as_echo "no" >&6; }
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3855. $as_echo_n "checking if system is QNX... " >&6; }
  3856. if test -r /cmds
  3857. then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. $as_echo "yes" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3862. $as_echo "no" >&6; }
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3864. $as_echo "Something unknown!" >&6; }
  3865. fi
  3866. fi
  3867. ;;
  3868. esac
  3869. case "$egg_cv_var_system_machine" in
  3870. i*)
  3871. if test "$USE_GENERIC_I486" = "yes"; then
  3872. CXX="$CXX -march=i486"
  3873. BUILDARCH="i486"
  3874. fi
  3875. ;;
  3876. *)
  3877. ;;
  3878. esac
  3879. # Check for IPv6 support
  3880. #EGG_IPV6_SUPPORTED
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not you disabled IPv6 support" >&5
  3882. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  3883. # Check whether --enable-ipv6 was given.
  3884. if test "${enable_ipv6+set}" = set; then :
  3885. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3887. $as_echo "yes" >&6; }
  3888. else
  3889. ac_cv_dipv6="no"
  3890. if test "$egg_cv_ipv6_supported" = "no"; then
  3891. ac_cv_dipv6="no"
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dipv6" >&5
  3894. $as_echo "$ac_cv_dipv6" >&6; }
  3895. fi
  3896. if test "$ac_cv_dipv6" = "no"; then
  3897. $as_echo "#define USE_IPV6 1" >>confdefs.h
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3900. $as_echo_n "checking for socklen_t... " >&6; }
  3901. if test "${egg_cv_socklen_t+set}" = set; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. if test "$cross_compiling" = yes; then :
  3905. egg_cv_socklen_t=no
  3906. else
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <unistd.h>
  3910. #include <sys/types.h>
  3911. #include <sys/socket.h>
  3912. #include <netinet/in.h>
  3913. #include <arpa/inet.h>
  3914. int main()
  3915. {
  3916. socklen_t test = sizeof(int);
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_cxx_try_run "$LINENO"; then :
  3921. egg_cv_socklen_t=yes
  3922. else
  3923. egg_cv_socklen_t=no
  3924. fi
  3925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3926. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3927. fi
  3928. fi
  3929. if test "$egg_cv_socklen_t" = "yes"; then
  3930. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3932. $as_echo "yes" >&6; }
  3933. else
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3935. $as_echo "no" >&6; }
  3936. fi
  3937. # Check for inconsistent random() functions
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  3939. $as_echo_n "checking for random limit... " >&6; }
  3940. case "$egg_cv_var_system_type" in
  3941. SunOS) RMAX=0x7FFFFFFF
  3942. ;;
  3943. *) RMAX=RAND_MAX
  3944. ;;
  3945. esac
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  3947. $as_echo "$RMAX" >&6; }
  3948. cat >>confdefs.h <<_ACEOF
  3949. #define RANDOM_MAX $RMAX
  3950. _ACEOF
  3951. # Create static binaries
  3952. if test "$USE_STATIC" = "yes"
  3953. then
  3954. if test -n "$GXX"
  3955. then
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  3957. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  3958. if test "${egg_cv_var_ccstatic+set}" = set; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. int
  3964. main ()
  3965. {
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. if ac_fn_cxx_try_compile "$LINENO"; then :
  3971. egg_cv_var_ccstatic="yes"
  3972. else
  3973. egg_cv_var_ccstatic="no"
  3974. fi
  3975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3976. fi
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  3978. $as_echo "$egg_cv_var_ccstatic" >&6; }
  3979. if ! test "$egg_cv_var_ccstatic" = "yes"
  3980. then
  3981. cat << 'EOF' >&2
  3982. configure: error:
  3983. Your OS or C++ compiler does not support -static.
  3984. This compile flag is required for the botpack on this OS.
  3985. EOF
  3986. exit 1
  3987. fi
  3988. fi
  3989. STATIC="-static"
  3990. else
  3991. STATIC=""
  3992. fi
  3993. #checkpoint
  3994. cat >confcache <<\_ACEOF
  3995. # This file is a shell script that caches the results of configure
  3996. # tests run on this system so they can be shared between configure
  3997. # scripts and configure runs, see configure's option --config-cache.
  3998. # It is not useful on other systems. If it contains results you don't
  3999. # want to keep, you may remove or edit it.
  4000. #
  4001. # config.status only pays attention to the cache file if you give it
  4002. # the --recheck option to rerun configure.
  4003. #
  4004. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4005. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4006. # following values.
  4007. _ACEOF
  4008. # The following way of writing the cache mishandles newlines in values,
  4009. # but we know of no workaround that is simple, portable, and efficient.
  4010. # So, we kill variables containing newlines.
  4011. # Ultrix sh set writes to stderr and can't be redirected directly,
  4012. # and sets the high bit in the cache file unless we assign to the vars.
  4013. (
  4014. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4015. eval ac_val=\$$ac_var
  4016. case $ac_val in #(
  4017. *${as_nl}*)
  4018. case $ac_var in #(
  4019. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4020. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4021. esac
  4022. case $ac_var in #(
  4023. _ | IFS | as_nl) ;; #(
  4024. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4025. *) { eval $ac_var=; unset $ac_var;} ;;
  4026. esac ;;
  4027. esac
  4028. done
  4029. (set) 2>&1 |
  4030. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4031. *${as_nl}ac_space=\ *)
  4032. # `set' does not quote correctly, so add quotes: double-quote
  4033. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4034. sed -n \
  4035. "s/'/'\\\\''/g;
  4036. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4037. ;; #(
  4038. *)
  4039. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4040. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4041. ;;
  4042. esac |
  4043. sort
  4044. ) |
  4045. sed '
  4046. /^ac_cv_env_/b end
  4047. t clear
  4048. :clear
  4049. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4050. t end
  4051. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4052. :end' >>confcache
  4053. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4054. if test -w "$cache_file"; then
  4055. test "x$cache_file" != "x/dev/null" &&
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4057. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4058. cat confcache >$cache_file
  4059. else
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4061. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4062. fi
  4063. fi
  4064. rm -f confcache
  4065. # Checks for system libraries
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4067. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4068. if test "${ac_cv_lib_socket_socket+set}" = set; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. ac_check_lib_save_LIBS=$LIBS
  4072. LIBS="-lsocket $LIBS"
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. /* Override any GCC internal prototype to avoid an error.
  4076. Use char because int might match the return type of a GCC
  4077. builtin and then its argument prototype would still apply. */
  4078. #ifdef __cplusplus
  4079. extern "C"
  4080. #endif
  4081. char socket ();
  4082. int
  4083. main ()
  4084. {
  4085. return socket ();
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. if ac_fn_cxx_try_link "$LINENO"; then :
  4091. ac_cv_lib_socket_socket=yes
  4092. else
  4093. ac_cv_lib_socket_socket=no
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext \
  4096. conftest$ac_exeext conftest.$ac_ext
  4097. LIBS=$ac_check_lib_save_LIBS
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4100. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4101. if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  4102. cat >>confdefs.h <<_ACEOF
  4103. #define HAVE_LIBSOCKET 1
  4104. _ACEOF
  4105. LIBS="-lsocket $LIBS"
  4106. fi
  4107. # AC_CHECK_LIB(nsl, connect)
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4109. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4110. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. ac_check_lib_save_LIBS=$LIBS
  4114. LIBS="-ldl $LIBS"
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. /* Override any GCC internal prototype to avoid an error.
  4118. Use char because int might match the return type of a GCC
  4119. builtin and then its argument prototype would still apply. */
  4120. #ifdef __cplusplus
  4121. extern "C"
  4122. #endif
  4123. char dlopen ();
  4124. int
  4125. main ()
  4126. {
  4127. return dlopen ();
  4128. ;
  4129. return 0;
  4130. }
  4131. _ACEOF
  4132. if ac_fn_cxx_try_link "$LINENO"; then :
  4133. ac_cv_lib_dl_dlopen=yes
  4134. else
  4135. ac_cv_lib_dl_dlopen=no
  4136. fi
  4137. rm -f core conftest.err conftest.$ac_objext \
  4138. conftest$ac_exeext conftest.$ac_ext
  4139. LIBS=$ac_check_lib_save_LIBS
  4140. fi
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4142. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4143. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  4144. cat >>confdefs.h <<_ACEOF
  4145. #define HAVE_LIBDL 1
  4146. _ACEOF
  4147. LIBS="-ldl $LIBS"
  4148. fi
  4149. # AC_CHECK_LIB(nsl, gethostbyname)
  4150. # AC_CHECK_LIB(dns, gethostbyname)
  4151. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4152. # This is needed for Tcl libraries compiled with thread support
  4153. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4154. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4155. # ac_cv_lib_pthread="-lpthread"], [dnl
  4156. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4157. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4158. # ac_cv_lib_pthread="-lpthread"], [dnl
  4159. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4160. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4161. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4162. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4163. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4164. # ac_cv_lib_pthread=""],
  4165. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4166. if test "$SUNOS" = "yes"; then
  4167. # For suns without yp
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4169. $as_echo_n "checking for main in -ldl... " >&6; }
  4170. if test "${ac_cv_lib_dl_main+set}" = set; then :
  4171. $as_echo_n "(cached) " >&6
  4172. else
  4173. ac_check_lib_save_LIBS=$LIBS
  4174. LIBS="-ldl $LIBS"
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. int
  4178. main ()
  4179. {
  4180. return main ();
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. if ac_fn_cxx_try_link "$LINENO"; then :
  4186. ac_cv_lib_dl_main=yes
  4187. else
  4188. ac_cv_lib_dl_main=no
  4189. fi
  4190. rm -f core conftest.err conftest.$ac_objext \
  4191. conftest$ac_exeext conftest.$ac_ext
  4192. LIBS=$ac_check_lib_save_LIBS
  4193. fi
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4195. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4196. if test "x$ac_cv_lib_dl_main" = x""yes; then :
  4197. cat >>confdefs.h <<_ACEOF
  4198. #define HAVE_LIBDL 1
  4199. _ACEOF
  4200. LIBS="-ldl $LIBS"
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4203. $as_echo_n "checking for main in -lsocket... " >&6; }
  4204. if test "${ac_cv_lib_socket_main+set}" = set; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. ac_check_lib_save_LIBS=$LIBS
  4208. LIBS="-lsocket $LIBS"
  4209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4210. /* end confdefs.h. */
  4211. int
  4212. main ()
  4213. {
  4214. return main ();
  4215. ;
  4216. return 0;
  4217. }
  4218. _ACEOF
  4219. if ac_fn_cxx_try_link "$LINENO"; then :
  4220. ac_cv_lib_socket_main=yes
  4221. else
  4222. ac_cv_lib_socket_main=no
  4223. fi
  4224. rm -f core conftest.err conftest.$ac_objext \
  4225. conftest$ac_exeext conftest.$ac_ext
  4226. LIBS=$ac_check_lib_save_LIBS
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4229. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4230. if test "x$ac_cv_lib_socket_main" = x""yes; then :
  4231. cat >>confdefs.h <<_ACEOF
  4232. #define HAVE_LIBSOCKET 1
  4233. _ACEOF
  4234. LIBS="-lsocket $LIBS"
  4235. fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4237. $as_echo_n "checking for main in -lnsl... " >&6; }
  4238. if test "${ac_cv_lib_nsl_main+set}" = set; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. ac_check_lib_save_LIBS=$LIBS
  4242. LIBS="-lnsl $LIBS"
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. int
  4246. main ()
  4247. {
  4248. return main ();
  4249. ;
  4250. return 0;
  4251. }
  4252. _ACEOF
  4253. if ac_fn_cxx_try_link "$LINENO"; then :
  4254. ac_cv_lib_nsl_main=yes
  4255. else
  4256. ac_cv_lib_nsl_main=no
  4257. fi
  4258. rm -f core conftest.err conftest.$ac_objext \
  4259. conftest$ac_exeext conftest.$ac_ext
  4260. LIBS=$ac_check_lib_save_LIBS
  4261. fi
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4263. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4264. if test "x$ac_cv_lib_nsl_main" = x""yes; then :
  4265. cat >>confdefs.h <<_ACEOF
  4266. #define HAVE_LIBNSL 1
  4267. _ACEOF
  4268. LIBS="-lnsl $LIBS"
  4269. fi
  4270. fi
  4271. # Checks for header files
  4272. ac_header_dirent=no
  4273. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4274. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4276. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4277. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. #include <sys/types.h>
  4283. #include <$ac_hdr>
  4284. int
  4285. main ()
  4286. {
  4287. if ((DIR *) 0)
  4288. return 0;
  4289. ;
  4290. return 0;
  4291. }
  4292. _ACEOF
  4293. if ac_fn_cxx_try_compile "$LINENO"; then :
  4294. eval "$as_ac_Header=yes"
  4295. else
  4296. eval "$as_ac_Header=no"
  4297. fi
  4298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4299. fi
  4300. eval ac_res=\$$as_ac_Header
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4302. $as_echo "$ac_res" >&6; }
  4303. eval as_val=\$$as_ac_Header
  4304. if test "x$as_val" = x""yes; then :
  4305. cat >>confdefs.h <<_ACEOF
  4306. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4307. _ACEOF
  4308. ac_header_dirent=$ac_hdr; break
  4309. fi
  4310. done
  4311. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4312. if test $ac_header_dirent = dirent.h; then
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4314. $as_echo_n "checking for library containing opendir... " >&6; }
  4315. if test "${ac_cv_search_opendir+set}" = set; then :
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. ac_func_search_save_LIBS=$LIBS
  4319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4320. /* end confdefs.h. */
  4321. /* Override any GCC internal prototype to avoid an error.
  4322. Use char because int might match the return type of a GCC
  4323. builtin and then its argument prototype would still apply. */
  4324. #ifdef __cplusplus
  4325. extern "C"
  4326. #endif
  4327. char opendir ();
  4328. int
  4329. main ()
  4330. {
  4331. return opendir ();
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. for ac_lib in '' dir; do
  4337. if test -z "$ac_lib"; then
  4338. ac_res="none required"
  4339. else
  4340. ac_res=-l$ac_lib
  4341. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4342. fi
  4343. if ac_fn_cxx_try_link "$LINENO"; then :
  4344. ac_cv_search_opendir=$ac_res
  4345. fi
  4346. rm -f core conftest.err conftest.$ac_objext \
  4347. conftest$ac_exeext
  4348. if test "${ac_cv_search_opendir+set}" = set; then :
  4349. break
  4350. fi
  4351. done
  4352. if test "${ac_cv_search_opendir+set}" = set; then :
  4353. else
  4354. ac_cv_search_opendir=no
  4355. fi
  4356. rm conftest.$ac_ext
  4357. LIBS=$ac_func_search_save_LIBS
  4358. fi
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4360. $as_echo "$ac_cv_search_opendir" >&6; }
  4361. ac_res=$ac_cv_search_opendir
  4362. if test "$ac_res" != no; then :
  4363. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4364. fi
  4365. else
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4367. $as_echo_n "checking for library containing opendir... " >&6; }
  4368. if test "${ac_cv_search_opendir+set}" = set; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. ac_func_search_save_LIBS=$LIBS
  4372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4373. /* end confdefs.h. */
  4374. /* Override any GCC internal prototype to avoid an error.
  4375. Use char because int might match the return type of a GCC
  4376. builtin and then its argument prototype would still apply. */
  4377. #ifdef __cplusplus
  4378. extern "C"
  4379. #endif
  4380. char opendir ();
  4381. int
  4382. main ()
  4383. {
  4384. return opendir ();
  4385. ;
  4386. return 0;
  4387. }
  4388. _ACEOF
  4389. for ac_lib in '' x; do
  4390. if test -z "$ac_lib"; then
  4391. ac_res="none required"
  4392. else
  4393. ac_res=-l$ac_lib
  4394. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4395. fi
  4396. if ac_fn_cxx_try_link "$LINENO"; then :
  4397. ac_cv_search_opendir=$ac_res
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext \
  4400. conftest$ac_exeext
  4401. if test "${ac_cv_search_opendir+set}" = set; then :
  4402. break
  4403. fi
  4404. done
  4405. if test "${ac_cv_search_opendir+set}" = set; then :
  4406. else
  4407. ac_cv_search_opendir=no
  4408. fi
  4409. rm conftest.$ac_ext
  4410. LIBS=$ac_func_search_save_LIBS
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4413. $as_echo "$ac_cv_search_opendir" >&6; }
  4414. ac_res=$ac_cv_search_opendir
  4415. if test "$ac_res" != no; then :
  4416. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4417. fi
  4418. fi
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4420. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4421. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4422. $as_echo_n "(cached) " >&6
  4423. else
  4424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4425. /* end confdefs.h. */
  4426. #include <sys/types.h>
  4427. #include <sys/wait.h>
  4428. #ifndef WEXITSTATUS
  4429. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4430. #endif
  4431. #ifndef WIFEXITED
  4432. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4433. #endif
  4434. int
  4435. main ()
  4436. {
  4437. int s;
  4438. wait (&s);
  4439. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4440. ;
  4441. return 0;
  4442. }
  4443. _ACEOF
  4444. if ac_fn_cxx_try_compile "$LINENO"; then :
  4445. ac_cv_header_sys_wait_h=yes
  4446. else
  4447. ac_cv_header_sys_wait_h=no
  4448. fi
  4449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4452. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4453. if test $ac_cv_header_sys_wait_h = yes; then
  4454. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4457. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4458. if test "${ac_cv_header_time+set}" = set; then :
  4459. $as_echo_n "(cached) " >&6
  4460. else
  4461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4462. /* end confdefs.h. */
  4463. #include <sys/types.h>
  4464. #include <sys/time.h>
  4465. #include <time.h>
  4466. int
  4467. main ()
  4468. {
  4469. if ((struct tm *) 0)
  4470. return 0;
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_cxx_try_compile "$LINENO"; then :
  4476. ac_cv_header_time=yes
  4477. else
  4478. ac_cv_header_time=no
  4479. fi
  4480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. fi
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4483. $as_echo "$ac_cv_header_time" >&6; }
  4484. if test $ac_cv_header_time = yes; then
  4485. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4486. fi
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4488. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4489. if test "${ac_cv_header_stat_broken+set}" = set; then :
  4490. $as_echo_n "(cached) " >&6
  4491. else
  4492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. /* end confdefs.h. */
  4494. #include <sys/types.h>
  4495. #include <sys/stat.h>
  4496. #if defined S_ISBLK && defined S_IFDIR
  4497. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4498. #endif
  4499. #if defined S_ISBLK && defined S_IFCHR
  4500. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4501. #endif
  4502. #if defined S_ISLNK && defined S_IFREG
  4503. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4504. #endif
  4505. #if defined S_ISSOCK && defined S_IFREG
  4506. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4507. #endif
  4508. _ACEOF
  4509. if ac_fn_cxx_try_compile "$LINENO"; then :
  4510. ac_cv_header_stat_broken=no
  4511. else
  4512. ac_cv_header_stat_broken=yes
  4513. fi
  4514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4517. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4518. if test $ac_cv_header_stat_broken = yes; then
  4519. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  4520. fi
  4521. #checkpoint
  4522. cat >confcache <<\_ACEOF
  4523. # This file is a shell script that caches the results of configure
  4524. # tests run on this system so they can be shared between configure
  4525. # scripts and configure runs, see configure's option --config-cache.
  4526. # It is not useful on other systems. If it contains results you don't
  4527. # want to keep, you may remove or edit it.
  4528. #
  4529. # config.status only pays attention to the cache file if you give it
  4530. # the --recheck option to rerun configure.
  4531. #
  4532. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4533. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4534. # following values.
  4535. _ACEOF
  4536. # The following way of writing the cache mishandles newlines in values,
  4537. # but we know of no workaround that is simple, portable, and efficient.
  4538. # So, we kill variables containing newlines.
  4539. # Ultrix sh set writes to stderr and can't be redirected directly,
  4540. # and sets the high bit in the cache file unless we assign to the vars.
  4541. (
  4542. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4543. eval ac_val=\$$ac_var
  4544. case $ac_val in #(
  4545. *${as_nl}*)
  4546. case $ac_var in #(
  4547. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4548. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4549. esac
  4550. case $ac_var in #(
  4551. _ | IFS | as_nl) ;; #(
  4552. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4553. *) { eval $ac_var=; unset $ac_var;} ;;
  4554. esac ;;
  4555. esac
  4556. done
  4557. (set) 2>&1 |
  4558. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4559. *${as_nl}ac_space=\ *)
  4560. # `set' does not quote correctly, so add quotes: double-quote
  4561. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4562. sed -n \
  4563. "s/'/'\\\\''/g;
  4564. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4565. ;; #(
  4566. *)
  4567. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4568. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4569. ;;
  4570. esac |
  4571. sort
  4572. ) |
  4573. sed '
  4574. /^ac_cv_env_/b end
  4575. t clear
  4576. :clear
  4577. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4578. t end
  4579. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4580. :end' >>confcache
  4581. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4582. if test -w "$cache_file"; then
  4583. test "x$cache_file" != "x/dev/null" &&
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4585. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4586. cat confcache >$cache_file
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4589. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4590. fi
  4591. fi
  4592. rm -f confcache
  4593. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4594. do :
  4595. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4596. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4597. eval as_val=\$$as_ac_Header
  4598. if test "x$as_val" = x""yes; then :
  4599. cat >>confdefs.h <<_ACEOF
  4600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4601. _ACEOF
  4602. fi
  4603. done
  4604. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4605. do :
  4606. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4607. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4608. eval as_val=\$$as_ac_Header
  4609. if test "x$as_val" = x""yes; then :
  4610. cat >>confdefs.h <<_ACEOF
  4611. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4612. _ACEOF
  4613. fi
  4614. done
  4615. #checkpoint
  4616. cat >confcache <<\_ACEOF
  4617. # This file is a shell script that caches the results of configure
  4618. # tests run on this system so they can be shared between configure
  4619. # scripts and configure runs, see configure's option --config-cache.
  4620. # It is not useful on other systems. If it contains results you don't
  4621. # want to keep, you may remove or edit it.
  4622. #
  4623. # config.status only pays attention to the cache file if you give it
  4624. # the --recheck option to rerun configure.
  4625. #
  4626. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4627. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4628. # following values.
  4629. _ACEOF
  4630. # The following way of writing the cache mishandles newlines in values,
  4631. # but we know of no workaround that is simple, portable, and efficient.
  4632. # So, we kill variables containing newlines.
  4633. # Ultrix sh set writes to stderr and can't be redirected directly,
  4634. # and sets the high bit in the cache file unless we assign to the vars.
  4635. (
  4636. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4637. eval ac_val=\$$ac_var
  4638. case $ac_val in #(
  4639. *${as_nl}*)
  4640. case $ac_var in #(
  4641. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4642. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4643. esac
  4644. case $ac_var in #(
  4645. _ | IFS | as_nl) ;; #(
  4646. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4647. *) { eval $ac_var=; unset $ac_var;} ;;
  4648. esac ;;
  4649. esac
  4650. done
  4651. (set) 2>&1 |
  4652. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4653. *${as_nl}ac_space=\ *)
  4654. # `set' does not quote correctly, so add quotes: double-quote
  4655. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4656. sed -n \
  4657. "s/'/'\\\\''/g;
  4658. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4659. ;; #(
  4660. *)
  4661. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4662. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4663. ;;
  4664. esac |
  4665. sort
  4666. ) |
  4667. sed '
  4668. /^ac_cv_env_/b end
  4669. t clear
  4670. :clear
  4671. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4672. t end
  4673. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4674. :end' >>confcache
  4675. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4676. if test -w "$cache_file"; then
  4677. test "x$cache_file" != "x/dev/null" &&
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4679. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4680. cat confcache >$cache_file
  4681. else
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4683. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4684. fi
  4685. fi
  4686. rm -f confcache
  4687. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4688. #AC_CHECK_HEADERS(zlib.h)
  4689. #EGG_CHECK_ZLIB
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4691. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4692. # Check whether --with-openssl was given.
  4693. if test "${with_openssl+set}" = set; then :
  4694. withval=$with_openssl; cf_with_openssl=$withval
  4695. else
  4696. cf_with_openssl="auto"
  4697. fi
  4698. cf_openssl_basedir=""
  4699. if test "$cf_with_openssl" != "auto"; then
  4700. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  4701. else
  4702. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  4703. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  4704. cf_openssl_basedir="${dirs}"
  4705. break
  4706. fi
  4707. done
  4708. unset dirs
  4709. fi
  4710. if test ! -z "$cf_openssl_basedir"; then
  4711. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  4712. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  4713. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  4714. else
  4715. cf_openssl_basedir=""
  4716. fi
  4717. else
  4718. if test -f "/usr/include/openssl/opensslv.h" ; then
  4719. cf_openssl_basedir="/usr"
  4720. fi
  4721. fi
  4722. if test ! -z "$cf_openssl_basedir"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  4724. $as_echo "$cf_openssl_basedir" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4727. $as_echo "not found" >&6; }
  4728. { as_fn_set_status 1
  4729. as_fn_error "OpenSSL is required." "$LINENO" 5; }
  4730. fi
  4731. unset cf_openssl_basedir
  4732. save_CXX="$CXX"
  4733. CXX="$CXX $SSL_INCLUDES"
  4734. save_LIBS="$LIBS"
  4735. LIBS="$LIBS $SSL_LIBS"
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  4737. $as_echo_n "checking for OpenSSL version... " >&6; }
  4738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4739. /* end confdefs.h. */
  4740. #include <openssl/opensslv.h>
  4741. int
  4742. main ()
  4743. {
  4744. #if !defined(OPENSSL_VERSION_NUMBER)
  4745. #error "Missing openssl version"
  4746. #endif
  4747. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  4748. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  4749. #endif
  4750. ;
  4751. return 0;
  4752. }
  4753. _ACEOF
  4754. if ac_fn_cxx_try_compile "$LINENO"; then :
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4756. $as_echo "OK" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  4759. $as_echo "too old." >&6; }
  4760. { as_fn_set_status 1
  4761. as_fn_error "OpenSSL version is too old." "$LINENO" 5; }
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4764. CXX="$CXX $SSL_LIBS"
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  4766. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  4767. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. ac_check_lib_save_LIBS=$LIBS
  4771. LIBS="-lcrypto $LIBS"
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. /* Override any GCC internal prototype to avoid an error.
  4775. Use char because int might match the return type of a GCC
  4776. builtin and then its argument prototype would still apply. */
  4777. #ifdef __cplusplus
  4778. extern "C"
  4779. #endif
  4780. char AES_encrypt ();
  4781. int
  4782. main ()
  4783. {
  4784. return AES_encrypt ();
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. if ac_fn_cxx_try_link "$LINENO"; then :
  4790. ac_cv_lib_crypto_AES_encrypt=yes
  4791. else
  4792. ac_cv_lib_crypto_AES_encrypt=no
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext \
  4795. conftest$ac_exeext conftest.$ac_ext
  4796. LIBS=$ac_check_lib_save_LIBS
  4797. fi
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  4799. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  4800. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then :
  4801. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  4802. else
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4804. $as_echo "not found." >&6; }
  4805. { as_fn_set_status 1
  4806. as_fn_error "Libcrypto/openssl is required." "$LINENO" 5; }
  4807. fi
  4808. CXX="$save_CXX"
  4809. LIBS="$save_LIBS"
  4810. #AC_SUBST(ZLIB)dnl
  4811. # Checks for typedefs, structures, and compiler characteristics
  4812. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4813. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4814. else
  4815. cat >>confdefs.h <<_ACEOF
  4816. #define pid_t int
  4817. _ACEOF
  4818. fi
  4819. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4820. if test "x$ac_cv_type_size_t" = x""yes; then :
  4821. else
  4822. cat >>confdefs.h <<_ACEOF
  4823. #define size_t unsigned int
  4824. _ACEOF
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4827. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4828. if test "${ac_cv_type_uid_t+set}" = set; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833. #include <sys/types.h>
  4834. _ACEOF
  4835. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4836. $EGREP "uid_t" >/dev/null 2>&1; then :
  4837. ac_cv_type_uid_t=yes
  4838. else
  4839. ac_cv_type_uid_t=no
  4840. fi
  4841. rm -f conftest*
  4842. fi
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4844. $as_echo "$ac_cv_type_uid_t" >&6; }
  4845. if test $ac_cv_type_uid_t = no; then
  4846. $as_echo "#define uid_t int" >>confdefs.h
  4847. $as_echo "#define gid_t int" >>confdefs.h
  4848. fi
  4849. #AC_C_CONST
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  4851. $as_echo_n "checking for working volatile... " >&6; }
  4852. if test "${ac_cv_c_volatile+set}" = set; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4856. /* end confdefs.h. */
  4857. int
  4858. main ()
  4859. {
  4860. volatile int x;
  4861. int * volatile y = (int *) 0;
  4862. return !x && !y;
  4863. ;
  4864. return 0;
  4865. }
  4866. _ACEOF
  4867. if ac_fn_cxx_try_compile "$LINENO"; then :
  4868. ac_cv_c_volatile=yes
  4869. else
  4870. ac_cv_c_volatile=no
  4871. fi
  4872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4873. fi
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  4875. $as_echo "$ac_cv_c_volatile" >&6; }
  4876. if test $ac_cv_c_volatile = no; then
  4877. $as_echo "#define volatile /**/" >>confdefs.h
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4880. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4881. if test "${ac_cv_c_bigendian+set}" = set; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. ac_cv_c_bigendian=unknown
  4885. # See if we're dealing with a universal compiler.
  4886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4887. /* end confdefs.h. */
  4888. #ifndef __APPLE_CC__
  4889. not a universal capable compiler
  4890. #endif
  4891. typedef int dummy;
  4892. _ACEOF
  4893. if ac_fn_cxx_try_compile "$LINENO"; then :
  4894. # Check for potential -arch flags. It is not universal unless
  4895. # there are at least two -arch flags with different values.
  4896. ac_arch=
  4897. ac_prev=
  4898. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4899. if test -n "$ac_prev"; then
  4900. case $ac_word in
  4901. i?86 | x86_64 | ppc | ppc64)
  4902. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4903. ac_arch=$ac_word
  4904. else
  4905. ac_cv_c_bigendian=universal
  4906. break
  4907. fi
  4908. ;;
  4909. esac
  4910. ac_prev=
  4911. elif test "x$ac_word" = "x-arch"; then
  4912. ac_prev=arch
  4913. fi
  4914. done
  4915. fi
  4916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4917. if test $ac_cv_c_bigendian = unknown; then
  4918. # See if sys/param.h defines the BYTE_ORDER macro.
  4919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4920. /* end confdefs.h. */
  4921. #include <sys/types.h>
  4922. #include <sys/param.h>
  4923. int
  4924. main ()
  4925. {
  4926. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4927. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4928. && LITTLE_ENDIAN)
  4929. bogus endian macros
  4930. #endif
  4931. ;
  4932. return 0;
  4933. }
  4934. _ACEOF
  4935. if ac_fn_cxx_try_compile "$LINENO"; then :
  4936. # It does; now see whether it defined to BIG_ENDIAN or not.
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939. #include <sys/types.h>
  4940. #include <sys/param.h>
  4941. int
  4942. main ()
  4943. {
  4944. #if BYTE_ORDER != BIG_ENDIAN
  4945. not big endian
  4946. #endif
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_cxx_try_compile "$LINENO"; then :
  4952. ac_cv_c_bigendian=yes
  4953. else
  4954. ac_cv_c_bigendian=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. fi
  4958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4959. fi
  4960. if test $ac_cv_c_bigendian = unknown; then
  4961. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4963. /* end confdefs.h. */
  4964. #include <limits.h>
  4965. int
  4966. main ()
  4967. {
  4968. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4969. bogus endian macros
  4970. #endif
  4971. ;
  4972. return 0;
  4973. }
  4974. _ACEOF
  4975. if ac_fn_cxx_try_compile "$LINENO"; then :
  4976. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4978. /* end confdefs.h. */
  4979. #include <limits.h>
  4980. int
  4981. main ()
  4982. {
  4983. #ifndef _BIG_ENDIAN
  4984. not big endian
  4985. #endif
  4986. ;
  4987. return 0;
  4988. }
  4989. _ACEOF
  4990. if ac_fn_cxx_try_compile "$LINENO"; then :
  4991. ac_cv_c_bigendian=yes
  4992. else
  4993. ac_cv_c_bigendian=no
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4996. fi
  4997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4998. fi
  4999. if test $ac_cv_c_bigendian = unknown; then
  5000. # Compile a test program.
  5001. if test "$cross_compiling" = yes; then :
  5002. # Try to guess by grepping values from an object file.
  5003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5004. /* end confdefs.h. */
  5005. short int ascii_mm[] =
  5006. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5007. short int ascii_ii[] =
  5008. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5009. int use_ascii (int i) {
  5010. return ascii_mm[i] + ascii_ii[i];
  5011. }
  5012. short int ebcdic_ii[] =
  5013. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5014. short int ebcdic_mm[] =
  5015. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5016. int use_ebcdic (int i) {
  5017. return ebcdic_mm[i] + ebcdic_ii[i];
  5018. }
  5019. extern int foo;
  5020. int
  5021. main ()
  5022. {
  5023. return use_ascii (foo) == use_ebcdic (foo);
  5024. ;
  5025. return 0;
  5026. }
  5027. _ACEOF
  5028. if ac_fn_cxx_try_compile "$LINENO"; then :
  5029. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5030. ac_cv_c_bigendian=yes
  5031. fi
  5032. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5033. if test "$ac_cv_c_bigendian" = unknown; then
  5034. ac_cv_c_bigendian=no
  5035. else
  5036. # finding both strings is unlikely to happen, but who knows?
  5037. ac_cv_c_bigendian=unknown
  5038. fi
  5039. fi
  5040. fi
  5041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5042. else
  5043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5044. /* end confdefs.h. */
  5045. $ac_includes_default
  5046. int
  5047. main ()
  5048. {
  5049. /* Are we little or big endian? From Harbison&Steele. */
  5050. union
  5051. {
  5052. long int l;
  5053. char c[sizeof (long int)];
  5054. } u;
  5055. u.l = 1;
  5056. return u.c[sizeof (long int) - 1] == 1;
  5057. ;
  5058. return 0;
  5059. }
  5060. _ACEOF
  5061. if ac_fn_cxx_try_run "$LINENO"; then :
  5062. ac_cv_c_bigendian=no
  5063. else
  5064. ac_cv_c_bigendian=yes
  5065. fi
  5066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5068. fi
  5069. fi
  5070. fi
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5072. $as_echo "$ac_cv_c_bigendian" >&6; }
  5073. case $ac_cv_c_bigendian in #(
  5074. yes)
  5075. $as_echo "#define B_ENDIAN 1" >>confdefs.h
  5076. ;; #(
  5077. no)
  5078. $as_echo "#define L_ENDIAN 1" >>confdefs.h
  5079. ;; #(
  5080. universal)
  5081. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5082. ;; #(
  5083. *)
  5084. as_fn_error "unknown endianness
  5085. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5086. esac
  5087. #AC_C_INLINE
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5089. $as_echo_n "checking whether char is unsigned... " >&6; }
  5090. if test "${ac_cv_c_char_unsigned+set}" = set; then :
  5091. $as_echo_n "(cached) " >&6
  5092. else
  5093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5094. /* end confdefs.h. */
  5095. $ac_includes_default
  5096. int
  5097. main ()
  5098. {
  5099. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5100. test_array [0] = 0
  5101. ;
  5102. return 0;
  5103. }
  5104. _ACEOF
  5105. if ac_fn_cxx_try_compile "$LINENO"; then :
  5106. ac_cv_c_char_unsigned=no
  5107. else
  5108. ac_cv_c_char_unsigned=yes
  5109. fi
  5110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5111. fi
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  5113. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  5114. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5115. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  5116. fi
  5117. #AC_C_STRINGIZE
  5118. #AC_C_PROTOTYPES
  5119. #checkpoint
  5120. cat >confcache <<\_ACEOF
  5121. # This file is a shell script that caches the results of configure
  5122. # tests run on this system so they can be shared between configure
  5123. # scripts and configure runs, see configure's option --config-cache.
  5124. # It is not useful on other systems. If it contains results you don't
  5125. # want to keep, you may remove or edit it.
  5126. #
  5127. # config.status only pays attention to the cache file if you give it
  5128. # the --recheck option to rerun configure.
  5129. #
  5130. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5131. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5132. # following values.
  5133. _ACEOF
  5134. # The following way of writing the cache mishandles newlines in values,
  5135. # but we know of no workaround that is simple, portable, and efficient.
  5136. # So, we kill variables containing newlines.
  5137. # Ultrix sh set writes to stderr and can't be redirected directly,
  5138. # and sets the high bit in the cache file unless we assign to the vars.
  5139. (
  5140. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5141. eval ac_val=\$$ac_var
  5142. case $ac_val in #(
  5143. *${as_nl}*)
  5144. case $ac_var in #(
  5145. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5146. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5147. esac
  5148. case $ac_var in #(
  5149. _ | IFS | as_nl) ;; #(
  5150. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5151. *) { eval $ac_var=; unset $ac_var;} ;;
  5152. esac ;;
  5153. esac
  5154. done
  5155. (set) 2>&1 |
  5156. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5157. *${as_nl}ac_space=\ *)
  5158. # `set' does not quote correctly, so add quotes: double-quote
  5159. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5160. sed -n \
  5161. "s/'/'\\\\''/g;
  5162. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5163. ;; #(
  5164. *)
  5165. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5166. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5167. ;;
  5168. esac |
  5169. sort
  5170. ) |
  5171. sed '
  5172. /^ac_cv_env_/b end
  5173. t clear
  5174. :clear
  5175. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5176. t end
  5177. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5178. :end' >>confcache
  5179. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5180. if test -w "$cache_file"; then
  5181. test "x$cache_file" != "x/dev/null" &&
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5183. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5184. cat confcache >$cache_file
  5185. else
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5187. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5188. fi
  5189. fi
  5190. rm -f confcache
  5191. # The cast to long int works around a bug in the HP C Compiler
  5192. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5193. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5194. # This bug is HP SR number 8606223364.
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  5196. $as_echo_n "checking size of short... " >&6; }
  5197. if test "${ac_cv_sizeof_short+set}" = set; then :
  5198. $as_echo_n "(cached) " >&6
  5199. else
  5200. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  5201. else
  5202. if test "$ac_cv_type_short" = yes; then
  5203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5205. { as_fn_set_status 77
  5206. as_fn_error "cannot compute sizeof (short)
  5207. See \`config.log' for more details." "$LINENO" 5; }; }
  5208. else
  5209. ac_cv_sizeof_short=0
  5210. fi
  5211. fi
  5212. fi
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  5214. $as_echo "$ac_cv_sizeof_short" >&6; }
  5215. cat >>confdefs.h <<_ACEOF
  5216. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5217. _ACEOF
  5218. # The cast to long int works around a bug in the HP C Compiler
  5219. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5220. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5221. # This bug is HP SR number 8606223364.
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5223. $as_echo_n "checking size of int... " >&6; }
  5224. if test "${ac_cv_sizeof_int+set}" = set; then :
  5225. $as_echo_n "(cached) " >&6
  5226. else
  5227. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5228. else
  5229. if test "$ac_cv_type_int" = yes; then
  5230. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5232. { as_fn_set_status 77
  5233. as_fn_error "cannot compute sizeof (int)
  5234. See \`config.log' for more details." "$LINENO" 5; }; }
  5235. else
  5236. ac_cv_sizeof_int=0
  5237. fi
  5238. fi
  5239. fi
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5241. $as_echo "$ac_cv_sizeof_int" >&6; }
  5242. cat >>confdefs.h <<_ACEOF
  5243. #define SIZEOF_INT $ac_cv_sizeof_int
  5244. _ACEOF
  5245. # The cast to long int works around a bug in the HP C Compiler
  5246. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5247. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5248. # This bug is HP SR number 8606223364.
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5250. $as_echo_n "checking size of long... " >&6; }
  5251. if test "${ac_cv_sizeof_long+set}" = set; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5255. else
  5256. if test "$ac_cv_type_long" = yes; then
  5257. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5259. { as_fn_set_status 77
  5260. as_fn_error "cannot compute sizeof (long)
  5261. See \`config.log' for more details." "$LINENO" 5; }; }
  5262. else
  5263. ac_cv_sizeof_long=0
  5264. fi
  5265. fi
  5266. fi
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5268. $as_echo "$ac_cv_sizeof_long" >&6; }
  5269. cat >>confdefs.h <<_ACEOF
  5270. #define SIZEOF_LONG $ac_cv_sizeof_long
  5271. _ACEOF
  5272. # The cast to long int works around a bug in the HP C Compiler
  5273. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5274. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5275. # This bug is HP SR number 8606223364.
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5277. $as_echo_n "checking size of long long... " >&6; }
  5278. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  5279. $as_echo_n "(cached) " >&6
  5280. else
  5281. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5282. else
  5283. if test "$ac_cv_type_long_long" = yes; then
  5284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5286. { as_fn_set_status 77
  5287. as_fn_error "cannot compute sizeof (long long)
  5288. See \`config.log' for more details." "$LINENO" 5; }; }
  5289. else
  5290. ac_cv_sizeof_long_long=0
  5291. fi
  5292. fi
  5293. fi
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5295. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5296. cat >>confdefs.h <<_ACEOF
  5297. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5298. _ACEOF
  5299. # The cast to long int works around a bug in the HP C Compiler
  5300. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5301. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5302. # This bug is HP SR number 8606223364.
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  5304. $as_echo_n "checking size of size_t... " >&6; }
  5305. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  5306. $as_echo_n "(cached) " >&6
  5307. else
  5308. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  5309. else
  5310. if test "$ac_cv_type_size_t" = yes; then
  5311. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5312. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5313. { as_fn_set_status 77
  5314. as_fn_error "cannot compute sizeof (size_t)
  5315. See \`config.log' for more details." "$LINENO" 5; }; }
  5316. else
  5317. ac_cv_sizeof_size_t=0
  5318. fi
  5319. fi
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  5322. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  5323. cat >>confdefs.h <<_ACEOF
  5324. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  5325. _ACEOF
  5326. # The cast to long int works around a bug in the HP C Compiler
  5327. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5328. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5329. # This bug is HP SR number 8606223364.
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
  5331. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  5332. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
  5336. else
  5337. if test "$ac_cv_type_ptrdiff_t" = yes; then
  5338. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5340. { as_fn_set_status 77
  5341. as_fn_error "cannot compute sizeof (ptrdiff_t)
  5342. See \`config.log' for more details." "$LINENO" 5; }; }
  5343. else
  5344. ac_cv_sizeof_ptrdiff_t=0
  5345. fi
  5346. fi
  5347. fi
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
  5349. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  5350. cat >>confdefs.h <<_ACEOF
  5351. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  5352. _ACEOF
  5353. # The cast to long int works around a bug in the HP C Compiler
  5354. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5355. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5356. # This bug is HP SR number 8606223364.
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  5358. $as_echo_n "checking size of time_t... " >&6; }
  5359. if test "${ac_cv_sizeof_time_t+set}" = set; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  5363. else
  5364. if test "$ac_cv_type_time_t" = yes; then
  5365. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5367. { as_fn_set_status 77
  5368. as_fn_error "cannot compute sizeof (time_t)
  5369. See \`config.log' for more details." "$LINENO" 5; }; }
  5370. else
  5371. ac_cv_sizeof_time_t=0
  5372. fi
  5373. fi
  5374. fi
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  5376. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  5377. cat >>confdefs.h <<_ACEOF
  5378. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  5379. _ACEOF
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5381. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5382. if test "${ac_cv_struct_tm+set}" = set; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5386. /* end confdefs.h. */
  5387. #include <sys/types.h>
  5388. #include <time.h>
  5389. int
  5390. main ()
  5391. {
  5392. struct tm tm;
  5393. int *p = &tm.tm_sec;
  5394. return !p;
  5395. ;
  5396. return 0;
  5397. }
  5398. _ACEOF
  5399. if ac_fn_cxx_try_compile "$LINENO"; then :
  5400. ac_cv_struct_tm=time.h
  5401. else
  5402. ac_cv_struct_tm=sys/time.h
  5403. fi
  5404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5405. fi
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5407. $as_echo "$ac_cv_struct_tm" >&6; }
  5408. if test $ac_cv_struct_tm = sys/time.h; then
  5409. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5410. fi
  5411. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  5412. #include <$ac_cv_struct_tm>
  5413. "
  5414. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  5415. cat >>confdefs.h <<_ACEOF
  5416. #define HAVE_STRUCT_TM_TM_ZONE 1
  5417. _ACEOF
  5418. fi
  5419. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  5420. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  5421. else
  5422. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  5423. "
  5424. if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  5425. ac_have_decl=1
  5426. else
  5427. ac_have_decl=0
  5428. fi
  5429. cat >>confdefs.h <<_ACEOF
  5430. #define HAVE_DECL_TZNAME $ac_have_decl
  5431. _ACEOF
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  5433. $as_echo_n "checking for tzname... " >&6; }
  5434. if test "${ac_cv_var_tzname+set}" = set; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5438. /* end confdefs.h. */
  5439. #include <time.h>
  5440. #if !HAVE_DECL_TZNAME
  5441. extern char *tzname[];
  5442. #endif
  5443. int
  5444. main ()
  5445. {
  5446. return tzname[0][0];
  5447. ;
  5448. return 0;
  5449. }
  5450. _ACEOF
  5451. if ac_fn_cxx_try_link "$LINENO"; then :
  5452. ac_cv_var_tzname=yes
  5453. else
  5454. ac_cv_var_tzname=no
  5455. fi
  5456. rm -f core conftest.err conftest.$ac_objext \
  5457. conftest$ac_exeext conftest.$ac_ext
  5458. fi
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  5460. $as_echo "$ac_cv_var_tzname" >&6; }
  5461. if test $ac_cv_var_tzname = yes; then
  5462. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  5463. fi
  5464. fi
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5466. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5467. if test "${ac_cv_struct_tm+set}" = set; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5471. /* end confdefs.h. */
  5472. #include <sys/types.h>
  5473. #include <time.h>
  5474. int
  5475. main ()
  5476. {
  5477. struct tm tm;
  5478. int *p = &tm.tm_sec;
  5479. return !p;
  5480. ;
  5481. return 0;
  5482. }
  5483. _ACEOF
  5484. if ac_fn_cxx_try_compile "$LINENO"; then :
  5485. ac_cv_struct_tm=time.h
  5486. else
  5487. ac_cv_struct_tm=sys/time.h
  5488. fi
  5489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5490. fi
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5492. $as_echo "$ac_cv_struct_tm" >&6; }
  5493. if test $ac_cv_struct_tm = sys/time.h; then
  5494. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5495. fi
  5496. # Checks for library functions
  5497. for ac_header in vfork.h
  5498. do :
  5499. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5500. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5501. cat >>confdefs.h <<_ACEOF
  5502. #define HAVE_VFORK_H 1
  5503. _ACEOF
  5504. fi
  5505. done
  5506. for ac_func in fork vfork
  5507. do :
  5508. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5509. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5510. eval as_val=\$$as_ac_var
  5511. if test "x$as_val" = x""yes; then :
  5512. cat >>confdefs.h <<_ACEOF
  5513. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5514. _ACEOF
  5515. fi
  5516. done
  5517. if test "x$ac_cv_func_fork" = xyes; then
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5519. $as_echo_n "checking for working fork... " >&6; }
  5520. if test "${ac_cv_func_fork_works+set}" = set; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. if test "$cross_compiling" = yes; then :
  5524. ac_cv_func_fork_works=cross
  5525. else
  5526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5527. /* end confdefs.h. */
  5528. $ac_includes_default
  5529. int
  5530. main ()
  5531. {
  5532. /* By Ruediger Kuhlmann. */
  5533. return fork () < 0;
  5534. ;
  5535. return 0;
  5536. }
  5537. _ACEOF
  5538. if ac_fn_cxx_try_run "$LINENO"; then :
  5539. ac_cv_func_fork_works=yes
  5540. else
  5541. ac_cv_func_fork_works=no
  5542. fi
  5543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5545. fi
  5546. fi
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5548. $as_echo "$ac_cv_func_fork_works" >&6; }
  5549. else
  5550. ac_cv_func_fork_works=$ac_cv_func_fork
  5551. fi
  5552. if test "x$ac_cv_func_fork_works" = xcross; then
  5553. case $host in
  5554. *-*-amigaos* | *-*-msdosdjgpp*)
  5555. # Override, as these systems have only a dummy fork() stub
  5556. ac_cv_func_fork_works=no
  5557. ;;
  5558. *)
  5559. ac_cv_func_fork_works=yes
  5560. ;;
  5561. esac
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5563. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5564. fi
  5565. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5566. if test "x$ac_cv_func_vfork" = xyes; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5568. $as_echo_n "checking for working vfork... " >&6; }
  5569. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test "$cross_compiling" = yes; then :
  5573. ac_cv_func_vfork_works=cross
  5574. else
  5575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5576. /* end confdefs.h. */
  5577. /* Thanks to Paul Eggert for this test. */
  5578. $ac_includes_default
  5579. #include <sys/wait.h>
  5580. #ifdef HAVE_VFORK_H
  5581. # include <vfork.h>
  5582. #endif
  5583. /* On some sparc systems, changes by the child to local and incoming
  5584. argument registers are propagated back to the parent. The compiler
  5585. is told about this with #include <vfork.h>, but some compilers
  5586. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5587. static variable whose address is put into a register that is
  5588. clobbered by the vfork. */
  5589. static void
  5590. #ifdef __cplusplus
  5591. sparc_address_test (int arg)
  5592. # else
  5593. sparc_address_test (arg) int arg;
  5594. #endif
  5595. {
  5596. static pid_t child;
  5597. if (!child) {
  5598. child = vfork ();
  5599. if (child < 0) {
  5600. perror ("vfork");
  5601. _exit(2);
  5602. }
  5603. if (!child) {
  5604. arg = getpid();
  5605. write(-1, "", 0);
  5606. _exit (arg);
  5607. }
  5608. }
  5609. }
  5610. int
  5611. main ()
  5612. {
  5613. pid_t parent = getpid ();
  5614. pid_t child;
  5615. sparc_address_test (0);
  5616. child = vfork ();
  5617. if (child == 0) {
  5618. /* Here is another test for sparc vfork register problems. This
  5619. test uses lots of local variables, at least as many local
  5620. variables as main has allocated so far including compiler
  5621. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5622. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5623. reuse the register of parent for one of the local variables,
  5624. since it will think that parent can't possibly be used any more
  5625. in this routine. Assigning to the local variable will thus
  5626. munge parent in the parent process. */
  5627. pid_t
  5628. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5629. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5630. /* Convince the compiler that p..p7 are live; otherwise, it might
  5631. use the same hardware register for all 8 local variables. */
  5632. if (p != p1 || p != p2 || p != p3 || p != p4
  5633. || p != p5 || p != p6 || p != p7)
  5634. _exit(1);
  5635. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5636. from child file descriptors. If the child closes a descriptor
  5637. before it execs or exits, this munges the parent's descriptor
  5638. as well. Test for this by closing stdout in the child. */
  5639. _exit(close(fileno(stdout)) != 0);
  5640. } else {
  5641. int status;
  5642. struct stat st;
  5643. while (wait(&status) != child)
  5644. ;
  5645. return (
  5646. /* Was there some problem with vforking? */
  5647. child < 0
  5648. /* Did the child fail? (This shouldn't happen.) */
  5649. || status
  5650. /* Did the vfork/compiler bug occur? */
  5651. || parent != getpid()
  5652. /* Did the file descriptor bug occur? */
  5653. || fstat(fileno(stdout), &st) != 0
  5654. );
  5655. }
  5656. }
  5657. _ACEOF
  5658. if ac_fn_cxx_try_run "$LINENO"; then :
  5659. ac_cv_func_vfork_works=yes
  5660. else
  5661. ac_cv_func_vfork_works=no
  5662. fi
  5663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5665. fi
  5666. fi
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5668. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5669. fi;
  5670. if test "x$ac_cv_func_fork_works" = xcross; then
  5671. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5673. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5674. fi
  5675. if test "x$ac_cv_func_vfork_works" = xyes; then
  5676. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5677. else
  5678. $as_echo "#define vfork fork" >>confdefs.h
  5679. fi
  5680. if test "x$ac_cv_func_fork_works" = xyes; then
  5681. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5682. fi
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  5684. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  5685. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. rm -f conftest.sym conftest.file
  5689. echo >conftest.file
  5690. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  5691. if test "$cross_compiling" = yes; then :
  5692. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5693. else
  5694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5695. /* end confdefs.h. */
  5696. $ac_includes_default
  5697. int
  5698. main ()
  5699. {
  5700. struct stat sbuf;
  5701. /* Linux will dereference the symlink and fail, as required by POSIX.
  5702. That is better in the sense that it means we will not
  5703. have to compile and use the lstat wrapper. */
  5704. return lstat ("conftest.sym/", &sbuf) == 0;
  5705. ;
  5706. return 0;
  5707. }
  5708. _ACEOF
  5709. if ac_fn_cxx_try_run "$LINENO"; then :
  5710. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  5711. else
  5712. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5713. fi
  5714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5716. fi
  5717. else
  5718. # If the `ln -s' command failed, then we probably don't even
  5719. # have an lstat function.
  5720. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5721. fi
  5722. rm -f conftest.sym conftest.file
  5723. fi
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  5725. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  5726. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  5727. cat >>confdefs.h <<_ACEOF
  5728. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  5729. _ACEOF
  5730. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  5731. case " $LIBOBJS " in
  5732. *" lstat.$ac_objext "* ) ;;
  5733. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5734. ;;
  5735. esac
  5736. fi
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  5738. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  5739. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. if test "$cross_compiling" = yes; then :
  5743. ac_cv_func_lstat_empty_string_bug=yes
  5744. else
  5745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5746. /* end confdefs.h. */
  5747. $ac_includes_default
  5748. int
  5749. main ()
  5750. {
  5751. struct stat sbuf;
  5752. return lstat ("", &sbuf) == 0;
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. if ac_fn_cxx_try_run "$LINENO"; then :
  5758. ac_cv_func_lstat_empty_string_bug=no
  5759. else
  5760. ac_cv_func_lstat_empty_string_bug=yes
  5761. fi
  5762. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5763. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5764. fi
  5765. fi
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  5767. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  5768. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  5769. case " $LIBOBJS " in
  5770. *" lstat.$ac_objext "* ) ;;
  5771. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5772. ;;
  5773. esac
  5774. cat >>confdefs.h <<_ACEOF
  5775. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  5776. _ACEOF
  5777. fi
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  5779. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  5780. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. rm -f conftest.sym conftest.file
  5784. echo >conftest.file
  5785. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  5786. if test "$cross_compiling" = yes; then :
  5787. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5788. else
  5789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5790. /* end confdefs.h. */
  5791. $ac_includes_default
  5792. int
  5793. main ()
  5794. {
  5795. struct stat sbuf;
  5796. /* Linux will dereference the symlink and fail, as required by POSIX.
  5797. That is better in the sense that it means we will not
  5798. have to compile and use the lstat wrapper. */
  5799. return lstat ("conftest.sym/", &sbuf) == 0;
  5800. ;
  5801. return 0;
  5802. }
  5803. _ACEOF
  5804. if ac_fn_cxx_try_run "$LINENO"; then :
  5805. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  5806. else
  5807. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5808. fi
  5809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5810. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5811. fi
  5812. else
  5813. # If the `ln -s' command failed, then we probably don't even
  5814. # have an lstat function.
  5815. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5816. fi
  5817. rm -f conftest.sym conftest.file
  5818. fi
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  5820. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  5821. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  5822. cat >>confdefs.h <<_ACEOF
  5823. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  5824. _ACEOF
  5825. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  5826. case " $LIBOBJS " in
  5827. *" lstat.$ac_objext "* ) ;;
  5828. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5829. ;;
  5830. esac
  5831. fi
  5832. for ac_header in stdlib.h
  5833. do :
  5834. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5835. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  5836. cat >>confdefs.h <<_ACEOF
  5837. #define HAVE_STDLIB_H 1
  5838. _ACEOF
  5839. fi
  5840. done
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  5842. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  5843. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  5844. $as_echo_n "(cached) " >&6
  5845. else
  5846. if test "$cross_compiling" = yes; then :
  5847. ac_cv_func_malloc_0_nonnull=no
  5848. else
  5849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5850. /* end confdefs.h. */
  5851. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  5852. # include <stdlib.h>
  5853. #else
  5854. char *malloc ();
  5855. #endif
  5856. int
  5857. main ()
  5858. {
  5859. return ! malloc (0);
  5860. ;
  5861. return 0;
  5862. }
  5863. _ACEOF
  5864. if ac_fn_cxx_try_run "$LINENO"; then :
  5865. ac_cv_func_malloc_0_nonnull=yes
  5866. else
  5867. ac_cv_func_malloc_0_nonnull=no
  5868. fi
  5869. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5870. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5871. fi
  5872. fi
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  5874. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  5875. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  5876. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  5877. else
  5878. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  5879. case " $LIBOBJS " in
  5880. *" malloc.$ac_objext "* ) ;;
  5881. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  5882. ;;
  5883. esac
  5884. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  5885. fi
  5886. for ac_header in $ac_header_list
  5887. do :
  5888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5889. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5890. "
  5891. eval as_val=\$$as_ac_Header
  5892. if test "x$as_val" = x""yes; then :
  5893. cat >>confdefs.h <<_ACEOF
  5894. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5895. _ACEOF
  5896. fi
  5897. done
  5898. for ac_func in $ac_func_list
  5899. do :
  5900. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5901. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5902. eval as_val=\$$as_ac_var
  5903. if test "x$as_val" = x""yes; then :
  5904. cat >>confdefs.h <<_ACEOF
  5905. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5906. _ACEOF
  5907. fi
  5908. done
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  5910. $as_echo_n "checking for working mktime... " >&6; }
  5911. if test "${ac_cv_func_working_mktime+set}" = set; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. if test "$cross_compiling" = yes; then :
  5915. ac_cv_func_working_mktime=no
  5916. else
  5917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5918. /* end confdefs.h. */
  5919. /* Test program from Paul Eggert and Tony Leneis. */
  5920. #ifdef TIME_WITH_SYS_TIME
  5921. # include <sys/time.h>
  5922. # include <time.h>
  5923. #else
  5924. # ifdef HAVE_SYS_TIME_H
  5925. # include <sys/time.h>
  5926. # else
  5927. # include <time.h>
  5928. # endif
  5929. #endif
  5930. #include <limits.h>
  5931. #include <stdlib.h>
  5932. #ifdef HAVE_UNISTD_H
  5933. # include <unistd.h>
  5934. #endif
  5935. #ifndef HAVE_ALARM
  5936. # define alarm(X) /* empty */
  5937. #endif
  5938. /* Work around redefinition to rpl_putenv by other config tests. */
  5939. #undef putenv
  5940. static time_t time_t_max;
  5941. static time_t time_t_min;
  5942. /* Values we'll use to set the TZ environment variable. */
  5943. static char *tz_strings[] = {
  5944. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  5945. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  5946. };
  5947. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  5948. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  5949. Based on a problem report from Andreas Jaeger. */
  5950. static int
  5951. spring_forward_gap ()
  5952. {
  5953. /* glibc (up to about 1998-10-07) failed this test. */
  5954. struct tm tm;
  5955. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  5956. instead of "TZ=America/Vancouver" in order to detect the bug even
  5957. on systems that don't support the Olson extension, or don't have the
  5958. full zoneinfo tables installed. */
  5959. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  5960. tm.tm_year = 98;
  5961. tm.tm_mon = 3;
  5962. tm.tm_mday = 5;
  5963. tm.tm_hour = 2;
  5964. tm.tm_min = 0;
  5965. tm.tm_sec = 0;
  5966. tm.tm_isdst = -1;
  5967. return mktime (&tm) != (time_t) -1;
  5968. }
  5969. static int
  5970. mktime_test1 (now)
  5971. time_t now;
  5972. {
  5973. struct tm *lt;
  5974. return ! (lt = localtime (&now)) || mktime (lt) == now;
  5975. }
  5976. static int
  5977. mktime_test (now)
  5978. time_t now;
  5979. {
  5980. return (mktime_test1 (now)
  5981. && mktime_test1 ((time_t) (time_t_max - now))
  5982. && mktime_test1 ((time_t) (time_t_min + now)));
  5983. }
  5984. static int
  5985. irix_6_4_bug ()
  5986. {
  5987. /* Based on code from Ariel Faigon. */
  5988. struct tm tm;
  5989. tm.tm_year = 96;
  5990. tm.tm_mon = 3;
  5991. tm.tm_mday = 0;
  5992. tm.tm_hour = 0;
  5993. tm.tm_min = 0;
  5994. tm.tm_sec = 0;
  5995. tm.tm_isdst = -1;
  5996. mktime (&tm);
  5997. return tm.tm_mon == 2 && tm.tm_mday == 31;
  5998. }
  5999. static int
  6000. bigtime_test (j)
  6001. int j;
  6002. {
  6003. struct tm tm;
  6004. time_t now;
  6005. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  6006. now = mktime (&tm);
  6007. if (now != (time_t) -1)
  6008. {
  6009. struct tm *lt = localtime (&now);
  6010. if (! (lt
  6011. && lt->tm_year == tm.tm_year
  6012. && lt->tm_mon == tm.tm_mon
  6013. && lt->tm_mday == tm.tm_mday
  6014. && lt->tm_hour == tm.tm_hour
  6015. && lt->tm_min == tm.tm_min
  6016. && lt->tm_sec == tm.tm_sec
  6017. && lt->tm_yday == tm.tm_yday
  6018. && lt->tm_wday == tm.tm_wday
  6019. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6020. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6021. return 0;
  6022. }
  6023. return 1;
  6024. }
  6025. static int
  6026. year_2050_test ()
  6027. {
  6028. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6029. ignoring leap seconds. */
  6030. unsigned long int answer = 2527315200UL;
  6031. struct tm tm;
  6032. time_t t;
  6033. tm.tm_year = 2050 - 1900;
  6034. tm.tm_mon = 2 - 1;
  6035. tm.tm_mday = 1;
  6036. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6037. tm.tm_isdst = -1;
  6038. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6039. instead of "TZ=America/Vancouver" in order to detect the bug even
  6040. on systems that don't support the Olson extension, or don't have the
  6041. full zoneinfo tables installed. */
  6042. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  6043. t = mktime (&tm);
  6044. /* Check that the result is either a failure, or close enough
  6045. to the correct answer that we can assume the discrepancy is
  6046. due to leap seconds. */
  6047. return (t == (time_t) -1
  6048. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6049. }
  6050. int
  6051. main ()
  6052. {
  6053. time_t t, delta;
  6054. int i, j;
  6055. /* This test makes some buggy mktime implementations loop.
  6056. Give up after 60 seconds; a mktime slower than that
  6057. isn't worth using anyway. */
  6058. alarm (60);
  6059. for (;;)
  6060. {
  6061. t = (time_t_max << 1) + 1;
  6062. if (t <= time_t_max)
  6063. break;
  6064. time_t_max = t;
  6065. }
  6066. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6067. delta = time_t_max / 997; /* a suitable prime number */
  6068. for (i = 0; i < N_STRINGS; i++)
  6069. {
  6070. if (tz_strings[i])
  6071. putenv (tz_strings[i]);
  6072. for (t = 0; t <= time_t_max - delta; t += delta)
  6073. if (! mktime_test (t))
  6074. return 1;
  6075. if (! (mktime_test ((time_t) 1)
  6076. && mktime_test ((time_t) (60 * 60))
  6077. && mktime_test ((time_t) (60 * 60 * 24))))
  6078. return 1;
  6079. for (j = 1; ; j <<= 1)
  6080. if (! bigtime_test (j))
  6081. return 1;
  6082. else if (INT_MAX / 2 < j)
  6083. break;
  6084. if (! bigtime_test (INT_MAX))
  6085. return 1;
  6086. }
  6087. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  6088. }
  6089. _ACEOF
  6090. if ac_fn_cxx_try_run "$LINENO"; then :
  6091. ac_cv_func_working_mktime=yes
  6092. else
  6093. ac_cv_func_working_mktime=no
  6094. fi
  6095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6096. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6097. fi
  6098. fi
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  6100. $as_echo "$ac_cv_func_working_mktime" >&6; }
  6101. if test $ac_cv_func_working_mktime = no; then
  6102. case " $LIBOBJS " in
  6103. *" mktime.$ac_objext "* ) ;;
  6104. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  6105. ;;
  6106. esac
  6107. fi
  6108. for ac_func in getpagesize
  6109. do :
  6110. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6111. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  6112. cat >>confdefs.h <<_ACEOF
  6113. #define HAVE_GETPAGESIZE 1
  6114. _ACEOF
  6115. fi
  6116. done
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6118. $as_echo_n "checking for working mmap... " >&6; }
  6119. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test "$cross_compiling" = yes; then :
  6123. ac_cv_func_mmap_fixed_mapped=no
  6124. else
  6125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6126. /* end confdefs.h. */
  6127. $ac_includes_default
  6128. /* malloc might have been renamed as rpl_malloc. */
  6129. #undef malloc
  6130. /* Thanks to Mike Haertel and Jim Avera for this test.
  6131. Here is a matrix of mmap possibilities:
  6132. mmap private not fixed
  6133. mmap private fixed at somewhere currently unmapped
  6134. mmap private fixed at somewhere already mapped
  6135. mmap shared not fixed
  6136. mmap shared fixed at somewhere currently unmapped
  6137. mmap shared fixed at somewhere already mapped
  6138. For private mappings, we should verify that changes cannot be read()
  6139. back from the file, nor mmap's back from the file at a different
  6140. address. (There have been systems where private was not correctly
  6141. implemented like the infamous i386 svr4.0, and systems where the
  6142. VM page cache was not coherent with the file system buffer cache
  6143. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6144. For shared mappings, we should conversely verify that changes get
  6145. propagated back to all the places they're supposed to be.
  6146. Grep wants private fixed already mapped.
  6147. The main things grep needs to know about mmap are:
  6148. * does it exist and is it safe to write into the mmap'd area
  6149. * how to use it (BSD variants) */
  6150. #include <fcntl.h>
  6151. #include <sys/mman.h>
  6152. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6153. char *malloc ();
  6154. #endif
  6155. /* This mess was copied from the GNU getpagesize.h. */
  6156. #ifndef HAVE_GETPAGESIZE
  6157. # ifdef _SC_PAGESIZE
  6158. # define getpagesize() sysconf(_SC_PAGESIZE)
  6159. # else /* no _SC_PAGESIZE */
  6160. # ifdef HAVE_SYS_PARAM_H
  6161. # include <sys/param.h>
  6162. # ifdef EXEC_PAGESIZE
  6163. # define getpagesize() EXEC_PAGESIZE
  6164. # else /* no EXEC_PAGESIZE */
  6165. # ifdef NBPG
  6166. # define getpagesize() NBPG * CLSIZE
  6167. # ifndef CLSIZE
  6168. # define CLSIZE 1
  6169. # endif /* no CLSIZE */
  6170. # else /* no NBPG */
  6171. # ifdef NBPC
  6172. # define getpagesize() NBPC
  6173. # else /* no NBPC */
  6174. # ifdef PAGESIZE
  6175. # define getpagesize() PAGESIZE
  6176. # endif /* PAGESIZE */
  6177. # endif /* no NBPC */
  6178. # endif /* no NBPG */
  6179. # endif /* no EXEC_PAGESIZE */
  6180. # else /* no HAVE_SYS_PARAM_H */
  6181. # define getpagesize() 8192 /* punt totally */
  6182. # endif /* no HAVE_SYS_PARAM_H */
  6183. # endif /* no _SC_PAGESIZE */
  6184. #endif /* no HAVE_GETPAGESIZE */
  6185. int
  6186. main ()
  6187. {
  6188. char *data, *data2, *data3;
  6189. int i, pagesize;
  6190. int fd, fd2;
  6191. pagesize = getpagesize ();
  6192. /* First, make a file with some known garbage in it. */
  6193. data = (char *) malloc (pagesize);
  6194. if (!data)
  6195. return 1;
  6196. for (i = 0; i < pagesize; ++i)
  6197. *(data + i) = rand ();
  6198. umask (0);
  6199. fd = creat ("conftest.mmap", 0600);
  6200. if (fd < 0)
  6201. return 2;
  6202. if (write (fd, data, pagesize) != pagesize)
  6203. return 3;
  6204. close (fd);
  6205. /* Next, check that the tail of a page is zero-filled. File must have
  6206. non-zero length, otherwise we risk SIGBUS for entire page. */
  6207. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6208. if (fd2 < 0)
  6209. return 4;
  6210. data2 = "";
  6211. if (write (fd2, data2, 1) != 1)
  6212. return 5;
  6213. data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6214. if (data2 == MAP_FAILED)
  6215. return 6;
  6216. for (i = 0; i < pagesize; ++i)
  6217. if (*(data2 + i))
  6218. return 7;
  6219. close (fd2);
  6220. if (munmap (data2, pagesize))
  6221. return 8;
  6222. /* Next, try to mmap the file at a fixed address which already has
  6223. something else allocated at it. If we can, also make sure that
  6224. we see the same garbage. */
  6225. fd = open ("conftest.mmap", O_RDWR);
  6226. if (fd < 0)
  6227. return 9;
  6228. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6229. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6230. return 10;
  6231. for (i = 0; i < pagesize; ++i)
  6232. if (*(data + i) != *(data2 + i))
  6233. return 11;
  6234. /* Finally, make sure that changes to the mapped area do not
  6235. percolate back to the file as seen by read(). (This is a bug on
  6236. some variants of i386 svr4.0.) */
  6237. for (i = 0; i < pagesize; ++i)
  6238. *(data2 + i) = *(data2 + i) + 1;
  6239. data3 = (char *) malloc (pagesize);
  6240. if (!data3)
  6241. return 12;
  6242. if (read (fd, data3, pagesize) != pagesize)
  6243. return 13;
  6244. for (i = 0; i < pagesize; ++i)
  6245. if (*(data + i) != *(data3 + i))
  6246. return 14;
  6247. close (fd);
  6248. return 0;
  6249. }
  6250. _ACEOF
  6251. if ac_fn_cxx_try_run "$LINENO"; then :
  6252. ac_cv_func_mmap_fixed_mapped=yes
  6253. else
  6254. ac_cv_func_mmap_fixed_mapped=no
  6255. fi
  6256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6257. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6258. fi
  6259. fi
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6261. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6262. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6263. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6264. fi
  6265. rm -f conftest.mmap conftest.txt
  6266. for ac_header in stdlib.h
  6267. do :
  6268. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6269. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  6270. cat >>confdefs.h <<_ACEOF
  6271. #define HAVE_STDLIB_H 1
  6272. _ACEOF
  6273. fi
  6274. done
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  6276. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  6277. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. if test "$cross_compiling" = yes; then :
  6281. ac_cv_func_realloc_0_nonnull=no
  6282. else
  6283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6284. /* end confdefs.h. */
  6285. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6286. # include <stdlib.h>
  6287. #else
  6288. char *realloc ();
  6289. #endif
  6290. int
  6291. main ()
  6292. {
  6293. return ! realloc (0, 0);
  6294. ;
  6295. return 0;
  6296. }
  6297. _ACEOF
  6298. if ac_fn_cxx_try_run "$LINENO"; then :
  6299. ac_cv_func_realloc_0_nonnull=yes
  6300. else
  6301. ac_cv_func_realloc_0_nonnull=no
  6302. fi
  6303. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6304. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6305. fi
  6306. fi
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  6308. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  6309. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  6310. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  6311. else
  6312. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  6313. case " $LIBOBJS " in
  6314. *" realloc.$ac_objext "* ) ;;
  6315. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  6316. ;;
  6317. esac
  6318. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  6319. fi
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  6321. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  6322. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. if test "$cross_compiling" = yes; then :
  6326. ac_cv_func_stat_empty_string_bug=yes
  6327. else
  6328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329. /* end confdefs.h. */
  6330. $ac_includes_default
  6331. int
  6332. main ()
  6333. {
  6334. struct stat sbuf;
  6335. return stat ("", &sbuf) == 0;
  6336. ;
  6337. return 0;
  6338. }
  6339. _ACEOF
  6340. if ac_fn_cxx_try_run "$LINENO"; then :
  6341. ac_cv_func_stat_empty_string_bug=no
  6342. else
  6343. ac_cv_func_stat_empty_string_bug=yes
  6344. fi
  6345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6346. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6347. fi
  6348. fi
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  6350. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  6351. if test $ac_cv_func_stat_empty_string_bug = yes; then
  6352. case " $LIBOBJS " in
  6353. *" stat.$ac_objext "* ) ;;
  6354. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  6355. ;;
  6356. esac
  6357. cat >>confdefs.h <<_ACEOF
  6358. #define HAVE_STAT_EMPTY_STRING_BUG 1
  6359. _ACEOF
  6360. fi
  6361. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  6362. #include <sys/time.h>
  6363. #include <time.h>
  6364. "
  6365. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  6366. $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
  6367. fi
  6368. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  6369. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  6370. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
  6371. $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
  6372. else
  6373. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  6374. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
  6375. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
  6376. fi
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  6379. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  6380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end confdefs.h. */
  6382. #include <sys/types.h>
  6383. #include <sys/time.h>
  6384. int
  6385. main ()
  6386. {
  6387. struct timespec ts1, ts2;
  6388. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  6389. #ifndef timespecsub
  6390. #error missing timespecsub
  6391. #endif
  6392. timespecsub(&ts1, &ts2);
  6393. ;
  6394. return 0;
  6395. }
  6396. _ACEOF
  6397. if ac_fn_cxx_try_compile "$LINENO"; then :
  6398. $as_echo "#define HAVE_TIMESPECSUB2 1" >>confdefs.h
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6400. $as_echo "yes" >&6; }
  6401. else
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6403. $as_echo "no" >&6; }
  6404. fi
  6405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6406. fi
  6407. for ac_func in strftime
  6408. do :
  6409. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  6410. if test "x$ac_cv_func_strftime" = x""yes; then :
  6411. cat >>confdefs.h <<_ACEOF
  6412. #define HAVE_STRFTIME 1
  6413. _ACEOF
  6414. else
  6415. # strftime is in -lintl on SCO UNIX.
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  6417. $as_echo_n "checking for strftime in -lintl... " >&6; }
  6418. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. ac_check_lib_save_LIBS=$LIBS
  6422. LIBS="-lintl $LIBS"
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. /* Override any GCC internal prototype to avoid an error.
  6426. Use char because int might match the return type of a GCC
  6427. builtin and then its argument prototype would still apply. */
  6428. #ifdef __cplusplus
  6429. extern "C"
  6430. #endif
  6431. char strftime ();
  6432. int
  6433. main ()
  6434. {
  6435. return strftime ();
  6436. ;
  6437. return 0;
  6438. }
  6439. _ACEOF
  6440. if ac_fn_cxx_try_link "$LINENO"; then :
  6441. ac_cv_lib_intl_strftime=yes
  6442. else
  6443. ac_cv_lib_intl_strftime=no
  6444. fi
  6445. rm -f core conftest.err conftest.$ac_objext \
  6446. conftest$ac_exeext conftest.$ac_ext
  6447. LIBS=$ac_check_lib_save_LIBS
  6448. fi
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  6450. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  6451. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  6452. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  6453. LIBS="-lintl $LIBS"
  6454. fi
  6455. fi
  6456. done
  6457. #checkpoint
  6458. cat >confcache <<\_ACEOF
  6459. # This file is a shell script that caches the results of configure
  6460. # tests run on this system so they can be shared between configure
  6461. # scripts and configure runs, see configure's option --config-cache.
  6462. # It is not useful on other systems. If it contains results you don't
  6463. # want to keep, you may remove or edit it.
  6464. #
  6465. # config.status only pays attention to the cache file if you give it
  6466. # the --recheck option to rerun configure.
  6467. #
  6468. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6469. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6470. # following values.
  6471. _ACEOF
  6472. # The following way of writing the cache mishandles newlines in values,
  6473. # but we know of no workaround that is simple, portable, and efficient.
  6474. # So, we kill variables containing newlines.
  6475. # Ultrix sh set writes to stderr and can't be redirected directly,
  6476. # and sets the high bit in the cache file unless we assign to the vars.
  6477. (
  6478. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6479. eval ac_val=\$$ac_var
  6480. case $ac_val in #(
  6481. *${as_nl}*)
  6482. case $ac_var in #(
  6483. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6484. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6485. esac
  6486. case $ac_var in #(
  6487. _ | IFS | as_nl) ;; #(
  6488. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6489. *) { eval $ac_var=; unset $ac_var;} ;;
  6490. esac ;;
  6491. esac
  6492. done
  6493. (set) 2>&1 |
  6494. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6495. *${as_nl}ac_space=\ *)
  6496. # `set' does not quote correctly, so add quotes: double-quote
  6497. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6498. sed -n \
  6499. "s/'/'\\\\''/g;
  6500. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6501. ;; #(
  6502. *)
  6503. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6504. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6505. ;;
  6506. esac |
  6507. sort
  6508. ) |
  6509. sed '
  6510. /^ac_cv_env_/b end
  6511. t clear
  6512. :clear
  6513. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6514. t end
  6515. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6516. :end' >>confcache
  6517. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6518. if test -w "$cache_file"; then
  6519. test "x$cache_file" != "x/dev/null" &&
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6521. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6522. cat confcache >$cache_file
  6523. else
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6525. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6526. fi
  6527. fi
  6528. rm -f confcache
  6529. for ac_func in clock fsync getrusage isascii getpassphrase
  6530. do :
  6531. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6532. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6533. eval as_val=\$$as_ac_var
  6534. if test "x$as_val" = x""yes; then :
  6535. cat >>confdefs.h <<_ACEOF
  6536. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6537. _ACEOF
  6538. fi
  6539. done
  6540. for ac_func in memcpy memset random rename snprintf srandom gettime
  6541. do :
  6542. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6543. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6544. eval as_val=\$$as_ac_var
  6545. if test "x$as_val" = x""yes; then :
  6546. cat >>confdefs.h <<_ACEOF
  6547. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6548. _ACEOF
  6549. fi
  6550. done
  6551. #checkpoint
  6552. cat >confcache <<\_ACEOF
  6553. # This file is a shell script that caches the results of configure
  6554. # tests run on this system so they can be shared between configure
  6555. # scripts and configure runs, see configure's option --config-cache.
  6556. # It is not useful on other systems. If it contains results you don't
  6557. # want to keep, you may remove or edit it.
  6558. #
  6559. # config.status only pays attention to the cache file if you give it
  6560. # the --recheck option to rerun configure.
  6561. #
  6562. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6563. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6564. # following values.
  6565. _ACEOF
  6566. # The following way of writing the cache mishandles newlines in values,
  6567. # but we know of no workaround that is simple, portable, and efficient.
  6568. # So, we kill variables containing newlines.
  6569. # Ultrix sh set writes to stderr and can't be redirected directly,
  6570. # and sets the high bit in the cache file unless we assign to the vars.
  6571. (
  6572. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6573. eval ac_val=\$$ac_var
  6574. case $ac_val in #(
  6575. *${as_nl}*)
  6576. case $ac_var in #(
  6577. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6578. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6579. esac
  6580. case $ac_var in #(
  6581. _ | IFS | as_nl) ;; #(
  6582. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6583. *) { eval $ac_var=; unset $ac_var;} ;;
  6584. esac ;;
  6585. esac
  6586. done
  6587. (set) 2>&1 |
  6588. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6589. *${as_nl}ac_space=\ *)
  6590. # `set' does not quote correctly, so add quotes: double-quote
  6591. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6592. sed -n \
  6593. "s/'/'\\\\''/g;
  6594. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6595. ;; #(
  6596. *)
  6597. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6598. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6599. ;;
  6600. esac |
  6601. sort
  6602. ) |
  6603. sed '
  6604. /^ac_cv_env_/b end
  6605. t clear
  6606. :clear
  6607. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6608. t end
  6609. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6610. :end' >>confcache
  6611. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6612. if test -w "$cache_file"; then
  6613. test "x$cache_file" != "x/dev/null" &&
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6615. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6616. cat confcache >$cache_file
  6617. else
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6619. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6620. fi
  6621. fi
  6622. rm -f confcache
  6623. for ac_func in strcasecmp strncasecmp vsnprintf
  6624. do :
  6625. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6626. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6627. eval as_val=\$$as_ac_var
  6628. if test "x$as_val" = x""yes; then :
  6629. cat >>confdefs.h <<_ACEOF
  6630. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6631. _ACEOF
  6632. fi
  6633. done
  6634. #autoscan suggested this....
  6635. #These are recommended by autoscan, but no code supports it currently
  6636. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  6637. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  6638. for ac_func in vsprintf
  6639. do :
  6640. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  6641. if test "x$ac_cv_func_vsprintf" = x""yes; then :
  6642. cat >>confdefs.h <<_ACEOF
  6643. #define HAVE_VSPRINTF 1
  6644. _ACEOF
  6645. fi
  6646. done
  6647. if test "$ac_cv_func_vsprintf" = "no"
  6648. then
  6649. cat << 'EOF' >&2
  6650. configure: error:
  6651. Your system does not have the sprintf/vsprintf libraries.
  6652. These are required to compile almost anything. Sorry.
  6653. EOF
  6654. exit 1
  6655. fi
  6656. for ac_func in uname
  6657. do :
  6658. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  6659. if test "x$ac_cv_func_uname" = x""yes; then :
  6660. cat >>confdefs.h <<_ACEOF
  6661. #define HAVE_UNAME 1
  6662. _ACEOF
  6663. fi
  6664. done
  6665. if test "$ac_cv_func_uname" = "no"
  6666. then
  6667. cat << 'EOF' >&2
  6668. configure: error:
  6669. Your system does not have the uname() function.
  6670. This is required for the botpack.
  6671. EOF
  6672. exit 1
  6673. fi
  6674. # Make sure we have stdc headers, since we can't compile without them
  6675. if test "$ac_cv_header_stdc" = "no"
  6676. then
  6677. cat << 'EOF' >&2
  6678. configure: error:
  6679. Your system must support ANSI C Header files.
  6680. These are required for the language support. Sorry.
  6681. EOF
  6682. exit 1
  6683. fi
  6684. #checkpoint
  6685. cat >confcache <<\_ACEOF
  6686. # This file is a shell script that caches the results of configure
  6687. # tests run on this system so they can be shared between configure
  6688. # scripts and configure runs, see configure's option --config-cache.
  6689. # It is not useful on other systems. If it contains results you don't
  6690. # want to keep, you may remove or edit it.
  6691. #
  6692. # config.status only pays attention to the cache file if you give it
  6693. # the --recheck option to rerun configure.
  6694. #
  6695. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6696. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6697. # following values.
  6698. _ACEOF
  6699. # The following way of writing the cache mishandles newlines in values,
  6700. # but we know of no workaround that is simple, portable, and efficient.
  6701. # So, we kill variables containing newlines.
  6702. # Ultrix sh set writes to stderr and can't be redirected directly,
  6703. # and sets the high bit in the cache file unless we assign to the vars.
  6704. (
  6705. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6706. eval ac_val=\$$ac_var
  6707. case $ac_val in #(
  6708. *${as_nl}*)
  6709. case $ac_var in #(
  6710. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6711. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6712. esac
  6713. case $ac_var in #(
  6714. _ | IFS | as_nl) ;; #(
  6715. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6716. *) { eval $ac_var=; unset $ac_var;} ;;
  6717. esac ;;
  6718. esac
  6719. done
  6720. (set) 2>&1 |
  6721. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6722. *${as_nl}ac_space=\ *)
  6723. # `set' does not quote correctly, so add quotes: double-quote
  6724. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6725. sed -n \
  6726. "s/'/'\\\\''/g;
  6727. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6728. ;; #(
  6729. *)
  6730. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6731. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6732. ;;
  6733. esac |
  6734. sort
  6735. ) |
  6736. sed '
  6737. /^ac_cv_env_/b end
  6738. t clear
  6739. :clear
  6740. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6741. t end
  6742. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6743. :end' >>confcache
  6744. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6745. if test -w "$cache_file"; then
  6746. test "x$cache_file" != "x/dev/null" &&
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6748. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6749. cat confcache >$cache_file
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6752. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6753. fi
  6754. fi
  6755. rm -f confcache
  6756. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  6757. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  6758. cat >>confdefs.h <<_ACEOF
  6759. #define EGG_VERSION $version_num
  6760. _ACEOF
  6761. #FIND_WRAPS
  6762. case "$srcdir" in
  6763. [\\/]* | ?:[\\/]*)
  6764. MOD_UPDIR=""
  6765. ;;
  6766. *)
  6767. MOD_UPDIR="../"
  6768. ;;
  6769. esac
  6770. 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"
  6771. for mf in $files; do
  6772. # Strip MF so we end up with the name of the file.
  6773. # echo "MF: $mf"
  6774. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6775. dirpart=`$as_dirname -- "$mf" ||
  6776. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6777. X"$mf" : 'X\(//\)[^/]' \| \
  6778. X"$mf" : 'X\(//\)$' \| \
  6779. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  6780. $as_echo X"$mf" |
  6781. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6782. s//\1/
  6783. q
  6784. }
  6785. /^X\(\/\/\)[^/].*/{
  6786. s//\1/
  6787. q
  6788. }
  6789. /^X\(\/\/\)$/{
  6790. s//\1/
  6791. q
  6792. }
  6793. /^X\(\/\).*/{
  6794. s//\1/
  6795. q
  6796. }
  6797. s/.*/./; q'`
  6798. # echo "dirpart: $dirpart mf: $mf"
  6799. # rm -rf "$dirpart/.deps/"
  6800. rm -f "$dirpart/.deps/includes"
  6801. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  6802. for file in `sed -n -e '
  6803. /^OBJS = .*\\\\$/ {
  6804. s/^OBJS = //
  6805. :loop
  6806. s/\\\\$//
  6807. p
  6808. n
  6809. /\\\\$/ b loop
  6810. p
  6811. }
  6812. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  6813. do
  6814. base=`basename $file .o`
  6815. test -f "$dirpart/$base.c" || continue
  6816. if ! test -f "$dirpart/.deps/$base.Po"; then
  6817. echo '# dummy' > "$dirpart/.deps/$base.Po"
  6818. #Remove the .o file, because it needs to be recompiled for its dependancies.
  6819. if test -f "$dirpart/$base.o"; then
  6820. rm -f "$dirpart/$base.o"
  6821. fi
  6822. fi
  6823. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  6824. echo "_$base.c:" >> "$dirpart/.deps/includes"
  6825. done
  6826. done
  6827. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  6828. cat >confcache <<\_ACEOF
  6829. # This file is a shell script that caches the results of configure
  6830. # tests run on this system so they can be shared between configure
  6831. # scripts and configure runs, see configure's option --config-cache.
  6832. # It is not useful on other systems. If it contains results you don't
  6833. # want to keep, you may remove or edit it.
  6834. #
  6835. # config.status only pays attention to the cache file if you give it
  6836. # the --recheck option to rerun configure.
  6837. #
  6838. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6839. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6840. # following values.
  6841. _ACEOF
  6842. # The following way of writing the cache mishandles newlines in values,
  6843. # but we know of no workaround that is simple, portable, and efficient.
  6844. # So, we kill variables containing newlines.
  6845. # Ultrix sh set writes to stderr and can't be redirected directly,
  6846. # and sets the high bit in the cache file unless we assign to the vars.
  6847. (
  6848. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6849. eval ac_val=\$$ac_var
  6850. case $ac_val in #(
  6851. *${as_nl}*)
  6852. case $ac_var in #(
  6853. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6854. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6855. esac
  6856. case $ac_var in #(
  6857. _ | IFS | as_nl) ;; #(
  6858. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6859. *) { eval $ac_var=; unset $ac_var;} ;;
  6860. esac ;;
  6861. esac
  6862. done
  6863. (set) 2>&1 |
  6864. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6865. *${as_nl}ac_space=\ *)
  6866. # `set' does not quote correctly, so add quotes: double-quote
  6867. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6868. sed -n \
  6869. "s/'/'\\\\''/g;
  6870. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6871. ;; #(
  6872. *)
  6873. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6874. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6875. ;;
  6876. esac |
  6877. sort
  6878. ) |
  6879. sed '
  6880. /^ac_cv_env_/b end
  6881. t clear
  6882. :clear
  6883. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6884. t end
  6885. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6886. :end' >>confcache
  6887. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6888. if test -w "$cache_file"; then
  6889. test "x$cache_file" != "x/dev/null" &&
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6891. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6892. cat confcache >$cache_file
  6893. else
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6895. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6896. fi
  6897. fi
  6898. rm -f confcache
  6899. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6900. # Let make expand exec_prefix.
  6901. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6902. DEFS=-DHAVE_CONFIG_H
  6903. ac_libobjs=
  6904. ac_ltlibobjs=
  6905. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6906. # 1. Remove the extension, and $U if already installed.
  6907. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6908. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6909. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6910. # will be set to the directory where LIBOBJS objects are built.
  6911. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6912. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6913. done
  6914. LIBOBJS=$ac_libobjs
  6915. LTLIBOBJS=$ac_ltlibobjs
  6916. : ${CONFIG_STATUS=./config.status}
  6917. ac_write_fail=0
  6918. ac_clean_files_save=$ac_clean_files
  6919. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6921. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6922. as_write_fail=0
  6923. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6924. #! $SHELL
  6925. # Generated by $as_me.
  6926. # Run this file to recreate the current configuration.
  6927. # Compiler output produced by configure, useful for debugging
  6928. # configure, is in config.log if it exists.
  6929. debug=false
  6930. ac_cs_recheck=false
  6931. ac_cs_silent=false
  6932. SHELL=\${CONFIG_SHELL-$SHELL}
  6933. export SHELL
  6934. _ASEOF
  6935. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6936. ## -------------------- ##
  6937. ## M4sh Initialization. ##
  6938. ## -------------------- ##
  6939. # Be more Bourne compatible
  6940. DUALCASE=1; export DUALCASE # for MKS sh
  6941. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6942. emulate sh
  6943. NULLCMD=:
  6944. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6945. # is contrary to our usage. Disable this feature.
  6946. alias -g '${1+"$@"}'='"$@"'
  6947. setopt NO_GLOB_SUBST
  6948. else
  6949. case `(set -o) 2>/dev/null` in #(
  6950. *posix*) :
  6951. set -o posix ;; #(
  6952. *) :
  6953. ;;
  6954. esac
  6955. fi
  6956. as_nl='
  6957. '
  6958. export as_nl
  6959. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6960. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6961. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6962. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6963. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6964. # but without wasting forks for bash or zsh.
  6965. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6966. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6967. as_echo='print -r --'
  6968. as_echo_n='print -rn --'
  6969. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6970. as_echo='printf %s\n'
  6971. as_echo_n='printf %s'
  6972. else
  6973. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6974. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6975. as_echo_n='/usr/ucb/echo -n'
  6976. else
  6977. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6978. as_echo_n_body='eval
  6979. arg=$1;
  6980. case $arg in #(
  6981. *"$as_nl"*)
  6982. expr "X$arg" : "X\\(.*\\)$as_nl";
  6983. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6984. esac;
  6985. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6986. '
  6987. export as_echo_n_body
  6988. as_echo_n='sh -c $as_echo_n_body as_echo'
  6989. fi
  6990. export as_echo_body
  6991. as_echo='sh -c $as_echo_body as_echo'
  6992. fi
  6993. # The user is always right.
  6994. if test "${PATH_SEPARATOR+set}" != set; then
  6995. PATH_SEPARATOR=:
  6996. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6997. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6998. PATH_SEPARATOR=';'
  6999. }
  7000. fi
  7001. # IFS
  7002. # We need space, tab and new line, in precisely that order. Quoting is
  7003. # there to prevent editors from complaining about space-tab.
  7004. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7005. # splitting by setting IFS to empty value.)
  7006. IFS=" "" $as_nl"
  7007. # Find who we are. Look in the path if we contain no directory separator.
  7008. case $0 in #((
  7009. *[\\/]* ) as_myself=$0 ;;
  7010. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $PATH
  7012. do
  7013. IFS=$as_save_IFS
  7014. test -z "$as_dir" && as_dir=.
  7015. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7016. done
  7017. IFS=$as_save_IFS
  7018. ;;
  7019. esac
  7020. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7021. # in which case we are not to be found in the path.
  7022. if test "x$as_myself" = x; then
  7023. as_myself=$0
  7024. fi
  7025. if test ! -f "$as_myself"; then
  7026. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7027. exit 1
  7028. fi
  7029. # Unset variables that we do not need and which cause bugs (e.g. in
  7030. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7031. # suppresses any "Segmentation fault" message there. '((' could
  7032. # trigger a bug in pdksh 5.2.14.
  7033. for as_var in BASH_ENV ENV MAIL MAILPATH
  7034. do eval test x\${$as_var+set} = xset \
  7035. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7036. done
  7037. PS1='$ '
  7038. PS2='> '
  7039. PS4='+ '
  7040. # NLS nuisances.
  7041. LC_ALL=C
  7042. export LC_ALL
  7043. LANGUAGE=C
  7044. export LANGUAGE
  7045. # CDPATH.
  7046. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7047. # as_fn_error ERROR [LINENO LOG_FD]
  7048. # ---------------------------------
  7049. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7050. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7051. # script with status $?, using 1 if that was 0.
  7052. as_fn_error ()
  7053. {
  7054. as_status=$?; test $as_status -eq 0 && as_status=1
  7055. if test "$3"; then
  7056. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7057. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  7058. fi
  7059. $as_echo "$as_me: error: $1" >&2
  7060. as_fn_exit $as_status
  7061. } # as_fn_error
  7062. # as_fn_set_status STATUS
  7063. # -----------------------
  7064. # Set $? to STATUS, without forking.
  7065. as_fn_set_status ()
  7066. {
  7067. return $1
  7068. } # as_fn_set_status
  7069. # as_fn_exit STATUS
  7070. # -----------------
  7071. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7072. as_fn_exit ()
  7073. {
  7074. set +e
  7075. as_fn_set_status $1
  7076. exit $1
  7077. } # as_fn_exit
  7078. # as_fn_unset VAR
  7079. # ---------------
  7080. # Portably unset VAR.
  7081. as_fn_unset ()
  7082. {
  7083. { eval $1=; unset $1;}
  7084. }
  7085. as_unset=as_fn_unset
  7086. # as_fn_append VAR VALUE
  7087. # ----------------------
  7088. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7089. # advantage of any shell optimizations that allow amortized linear growth over
  7090. # repeated appends, instead of the typical quadratic growth present in naive
  7091. # implementations.
  7092. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7093. eval 'as_fn_append ()
  7094. {
  7095. eval $1+=\$2
  7096. }'
  7097. else
  7098. as_fn_append ()
  7099. {
  7100. eval $1=\$$1\$2
  7101. }
  7102. fi # as_fn_append
  7103. # as_fn_arith ARG...
  7104. # ------------------
  7105. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7106. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7107. # must be portable across $(()) and expr.
  7108. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7109. eval 'as_fn_arith ()
  7110. {
  7111. as_val=$(( $* ))
  7112. }'
  7113. else
  7114. as_fn_arith ()
  7115. {
  7116. as_val=`expr "$@" || test $? -eq 1`
  7117. }
  7118. fi # as_fn_arith
  7119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7121. as_expr=expr
  7122. else
  7123. as_expr=false
  7124. fi
  7125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7126. as_basename=basename
  7127. else
  7128. as_basename=false
  7129. fi
  7130. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7131. as_dirname=dirname
  7132. else
  7133. as_dirname=false
  7134. fi
  7135. as_me=`$as_basename -- "$0" ||
  7136. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7137. X"$0" : 'X\(//\)$' \| \
  7138. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7139. $as_echo X/"$0" |
  7140. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7141. s//\1/
  7142. q
  7143. }
  7144. /^X\/\(\/\/\)$/{
  7145. s//\1/
  7146. q
  7147. }
  7148. /^X\/\(\/\).*/{
  7149. s//\1/
  7150. q
  7151. }
  7152. s/.*/./; q'`
  7153. # Avoid depending upon Character Ranges.
  7154. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7155. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7156. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7157. as_cr_digits='0123456789'
  7158. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7159. ECHO_C= ECHO_N= ECHO_T=
  7160. case `echo -n x` in #(((((
  7161. -n*)
  7162. case `echo 'xy\c'` in
  7163. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7164. xy) ECHO_C='\c';;
  7165. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7166. ECHO_T=' ';;
  7167. esac;;
  7168. *)
  7169. ECHO_N='-n';;
  7170. esac
  7171. rm -f conf$$ conf$$.exe conf$$.file
  7172. if test -d conf$$.dir; then
  7173. rm -f conf$$.dir/conf$$.file
  7174. else
  7175. rm -f conf$$.dir
  7176. mkdir conf$$.dir 2>/dev/null
  7177. fi
  7178. if (echo >conf$$.file) 2>/dev/null; then
  7179. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7180. as_ln_s='ln -s'
  7181. # ... but there are two gotchas:
  7182. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7183. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7184. # In both cases, we have to default to `cp -p'.
  7185. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7186. as_ln_s='cp -p'
  7187. elif ln conf$$.file conf$$ 2>/dev/null; then
  7188. as_ln_s=ln
  7189. else
  7190. as_ln_s='cp -p'
  7191. fi
  7192. else
  7193. as_ln_s='cp -p'
  7194. fi
  7195. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7196. rmdir conf$$.dir 2>/dev/null
  7197. # as_fn_mkdir_p
  7198. # -------------
  7199. # Create "$as_dir" as a directory, including parents if necessary.
  7200. as_fn_mkdir_p ()
  7201. {
  7202. case $as_dir in #(
  7203. -*) as_dir=./$as_dir;;
  7204. esac
  7205. test -d "$as_dir" || eval $as_mkdir_p || {
  7206. as_dirs=
  7207. while :; do
  7208. case $as_dir in #(
  7209. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7210. *) as_qdir=$as_dir;;
  7211. esac
  7212. as_dirs="'$as_qdir' $as_dirs"
  7213. as_dir=`$as_dirname -- "$as_dir" ||
  7214. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7215. X"$as_dir" : 'X\(//\)[^/]' \| \
  7216. X"$as_dir" : 'X\(//\)$' \| \
  7217. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7218. $as_echo X"$as_dir" |
  7219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7220. s//\1/
  7221. q
  7222. }
  7223. /^X\(\/\/\)[^/].*/{
  7224. s//\1/
  7225. q
  7226. }
  7227. /^X\(\/\/\)$/{
  7228. s//\1/
  7229. q
  7230. }
  7231. /^X\(\/\).*/{
  7232. s//\1/
  7233. q
  7234. }
  7235. s/.*/./; q'`
  7236. test -d "$as_dir" && break
  7237. done
  7238. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7239. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  7240. } # as_fn_mkdir_p
  7241. if mkdir -p . 2>/dev/null; then
  7242. as_mkdir_p='mkdir -p "$as_dir"'
  7243. else
  7244. test -d ./-p && rmdir ./-p
  7245. as_mkdir_p=false
  7246. fi
  7247. if test -x / >/dev/null 2>&1; then
  7248. as_test_x='test -x'
  7249. else
  7250. if ls -dL / >/dev/null 2>&1; then
  7251. as_ls_L_option=L
  7252. else
  7253. as_ls_L_option=
  7254. fi
  7255. as_test_x='
  7256. eval sh -c '\''
  7257. if test -d "$1"; then
  7258. test -d "$1/.";
  7259. else
  7260. case $1 in #(
  7261. -*)set "./$1";;
  7262. esac;
  7263. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7264. ???[sx]*):;;*)false;;esac;fi
  7265. '\'' sh
  7266. '
  7267. fi
  7268. as_executable_p=$as_test_x
  7269. # Sed expression to map a string onto a valid CPP name.
  7270. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7271. # Sed expression to map a string onto a valid variable name.
  7272. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7273. exec 6>&1
  7274. ## ----------------------------------- ##
  7275. ## Main body of $CONFIG_STATUS script. ##
  7276. ## ----------------------------------- ##
  7277. _ASEOF
  7278. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7280. # Save the log message, to keep $0 and so on meaningful, and to
  7281. # report actual input values of CONFIG_FILES etc. instead of their
  7282. # values after options handling.
  7283. ac_log="
  7284. This file was extended by $as_me, which was
  7285. generated by GNU Autoconf 2.65. Invocation command line was
  7286. CONFIG_FILES = $CONFIG_FILES
  7287. CONFIG_HEADERS = $CONFIG_HEADERS
  7288. CONFIG_LINKS = $CONFIG_LINKS
  7289. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7290. $ $0 $@
  7291. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7292. "
  7293. _ACEOF
  7294. case $ac_config_files in *"
  7295. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7296. esac
  7297. case $ac_config_headers in *"
  7298. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7299. esac
  7300. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7301. # Files that config.status was made for.
  7302. config_files="$ac_config_files"
  7303. config_headers="$ac_config_headers"
  7304. _ACEOF
  7305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7306. ac_cs_usage="\
  7307. \`$as_me' instantiates files and other configuration actions
  7308. from templates according to the current configuration. Unless the files
  7309. and actions are specified as TAGs, all are instantiated by default.
  7310. Usage: $0 [OPTION]... [TAG]...
  7311. -h, --help print this help, then exit
  7312. -V, --version print version number and configuration settings, then exit
  7313. --config print configuration, then exit
  7314. -q, --quiet, --silent
  7315. do not print progress messages
  7316. -d, --debug don't remove temporary files
  7317. --recheck update $as_me by reconfiguring in the same conditions
  7318. --file=FILE[:TEMPLATE]
  7319. instantiate the configuration file FILE
  7320. --header=FILE[:TEMPLATE]
  7321. instantiate the configuration header FILE
  7322. Configuration files:
  7323. $config_files
  7324. Configuration headers:
  7325. $config_headers
  7326. Report bugs to the package provider."
  7327. _ACEOF
  7328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7329. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7330. ac_cs_version="\\
  7331. config.status
  7332. configured by $0, generated by GNU Autoconf 2.65,
  7333. with options \\"\$ac_cs_config\\"
  7334. Copyright (C) 2009 Free Software Foundation, Inc.
  7335. This config.status script is free software; the Free Software Foundation
  7336. gives unlimited permission to copy, distribute and modify it."
  7337. ac_pwd='$ac_pwd'
  7338. srcdir='$srcdir'
  7339. AWK='$AWK'
  7340. test -n "\$AWK" || AWK=awk
  7341. _ACEOF
  7342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7343. # The default lists apply if the user does not specify any file.
  7344. ac_need_defaults=:
  7345. while test $# != 0
  7346. do
  7347. case $1 in
  7348. --*=*)
  7349. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7350. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7351. ac_shift=:
  7352. ;;
  7353. *)
  7354. ac_option=$1
  7355. ac_optarg=$2
  7356. ac_shift=shift
  7357. ;;
  7358. esac
  7359. case $ac_option in
  7360. # Handling of the options.
  7361. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7362. ac_cs_recheck=: ;;
  7363. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7364. $as_echo "$ac_cs_version"; exit ;;
  7365. --config | --confi | --conf | --con | --co | --c )
  7366. $as_echo "$ac_cs_config"; exit ;;
  7367. --debug | --debu | --deb | --de | --d | -d )
  7368. debug=: ;;
  7369. --file | --fil | --fi | --f )
  7370. $ac_shift
  7371. case $ac_optarg in
  7372. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7373. esac
  7374. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7375. ac_need_defaults=false;;
  7376. --header | --heade | --head | --hea )
  7377. $ac_shift
  7378. case $ac_optarg in
  7379. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7380. esac
  7381. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7382. ac_need_defaults=false;;
  7383. --he | --h)
  7384. # Conflict between --help and --header
  7385. as_fn_error "ambiguous option: \`$1'
  7386. Try \`$0 --help' for more information.";;
  7387. --help | --hel | -h )
  7388. $as_echo "$ac_cs_usage"; exit ;;
  7389. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7390. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7391. ac_cs_silent=: ;;
  7392. # This is an error.
  7393. -*) as_fn_error "unrecognized option: \`$1'
  7394. Try \`$0 --help' for more information." ;;
  7395. *) as_fn_append ac_config_targets " $1"
  7396. ac_need_defaults=false ;;
  7397. esac
  7398. shift
  7399. done
  7400. ac_configure_extra_args=
  7401. if $ac_cs_silent; then
  7402. exec 6>/dev/null
  7403. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7404. fi
  7405. _ACEOF
  7406. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7407. if \$ac_cs_recheck; then
  7408. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7409. shift
  7410. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7411. CONFIG_SHELL='$SHELL'
  7412. export CONFIG_SHELL
  7413. exec "\$@"
  7414. fi
  7415. _ACEOF
  7416. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7417. exec 5>>config.log
  7418. {
  7419. echo
  7420. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7421. ## Running $as_me. ##
  7422. _ASBOX
  7423. $as_echo "$ac_log"
  7424. } >&5
  7425. _ACEOF
  7426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7427. _ACEOF
  7428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7429. # Handling of arguments.
  7430. for ac_config_target in $ac_config_targets
  7431. do
  7432. case $ac_config_target in
  7433. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7434. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7435. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  7436. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7437. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  7438. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  7439. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  7440. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  7441. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7442. esac
  7443. done
  7444. # If the user did not use the arguments to specify the items to instantiate,
  7445. # then the envvar interface is used. Set only those that are not.
  7446. # We use the long form for the default assignment because of an extremely
  7447. # bizarre bug on SunOS 4.1.3.
  7448. if $ac_need_defaults; then
  7449. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7450. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7451. fi
  7452. # Have a temporary directory for convenience. Make it in the build tree
  7453. # simply because there is no reason against having it here, and in addition,
  7454. # creating and moving files from /tmp can sometimes cause problems.
  7455. # Hook for its removal unless debugging.
  7456. # Note that there is a small window in which the directory will not be cleaned:
  7457. # after its creation but before its name has been assigned to `$tmp'.
  7458. $debug ||
  7459. {
  7460. tmp=
  7461. trap 'exit_status=$?
  7462. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7463. ' 0
  7464. trap 'as_fn_exit 1' 1 2 13 15
  7465. }
  7466. # Create a (secure) tmp directory for tmp files.
  7467. {
  7468. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7469. test -n "$tmp" && test -d "$tmp"
  7470. } ||
  7471. {
  7472. tmp=./conf$$-$RANDOM
  7473. (umask 077 && mkdir "$tmp")
  7474. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  7475. # Set up the scripts for CONFIG_FILES section.
  7476. # No need to generate them if there are no CONFIG_FILES.
  7477. # This happens for instance with `./config.status config.h'.
  7478. if test -n "$CONFIG_FILES"; then
  7479. ac_cr=`echo X | tr X '\015'`
  7480. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7481. # But we know of no other shell where ac_cr would be empty at this
  7482. # point, so we can use a bashism as a fallback.
  7483. if test "x$ac_cr" = x; then
  7484. eval ac_cr=\$\'\\r\'
  7485. fi
  7486. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7487. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7488. ac_cs_awk_cr='\r'
  7489. else
  7490. ac_cs_awk_cr=$ac_cr
  7491. fi
  7492. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7493. _ACEOF
  7494. {
  7495. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7496. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7497. echo "_ACEOF"
  7498. } >conf$$subs.sh ||
  7499. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7500. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  7501. ac_delim='%!_!# '
  7502. for ac_last_try in false false false false false :; do
  7503. . ./conf$$subs.sh ||
  7504. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7505. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7506. if test $ac_delim_n = $ac_delim_num; then
  7507. break
  7508. elif $ac_last_try; then
  7509. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7510. else
  7511. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7512. fi
  7513. done
  7514. rm -f conf$$subs.sh
  7515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7516. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7517. _ACEOF
  7518. sed -n '
  7519. h
  7520. s/^/S["/; s/!.*/"]=/
  7521. p
  7522. g
  7523. s/^[^!]*!//
  7524. :repl
  7525. t repl
  7526. s/'"$ac_delim"'$//
  7527. t delim
  7528. :nl
  7529. h
  7530. s/\(.\{148\}\)..*/\1/
  7531. t more1
  7532. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7533. p
  7534. n
  7535. b repl
  7536. :more1
  7537. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7538. p
  7539. g
  7540. s/.\{148\}//
  7541. t nl
  7542. :delim
  7543. h
  7544. s/\(.\{148\}\)..*/\1/
  7545. t more2
  7546. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7547. p
  7548. b
  7549. :more2
  7550. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7551. p
  7552. g
  7553. s/.\{148\}//
  7554. t delim
  7555. ' <conf$$subs.awk | sed '
  7556. /^[^""]/{
  7557. N
  7558. s/\n//
  7559. }
  7560. ' >>$CONFIG_STATUS || ac_write_fail=1
  7561. rm -f conf$$subs.awk
  7562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7563. _ACAWK
  7564. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7565. for (key in S) S_is_set[key] = 1
  7566. FS = ""
  7567. }
  7568. {
  7569. line = $ 0
  7570. nfields = split(line, field, "@")
  7571. substed = 0
  7572. len = length(field[1])
  7573. for (i = 2; i < nfields; i++) {
  7574. key = field[i]
  7575. keylen = length(key)
  7576. if (S_is_set[key]) {
  7577. value = S[key]
  7578. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7579. len += length(value) + length(field[++i])
  7580. substed = 1
  7581. } else
  7582. len += 1 + keylen
  7583. }
  7584. print line
  7585. }
  7586. _ACAWK
  7587. _ACEOF
  7588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7589. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7590. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7591. else
  7592. cat
  7593. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7594. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  7595. _ACEOF
  7596. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7597. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7598. # trailing colons and then remove the whole line if VPATH becomes empty
  7599. # (actually we leave an empty line to preserve line numbers).
  7600. if test "x$srcdir" = x.; then
  7601. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7602. s/:*\$(srcdir):*/:/
  7603. s/:*\${srcdir}:*/:/
  7604. s/:*@srcdir@:*/:/
  7605. s/^\([^=]*=[ ]*\):*/\1/
  7606. s/:*$//
  7607. s/^[^=]*=[ ]*$//
  7608. }'
  7609. fi
  7610. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7611. fi # test -n "$CONFIG_FILES"
  7612. # Set up the scripts for CONFIG_HEADERS section.
  7613. # No need to generate them if there are no CONFIG_HEADERS.
  7614. # This happens for instance with `./config.status Makefile'.
  7615. if test -n "$CONFIG_HEADERS"; then
  7616. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7617. BEGIN {
  7618. _ACEOF
  7619. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7620. # here-document in config.status, that substitutes the proper values into
  7621. # config.h.in to produce config.h.
  7622. # Create a delimiter string that does not exist in confdefs.h, to ease
  7623. # handling of long lines.
  7624. ac_delim='%!_!# '
  7625. for ac_last_try in false false :; do
  7626. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7627. if test -z "$ac_t"; then
  7628. break
  7629. elif $ac_last_try; then
  7630. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  7631. else
  7632. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7633. fi
  7634. done
  7635. # For the awk script, D is an array of macro values keyed by name,
  7636. # likewise P contains macro parameters if any. Preserve backslash
  7637. # newline sequences.
  7638. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7639. sed -n '
  7640. s/.\{148\}/&'"$ac_delim"'/g
  7641. t rset
  7642. :rset
  7643. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7644. t def
  7645. d
  7646. :def
  7647. s/\\$//
  7648. t bsnl
  7649. s/["\\]/\\&/g
  7650. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7651. D["\1"]=" \3"/p
  7652. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7653. d
  7654. :bsnl
  7655. s/["\\]/\\&/g
  7656. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7657. D["\1"]=" \3\\\\\\n"\\/p
  7658. t cont
  7659. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7660. t cont
  7661. d
  7662. :cont
  7663. n
  7664. s/.\{148\}/&'"$ac_delim"'/g
  7665. t clear
  7666. :clear
  7667. s/\\$//
  7668. t bsnlc
  7669. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7670. d
  7671. :bsnlc
  7672. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7673. b cont
  7674. ' <confdefs.h | sed '
  7675. s/'"$ac_delim"'/"\\\
  7676. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7677. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7678. for (key in D) D_is_set[key] = 1
  7679. FS = ""
  7680. }
  7681. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7682. line = \$ 0
  7683. split(line, arg, " ")
  7684. if (arg[1] == "#") {
  7685. defundef = arg[2]
  7686. mac1 = arg[3]
  7687. } else {
  7688. defundef = substr(arg[1], 2)
  7689. mac1 = arg[2]
  7690. }
  7691. split(mac1, mac2, "(") #)
  7692. macro = mac2[1]
  7693. prefix = substr(line, 1, index(line, defundef) - 1)
  7694. if (D_is_set[macro]) {
  7695. # Preserve the white space surrounding the "#".
  7696. print prefix "define", macro P[macro] D[macro]
  7697. next
  7698. } else {
  7699. # Replace #undef with comments. This is necessary, for example,
  7700. # in the case of _POSIX_SOURCE, which is predefined and required
  7701. # on some systems where configure will not decide to define it.
  7702. if (defundef == "undef") {
  7703. print "/*", prefix defundef, macro, "*/"
  7704. next
  7705. }
  7706. }
  7707. }
  7708. { print }
  7709. _ACAWK
  7710. _ACEOF
  7711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7712. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  7713. fi # test -n "$CONFIG_HEADERS"
  7714. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  7715. shift
  7716. for ac_tag
  7717. do
  7718. case $ac_tag in
  7719. :[FHLC]) ac_mode=$ac_tag; continue;;
  7720. esac
  7721. case $ac_mode$ac_tag in
  7722. :[FHL]*:*);;
  7723. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7724. :[FH]-) ac_tag=-:-;;
  7725. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7726. esac
  7727. ac_save_IFS=$IFS
  7728. IFS=:
  7729. set x $ac_tag
  7730. IFS=$ac_save_IFS
  7731. shift
  7732. ac_file=$1
  7733. shift
  7734. case $ac_mode in
  7735. :L) ac_source=$1;;
  7736. :[FH])
  7737. ac_file_inputs=
  7738. for ac_f
  7739. do
  7740. case $ac_f in
  7741. -) ac_f="$tmp/stdin";;
  7742. *) # Look for the file first in the build tree, then in the source tree
  7743. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7744. # because $ac_f cannot contain `:'.
  7745. test -f "$ac_f" ||
  7746. case $ac_f in
  7747. [\\/$]*) false;;
  7748. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7749. esac ||
  7750. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7751. esac
  7752. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7753. as_fn_append ac_file_inputs " '$ac_f'"
  7754. done
  7755. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7756. # use $as_me), people would be surprised to read:
  7757. # /* config.h. Generated by config.status. */
  7758. configure_input='Generated from '`
  7759. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7760. `' by configure.'
  7761. if test x"$ac_file" != x-; then
  7762. configure_input="$ac_file. $configure_input"
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7764. $as_echo "$as_me: creating $ac_file" >&6;}
  7765. fi
  7766. # Neutralize special characters interpreted by sed in replacement strings.
  7767. case $configure_input in #(
  7768. *\&* | *\|* | *\\* )
  7769. ac_sed_conf_input=`$as_echo "$configure_input" |
  7770. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7771. *) ac_sed_conf_input=$configure_input;;
  7772. esac
  7773. case $ac_tag in
  7774. *:-:* | *:-) cat >"$tmp/stdin" \
  7775. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  7776. esac
  7777. ;;
  7778. esac
  7779. ac_dir=`$as_dirname -- "$ac_file" ||
  7780. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7781. X"$ac_file" : 'X\(//\)[^/]' \| \
  7782. X"$ac_file" : 'X\(//\)$' \| \
  7783. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7784. $as_echo X"$ac_file" |
  7785. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7786. s//\1/
  7787. q
  7788. }
  7789. /^X\(\/\/\)[^/].*/{
  7790. s//\1/
  7791. q
  7792. }
  7793. /^X\(\/\/\)$/{
  7794. s//\1/
  7795. q
  7796. }
  7797. /^X\(\/\).*/{
  7798. s//\1/
  7799. q
  7800. }
  7801. s/.*/./; q'`
  7802. as_dir="$ac_dir"; as_fn_mkdir_p
  7803. ac_builddir=.
  7804. case "$ac_dir" in
  7805. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7806. *)
  7807. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7808. # A ".." for each directory in $ac_dir_suffix.
  7809. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7810. case $ac_top_builddir_sub in
  7811. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7812. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7813. esac ;;
  7814. esac
  7815. ac_abs_top_builddir=$ac_pwd
  7816. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7817. # for backward compatibility:
  7818. ac_top_builddir=$ac_top_build_prefix
  7819. case $srcdir in
  7820. .) # We are building in place.
  7821. ac_srcdir=.
  7822. ac_top_srcdir=$ac_top_builddir_sub
  7823. ac_abs_top_srcdir=$ac_pwd ;;
  7824. [\\/]* | ?:[\\/]* ) # Absolute name.
  7825. ac_srcdir=$srcdir$ac_dir_suffix;
  7826. ac_top_srcdir=$srcdir
  7827. ac_abs_top_srcdir=$srcdir ;;
  7828. *) # Relative name.
  7829. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7830. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7831. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7832. esac
  7833. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7834. case $ac_mode in
  7835. :F)
  7836. #
  7837. # CONFIG_FILE
  7838. #
  7839. _ACEOF
  7840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7841. # If the template does not know about datarootdir, expand it.
  7842. # FIXME: This hack should be removed a few years after 2.60.
  7843. ac_datarootdir_hack=; ac_datarootdir_seen=
  7844. ac_sed_dataroot='
  7845. /datarootdir/ {
  7846. p
  7847. q
  7848. }
  7849. /@datadir@/p
  7850. /@docdir@/p
  7851. /@infodir@/p
  7852. /@localedir@/p
  7853. /@mandir@/p'
  7854. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7855. *datarootdir*) ac_datarootdir_seen=yes;;
  7856. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7858. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7859. _ACEOF
  7860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7861. ac_datarootdir_hack='
  7862. s&@datadir@&$datadir&g
  7863. s&@docdir@&$docdir&g
  7864. s&@infodir@&$infodir&g
  7865. s&@localedir@&$localedir&g
  7866. s&@mandir@&$mandir&g
  7867. s&\\\${datarootdir}&$datarootdir&g' ;;
  7868. esac
  7869. _ACEOF
  7870. # Neutralize VPATH when `$srcdir' = `.'.
  7871. # Shell code in configure.ac might set extrasub.
  7872. # FIXME: do we really want to maintain this feature?
  7873. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7874. ac_sed_extra="$ac_vpsub
  7875. $extrasub
  7876. _ACEOF
  7877. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7878. :t
  7879. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7880. s|@configure_input@|$ac_sed_conf_input|;t t
  7881. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7882. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7883. s&@srcdir@&$ac_srcdir&;t t
  7884. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7885. s&@top_srcdir@&$ac_top_srcdir&;t t
  7886. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7887. s&@builddir@&$ac_builddir&;t t
  7888. s&@abs_builddir@&$ac_abs_builddir&;t t
  7889. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7890. $ac_datarootdir_hack
  7891. "
  7892. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7893. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7894. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7895. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7896. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7898. which seems to be undefined. Please make sure it is defined." >&5
  7899. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7900. which seems to be undefined. Please make sure it is defined." >&2;}
  7901. rm -f "$tmp/stdin"
  7902. case $ac_file in
  7903. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7904. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7905. esac \
  7906. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7907. ;;
  7908. :H)
  7909. #
  7910. # CONFIG_HEADER
  7911. #
  7912. if test x"$ac_file" != x-; then
  7913. {
  7914. $as_echo "/* $configure_input */" \
  7915. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7916. } >"$tmp/config.h" \
  7917. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7918. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7920. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7921. else
  7922. rm -f "$ac_file"
  7923. mv "$tmp/config.h" "$ac_file" \
  7924. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7925. fi
  7926. else
  7927. $as_echo "/* $configure_input */" \
  7928. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7929. || as_fn_error "could not create -" "$LINENO" 5
  7930. fi
  7931. ;;
  7932. esac
  7933. done # for ac_tag
  7934. as_fn_exit 0
  7935. _ACEOF
  7936. ac_clean_files=$ac_clean_files_save
  7937. test $ac_write_fail = 0 ||
  7938. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7939. # configure is writing to config.log, and then calls config.status.
  7940. # config.status does its own redirection, appending to config.log.
  7941. # Unfortunately, on DOS this fails, as config.log is still kept open
  7942. # by configure, so config.status won't be able to write to it; its
  7943. # output is simply discarded. So we exec the FD to /dev/null,
  7944. # effectively closing config.log, so it can be properly (re)opened and
  7945. # appended to by config.status. When coming back to configure, we
  7946. # need to make the FD available again.
  7947. if test "$no_create" != yes; then
  7948. ac_cs_success=:
  7949. ac_config_status_args=
  7950. test "$silent" = yes &&
  7951. ac_config_status_args="$ac_config_status_args --quiet"
  7952. exec 5>/dev/null
  7953. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7954. exec 5>>config.log
  7955. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7956. # would make configure fail if this is the last instruction.
  7957. $ac_cs_success || as_fn_exit $?
  7958. fi
  7959. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7961. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7962. fi
  7963. GIT_REQUIRED=1
  7964. if [ "$GIT_REQUIRED" = "1" ]; then
  7965. if ! test -d .git; then
  7966. echo ""
  7967. echo ""
  7968. echo "You have downloaded a GIT version of wraith."
  7969. echo "Either 'git clone' from a git repository or download a source tarball"
  7970. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7971. echo ""
  7972. echo ""
  7973. exit 1
  7974. fi
  7975. fi
  7976. echo ""
  7977. echo ""
  7978. echo "------------ Configuring BDLIB ------------"
  7979. if test -d .git; then
  7980. git submodule init
  7981. git submodule update
  7982. fi
  7983. test -f lib/bdlib/configure && cd lib/bdlib && MAKEJOBS="$MAKEJOBS" ./configure