output.2 167 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for zlog 1.0.
  4. @%:@
  5. @%:@ Report bugs to <BUG-REPORT-ADDRESS>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in @%:@ ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in @%:@(
  160. *posix*) :
  161. set -o posix ;; @%:@(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in @%:@(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in @%:@ ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
  252. $0: about your system, including any error possibly output
  253. $0: before this message. Then install a modern shell, or
  254. $0: manually run the script under such a shell if you do
  255. $0: have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. @%:@ as_fn_unset VAR
  270. @%:@ ---------------
  271. @%:@ Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. @%:@ as_fn_set_status STATUS
  278. @%:@ -----------------------
  279. @%:@ Set @S|@? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } @%:@ as_fn_set_status
  284. @%:@ as_fn_exit STATUS
  285. @%:@ -----------------
  286. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } @%:@ as_fn_exit
  293. @%:@ as_fn_mkdir_p
  294. @%:@ -------------
  295. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } @%:@ as_fn_mkdir_p
  337. @%:@ as_fn_executable_p FILE
  338. @%:@ -----------------------
  339. @%:@ Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } @%:@ as_fn_executable_p
  344. @%:@ as_fn_append VAR VALUE
  345. @%:@ ----------------------
  346. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  347. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  348. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  349. @%:@ implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. @%:@ as_fn_arith ARG...
  362. @%:@ ------------------
  363. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  364. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  365. @%:@ must be portable across @S|@(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. @%:@ ----------------------------------------
  379. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. @%:@ script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } @%:@ as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in @%:@(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIB@&t@OBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME='zlog'
  534. PACKAGE_TARNAME='zlog'
  535. PACKAGE_VERSION='1.0'
  536. PACKAGE_STRING='zlog 1.0'
  537. PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
  538. PACKAGE_URL=''
  539. ac_unique_file="log_queue.cpp"
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_subst_vars='LTLIBOBJS
  576. LIB@&t@OBJS
  577. ALLOCA
  578. EGREP
  579. GREP
  580. RANLIB
  581. SET_MAKE
  582. LN_S
  583. INSTALL_DATA
  584. INSTALL_SCRIPT
  585. INSTALL_PROGRAM
  586. CPP
  587. ac_ct_CC
  588. CFLAGS
  589. CC
  590. AWK
  591. OBJEXT
  592. EXEEXT
  593. ac_ct_CXX
  594. CPPFLAGS
  595. LDFLAGS
  596. CXXFLAGS
  597. CXX
  598. target_alias
  599. host_alias
  600. build_alias
  601. LIBS
  602. ECHO_T
  603. ECHO_N
  604. ECHO_C
  605. DEFS
  606. mandir
  607. localedir
  608. libdir
  609. psdir
  610. pdfdir
  611. dvidir
  612. htmldir
  613. infodir
  614. docdir
  615. oldincludedir
  616. includedir
  617. localstatedir
  618. sharedstatedir
  619. sysconfdir
  620. datadir
  621. datarootdir
  622. libexecdir
  623. sbindir
  624. bindir
  625. program_transform_name
  626. prefix
  627. exec_prefix
  628. PACKAGE_URL
  629. PACKAGE_BUGREPORT
  630. PACKAGE_STRING
  631. PACKAGE_VERSION
  632. PACKAGE_TARNAME
  633. PACKAGE_NAME
  634. PATH_SEPARATOR
  635. SHELL'
  636. ac_subst_files=''
  637. ac_user_opts='
  638. enable_option_checking
  639. '
  640. ac_precious_vars='build_alias
  641. host_alias
  642. target_alias
  643. CXX
  644. CXXFLAGS
  645. LDFLAGS
  646. LIBS
  647. CPPFLAGS
  648. CCC
  649. CC
  650. CFLAGS
  651. CPP'
  652. # Initialize some variables set by options.
  653. ac_init_help=
  654. ac_init_version=false
  655. ac_unrecognized_opts=
  656. ac_unrecognized_sep=
  657. # The variables have the same names as the options, with
  658. # dashes changed to underlines.
  659. cache_file=/dev/null
  660. exec_prefix=NONE
  661. no_create=
  662. no_recursion=
  663. prefix=NONE
  664. program_prefix=NONE
  665. program_suffix=NONE
  666. program_transform_name=s,x,x,
  667. silent=
  668. site=
  669. srcdir=
  670. verbose=
  671. x_includes=NONE
  672. x_libraries=NONE
  673. # Installation directory options.
  674. # These are left unexpanded so users can "make install exec_prefix=/foo"
  675. # and all the variables that are supposed to be based on exec_prefix
  676. # by default will actually change.
  677. # Use braces instead of parens because sh, perl, etc. also accept them.
  678. # (The list follows the same order as the GNU Coding Standards.)
  679. bindir='${exec_prefix}/bin'
  680. sbindir='${exec_prefix}/sbin'
  681. libexecdir='${exec_prefix}/libexec'
  682. datarootdir='${prefix}/share'
  683. datadir='${datarootdir}'
  684. sysconfdir='${prefix}/etc'
  685. sharedstatedir='${prefix}/com'
  686. localstatedir='${prefix}/var'
  687. includedir='${prefix}/include'
  688. oldincludedir='/usr/include'
  689. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  690. infodir='${datarootdir}/info'
  691. htmldir='${docdir}'
  692. dvidir='${docdir}'
  693. pdfdir='${docdir}'
  694. psdir='${docdir}'
  695. libdir='${exec_prefix}/lib'
  696. localedir='${datarootdir}/locale'
  697. mandir='${datarootdir}/man'
  698. ac_prev=
  699. ac_dashdash=
  700. for ac_option
  701. do
  702. # If the previous option needs an argument, assign it.
  703. if test -n "$ac_prev"; then
  704. eval $ac_prev=\$ac_option
  705. ac_prev=
  706. continue
  707. fi
  708. case $ac_option in
  709. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  710. *=) ac_optarg= ;;
  711. *) ac_optarg=yes ;;
  712. esac
  713. # Accept the important Cygnus configure options, so we can diagnose typos.
  714. case $ac_dashdash$ac_option in
  715. --)
  716. ac_dashdash=yes ;;
  717. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  718. ac_prev=bindir ;;
  719. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  720. bindir=$ac_optarg ;;
  721. -build | --build | --buil | --bui | --bu)
  722. ac_prev=build_alias ;;
  723. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  724. build_alias=$ac_optarg ;;
  725. -cache-file | --cache-file | --cache-fil | --cache-fi \
  726. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  727. ac_prev=cache_file ;;
  728. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  729. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  730. cache_file=$ac_optarg ;;
  731. --config-cache | -C)
  732. cache_file=config.cache ;;
  733. -datadir | --datadir | --datadi | --datad)
  734. ac_prev=datadir ;;
  735. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  736. datadir=$ac_optarg ;;
  737. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  738. | --dataroo | --dataro | --datar)
  739. ac_prev=datarootdir ;;
  740. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  741. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  742. datarootdir=$ac_optarg ;;
  743. -disable-* | --disable-*)
  744. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  745. # Reject names that are not valid shell variable names.
  746. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  747. as_fn_error $? "invalid feature name: $ac_useropt"
  748. ac_useropt_orig=$ac_useropt
  749. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  750. case $ac_user_opts in
  751. *"
  752. "enable_$ac_useropt"
  753. "*) ;;
  754. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  755. ac_unrecognized_sep=', ';;
  756. esac
  757. eval enable_$ac_useropt=no ;;
  758. -docdir | --docdir | --docdi | --doc | --do)
  759. ac_prev=docdir ;;
  760. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  761. docdir=$ac_optarg ;;
  762. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  763. ac_prev=dvidir ;;
  764. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  765. dvidir=$ac_optarg ;;
  766. -enable-* | --enable-*)
  767. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  768. # Reject names that are not valid shell variable names.
  769. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  770. as_fn_error $? "invalid feature name: $ac_useropt"
  771. ac_useropt_orig=$ac_useropt
  772. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  773. case $ac_user_opts in
  774. *"
  775. "enable_$ac_useropt"
  776. "*) ;;
  777. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  778. ac_unrecognized_sep=', ';;
  779. esac
  780. eval enable_$ac_useropt=\$ac_optarg ;;
  781. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  782. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  783. | --exec | --exe | --ex)
  784. ac_prev=exec_prefix ;;
  785. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  786. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  787. | --exec=* | --exe=* | --ex=*)
  788. exec_prefix=$ac_optarg ;;
  789. -gas | --gas | --ga | --g)
  790. # Obsolete; use --with-gas.
  791. with_gas=yes ;;
  792. -help | --help | --hel | --he | -h)
  793. ac_init_help=long ;;
  794. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  795. ac_init_help=recursive ;;
  796. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  797. ac_init_help=short ;;
  798. -host | --host | --hos | --ho)
  799. ac_prev=host_alias ;;
  800. -host=* | --host=* | --hos=* | --ho=*)
  801. host_alias=$ac_optarg ;;
  802. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  803. ac_prev=htmldir ;;
  804. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  805. | --ht=*)
  806. htmldir=$ac_optarg ;;
  807. -includedir | --includedir | --includedi | --included | --include \
  808. | --includ | --inclu | --incl | --inc)
  809. ac_prev=includedir ;;
  810. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  811. | --includ=* | --inclu=* | --incl=* | --inc=*)
  812. includedir=$ac_optarg ;;
  813. -infodir | --infodir | --infodi | --infod | --info | --inf)
  814. ac_prev=infodir ;;
  815. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  816. infodir=$ac_optarg ;;
  817. -libdir | --libdir | --libdi | --libd)
  818. ac_prev=libdir ;;
  819. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  820. libdir=$ac_optarg ;;
  821. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  822. | --libexe | --libex | --libe)
  823. ac_prev=libexecdir ;;
  824. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  825. | --libexe=* | --libex=* | --libe=*)
  826. libexecdir=$ac_optarg ;;
  827. -localedir | --localedir | --localedi | --localed | --locale)
  828. ac_prev=localedir ;;
  829. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  830. localedir=$ac_optarg ;;
  831. -localstatedir | --localstatedir | --localstatedi | --localstated \
  832. | --localstate | --localstat | --localsta | --localst | --locals)
  833. ac_prev=localstatedir ;;
  834. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  835. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  836. localstatedir=$ac_optarg ;;
  837. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  838. ac_prev=mandir ;;
  839. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  840. mandir=$ac_optarg ;;
  841. -nfp | --nfp | --nf)
  842. # Obsolete; use --without-fp.
  843. with_fp=no ;;
  844. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  845. | --no-cr | --no-c | -n)
  846. no_create=yes ;;
  847. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  848. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  849. no_recursion=yes ;;
  850. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  851. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  852. | --oldin | --oldi | --old | --ol | --o)
  853. ac_prev=oldincludedir ;;
  854. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  855. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  856. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  857. oldincludedir=$ac_optarg ;;
  858. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  859. ac_prev=prefix ;;
  860. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  861. prefix=$ac_optarg ;;
  862. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  863. | --program-pre | --program-pr | --program-p)
  864. ac_prev=program_prefix ;;
  865. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  866. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  867. program_prefix=$ac_optarg ;;
  868. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  869. | --program-suf | --program-su | --program-s)
  870. ac_prev=program_suffix ;;
  871. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  872. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  873. program_suffix=$ac_optarg ;;
  874. -program-transform-name | --program-transform-name \
  875. | --program-transform-nam | --program-transform-na \
  876. | --program-transform-n | --program-transform- \
  877. | --program-transform | --program-transfor \
  878. | --program-transfo | --program-transf \
  879. | --program-trans | --program-tran \
  880. | --progr-tra | --program-tr | --program-t)
  881. ac_prev=program_transform_name ;;
  882. -program-transform-name=* | --program-transform-name=* \
  883. | --program-transform-nam=* | --program-transform-na=* \
  884. | --program-transform-n=* | --program-transform-=* \
  885. | --program-transform=* | --program-transfor=* \
  886. | --program-transfo=* | --program-transf=* \
  887. | --program-trans=* | --program-tran=* \
  888. | --progr-tra=* | --program-tr=* | --program-t=*)
  889. program_transform_name=$ac_optarg ;;
  890. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  891. ac_prev=pdfdir ;;
  892. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  893. pdfdir=$ac_optarg ;;
  894. -psdir | --psdir | --psdi | --psd | --ps)
  895. ac_prev=psdir ;;
  896. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  897. psdir=$ac_optarg ;;
  898. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  899. | -silent | --silent | --silen | --sile | --sil)
  900. silent=yes ;;
  901. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  902. ac_prev=sbindir ;;
  903. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  904. | --sbi=* | --sb=*)
  905. sbindir=$ac_optarg ;;
  906. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  907. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  908. | --sharedst | --shareds | --shared | --share | --shar \
  909. | --sha | --sh)
  910. ac_prev=sharedstatedir ;;
  911. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  912. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  913. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  914. | --sha=* | --sh=*)
  915. sharedstatedir=$ac_optarg ;;
  916. -site | --site | --sit)
  917. ac_prev=site ;;
  918. -site=* | --site=* | --sit=*)
  919. site=$ac_optarg ;;
  920. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  921. ac_prev=srcdir ;;
  922. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  923. srcdir=$ac_optarg ;;
  924. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  925. | --syscon | --sysco | --sysc | --sys | --sy)
  926. ac_prev=sysconfdir ;;
  927. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  928. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  929. sysconfdir=$ac_optarg ;;
  930. -target | --target | --targe | --targ | --tar | --ta | --t)
  931. ac_prev=target_alias ;;
  932. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  933. target_alias=$ac_optarg ;;
  934. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  935. verbose=yes ;;
  936. -version | --version | --versio | --versi | --vers | -V)
  937. ac_init_version=: ;;
  938. -with-* | --with-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid package name: $ac_useropt"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "with_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval with_$ac_useropt=\$ac_optarg ;;
  953. -without-* | --without-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. as_fn_error $? "invalid package name: $ac_useropt"
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "with_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval with_$ac_useropt=no ;;
  968. --x)
  969. # Obsolete; use --with-x.
  970. with_x=yes ;;
  971. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  972. | --x-incl | --x-inc | --x-in | --x-i)
  973. ac_prev=x_includes ;;
  974. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  975. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  976. x_includes=$ac_optarg ;;
  977. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  978. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  979. ac_prev=x_libraries ;;
  980. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  981. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  982. x_libraries=$ac_optarg ;;
  983. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  984. Try \`$0 --help' for more information"
  985. ;;
  986. *=*)
  987. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  988. # Reject names that are not valid shell variable names.
  989. case $ac_envvar in #(
  990. '' | [0-9]* | *[!_$as_cr_alnum]* )
  991. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  992. esac
  993. eval $ac_envvar=\$ac_optarg
  994. export $ac_envvar ;;
  995. *)
  996. # FIXME: should be removed in autoconf 3.0.
  997. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  998. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  999. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1000. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1001. ;;
  1002. esac
  1003. done
  1004. if test -n "$ac_prev"; then
  1005. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1006. as_fn_error $? "missing argument to $ac_option"
  1007. fi
  1008. if test -n "$ac_unrecognized_opts"; then
  1009. case $enable_option_checking in
  1010. no) ;;
  1011. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1012. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1013. esac
  1014. fi
  1015. # Check all directory arguments for consistency.
  1016. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1017. datadir sysconfdir sharedstatedir localstatedir includedir \
  1018. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1019. libdir localedir mandir
  1020. do
  1021. eval ac_val=\$$ac_var
  1022. # Remove trailing slashes.
  1023. case $ac_val in
  1024. */ )
  1025. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1026. eval $ac_var=\$ac_val;;
  1027. esac
  1028. # Be sure to have absolute directory names.
  1029. case $ac_val in
  1030. [\\/$]* | ?:[\\/]* ) continue;;
  1031. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1032. esac
  1033. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1034. done
  1035. # There might be people who depend on the old broken behavior: `$host'
  1036. # used to hold the argument of --host etc.
  1037. # FIXME: To remove some day.
  1038. build=$build_alias
  1039. host=$host_alias
  1040. target=$target_alias
  1041. # FIXME: To remove some day.
  1042. if test "x$host_alias" != x; then
  1043. if test "x$build_alias" = x; then
  1044. cross_compiling=maybe
  1045. elif test "x$build_alias" != "x$host_alias"; then
  1046. cross_compiling=yes
  1047. fi
  1048. fi
  1049. ac_tool_prefix=
  1050. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1051. test "$silent" = yes && exec 6>/dev/null
  1052. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1053. ac_ls_di=`ls -di .` &&
  1054. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1055. as_fn_error $? "working directory cannot be determined"
  1056. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1057. as_fn_error $? "pwd does not report name of working directory"
  1058. # Find the source files, if location was not specified.
  1059. if test -z "$srcdir"; then
  1060. ac_srcdir_defaulted=yes
  1061. # Try the directory containing this script, then the parent directory.
  1062. ac_confdir=`$as_dirname -- "$as_myself" ||
  1063. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1064. X"$as_myself" : 'X\(//\)[^/]' \| \
  1065. X"$as_myself" : 'X\(//\)$' \| \
  1066. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1067. $as_echo X"$as_myself" |
  1068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1069. s//\1/
  1070. q
  1071. }
  1072. /^X\(\/\/\)[^/].*/{
  1073. s//\1/
  1074. q
  1075. }
  1076. /^X\(\/\/\)$/{
  1077. s//\1/
  1078. q
  1079. }
  1080. /^X\(\/\).*/{
  1081. s//\1/
  1082. q
  1083. }
  1084. s/.*/./; q'`
  1085. srcdir=$ac_confdir
  1086. if test ! -r "$srcdir/$ac_unique_file"; then
  1087. srcdir=..
  1088. fi
  1089. else
  1090. ac_srcdir_defaulted=no
  1091. fi
  1092. if test ! -r "$srcdir/$ac_unique_file"; then
  1093. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1094. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1095. fi
  1096. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1097. ac_abs_confdir=`(
  1098. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1099. pwd)`
  1100. # When building in place, set srcdir=.
  1101. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1102. srcdir=.
  1103. fi
  1104. # Remove unnecessary trailing slashes from srcdir.
  1105. # Double slashes in file names in object file debugging info
  1106. # mess up M-x gdb in Emacs.
  1107. case $srcdir in
  1108. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1109. esac
  1110. for ac_var in $ac_precious_vars; do
  1111. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1112. eval ac_env_${ac_var}_value=\$${ac_var}
  1113. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1114. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1115. done
  1116. #
  1117. # Report the --help message.
  1118. #
  1119. if test "$ac_init_help" = "long"; then
  1120. # Omit some internal or obsolete options to make the list less imposing.
  1121. # This message is too long to be a string in the A/UX 3.1 sh.
  1122. cat <<_ACEOF
  1123. \`configure' configures zlog 1.0 to adapt to many kinds of systems.
  1124. Usage: $0 [OPTION]... [VAR=VALUE]...
  1125. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1126. VAR=VALUE. See below for descriptions of some of the useful variables.
  1127. Defaults for the options are specified in brackets.
  1128. Configuration:
  1129. -h, --help display this help and exit
  1130. --help=short display options specific to this package
  1131. --help=recursive display the short help of all the included packages
  1132. -V, --version display version information and exit
  1133. -q, --quiet, --silent do not print \`checking ...' messages
  1134. --cache-file=FILE cache test results in FILE [disabled]
  1135. -C, --config-cache alias for \`--cache-file=config.cache'
  1136. -n, --no-create do not create output files
  1137. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1138. Installation directories:
  1139. --prefix=PREFIX install architecture-independent files in PREFIX
  1140. @<:@@S|@ac_default_prefix@:>@
  1141. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1142. @<:@PREFIX@:>@
  1143. By default, \`make install' will install all the files in
  1144. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1145. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1146. for instance \`--prefix=\$HOME'.
  1147. For better control, use the options below.
  1148. Fine tuning of the installation directories:
  1149. --bindir=DIR user executables [EPREFIX/bin]
  1150. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1151. --libexecdir=DIR program executables [EPREFIX/libexec]
  1152. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1153. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1154. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1155. --libdir=DIR object code libraries [EPREFIX/lib]
  1156. --includedir=DIR C header files [PREFIX/include]
  1157. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1158. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1159. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1160. --infodir=DIR info documentation [DATAROOTDIR/info]
  1161. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1162. --mandir=DIR man documentation [DATAROOTDIR/man]
  1163. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/zlog@:>@
  1164. --htmldir=DIR html documentation [DOCDIR]
  1165. --dvidir=DIR dvi documentation [DOCDIR]
  1166. --pdfdir=DIR pdf documentation [DOCDIR]
  1167. --psdir=DIR ps documentation [DOCDIR]
  1168. _ACEOF
  1169. cat <<\_ACEOF
  1170. _ACEOF
  1171. fi
  1172. if test -n "$ac_init_help"; then
  1173. case $ac_init_help in
  1174. short | recursive ) echo "Configuration of zlog 1.0:";;
  1175. esac
  1176. cat <<\_ACEOF
  1177. Some influential environment variables:
  1178. CXX C++ compiler command
  1179. CXXFLAGS C++ compiler flags
  1180. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1181. nonstandard directory <lib dir>
  1182. LIBS libraries to pass to the linker, e.g. -l<library>
  1183. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1184. you have headers in a nonstandard directory <include dir>
  1185. CC C compiler command
  1186. CFLAGS C compiler flags
  1187. CPP C preprocessor
  1188. Use these variables to override the choices made by `configure' or to help
  1189. it to find libraries and programs with nonstandard names/locations.
  1190. Report bugs to <BUG-REPORT-ADDRESS>.
  1191. _ACEOF
  1192. ac_status=$?
  1193. fi
  1194. if test "$ac_init_help" = "recursive"; then
  1195. # If there are subdirs, report their specific --help.
  1196. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1197. test -d "$ac_dir" ||
  1198. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1199. continue
  1200. ac_builddir=.
  1201. case "$ac_dir" in
  1202. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1203. *)
  1204. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1205. # A ".." for each directory in $ac_dir_suffix.
  1206. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1207. case $ac_top_builddir_sub in
  1208. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1209. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1210. esac ;;
  1211. esac
  1212. ac_abs_top_builddir=$ac_pwd
  1213. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1214. # for backward compatibility:
  1215. ac_top_builddir=$ac_top_build_prefix
  1216. case $srcdir in
  1217. .) # We are building in place.
  1218. ac_srcdir=.
  1219. ac_top_srcdir=$ac_top_builddir_sub
  1220. ac_abs_top_srcdir=$ac_pwd ;;
  1221. [\\/]* | ?:[\\/]* ) # Absolute name.
  1222. ac_srcdir=$srcdir$ac_dir_suffix;
  1223. ac_top_srcdir=$srcdir
  1224. ac_abs_top_srcdir=$srcdir ;;
  1225. *) # Relative name.
  1226. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1227. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1228. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1229. esac
  1230. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1231. cd "$ac_dir" || { ac_status=$?; continue; }
  1232. # Check for guested configure.
  1233. if test -f "$ac_srcdir/configure.gnu"; then
  1234. echo &&
  1235. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1236. elif test -f "$ac_srcdir/configure"; then
  1237. echo &&
  1238. $SHELL "$ac_srcdir/configure" --help=recursive
  1239. else
  1240. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1241. fi || ac_status=$?
  1242. cd "$ac_pwd" || { ac_status=$?; break; }
  1243. done
  1244. fi
  1245. test -n "$ac_init_help" && exit $ac_status
  1246. if $ac_init_version; then
  1247. cat <<\_ACEOF
  1248. zlog configure 1.0
  1249. generated by GNU Autoconf 2.69
  1250. Copyright (C) 2012 Free Software Foundation, Inc.
  1251. This configure script is free software; the Free Software Foundation
  1252. gives unlimited permission to copy, distribute and modify it.
  1253. _ACEOF
  1254. exit
  1255. fi
  1256. ## ------------------------ ##
  1257. ## Autoconf initialization. ##
  1258. ## ------------------------ ##
  1259. @%:@ ac_fn_cxx_try_compile LINENO
  1260. @%:@ ----------------------------
  1261. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1262. ac_fn_cxx_try_compile ()
  1263. {
  1264. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1265. rm -f conftest.$ac_objext
  1266. if { { ac_try="$ac_compile"
  1267. case "(($ac_try" in
  1268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1269. *) ac_try_echo=$ac_try;;
  1270. esac
  1271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1272. $as_echo "$ac_try_echo"; } >&5
  1273. (eval "$ac_compile") 2>conftest.err
  1274. ac_status=$?
  1275. if test -s conftest.err; then
  1276. grep -v '^ *+' conftest.err >conftest.er1
  1277. cat conftest.er1 >&5
  1278. mv -f conftest.er1 conftest.err
  1279. fi
  1280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1281. test $ac_status = 0; } && {
  1282. test -z "$ac_cxx_werror_flag" ||
  1283. test ! -s conftest.err
  1284. } && test -s conftest.$ac_objext; then :
  1285. ac_retval=0
  1286. else
  1287. $as_echo "$as_me: failed program was:" >&5
  1288. sed 's/^/| /' conftest.$ac_ext >&5
  1289. ac_retval=1
  1290. fi
  1291. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1292. as_fn_set_status $ac_retval
  1293. } @%:@ ac_fn_cxx_try_compile
  1294. @%:@ ac_fn_c_try_compile LINENO
  1295. @%:@ --------------------------
  1296. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1297. ac_fn_c_try_compile ()
  1298. {
  1299. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1300. rm -f conftest.$ac_objext
  1301. if { { ac_try="$ac_compile"
  1302. case "(($ac_try" in
  1303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1304. *) ac_try_echo=$ac_try;;
  1305. esac
  1306. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1307. $as_echo "$ac_try_echo"; } >&5
  1308. (eval "$ac_compile") 2>conftest.err
  1309. ac_status=$?
  1310. if test -s conftest.err; then
  1311. grep -v '^ *+' conftest.err >conftest.er1
  1312. cat conftest.er1 >&5
  1313. mv -f conftest.er1 conftest.err
  1314. fi
  1315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1316. test $ac_status = 0; } && {
  1317. test -z "$ac_c_werror_flag" ||
  1318. test ! -s conftest.err
  1319. } && test -s conftest.$ac_objext; then :
  1320. ac_retval=0
  1321. else
  1322. $as_echo "$as_me: failed program was:" >&5
  1323. sed 's/^/| /' conftest.$ac_ext >&5
  1324. ac_retval=1
  1325. fi
  1326. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1327. as_fn_set_status $ac_retval
  1328. } @%:@ ac_fn_c_try_compile
  1329. @%:@ ac_fn_c_try_cpp LINENO
  1330. @%:@ ----------------------
  1331. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1332. ac_fn_c_try_cpp ()
  1333. {
  1334. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1335. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1336. case "(($ac_try" in
  1337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1338. *) ac_try_echo=$ac_try;;
  1339. esac
  1340. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1341. $as_echo "$ac_try_echo"; } >&5
  1342. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1343. ac_status=$?
  1344. if test -s conftest.err; then
  1345. grep -v '^ *+' conftest.err >conftest.er1
  1346. cat conftest.er1 >&5
  1347. mv -f conftest.er1 conftest.err
  1348. fi
  1349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1350. test $ac_status = 0; } > conftest.i && {
  1351. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1352. test ! -s conftest.err
  1353. }; then :
  1354. ac_retval=0
  1355. else
  1356. $as_echo "$as_me: failed program was:" >&5
  1357. sed 's/^/| /' conftest.$ac_ext >&5
  1358. ac_retval=1
  1359. fi
  1360. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1361. as_fn_set_status $ac_retval
  1362. } @%:@ ac_fn_c_try_cpp
  1363. @%:@ ac_fn_c_try_link LINENO
  1364. @%:@ -----------------------
  1365. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1366. ac_fn_c_try_link ()
  1367. {
  1368. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1369. rm -f conftest.$ac_objext conftest$ac_exeext
  1370. if { { ac_try="$ac_link"
  1371. case "(($ac_try" in
  1372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1373. *) ac_try_echo=$ac_try;;
  1374. esac
  1375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1376. $as_echo "$ac_try_echo"; } >&5
  1377. (eval "$ac_link") 2>conftest.err
  1378. ac_status=$?
  1379. if test -s conftest.err; then
  1380. grep -v '^ *+' conftest.err >conftest.er1
  1381. cat conftest.er1 >&5
  1382. mv -f conftest.er1 conftest.err
  1383. fi
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && {
  1386. test -z "$ac_c_werror_flag" ||
  1387. test ! -s conftest.err
  1388. } && test -s conftest$ac_exeext && {
  1389. test "$cross_compiling" = yes ||
  1390. test -x conftest$ac_exeext
  1391. }; then :
  1392. ac_retval=0
  1393. else
  1394. $as_echo "$as_me: failed program was:" >&5
  1395. sed 's/^/| /' conftest.$ac_ext >&5
  1396. ac_retval=1
  1397. fi
  1398. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1399. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1400. # interfere with the next link command; also delete a directory that is
  1401. # left behind by Apple's compiler. We do this before executing the actions.
  1402. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } @%:@ ac_fn_c_try_link
  1406. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1407. @%:@ -------------------------------------------------------
  1408. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1409. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1410. @%:@ accordingly.
  1411. ac_fn_c_check_header_mongrel ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. if eval \${$3+:} false; then :
  1415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1416. $as_echo_n "checking for $2... " >&6; }
  1417. if eval \${$3+:} false; then :
  1418. $as_echo_n "(cached) " >&6
  1419. fi
  1420. eval ac_res=\$$3
  1421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1422. $as_echo "$ac_res" >&6; }
  1423. else
  1424. # Is the header compilable?
  1425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1426. $as_echo_n "checking $2 usability... " >&6; }
  1427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1428. /* end confdefs.h. */
  1429. $4
  1430. @%:@include <$2>
  1431. _ACEOF
  1432. if ac_fn_c_try_compile "$LINENO"; then :
  1433. ac_header_compiler=yes
  1434. else
  1435. ac_header_compiler=no
  1436. fi
  1437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1439. $as_echo "$ac_header_compiler" >&6; }
  1440. # Is the header present?
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1442. $as_echo_n "checking $2 presence... " >&6; }
  1443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1444. /* end confdefs.h. */
  1445. @%:@include <$2>
  1446. _ACEOF
  1447. if ac_fn_c_try_cpp "$LINENO"; then :
  1448. ac_header_preproc=yes
  1449. else
  1450. ac_header_preproc=no
  1451. fi
  1452. rm -f conftest.err conftest.i conftest.$ac_ext
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1454. $as_echo "$ac_header_preproc" >&6; }
  1455. # So? What about this header?
  1456. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1457. yes:no: )
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1459. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1461. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1462. ;;
  1463. no:yes:* )
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1465. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1467. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1469. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1471. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1473. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1474. ( $as_echo "## --------------------------------- ##
  1475. ## Report this to BUG-REPORT-ADDRESS ##
  1476. ## --------------------------------- ##"
  1477. ) | sed "s/^/$as_me: WARNING: /" >&2
  1478. ;;
  1479. esac
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1481. $as_echo_n "checking for $2... " >&6; }
  1482. if eval \${$3+:} false; then :
  1483. $as_echo_n "(cached) " >&6
  1484. else
  1485. eval "$3=\$ac_header_compiler"
  1486. fi
  1487. eval ac_res=\$$3
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. $as_echo "$ac_res" >&6; }
  1490. fi
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. } @%:@ ac_fn_c_check_header_mongrel
  1493. @%:@ ac_fn_c_try_run LINENO
  1494. @%:@ ----------------------
  1495. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1496. @%:@ that executables *can* be run.
  1497. ac_fn_c_try_run ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. if { { ac_try="$ac_link"
  1501. case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. $as_echo "$ac_try_echo"; } >&5
  1507. (eval "$ac_link") 2>&5
  1508. ac_status=$?
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1511. { { case "(($ac_try" in
  1512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1513. *) ac_try_echo=$ac_try;;
  1514. esac
  1515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1516. $as_echo "$ac_try_echo"; } >&5
  1517. (eval "$ac_try") 2>&5
  1518. ac_status=$?
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; }; }; then :
  1521. ac_retval=0
  1522. else
  1523. $as_echo "$as_me: program exited with status $ac_status" >&5
  1524. $as_echo "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=$ac_status
  1527. fi
  1528. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. as_fn_set_status $ac_retval
  1531. } @%:@ ac_fn_c_try_run
  1532. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1533. @%:@ -------------------------------------------------------
  1534. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1535. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1536. ac_fn_c_check_header_compile ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1540. $as_echo_n "checking for $2... " >&6; }
  1541. if eval \${$3+:} false; then :
  1542. $as_echo_n "(cached) " >&6
  1543. else
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. @%:@include <$2>
  1548. _ACEOF
  1549. if ac_fn_c_try_compile "$LINENO"; then :
  1550. eval "$3=yes"
  1551. else
  1552. eval "$3=no"
  1553. fi
  1554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. } @%:@ ac_fn_c_check_header_compile
  1561. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1562. @%:@ -------------------------------------------
  1563. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1564. @%:@ variable VAR accordingly.
  1565. ac_fn_c_check_type ()
  1566. {
  1567. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1569. $as_echo_n "checking for $2... " >&6; }
  1570. if eval \${$3+:} false; then :
  1571. $as_echo_n "(cached) " >&6
  1572. else
  1573. eval "$3=no"
  1574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1575. /* end confdefs.h. */
  1576. $4
  1577. int
  1578. main ()
  1579. {
  1580. if (sizeof ($2))
  1581. return 0;
  1582. ;
  1583. return 0;
  1584. }
  1585. _ACEOF
  1586. if ac_fn_c_try_compile "$LINENO"; then :
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. int
  1591. main ()
  1592. {
  1593. if (sizeof (($2)))
  1594. return 0;
  1595. ;
  1596. return 0;
  1597. }
  1598. _ACEOF
  1599. if ac_fn_c_try_compile "$LINENO"; then :
  1600. else
  1601. eval "$3=yes"
  1602. fi
  1603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. fi
  1607. eval ac_res=\$$3
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1609. $as_echo "$ac_res" >&6; }
  1610. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1611. } @%:@ ac_fn_c_check_type
  1612. @%:@ ac_fn_c_find_intX_t LINENO BITS VAR
  1613. @%:@ -----------------------------------
  1614. @%:@ Finds a signed integer type with width BITS, setting cache variable VAR
  1615. @%:@ accordingly.
  1616. ac_fn_c_find_intX_t ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1620. $as_echo_n "checking for int$2_t... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. eval "$3=no"
  1625. # Order is important - never check a type that is potentially smaller
  1626. # than half of the expected target width.
  1627. for ac_type in int$2_t 'int' 'long int' \
  1628. 'long long int' 'short int' 'signed char'; do
  1629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1630. /* end confdefs.h. */
  1631. $ac_includes_default
  1632. enum { N = $2 / 2 - 1 };
  1633. int
  1634. main ()
  1635. {
  1636. static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@;
  1637. test_array @<:@0@:>@ = 0;
  1638. return test_array @<:@0@:>@;
  1639. ;
  1640. return 0;
  1641. }
  1642. _ACEOF
  1643. if ac_fn_c_try_compile "$LINENO"; then :
  1644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1645. /* end confdefs.h. */
  1646. $ac_includes_default
  1647. enum { N = $2 / 2 - 1 };
  1648. int
  1649. main ()
  1650. {
  1651. static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1652. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@;
  1653. test_array @<:@0@:>@ = 0;
  1654. return test_array @<:@0@:>@;
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. else
  1661. case $ac_type in @%:@(
  1662. int$2_t) :
  1663. eval "$3=yes" ;; @%:@(
  1664. *) :
  1665. eval "$3=\$ac_type" ;;
  1666. esac
  1667. fi
  1668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1669. fi
  1670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1671. if eval test \"x\$"$3"\" = x"no"; then :
  1672. else
  1673. break
  1674. fi
  1675. done
  1676. fi
  1677. eval ac_res=\$$3
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1679. $as_echo "$ac_res" >&6; }
  1680. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1681. } @%:@ ac_fn_c_find_intX_t
  1682. @%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
  1683. @%:@ ------------------------------------
  1684. @%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
  1685. @%:@ accordingly.
  1686. ac_fn_c_find_uintX_t ()
  1687. {
  1688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1690. $as_echo_n "checking for uint$2_t... " >&6; }
  1691. if eval \${$3+:} false; then :
  1692. $as_echo_n "(cached) " >&6
  1693. else
  1694. eval "$3=no"
  1695. # Order is important - never check a type that is potentially smaller
  1696. # than half of the expected target width.
  1697. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1698. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $ac_includes_default
  1702. int
  1703. main ()
  1704. {
  1705. static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@;
  1706. test_array @<:@0@:>@ = 0;
  1707. return test_array @<:@0@:>@;
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"; then :
  1713. case $ac_type in @%:@(
  1714. uint$2_t) :
  1715. eval "$3=yes" ;; @%:@(
  1716. *) :
  1717. eval "$3=\$ac_type" ;;
  1718. esac
  1719. fi
  1720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1721. if eval test \"x\$"$3"\" = x"no"; then :
  1722. else
  1723. break
  1724. fi
  1725. done
  1726. fi
  1727. eval ac_res=\$$3
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1729. $as_echo "$ac_res" >&6; }
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. } @%:@ ac_fn_c_find_uintX_t
  1732. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1733. @%:@ ----------------------------------
  1734. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1735. ac_fn_c_check_func ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1739. $as_echo_n "checking for $2... " >&6; }
  1740. if eval \${$3+:} false; then :
  1741. $as_echo_n "(cached) " >&6
  1742. else
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1746. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1747. #define $2 innocuous_$2
  1748. /* System header to define __stub macros and hopefully few prototypes,
  1749. which can conflict with char $2 (); below.
  1750. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1751. <limits.h> exists even on freestanding compilers. */
  1752. #ifdef __STDC__
  1753. # include <limits.h>
  1754. #else
  1755. # include <assert.h>
  1756. #endif
  1757. #undef $2
  1758. /* Override any GCC internal prototype to avoid an error.
  1759. Use char because int might match the return type of a GCC
  1760. builtin and then its argument prototype would still apply. */
  1761. #ifdef __cplusplus
  1762. extern "C"
  1763. #endif
  1764. char $2 ();
  1765. /* The GNU C library defines this for functions which it implements
  1766. to always fail with ENOSYS. Some functions are actually named
  1767. something starting with __ and the normal name is an alias. */
  1768. #if defined __stub_$2 || defined __stub___$2
  1769. choke me
  1770. #endif
  1771. int
  1772. main ()
  1773. {
  1774. return $2 ();
  1775. ;
  1776. return 0;
  1777. }
  1778. _ACEOF
  1779. if ac_fn_c_try_link "$LINENO"; then :
  1780. eval "$3=yes"
  1781. else
  1782. eval "$3=no"
  1783. fi
  1784. rm -f core conftest.err conftest.$ac_objext \
  1785. conftest$ac_exeext conftest.$ac_ext
  1786. fi
  1787. eval ac_res=\$$3
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1789. $as_echo "$ac_res" >&6; }
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. } @%:@ ac_fn_c_check_func
  1792. cat >config.log <<_ACEOF
  1793. This file contains any messages produced by compilers while
  1794. running configure, to aid debugging if configure makes a mistake.
  1795. It was created by zlog $as_me 1.0, which was
  1796. generated by GNU Autoconf 2.69. Invocation command line was
  1797. $ $0 $@
  1798. _ACEOF
  1799. exec 5>>config.log
  1800. {
  1801. cat <<_ASUNAME
  1802. ## --------- ##
  1803. ## Platform. ##
  1804. ## --------- ##
  1805. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1806. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1807. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1808. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1809. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1810. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1811. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1812. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1813. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1814. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1815. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1816. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1817. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1818. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1819. _ASUNAME
  1820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1821. for as_dir in $PATH
  1822. do
  1823. IFS=$as_save_IFS
  1824. test -z "$as_dir" && as_dir=.
  1825. $as_echo "PATH: $as_dir"
  1826. done
  1827. IFS=$as_save_IFS
  1828. } >&5
  1829. cat >&5 <<_ACEOF
  1830. ## ----------- ##
  1831. ## Core tests. ##
  1832. ## ----------- ##
  1833. _ACEOF
  1834. # Keep a trace of the command line.
  1835. # Strip out --no-create and --no-recursion so they do not pile up.
  1836. # Strip out --silent because we don't want to record it for future runs.
  1837. # Also quote any args containing shell meta-characters.
  1838. # Make two passes to allow for proper duplicate-argument suppression.
  1839. ac_configure_args=
  1840. ac_configure_args0=
  1841. ac_configure_args1=
  1842. ac_must_keep_next=false
  1843. for ac_pass in 1 2
  1844. do
  1845. for ac_arg
  1846. do
  1847. case $ac_arg in
  1848. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1849. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1850. | -silent | --silent | --silen | --sile | --sil)
  1851. continue ;;
  1852. *\'*)
  1853. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1854. esac
  1855. case $ac_pass in
  1856. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1857. 2)
  1858. as_fn_append ac_configure_args1 " '$ac_arg'"
  1859. if test $ac_must_keep_next = true; then
  1860. ac_must_keep_next=false # Got value, back to normal.
  1861. else
  1862. case $ac_arg in
  1863. *=* | --config-cache | -C | -disable-* | --disable-* \
  1864. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1865. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1866. | -with-* | --with-* | -without-* | --without-* | --x)
  1867. case "$ac_configure_args0 " in
  1868. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1869. esac
  1870. ;;
  1871. -* ) ac_must_keep_next=true ;;
  1872. esac
  1873. fi
  1874. as_fn_append ac_configure_args " '$ac_arg'"
  1875. ;;
  1876. esac
  1877. done
  1878. done
  1879. { ac_configure_args0=; unset ac_configure_args0;}
  1880. { ac_configure_args1=; unset ac_configure_args1;}
  1881. # When interrupted or exit'd, cleanup temporary files, and complete
  1882. # config.log. We remove comments because anyway the quotes in there
  1883. # would cause problems or look ugly.
  1884. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1885. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1886. trap 'exit_status=$?
  1887. # Save into config.log some information that might help in debugging.
  1888. {
  1889. echo
  1890. $as_echo "## ---------------- ##
  1891. ## Cache variables. ##
  1892. ## ---------------- ##"
  1893. echo
  1894. # The following way of writing the cache mishandles newlines in values,
  1895. (
  1896. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1897. eval ac_val=\$$ac_var
  1898. case $ac_val in #(
  1899. *${as_nl}*)
  1900. case $ac_var in #(
  1901. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1902. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1903. esac
  1904. case $ac_var in #(
  1905. _ | IFS | as_nl) ;; #(
  1906. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1907. *) { eval $ac_var=; unset $ac_var;} ;;
  1908. esac ;;
  1909. esac
  1910. done
  1911. (set) 2>&1 |
  1912. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1913. *${as_nl}ac_space=\ *)
  1914. sed -n \
  1915. "s/'\''/'\''\\\\'\'''\''/g;
  1916. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1917. ;; #(
  1918. *)
  1919. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1920. ;;
  1921. esac |
  1922. sort
  1923. )
  1924. echo
  1925. $as_echo "## ----------------- ##
  1926. ## Output variables. ##
  1927. ## ----------------- ##"
  1928. echo
  1929. for ac_var in $ac_subst_vars
  1930. do
  1931. eval ac_val=\$$ac_var
  1932. case $ac_val in
  1933. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1934. esac
  1935. $as_echo "$ac_var='\''$ac_val'\''"
  1936. done | sort
  1937. echo
  1938. if test -n "$ac_subst_files"; then
  1939. $as_echo "## ------------------- ##
  1940. ## File substitutions. ##
  1941. ## ------------------- ##"
  1942. echo
  1943. for ac_var in $ac_subst_files
  1944. do
  1945. eval ac_val=\$$ac_var
  1946. case $ac_val in
  1947. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1948. esac
  1949. $as_echo "$ac_var='\''$ac_val'\''"
  1950. done | sort
  1951. echo
  1952. fi
  1953. if test -s confdefs.h; then
  1954. $as_echo "## ----------- ##
  1955. ## confdefs.h. ##
  1956. ## ----------- ##"
  1957. echo
  1958. cat confdefs.h
  1959. echo
  1960. fi
  1961. test "$ac_signal" != 0 &&
  1962. $as_echo "$as_me: caught signal $ac_signal"
  1963. $as_echo "$as_me: exit $exit_status"
  1964. } >&5
  1965. rm -f core *.core core.conftest.* &&
  1966. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1967. exit $exit_status
  1968. ' 0
  1969. for ac_signal in 1 2 13 15; do
  1970. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1971. done
  1972. ac_signal=0
  1973. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1974. rm -f -r conftest* confdefs.h
  1975. $as_echo "/* confdefs.h */" > confdefs.h
  1976. # Predefined preprocessor variables.
  1977. cat >>confdefs.h <<_ACEOF
  1978. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1979. _ACEOF
  1980. cat >>confdefs.h <<_ACEOF
  1981. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1982. _ACEOF
  1983. cat >>confdefs.h <<_ACEOF
  1984. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1985. _ACEOF
  1986. cat >>confdefs.h <<_ACEOF
  1987. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1988. _ACEOF
  1989. cat >>confdefs.h <<_ACEOF
  1990. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1991. _ACEOF
  1992. cat >>confdefs.h <<_ACEOF
  1993. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1994. _ACEOF
  1995. # Let the site file select an alternate cache file if it wants to.
  1996. # Prefer an explicitly selected file to automatically selected ones.
  1997. ac_site_file1=NONE
  1998. ac_site_file2=NONE
  1999. if test -n "$CONFIG_SITE"; then
  2000. # We do not want a PATH search for config.site.
  2001. case $CONFIG_SITE in @%:@((
  2002. -*) ac_site_file1=./$CONFIG_SITE;;
  2003. */*) ac_site_file1=$CONFIG_SITE;;
  2004. *) ac_site_file1=./$CONFIG_SITE;;
  2005. esac
  2006. elif test "x$prefix" != xNONE; then
  2007. ac_site_file1=$prefix/share/config.site
  2008. ac_site_file2=$prefix/etc/config.site
  2009. else
  2010. ac_site_file1=$ac_default_prefix/share/config.site
  2011. ac_site_file2=$ac_default_prefix/etc/config.site
  2012. fi
  2013. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2014. do
  2015. test "x$ac_site_file" = xNONE && continue
  2016. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2018. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2019. sed 's/^/| /' "$ac_site_file" >&5
  2020. . "$ac_site_file" \
  2021. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2023. as_fn_error $? "failed to load site script $ac_site_file
  2024. See \`config.log' for more details" "$LINENO" 5; }
  2025. fi
  2026. done
  2027. if test -r "$cache_file"; then
  2028. # Some versions of bash will fail to source /dev/null (special files
  2029. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2030. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2032. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2033. case $cache_file in
  2034. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2035. *) . "./$cache_file";;
  2036. esac
  2037. fi
  2038. else
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2040. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2041. >$cache_file
  2042. fi
  2043. # Check that the precious variables saved in the cache have kept the same
  2044. # value.
  2045. ac_cache_corrupted=false
  2046. for ac_var in $ac_precious_vars; do
  2047. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2048. eval ac_new_set=\$ac_env_${ac_var}_set
  2049. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2050. eval ac_new_val=\$ac_env_${ac_var}_value
  2051. case $ac_old_set,$ac_new_set in
  2052. set,)
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2054. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2055. ac_cache_corrupted=: ;;
  2056. ,set)
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2058. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2059. ac_cache_corrupted=: ;;
  2060. ,);;
  2061. *)
  2062. if test "x$ac_old_val" != "x$ac_new_val"; then
  2063. # differences in whitespace do not lead to failure.
  2064. ac_old_val_w=`echo x $ac_old_val`
  2065. ac_new_val_w=`echo x $ac_new_val`
  2066. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2068. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2069. ac_cache_corrupted=:
  2070. else
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2072. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2073. eval $ac_var=\$ac_old_val
  2074. fi
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2076. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2078. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2079. fi;;
  2080. esac
  2081. # Pass precious variables to config.status.
  2082. if test "$ac_new_set" = set; then
  2083. case $ac_new_val in
  2084. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2085. *) ac_arg=$ac_var=$ac_new_val ;;
  2086. esac
  2087. case " $ac_configure_args " in
  2088. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2089. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2090. esac
  2091. fi
  2092. done
  2093. if $ac_cache_corrupted; then
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2097. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2098. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2099. fi
  2100. ## -------------------- ##
  2101. ## Main body of script. ##
  2102. ## -------------------- ##
  2103. ac_ext=c
  2104. ac_cpp='$CPP $CPPFLAGS'
  2105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2108. AC_INIT_AUTOMAKE(foreign -Wall)
  2109. ac_config_headers="$ac_config_headers config.h"
  2110. # Checks for programs.
  2111. ac_ext=cpp
  2112. ac_cpp='$CXXCPP $CPPFLAGS'
  2113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2116. if test -z "$CXX"; then
  2117. if test -n "$CCC"; then
  2118. CXX=$CCC
  2119. else
  2120. if test -n "$ac_tool_prefix"; then
  2121. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2122. do
  2123. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2124. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2126. $as_echo_n "checking for $ac_word... " >&6; }
  2127. if ${ac_cv_prog_CXX+:} false; then :
  2128. $as_echo_n "(cached) " >&6
  2129. else
  2130. if test -n "$CXX"; then
  2131. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_exec_ext in '' $ac_executable_extensions; do
  2139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2140. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2142. break 2
  2143. fi
  2144. done
  2145. done
  2146. IFS=$as_save_IFS
  2147. fi
  2148. fi
  2149. CXX=$ac_cv_prog_CXX
  2150. if test -n "$CXX"; then
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2152. $as_echo "$CXX" >&6; }
  2153. else
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2155. $as_echo "no" >&6; }
  2156. fi
  2157. test -n "$CXX" && break
  2158. done
  2159. fi
  2160. if test -z "$CXX"; then
  2161. ac_ct_CXX=$CXX
  2162. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2163. do
  2164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2165. set dummy $ac_prog; ac_word=$2
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2167. $as_echo_n "checking for $ac_word... " >&6; }
  2168. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2169. $as_echo_n "(cached) " >&6
  2170. else
  2171. if test -n "$ac_ct_CXX"; then
  2172. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2173. else
  2174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2175. for as_dir in $PATH
  2176. do
  2177. IFS=$as_save_IFS
  2178. test -z "$as_dir" && as_dir=.
  2179. for ac_exec_ext in '' $ac_executable_extensions; do
  2180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2181. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2183. break 2
  2184. fi
  2185. done
  2186. done
  2187. IFS=$as_save_IFS
  2188. fi
  2189. fi
  2190. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2191. if test -n "$ac_ct_CXX"; then
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2193. $as_echo "$ac_ct_CXX" >&6; }
  2194. else
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2196. $as_echo "no" >&6; }
  2197. fi
  2198. test -n "$ac_ct_CXX" && break
  2199. done
  2200. if test "x$ac_ct_CXX" = x; then
  2201. CXX="g++"
  2202. else
  2203. case $cross_compiling:$ac_tool_warned in
  2204. yes:)
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2207. ac_tool_warned=yes ;;
  2208. esac
  2209. CXX=$ac_ct_CXX
  2210. fi
  2211. fi
  2212. fi
  2213. fi
  2214. # Provide some information about the compiler.
  2215. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2216. set X $ac_compile
  2217. ac_compiler=$2
  2218. for ac_option in --version -v -V -qversion; do
  2219. { { ac_try="$ac_compiler $ac_option >&5"
  2220. case "(($ac_try" in
  2221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2222. *) ac_try_echo=$ac_try;;
  2223. esac
  2224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2225. $as_echo "$ac_try_echo"; } >&5
  2226. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2227. ac_status=$?
  2228. if test -s conftest.err; then
  2229. sed '10a\
  2230. ... rest of stderr output deleted ...
  2231. 10q' conftest.err >conftest.er1
  2232. cat conftest.er1 >&5
  2233. fi
  2234. rm -f conftest.er1 conftest.err
  2235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2236. test $ac_status = 0; }
  2237. done
  2238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2239. /* end confdefs.h. */
  2240. int
  2241. main ()
  2242. {
  2243. ;
  2244. return 0;
  2245. }
  2246. _ACEOF
  2247. ac_clean_files_save=$ac_clean_files
  2248. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2249. # Try to create an executable without -o first, disregard a.out.
  2250. # It will help us diagnose broken compilers, and finding out an intuition
  2251. # of exeext.
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2253. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2254. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2255. # The possible output files:
  2256. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2257. ac_rmfiles=
  2258. for ac_file in $ac_files
  2259. do
  2260. case $ac_file in
  2261. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2262. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2263. esac
  2264. done
  2265. rm -f $ac_rmfiles
  2266. if { { ac_try="$ac_link_default"
  2267. case "(($ac_try" in
  2268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2269. *) ac_try_echo=$ac_try;;
  2270. esac
  2271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2272. $as_echo "$ac_try_echo"; } >&5
  2273. (eval "$ac_link_default") 2>&5
  2274. ac_status=$?
  2275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2276. test $ac_status = 0; }; then :
  2277. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2278. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2279. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2280. # so that the user can short-circuit this test for compilers unknown to
  2281. # Autoconf.
  2282. for ac_file in $ac_files ''
  2283. do
  2284. test -f "$ac_file" || continue
  2285. case $ac_file in
  2286. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2287. ;;
  2288. [ab].out )
  2289. # We found the default executable, but exeext='' is most
  2290. # certainly right.
  2291. break;;
  2292. *.* )
  2293. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2294. then :; else
  2295. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2296. fi
  2297. # We set ac_cv_exeext here because the later test for it is not
  2298. # safe: cross compilers may not add the suffix if given an `-o'
  2299. # argument, so we may need to know it at that point already.
  2300. # Even if this section looks crufty: it has the advantage of
  2301. # actually working.
  2302. break;;
  2303. * )
  2304. break;;
  2305. esac
  2306. done
  2307. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2308. else
  2309. ac_file=''
  2310. fi
  2311. if test -z "$ac_file"; then :
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2313. $as_echo "no" >&6; }
  2314. $as_echo "$as_me: failed program was:" >&5
  2315. sed 's/^/| /' conftest.$ac_ext >&5
  2316. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2317. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2318. as_fn_error 77 "C++ compiler cannot create executables
  2319. See \`config.log' for more details" "$LINENO" 5; }
  2320. else
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2322. $as_echo "yes" >&6; }
  2323. fi
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2325. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2327. $as_echo "$ac_file" >&6; }
  2328. ac_exeext=$ac_cv_exeext
  2329. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2330. ac_clean_files=$ac_clean_files_save
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2332. $as_echo_n "checking for suffix of executables... " >&6; }
  2333. if { { ac_try="$ac_link"
  2334. case "(($ac_try" in
  2335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2336. *) ac_try_echo=$ac_try;;
  2337. esac
  2338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2339. $as_echo "$ac_try_echo"; } >&5
  2340. (eval "$ac_link") 2>&5
  2341. ac_status=$?
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2343. test $ac_status = 0; }; then :
  2344. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2345. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2346. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2347. # `rm'.
  2348. for ac_file in conftest.exe conftest conftest.*; do
  2349. test -f "$ac_file" || continue
  2350. case $ac_file in
  2351. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2352. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2353. break;;
  2354. * ) break;;
  2355. esac
  2356. done
  2357. else
  2358. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2359. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2360. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2361. See \`config.log' for more details" "$LINENO" 5; }
  2362. fi
  2363. rm -f conftest conftest$ac_cv_exeext
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2365. $as_echo "$ac_cv_exeext" >&6; }
  2366. rm -f conftest.$ac_ext
  2367. EXEEXT=$ac_cv_exeext
  2368. ac_exeext=$EXEEXT
  2369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2370. /* end confdefs.h. */
  2371. @%:@include <stdio.h>
  2372. int
  2373. main ()
  2374. {
  2375. FILE *f = fopen ("conftest.out", "w");
  2376. return ferror (f) || fclose (f) != 0;
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. ac_clean_files="$ac_clean_files conftest.out"
  2382. # Check that the compiler produces executables we can run. If not, either
  2383. # the compiler is broken, or we cross compile.
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2385. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2386. if test "$cross_compiling" != yes; then
  2387. { { ac_try="$ac_link"
  2388. case "(($ac_try" in
  2389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2390. *) ac_try_echo=$ac_try;;
  2391. esac
  2392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2393. $as_echo "$ac_try_echo"; } >&5
  2394. (eval "$ac_link") 2>&5
  2395. ac_status=$?
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2397. test $ac_status = 0; }
  2398. if { ac_try='./conftest$ac_cv_exeext'
  2399. { { case "(($ac_try" in
  2400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2401. *) ac_try_echo=$ac_try;;
  2402. esac
  2403. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2404. $as_echo "$ac_try_echo"; } >&5
  2405. (eval "$ac_try") 2>&5
  2406. ac_status=$?
  2407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2408. test $ac_status = 0; }; }; then
  2409. cross_compiling=no
  2410. else
  2411. if test "$cross_compiling" = maybe; then
  2412. cross_compiling=yes
  2413. else
  2414. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2415. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2416. as_fn_error $? "cannot run C++ compiled programs.
  2417. If you meant to cross compile, use \`--host'.
  2418. See \`config.log' for more details" "$LINENO" 5; }
  2419. fi
  2420. fi
  2421. fi
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2423. $as_echo "$cross_compiling" >&6; }
  2424. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2425. ac_clean_files=$ac_clean_files_save
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2427. $as_echo_n "checking for suffix of object files... " >&6; }
  2428. if ${ac_cv_objext+:} false; then :
  2429. $as_echo_n "(cached) " >&6
  2430. else
  2431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2432. /* end confdefs.h. */
  2433. int
  2434. main ()
  2435. {
  2436. ;
  2437. return 0;
  2438. }
  2439. _ACEOF
  2440. rm -f conftest.o conftest.obj
  2441. if { { ac_try="$ac_compile"
  2442. case "(($ac_try" in
  2443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2444. *) ac_try_echo=$ac_try;;
  2445. esac
  2446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2447. $as_echo "$ac_try_echo"; } >&5
  2448. (eval "$ac_compile") 2>&5
  2449. ac_status=$?
  2450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2451. test $ac_status = 0; }; then :
  2452. for ac_file in conftest.o conftest.obj conftest.*; do
  2453. test -f "$ac_file" || continue;
  2454. case $ac_file in
  2455. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2456. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2457. break;;
  2458. esac
  2459. done
  2460. else
  2461. $as_echo "$as_me: failed program was:" >&5
  2462. sed 's/^/| /' conftest.$ac_ext >&5
  2463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2465. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2466. See \`config.log' for more details" "$LINENO" 5; }
  2467. fi
  2468. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2469. fi
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2471. $as_echo "$ac_cv_objext" >&6; }
  2472. OBJEXT=$ac_cv_objext
  2473. ac_objext=$OBJEXT
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2475. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2476. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2480. /* end confdefs.h. */
  2481. int
  2482. main ()
  2483. {
  2484. #ifndef __GNUC__
  2485. choke me
  2486. #endif
  2487. ;
  2488. return 0;
  2489. }
  2490. _ACEOF
  2491. if ac_fn_cxx_try_compile "$LINENO"; then :
  2492. ac_compiler_gnu=yes
  2493. else
  2494. ac_compiler_gnu=no
  2495. fi
  2496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2497. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2498. fi
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2500. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2501. if test $ac_compiler_gnu = yes; then
  2502. GXX=yes
  2503. else
  2504. GXX=
  2505. fi
  2506. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2507. ac_save_CXXFLAGS=$CXXFLAGS
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2509. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2510. if ${ac_cv_prog_cxx_g+:} false; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2514. ac_cxx_werror_flag=yes
  2515. ac_cv_prog_cxx_g=no
  2516. CXXFLAGS="-g"
  2517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2518. /* end confdefs.h. */
  2519. int
  2520. main ()
  2521. {
  2522. ;
  2523. return 0;
  2524. }
  2525. _ACEOF
  2526. if ac_fn_cxx_try_compile "$LINENO"; then :
  2527. ac_cv_prog_cxx_g=yes
  2528. else
  2529. CXXFLAGS=""
  2530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2531. /* end confdefs.h. */
  2532. int
  2533. main ()
  2534. {
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. if ac_fn_cxx_try_compile "$LINENO"; then :
  2540. else
  2541. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2542. CXXFLAGS="-g"
  2543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2544. /* end confdefs.h. */
  2545. int
  2546. main ()
  2547. {
  2548. ;
  2549. return 0;
  2550. }
  2551. _ACEOF
  2552. if ac_fn_cxx_try_compile "$LINENO"; then :
  2553. ac_cv_prog_cxx_g=yes
  2554. fi
  2555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2558. fi
  2559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2560. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2561. fi
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2563. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2564. if test "$ac_test_CXXFLAGS" = set; then
  2565. CXXFLAGS=$ac_save_CXXFLAGS
  2566. elif test $ac_cv_prog_cxx_g = yes; then
  2567. if test "$GXX" = yes; then
  2568. CXXFLAGS="-g -O2"
  2569. else
  2570. CXXFLAGS="-g"
  2571. fi
  2572. else
  2573. if test "$GXX" = yes; then
  2574. CXXFLAGS="-O2"
  2575. else
  2576. CXXFLAGS=
  2577. fi
  2578. fi
  2579. ac_ext=c
  2580. ac_cpp='$CPP $CPPFLAGS'
  2581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2584. for ac_prog in gawk mawk nawk awk
  2585. do
  2586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2587. set dummy $ac_prog; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_AWK+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$AWK"; then
  2594. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_AWK="$ac_prog"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. AWK=$ac_cv_prog_AWK
  2613. if test -n "$AWK"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2615. $as_echo "$AWK" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. test -n "$AWK" && break
  2621. done
  2622. ac_ext=c
  2623. ac_cpp='$CPP $CPPFLAGS'
  2624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2627. if test -n "$ac_tool_prefix"; then
  2628. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2629. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if ${ac_cv_prog_CC+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$CC"; then
  2636. ac_cv_prog_CC="$CC" # Let the user override the test.
  2637. else
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2645. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2647. break 2
  2648. fi
  2649. done
  2650. done
  2651. IFS=$as_save_IFS
  2652. fi
  2653. fi
  2654. CC=$ac_cv_prog_CC
  2655. if test -n "$CC"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2657. $as_echo "$CC" >&6; }
  2658. else
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2660. $as_echo "no" >&6; }
  2661. fi
  2662. fi
  2663. if test -z "$ac_cv_prog_CC"; then
  2664. ac_ct_CC=$CC
  2665. # Extract the first word of "gcc", so it can be a program name with args.
  2666. set dummy gcc; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$ac_ct_CC"; then
  2673. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2682. ac_cv_prog_ac_ct_CC="gcc"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2692. if test -n "$ac_ct_CC"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2694. $as_echo "$ac_ct_CC" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. if test "x$ac_ct_CC" = x; then
  2700. CC=""
  2701. else
  2702. case $cross_compiling:$ac_tool_warned in
  2703. yes:)
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2706. ac_tool_warned=yes ;;
  2707. esac
  2708. CC=$ac_ct_CC
  2709. fi
  2710. else
  2711. CC="$ac_cv_prog_CC"
  2712. fi
  2713. if test -z "$CC"; then
  2714. if test -n "$ac_tool_prefix"; then
  2715. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2716. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2718. $as_echo_n "checking for $ac_word... " >&6; }
  2719. if ${ac_cv_prog_CC+:} false; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. if test -n "$CC"; then
  2723. ac_cv_prog_CC="$CC" # Let the user override the test.
  2724. else
  2725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2726. for as_dir in $PATH
  2727. do
  2728. IFS=$as_save_IFS
  2729. test -z "$as_dir" && as_dir=.
  2730. for ac_exec_ext in '' $ac_executable_extensions; do
  2731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2732. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. fi
  2740. fi
  2741. CC=$ac_cv_prog_CC
  2742. if test -n "$CC"; then
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2744. $as_echo "$CC" >&6; }
  2745. else
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2747. $as_echo "no" >&6; }
  2748. fi
  2749. fi
  2750. fi
  2751. if test -z "$CC"; then
  2752. # Extract the first word of "cc", so it can be a program name with args.
  2753. set dummy cc; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_CC+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$CC"; then
  2760. ac_cv_prog_CC="$CC" # Let the user override the test.
  2761. else
  2762. ac_prog_rejected=no
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2771. ac_prog_rejected=yes
  2772. continue
  2773. fi
  2774. ac_cv_prog_CC="cc"
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2776. break 2
  2777. fi
  2778. done
  2779. done
  2780. IFS=$as_save_IFS
  2781. if test $ac_prog_rejected = yes; then
  2782. # We found a bogon in the path, so make sure we never use it.
  2783. set dummy $ac_cv_prog_CC
  2784. shift
  2785. if test $@%:@ != 0; then
  2786. # We chose a different compiler from the bogus one.
  2787. # However, it has the same basename, so the bogon will be chosen
  2788. # first if we set CC to just the basename; use the full file name.
  2789. shift
  2790. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2791. fi
  2792. fi
  2793. fi
  2794. fi
  2795. CC=$ac_cv_prog_CC
  2796. if test -n "$CC"; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2798. $as_echo "$CC" >&6; }
  2799. else
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2801. $as_echo "no" >&6; }
  2802. fi
  2803. fi
  2804. if test -z "$CC"; then
  2805. if test -n "$ac_tool_prefix"; then
  2806. for ac_prog in cl.exe
  2807. do
  2808. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2809. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$CC"; then
  2816. ac_cv_prog_CC="$CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. CC=$ac_cv_prog_CC
  2835. if test -n "$CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2837. $as_echo "$CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. test -n "$CC" && break
  2843. done
  2844. fi
  2845. if test -z "$CC"; then
  2846. ac_ct_CC=$CC
  2847. for ac_prog in cl.exe
  2848. do
  2849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2850. set dummy $ac_prog; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$ac_ct_CC"; then
  2857. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2858. else
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2866. ac_cv_prog_ac_ct_CC="$ac_prog"
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2868. break 2
  2869. fi
  2870. done
  2871. done
  2872. IFS=$as_save_IFS
  2873. fi
  2874. fi
  2875. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2876. if test -n "$ac_ct_CC"; then
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2878. $as_echo "$ac_ct_CC" >&6; }
  2879. else
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2881. $as_echo "no" >&6; }
  2882. fi
  2883. test -n "$ac_ct_CC" && break
  2884. done
  2885. if test "x$ac_ct_CC" = x; then
  2886. CC=""
  2887. else
  2888. case $cross_compiling:$ac_tool_warned in
  2889. yes:)
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2892. ac_tool_warned=yes ;;
  2893. esac
  2894. CC=$ac_ct_CC
  2895. fi
  2896. fi
  2897. fi
  2898. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2900. as_fn_error $? "no acceptable C compiler found in \$PATH
  2901. See \`config.log' for more details" "$LINENO" 5; }
  2902. # Provide some information about the compiler.
  2903. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2904. set X $ac_compile
  2905. ac_compiler=$2
  2906. for ac_option in --version -v -V -qversion; do
  2907. { { ac_try="$ac_compiler $ac_option >&5"
  2908. case "(($ac_try" in
  2909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2910. *) ac_try_echo=$ac_try;;
  2911. esac
  2912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2913. $as_echo "$ac_try_echo"; } >&5
  2914. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2915. ac_status=$?
  2916. if test -s conftest.err; then
  2917. sed '10a\
  2918. ... rest of stderr output deleted ...
  2919. 10q' conftest.err >conftest.er1
  2920. cat conftest.er1 >&5
  2921. fi
  2922. rm -f conftest.er1 conftest.err
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2924. test $ac_status = 0; }
  2925. done
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2927. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2928. if ${ac_cv_c_compiler_gnu+:} false; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. #ifndef __GNUC__
  2937. choke me
  2938. #endif
  2939. ;
  2940. return 0;
  2941. }
  2942. _ACEOF
  2943. if ac_fn_c_try_compile "$LINENO"; then :
  2944. ac_compiler_gnu=yes
  2945. else
  2946. ac_compiler_gnu=no
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2952. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2953. if test $ac_compiler_gnu = yes; then
  2954. GCC=yes
  2955. else
  2956. GCC=
  2957. fi
  2958. ac_test_CFLAGS=${CFLAGS+set}
  2959. ac_save_CFLAGS=$CFLAGS
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2961. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2962. if ${ac_cv_prog_cc_g+:} false; then :
  2963. $as_echo_n "(cached) " >&6
  2964. else
  2965. ac_save_c_werror_flag=$ac_c_werror_flag
  2966. ac_c_werror_flag=yes
  2967. ac_cv_prog_cc_g=no
  2968. CFLAGS="-g"
  2969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2970. /* end confdefs.h. */
  2971. int
  2972. main ()
  2973. {
  2974. ;
  2975. return 0;
  2976. }
  2977. _ACEOF
  2978. if ac_fn_c_try_compile "$LINENO"; then :
  2979. ac_cv_prog_cc_g=yes
  2980. else
  2981. CFLAGS=""
  2982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2983. /* end confdefs.h. */
  2984. int
  2985. main ()
  2986. {
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. if ac_fn_c_try_compile "$LINENO"; then :
  2992. else
  2993. ac_c_werror_flag=$ac_save_c_werror_flag
  2994. CFLAGS="-g"
  2995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2996. /* end confdefs.h. */
  2997. int
  2998. main ()
  2999. {
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. if ac_fn_c_try_compile "$LINENO"; then :
  3005. ac_cv_prog_cc_g=yes
  3006. fi
  3007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3008. fi
  3009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3010. fi
  3011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3012. ac_c_werror_flag=$ac_save_c_werror_flag
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3015. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3016. if test "$ac_test_CFLAGS" = set; then
  3017. CFLAGS=$ac_save_CFLAGS
  3018. elif test $ac_cv_prog_cc_g = yes; then
  3019. if test "$GCC" = yes; then
  3020. CFLAGS="-g -O2"
  3021. else
  3022. CFLAGS="-g"
  3023. fi
  3024. else
  3025. if test "$GCC" = yes; then
  3026. CFLAGS="-O2"
  3027. else
  3028. CFLAGS=
  3029. fi
  3030. fi
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3032. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3033. if ${ac_cv_prog_cc_c89+:} false; then :
  3034. $as_echo_n "(cached) " >&6
  3035. else
  3036. ac_cv_prog_cc_c89=no
  3037. ac_save_CC=$CC
  3038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3039. /* end confdefs.h. */
  3040. #include <stdarg.h>
  3041. #include <stdio.h>
  3042. struct stat;
  3043. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3044. struct buf { int x; };
  3045. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3046. static char *e (p, i)
  3047. char **p;
  3048. int i;
  3049. {
  3050. return p[i];
  3051. }
  3052. static char *f (char * (*g) (char **, int), char **p, ...)
  3053. {
  3054. char *s;
  3055. va_list v;
  3056. va_start (v,p);
  3057. s = g (p, va_arg (v,int));
  3058. va_end (v);
  3059. return s;
  3060. }
  3061. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3062. function prototypes and stuff, but not '\xHH' hex character constants.
  3063. These don't provoke an error unfortunately, instead are silently treated
  3064. as 'x'. The following induces an error, until -std is added to get
  3065. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3066. array size at least. It's necessary to write '\x00'==0 to get something
  3067. that's true only with -std. */
  3068. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3069. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3070. inside strings and character constants. */
  3071. #define FOO(x) 'x'
  3072. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3073. int test (int i, double x);
  3074. struct s1 {int (*f) (int a);};
  3075. struct s2 {int (*f) (double a);};
  3076. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3077. int argc;
  3078. char **argv;
  3079. int
  3080. main ()
  3081. {
  3082. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3083. ;
  3084. return 0;
  3085. }
  3086. _ACEOF
  3087. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3088. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3089. do
  3090. CC="$ac_save_CC $ac_arg"
  3091. if ac_fn_c_try_compile "$LINENO"; then :
  3092. ac_cv_prog_cc_c89=$ac_arg
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext
  3095. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3096. done
  3097. rm -f conftest.$ac_ext
  3098. CC=$ac_save_CC
  3099. fi
  3100. # AC_CACHE_VAL
  3101. case "x$ac_cv_prog_cc_c89" in
  3102. x)
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3104. $as_echo "none needed" >&6; } ;;
  3105. xno)
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3107. $as_echo "unsupported" >&6; } ;;
  3108. *)
  3109. CC="$CC $ac_cv_prog_cc_c89"
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3111. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3112. esac
  3113. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3114. fi
  3115. ac_ext=c
  3116. ac_cpp='$CPP $CPPFLAGS'
  3117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3120. ac_ext=c
  3121. ac_cpp='$CPP $CPPFLAGS'
  3122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3126. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3127. # On Suns, sometimes $CPP names a directory.
  3128. if test -n "$CPP" && test -d "$CPP"; then
  3129. CPP=
  3130. fi
  3131. if test -z "$CPP"; then
  3132. if ${ac_cv_prog_CPP+:} false; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. # Double quotes because CPP needs to be expanded
  3136. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3137. do
  3138. ac_preproc_ok=false
  3139. for ac_c_preproc_warn_flag in '' yes
  3140. do
  3141. # Use a header file that comes with gcc, so configuring glibc
  3142. # with a fresh cross-compiler works.
  3143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3144. # <limits.h> exists even on freestanding compilers.
  3145. # On the NeXT, cc -E runs the code through the compiler's parser,
  3146. # not just through cpp. "Syntax error" is here to catch this case.
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. @%:@ifdef __STDC__
  3150. @%:@ include <limits.h>
  3151. @%:@else
  3152. @%:@ include <assert.h>
  3153. @%:@endif
  3154. Syntax error
  3155. _ACEOF
  3156. if ac_fn_c_try_cpp "$LINENO"; then :
  3157. else
  3158. # Broken: fails on valid input.
  3159. continue
  3160. fi
  3161. rm -f conftest.err conftest.i conftest.$ac_ext
  3162. # OK, works on sane cases. Now check whether nonexistent headers
  3163. # can be detected and how.
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. @%:@include <ac_nonexistent.h>
  3167. _ACEOF
  3168. if ac_fn_c_try_cpp "$LINENO"; then :
  3169. # Broken: success on invalid input.
  3170. continue
  3171. else
  3172. # Passes both tests.
  3173. ac_preproc_ok=:
  3174. break
  3175. fi
  3176. rm -f conftest.err conftest.i conftest.$ac_ext
  3177. done
  3178. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3179. rm -f conftest.i conftest.err conftest.$ac_ext
  3180. if $ac_preproc_ok; then :
  3181. break
  3182. fi
  3183. done
  3184. ac_cv_prog_CPP=$CPP
  3185. fi
  3186. CPP=$ac_cv_prog_CPP
  3187. else
  3188. ac_cv_prog_CPP=$CPP
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3191. $as_echo "$CPP" >&6; }
  3192. ac_preproc_ok=false
  3193. for ac_c_preproc_warn_flag in '' yes
  3194. do
  3195. # Use a header file that comes with gcc, so configuring glibc
  3196. # with a fresh cross-compiler works.
  3197. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3198. # <limits.h> exists even on freestanding compilers.
  3199. # On the NeXT, cc -E runs the code through the compiler's parser,
  3200. # not just through cpp. "Syntax error" is here to catch this case.
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. @%:@ifdef __STDC__
  3204. @%:@ include <limits.h>
  3205. @%:@else
  3206. @%:@ include <assert.h>
  3207. @%:@endif
  3208. Syntax error
  3209. _ACEOF
  3210. if ac_fn_c_try_cpp "$LINENO"; then :
  3211. else
  3212. # Broken: fails on valid input.
  3213. continue
  3214. fi
  3215. rm -f conftest.err conftest.i conftest.$ac_ext
  3216. # OK, works on sane cases. Now check whether nonexistent headers
  3217. # can be detected and how.
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. @%:@include <ac_nonexistent.h>
  3221. _ACEOF
  3222. if ac_fn_c_try_cpp "$LINENO"; then :
  3223. # Broken: success on invalid input.
  3224. continue
  3225. else
  3226. # Passes both tests.
  3227. ac_preproc_ok=:
  3228. break
  3229. fi
  3230. rm -f conftest.err conftest.i conftest.$ac_ext
  3231. done
  3232. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3233. rm -f conftest.i conftest.err conftest.$ac_ext
  3234. if $ac_preproc_ok; then :
  3235. else
  3236. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3238. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3239. See \`config.log' for more details" "$LINENO" 5; }
  3240. fi
  3241. ac_ext=c
  3242. ac_cpp='$CPP $CPPFLAGS'
  3243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3246. ac_aux_dir=
  3247. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3248. if test -f "$ac_dir/install-sh"; then
  3249. ac_aux_dir=$ac_dir
  3250. ac_install_sh="$ac_aux_dir/install-sh -c"
  3251. break
  3252. elif test -f "$ac_dir/install.sh"; then
  3253. ac_aux_dir=$ac_dir
  3254. ac_install_sh="$ac_aux_dir/install.sh -c"
  3255. break
  3256. elif test -f "$ac_dir/shtool"; then
  3257. ac_aux_dir=$ac_dir
  3258. ac_install_sh="$ac_aux_dir/shtool install -c"
  3259. break
  3260. fi
  3261. done
  3262. if test -z "$ac_aux_dir"; then
  3263. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3264. fi
  3265. # These three variables are undocumented and unsupported,
  3266. # and are intended to be withdrawn in a future Autoconf release.
  3267. # They can cause serious problems if a builder's source tree is in a directory
  3268. # whose full name contains unusual characters.
  3269. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3270. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3271. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3272. # Find a good install program. We prefer a C program (faster),
  3273. # so one script is as good as another. But avoid the broken or
  3274. # incompatible versions:
  3275. # SysV /etc/install, /usr/sbin/install
  3276. # SunOS /usr/etc/install
  3277. # IRIX /sbin/install
  3278. # AIX /bin/install
  3279. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3280. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3281. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3282. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3283. # OS/2's system install, which has a completely different semantic
  3284. # ./install, which can be erroneously created by make from ./install.sh.
  3285. # Reject install programs that cannot install multiple files.
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3287. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3288. if test -z "$INSTALL"; then
  3289. if ${ac_cv_path_install+:} false; then :
  3290. $as_echo_n "(cached) " >&6
  3291. else
  3292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3293. for as_dir in $PATH
  3294. do
  3295. IFS=$as_save_IFS
  3296. test -z "$as_dir" && as_dir=.
  3297. # Account for people who put trailing slashes in PATH elements.
  3298. case $as_dir/ in @%:@((
  3299. ./ | .// | /[cC]/* | \
  3300. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3301. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3302. /usr/ucb/* ) ;;
  3303. *)
  3304. # OSF1 and SCO ODT 3.0 have their own names for install.
  3305. # Don't use installbsd from OSF since it installs stuff as root
  3306. # by default.
  3307. for ac_prog in ginstall scoinst install; do
  3308. for ac_exec_ext in '' $ac_executable_extensions; do
  3309. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3310. if test $ac_prog = install &&
  3311. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3312. # AIX install. It has an incompatible calling convention.
  3313. :
  3314. elif test $ac_prog = install &&
  3315. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3316. # program-specific install script used by HP pwplus--don't use.
  3317. :
  3318. else
  3319. rm -rf conftest.one conftest.two conftest.dir
  3320. echo one > conftest.one
  3321. echo two > conftest.two
  3322. mkdir conftest.dir
  3323. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3324. test -s conftest.one && test -s conftest.two &&
  3325. test -s conftest.dir/conftest.one &&
  3326. test -s conftest.dir/conftest.two
  3327. then
  3328. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3329. break 3
  3330. fi
  3331. fi
  3332. fi
  3333. done
  3334. done
  3335. ;;
  3336. esac
  3337. done
  3338. IFS=$as_save_IFS
  3339. rm -rf conftest.one conftest.two conftest.dir
  3340. fi
  3341. if test "${ac_cv_path_install+set}" = set; then
  3342. INSTALL=$ac_cv_path_install
  3343. else
  3344. # As a last resort, use the slow shell script. Don't cache a
  3345. # value for INSTALL within a source directory, because that will
  3346. # break other packages using the cache if that directory is
  3347. # removed, or if the value is a relative name.
  3348. INSTALL=$ac_install_sh
  3349. fi
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3352. $as_echo "$INSTALL" >&6; }
  3353. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3354. # It thinks the first close brace ends the variable substitution.
  3355. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3356. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3357. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3359. $as_echo_n "checking whether ln -s works... " >&6; }
  3360. LN_S=$as_ln_s
  3361. if test "$LN_S" = "ln -s"; then
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3363. $as_echo "yes" >&6; }
  3364. else
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3366. $as_echo "no, using $LN_S" >&6; }
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3369. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3370. set x ${MAKE-make}
  3371. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3372. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. cat >conftest.make <<\_ACEOF
  3376. SHELL = /bin/sh
  3377. all:
  3378. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3379. _ACEOF
  3380. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3381. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3382. *@@@%%%=?*=@@@%%%*)
  3383. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3384. *)
  3385. eval ac_cv_prog_make_${ac_make}_set=no;;
  3386. esac
  3387. rm -f conftest.make
  3388. fi
  3389. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3391. $as_echo "yes" >&6; }
  3392. SET_MAKE=
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. SET_MAKE="MAKE=${MAKE-make}"
  3397. fi
  3398. if test -n "$ac_tool_prefix"; then
  3399. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3400. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3402. $as_echo_n "checking for $ac_word... " >&6; }
  3403. if ${ac_cv_prog_RANLIB+:} false; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. if test -n "$RANLIB"; then
  3407. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3408. else
  3409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3410. for as_dir in $PATH
  3411. do
  3412. IFS=$as_save_IFS
  3413. test -z "$as_dir" && as_dir=.
  3414. for ac_exec_ext in '' $ac_executable_extensions; do
  3415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3416. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3418. break 2
  3419. fi
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. fi
  3424. fi
  3425. RANLIB=$ac_cv_prog_RANLIB
  3426. if test -n "$RANLIB"; then
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3428. $as_echo "$RANLIB" >&6; }
  3429. else
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3431. $as_echo "no" >&6; }
  3432. fi
  3433. fi
  3434. if test -z "$ac_cv_prog_RANLIB"; then
  3435. ac_ct_RANLIB=$RANLIB
  3436. # Extract the first word of "ranlib", so it can be a program name with args.
  3437. set dummy ranlib; ac_word=$2
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3439. $as_echo_n "checking for $ac_word... " >&6; }
  3440. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3441. $as_echo_n "(cached) " >&6
  3442. else
  3443. if test -n "$ac_ct_RANLIB"; then
  3444. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3445. else
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH
  3448. do
  3449. IFS=$as_save_IFS
  3450. test -z "$as_dir" && as_dir=.
  3451. for ac_exec_ext in '' $ac_executable_extensions; do
  3452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3453. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3455. break 2
  3456. fi
  3457. done
  3458. done
  3459. IFS=$as_save_IFS
  3460. fi
  3461. fi
  3462. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3463. if test -n "$ac_ct_RANLIB"; then
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3465. $as_echo "$ac_ct_RANLIB" >&6; }
  3466. else
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3468. $as_echo "no" >&6; }
  3469. fi
  3470. if test "x$ac_ct_RANLIB" = x; then
  3471. RANLIB=":"
  3472. else
  3473. case $cross_compiling:$ac_tool_warned in
  3474. yes:)
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3477. ac_tool_warned=yes ;;
  3478. esac
  3479. RANLIB=$ac_ct_RANLIB
  3480. fi
  3481. else
  3482. RANLIB="$ac_cv_prog_RANLIB"
  3483. fi
  3484. # Checks for libraries.
  3485. # FIXME: Replace `main' with a function in `-ldl':
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  3487. $as_echo_n "checking for main in -ldl... " >&6; }
  3488. if ${ac_cv_lib_dl_main+:} false; then :
  3489. $as_echo_n "(cached) " >&6
  3490. else
  3491. ac_check_lib_save_LIBS=$LIBS
  3492. LIBS="-ldl $LIBS"
  3493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3494. /* end confdefs.h. */
  3495. int
  3496. main ()
  3497. {
  3498. return main ();
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. if ac_fn_c_try_link "$LINENO"; then :
  3504. ac_cv_lib_dl_main=yes
  3505. else
  3506. ac_cv_lib_dl_main=no
  3507. fi
  3508. rm -f core conftest.err conftest.$ac_objext \
  3509. conftest$ac_exeext conftest.$ac_ext
  3510. LIBS=$ac_check_lib_save_LIBS
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  3513. $as_echo "$ac_cv_lib_dl_main" >&6; }
  3514. if test "x$ac_cv_lib_dl_main" = xyes; then :
  3515. cat >>confdefs.h <<_ACEOF
  3516. @%:@define HAVE_LIBDL 1
  3517. _ACEOF
  3518. LIBS="-ldl $LIBS"
  3519. fi
  3520. # FIXME: Replace `main' with a function in `-lrt':
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
  3522. $as_echo_n "checking for main in -lrt... " >&6; }
  3523. if ${ac_cv_lib_rt_main+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. ac_check_lib_save_LIBS=$LIBS
  3527. LIBS="-lrt $LIBS"
  3528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3529. /* end confdefs.h. */
  3530. int
  3531. main ()
  3532. {
  3533. return main ();
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. if ac_fn_c_try_link "$LINENO"; then :
  3539. ac_cv_lib_rt_main=yes
  3540. else
  3541. ac_cv_lib_rt_main=no
  3542. fi
  3543. rm -f core conftest.err conftest.$ac_objext \
  3544. conftest$ac_exeext conftest.$ac_ext
  3545. LIBS=$ac_check_lib_save_LIBS
  3546. fi
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
  3548. $as_echo "$ac_cv_lib_rt_main" >&6; }
  3549. if test "x$ac_cv_lib_rt_main" = xyes; then :
  3550. cat >>confdefs.h <<_ACEOF
  3551. @%:@define HAVE_LIBRT 1
  3552. _ACEOF
  3553. LIBS="-lrt $LIBS"
  3554. fi
  3555. # FIXME: Replace `main' with a function in `-lzlog':
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzlog" >&5
  3557. $as_echo_n "checking for main in -lzlog... " >&6; }
  3558. if ${ac_cv_lib_zlog_main+:} false; then :
  3559. $as_echo_n "(cached) " >&6
  3560. else
  3561. ac_check_lib_save_LIBS=$LIBS
  3562. LIBS="-lzlog $LIBS"
  3563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3564. /* end confdefs.h. */
  3565. int
  3566. main ()
  3567. {
  3568. return main ();
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. if ac_fn_c_try_link "$LINENO"; then :
  3574. ac_cv_lib_zlog_main=yes
  3575. else
  3576. ac_cv_lib_zlog_main=no
  3577. fi
  3578. rm -f core conftest.err conftest.$ac_objext \
  3579. conftest$ac_exeext conftest.$ac_ext
  3580. LIBS=$ac_check_lib_save_LIBS
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zlog_main" >&5
  3583. $as_echo "$ac_cv_lib_zlog_main" >&6; }
  3584. if test "x$ac_cv_lib_zlog_main" = xyes; then :
  3585. cat >>confdefs.h <<_ACEOF
  3586. @%:@define HAVE_LIBZLOG 1
  3587. _ACEOF
  3588. LIBS="-lzlog $LIBS"
  3589. fi
  3590. # Checks for header files.
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3592. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3593. if ${ac_cv_path_GREP+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if test -z "$GREP"; then
  3597. ac_path_GREP_found=false
  3598. # Loop through the user's path and test for each of PROGNAME-LIST
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_prog in grep ggrep; do
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3607. as_fn_executable_p "$ac_path_GREP" || continue
  3608. # Check for GNU ac_path_GREP and select it if it is found.
  3609. # Check for GNU $ac_path_GREP
  3610. case `"$ac_path_GREP" --version 2>&1` in
  3611. *GNU*)
  3612. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3613. *)
  3614. ac_count=0
  3615. $as_echo_n 0123456789 >"conftest.in"
  3616. while :
  3617. do
  3618. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3619. mv "conftest.tmp" "conftest.in"
  3620. cp "conftest.in" "conftest.nl"
  3621. $as_echo 'GREP' >> "conftest.nl"
  3622. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3623. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3624. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3625. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3626. # Best one so far, save it but keep looking for a better one
  3627. ac_cv_path_GREP="$ac_path_GREP"
  3628. ac_path_GREP_max=$ac_count
  3629. fi
  3630. # 10*(2^10) chars as input seems more than enough
  3631. test $ac_count -gt 10 && break
  3632. done
  3633. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3634. esac
  3635. $ac_path_GREP_found && break 3
  3636. done
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. if test -z "$ac_cv_path_GREP"; then
  3641. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3642. fi
  3643. else
  3644. ac_cv_path_GREP=$GREP
  3645. fi
  3646. fi
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3648. $as_echo "$ac_cv_path_GREP" >&6; }
  3649. GREP="$ac_cv_path_GREP"
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3651. $as_echo_n "checking for egrep... " >&6; }
  3652. if ${ac_cv_path_EGREP+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3656. then ac_cv_path_EGREP="$GREP -E"
  3657. else
  3658. if test -z "$EGREP"; then
  3659. ac_path_EGREP_found=false
  3660. # Loop through the user's path and test for each of PROGNAME-LIST
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_prog in egrep; do
  3667. for ac_exec_ext in '' $ac_executable_extensions; do
  3668. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3669. as_fn_executable_p "$ac_path_EGREP" || continue
  3670. # Check for GNU ac_path_EGREP and select it if it is found.
  3671. # Check for GNU $ac_path_EGREP
  3672. case `"$ac_path_EGREP" --version 2>&1` in
  3673. *GNU*)
  3674. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3675. *)
  3676. ac_count=0
  3677. $as_echo_n 0123456789 >"conftest.in"
  3678. while :
  3679. do
  3680. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3681. mv "conftest.tmp" "conftest.in"
  3682. cp "conftest.in" "conftest.nl"
  3683. $as_echo 'EGREP' >> "conftest.nl"
  3684. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3685. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3686. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3687. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3688. # Best one so far, save it but keep looking for a better one
  3689. ac_cv_path_EGREP="$ac_path_EGREP"
  3690. ac_path_EGREP_max=$ac_count
  3691. fi
  3692. # 10*(2^10) chars as input seems more than enough
  3693. test $ac_count -gt 10 && break
  3694. done
  3695. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3696. esac
  3697. $ac_path_EGREP_found && break 3
  3698. done
  3699. done
  3700. done
  3701. IFS=$as_save_IFS
  3702. if test -z "$ac_cv_path_EGREP"; then
  3703. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3704. fi
  3705. else
  3706. ac_cv_path_EGREP=$EGREP
  3707. fi
  3708. fi
  3709. fi
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3711. $as_echo "$ac_cv_path_EGREP" >&6; }
  3712. EGREP="$ac_cv_path_EGREP"
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3714. $as_echo_n "checking for ANSI C header files... " >&6; }
  3715. if ${ac_cv_header_stdc+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3719. /* end confdefs.h. */
  3720. #include <stdlib.h>
  3721. #include <stdarg.h>
  3722. #include <string.h>
  3723. #include <float.h>
  3724. int
  3725. main ()
  3726. {
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. if ac_fn_c_try_compile "$LINENO"; then :
  3732. ac_cv_header_stdc=yes
  3733. else
  3734. ac_cv_header_stdc=no
  3735. fi
  3736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3737. if test $ac_cv_header_stdc = yes; then
  3738. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3740. /* end confdefs.h. */
  3741. #include <string.h>
  3742. _ACEOF
  3743. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3744. $EGREP "memchr" >/dev/null 2>&1; then :
  3745. else
  3746. ac_cv_header_stdc=no
  3747. fi
  3748. rm -f conftest*
  3749. fi
  3750. if test $ac_cv_header_stdc = yes; then
  3751. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3753. /* end confdefs.h. */
  3754. #include <stdlib.h>
  3755. _ACEOF
  3756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3757. $EGREP "free" >/dev/null 2>&1; then :
  3758. else
  3759. ac_cv_header_stdc=no
  3760. fi
  3761. rm -f conftest*
  3762. fi
  3763. if test $ac_cv_header_stdc = yes; then
  3764. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3765. if test "$cross_compiling" = yes; then :
  3766. :
  3767. else
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. #include <ctype.h>
  3771. #include <stdlib.h>
  3772. #if ((' ' & 0x0FF) == 0x020)
  3773. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3774. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3775. #else
  3776. # define ISLOWER(c) \
  3777. (('a' <= (c) && (c) <= 'i') \
  3778. || ('j' <= (c) && (c) <= 'r') \
  3779. || ('s' <= (c) && (c) <= 'z'))
  3780. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3781. #endif
  3782. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3783. int
  3784. main ()
  3785. {
  3786. int i;
  3787. for (i = 0; i < 256; i++)
  3788. if (XOR (islower (i), ISLOWER (i))
  3789. || toupper (i) != TOUPPER (i))
  3790. return 2;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. if ac_fn_c_try_run "$LINENO"; then :
  3795. else
  3796. ac_cv_header_stdc=no
  3797. fi
  3798. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3799. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3800. fi
  3801. fi
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3804. $as_echo "$ac_cv_header_stdc" >&6; }
  3805. if test $ac_cv_header_stdc = yes; then
  3806. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  3807. fi
  3808. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3809. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3810. inttypes.h stdint.h unistd.h
  3811. do :
  3812. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3813. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3814. "
  3815. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3816. cat >>confdefs.h <<_ACEOF
  3817. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3818. _ACEOF
  3819. fi
  3820. done
  3821. for ac_header in memory.h stdint.h stdlib.h string.h sys/time.h unistd.h
  3822. do :
  3823. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3824. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3825. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3826. cat >>confdefs.h <<_ACEOF
  3827. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3828. _ACEOF
  3829. fi
  3830. done
  3831. # Checks for typedefs, structures, and compiler characteristics.
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  3833. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  3834. if ${ac_cv_header_stdbool_h+:} false; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3838. /* end confdefs.h. */
  3839. #include <stdbool.h>
  3840. #ifndef bool
  3841. "error: bool is not defined"
  3842. #endif
  3843. #ifndef false
  3844. "error: false is not defined"
  3845. #endif
  3846. #if false
  3847. "error: false is not 0"
  3848. #endif
  3849. #ifndef true
  3850. "error: true is not defined"
  3851. #endif
  3852. #if true != 1
  3853. "error: true is not 1"
  3854. #endif
  3855. #ifndef __bool_true_false_are_defined
  3856. "error: __bool_true_false_are_defined is not defined"
  3857. #endif
  3858. struct s { _Bool s: 1; _Bool t; } s;
  3859. char a[true == 1 ? 1 : -1];
  3860. char b[false == 0 ? 1 : -1];
  3861. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  3862. char d[(bool) 0.5 == true ? 1 : -1];
  3863. /* See body of main program for 'e'. */
  3864. char f[(_Bool) 0.0 == false ? 1 : -1];
  3865. char g[true];
  3866. char h[sizeof (_Bool)];
  3867. char i[sizeof s.t];
  3868. enum { j = false, k = true, l = false * true, m = true * 256 };
  3869. /* The following fails for
  3870. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  3871. _Bool n[m];
  3872. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  3873. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  3874. /* Catch a bug in an HP-UX C compiler. See
  3875. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  3876. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  3877. */
  3878. _Bool q = true;
  3879. _Bool *pq = &q;
  3880. int
  3881. main ()
  3882. {
  3883. bool e = &s;
  3884. *pq |= q;
  3885. *pq |= ! q;
  3886. /* Refer to every declared value, to avoid compiler optimizations. */
  3887. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  3888. + !m + !n + !o + !p + !q + !pq);
  3889. ;
  3890. return 0;
  3891. }
  3892. _ACEOF
  3893. if ac_fn_c_try_compile "$LINENO"; then :
  3894. ac_cv_header_stdbool_h=yes
  3895. else
  3896. ac_cv_header_stdbool_h=no
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  3901. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  3902. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  3903. if test "x$ac_cv_type__Bool" = xyes; then :
  3904. cat >>confdefs.h <<_ACEOF
  3905. @%:@define HAVE__BOOL 1
  3906. _ACEOF
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3909. $as_echo_n "checking for inline... " >&6; }
  3910. if ${ac_cv_c_inline+:} false; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. ac_cv_c_inline=no
  3914. for ac_kw in inline __inline__ __inline; do
  3915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3916. /* end confdefs.h. */
  3917. #ifndef __cplusplus
  3918. typedef int foo_t;
  3919. static $ac_kw foo_t static_foo () {return 0; }
  3920. $ac_kw foo_t foo () {return 0; }
  3921. #endif
  3922. _ACEOF
  3923. if ac_fn_c_try_compile "$LINENO"; then :
  3924. ac_cv_c_inline=$ac_kw
  3925. fi
  3926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3927. test "$ac_cv_c_inline" != no && break
  3928. done
  3929. fi
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3931. $as_echo "$ac_cv_c_inline" >&6; }
  3932. case $ac_cv_c_inline in
  3933. inline | yes) ;;
  3934. *)
  3935. case $ac_cv_c_inline in
  3936. no) ac_val=;;
  3937. *) ac_val=$ac_cv_c_inline;;
  3938. esac
  3939. cat >>confdefs.h <<_ACEOF
  3940. #ifndef __cplusplus
  3941. #define inline $ac_val
  3942. #endif
  3943. _ACEOF
  3944. ;;
  3945. esac
  3946. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  3947. case $ac_cv_c_int32_t in #(
  3948. no|yes) ;; #(
  3949. *)
  3950. cat >>confdefs.h <<_ACEOF
  3951. @%:@define int32_t $ac_cv_c_int32_t
  3952. _ACEOF
  3953. ;;
  3954. esac
  3955. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  3956. case $ac_cv_c_int64_t in #(
  3957. no|yes) ;; #(
  3958. *)
  3959. cat >>confdefs.h <<_ACEOF
  3960. @%:@define int64_t $ac_cv_c_int64_t
  3961. _ACEOF
  3962. ;;
  3963. esac
  3964. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  3965. if test "x$ac_cv_type_pid_t" = xyes; then :
  3966. else
  3967. cat >>confdefs.h <<_ACEOF
  3968. @%:@define pid_t int
  3969. _ACEOF
  3970. fi
  3971. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3972. if test "x$ac_cv_type_size_t" = xyes; then :
  3973. else
  3974. cat >>confdefs.h <<_ACEOF
  3975. @%:@define size_t unsigned int
  3976. _ACEOF
  3977. fi
  3978. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  3979. case $ac_cv_c_uint32_t in #(
  3980. no|yes) ;; #(
  3981. *)
  3982. $as_echo "@%:@define _UINT32_T 1" >>confdefs.h
  3983. cat >>confdefs.h <<_ACEOF
  3984. @%:@define uint32_t $ac_cv_c_uint32_t
  3985. _ACEOF
  3986. ;;
  3987. esac
  3988. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  3989. case $ac_cv_c_uint64_t in #(
  3990. no|yes) ;; #(
  3991. *)
  3992. $as_echo "@%:@define _UINT64_T 1" >>confdefs.h
  3993. cat >>confdefs.h <<_ACEOF
  3994. @%:@define uint64_t $ac_cv_c_uint64_t
  3995. _ACEOF
  3996. ;;
  3997. esac
  3998. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  3999. case $ac_cv_c_uint8_t in #(
  4000. no|yes) ;; #(
  4001. *)
  4002. $as_echo "@%:@define _UINT8_T 1" >>confdefs.h
  4003. cat >>confdefs.h <<_ACEOF
  4004. @%:@define uint8_t $ac_cv_c_uint8_t
  4005. _ACEOF
  4006. ;;
  4007. esac
  4008. # Checks for library functions.
  4009. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4010. # for constant arguments. Useless!
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  4012. $as_echo_n "checking for working alloca.h... " >&6; }
  4013. if ${ac_cv_working_alloca_h+:} false; then :
  4014. $as_echo_n "(cached) " >&6
  4015. else
  4016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4017. /* end confdefs.h. */
  4018. @%:@include <alloca.h>
  4019. int
  4020. main ()
  4021. {
  4022. char *p = (char *) alloca (2 * sizeof (int));
  4023. if (p) return 0;
  4024. ;
  4025. return 0;
  4026. }
  4027. _ACEOF
  4028. if ac_fn_c_try_link "$LINENO"; then :
  4029. ac_cv_working_alloca_h=yes
  4030. else
  4031. ac_cv_working_alloca_h=no
  4032. fi
  4033. rm -f core conftest.err conftest.$ac_objext \
  4034. conftest$ac_exeext conftest.$ac_ext
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  4037. $as_echo "$ac_cv_working_alloca_h" >&6; }
  4038. if test $ac_cv_working_alloca_h = yes; then
  4039. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  4042. $as_echo_n "checking for alloca... " >&6; }
  4043. if ${ac_cv_func_alloca_works+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4047. /* end confdefs.h. */
  4048. #ifdef __GNUC__
  4049. # define alloca __builtin_alloca
  4050. #else
  4051. # ifdef _MSC_VER
  4052. # include <malloc.h>
  4053. # define alloca _alloca
  4054. # else
  4055. # ifdef HAVE_ALLOCA_H
  4056. # include <alloca.h>
  4057. # else
  4058. # ifdef _AIX
  4059. #pragma alloca
  4060. # else
  4061. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4062. void *alloca (size_t);
  4063. # endif
  4064. # endif
  4065. # endif
  4066. # endif
  4067. #endif
  4068. int
  4069. main ()
  4070. {
  4071. char *p = (char *) alloca (1);
  4072. if (p) return 0;
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. if ac_fn_c_try_link "$LINENO"; then :
  4078. ac_cv_func_alloca_works=yes
  4079. else
  4080. ac_cv_func_alloca_works=no
  4081. fi
  4082. rm -f core conftest.err conftest.$ac_objext \
  4083. conftest$ac_exeext conftest.$ac_ext
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  4086. $as_echo "$ac_cv_func_alloca_works" >&6; }
  4087. if test $ac_cv_func_alloca_works = yes; then
  4088. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  4089. else
  4090. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4091. # that cause trouble. Some versions do not even contain alloca or
  4092. # contain a buggy version. If you still want to use their alloca,
  4093. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4094. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  4095. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  4097. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  4098. if ${ac_cv_os_cray+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4102. /* end confdefs.h. */
  4103. #if defined CRAY && ! defined CRAY2
  4104. webecray
  4105. #else
  4106. wenotbecray
  4107. #endif
  4108. _ACEOF
  4109. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4110. $EGREP "webecray" >/dev/null 2>&1; then :
  4111. ac_cv_os_cray=yes
  4112. else
  4113. ac_cv_os_cray=no
  4114. fi
  4115. rm -f conftest*
  4116. fi
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  4118. $as_echo "$ac_cv_os_cray" >&6; }
  4119. if test $ac_cv_os_cray = yes; then
  4120. for ac_func in _getb67 GETB67 getb67; do
  4121. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4122. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4123. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4124. cat >>confdefs.h <<_ACEOF
  4125. @%:@define CRAY_STACKSEG_END $ac_func
  4126. _ACEOF
  4127. break
  4128. fi
  4129. done
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4132. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4133. if ${ac_cv_c_stack_direction+:} false; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. if test "$cross_compiling" = yes; then :
  4137. ac_cv_c_stack_direction=0
  4138. else
  4139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4140. /* end confdefs.h. */
  4141. $ac_includes_default
  4142. int
  4143. find_stack_direction (int *addr, int depth)
  4144. {
  4145. int dir, dummy = 0;
  4146. if (! addr)
  4147. addr = &dummy;
  4148. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  4149. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  4150. return dir + dummy;
  4151. }
  4152. int
  4153. main (int argc, char **argv)
  4154. {
  4155. return find_stack_direction (0, argc + !argv + 20) < 0;
  4156. }
  4157. _ACEOF
  4158. if ac_fn_c_try_run "$LINENO"; then :
  4159. ac_cv_c_stack_direction=1
  4160. else
  4161. ac_cv_c_stack_direction=-1
  4162. fi
  4163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4164. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4165. fi
  4166. fi
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4168. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4169. cat >>confdefs.h <<_ACEOF
  4170. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  4171. _ACEOF
  4172. fi
  4173. for ac_header in stdlib.h
  4174. do :
  4175. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4176. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4177. cat >>confdefs.h <<_ACEOF
  4178. @%:@define HAVE_STDLIB_H 1
  4179. _ACEOF
  4180. fi
  4181. done
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  4183. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  4184. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. if test "$cross_compiling" = yes; then :
  4188. ac_cv_func_malloc_0_nonnull=no
  4189. else
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4193. # include <stdlib.h>
  4194. #else
  4195. char *malloc ();
  4196. #endif
  4197. int
  4198. main ()
  4199. {
  4200. return ! malloc (0);
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. if ac_fn_c_try_run "$LINENO"; then :
  4206. ac_cv_func_malloc_0_nonnull=yes
  4207. else
  4208. ac_cv_func_malloc_0_nonnull=no
  4209. fi
  4210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4212. fi
  4213. fi
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  4215. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  4216. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  4217. $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
  4218. else
  4219. $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
  4220. case " $LIB@&t@OBJS " in
  4221. *" malloc.$ac_objext "* ) ;;
  4222. *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
  4223. ;;
  4224. esac
  4225. $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
  4226. fi
  4227. for ac_func in clock_gettime gettimeofday localtime_r memmove realpath strchr strerror strstr
  4228. do :
  4229. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4230. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4231. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4232. cat >>confdefs.h <<_ACEOF
  4233. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4234. _ACEOF
  4235. fi
  4236. done
  4237. ac_config_files="$ac_config_files Makefile"
  4238. cat >confcache <<\_ACEOF
  4239. # This file is a shell script that caches the results of configure
  4240. # tests run on this system so they can be shared between configure
  4241. # scripts and configure runs, see configure's option --config-cache.
  4242. # It is not useful on other systems. If it contains results you don't
  4243. # want to keep, you may remove or edit it.
  4244. #
  4245. # config.status only pays attention to the cache file if you give it
  4246. # the --recheck option to rerun configure.
  4247. #
  4248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4250. # following values.
  4251. _ACEOF
  4252. # The following way of writing the cache mishandles newlines in values,
  4253. # but we know of no workaround that is simple, portable, and efficient.
  4254. # So, we kill variables containing newlines.
  4255. # Ultrix sh set writes to stderr and can't be redirected directly,
  4256. # and sets the high bit in the cache file unless we assign to the vars.
  4257. (
  4258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4259. eval ac_val=\$$ac_var
  4260. case $ac_val in #(
  4261. *${as_nl}*)
  4262. case $ac_var in #(
  4263. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4264. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4265. esac
  4266. case $ac_var in #(
  4267. _ | IFS | as_nl) ;; #(
  4268. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4269. *) { eval $ac_var=; unset $ac_var;} ;;
  4270. esac ;;
  4271. esac
  4272. done
  4273. (set) 2>&1 |
  4274. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4275. *${as_nl}ac_space=\ *)
  4276. # `set' does not quote correctly, so add quotes: double-quote
  4277. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4278. sed -n \
  4279. "s/'/'\\\\''/g;
  4280. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4281. ;; #(
  4282. *)
  4283. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4284. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4285. ;;
  4286. esac |
  4287. sort
  4288. ) |
  4289. sed '
  4290. /^ac_cv_env_/b end
  4291. t clear
  4292. :clear
  4293. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4294. t end
  4295. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4296. :end' >>confcache
  4297. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4298. if test -w "$cache_file"; then
  4299. if test "x$cache_file" != "x/dev/null"; then
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4301. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4302. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4303. cat confcache >"$cache_file"
  4304. else
  4305. case $cache_file in #(
  4306. */* | ?:*)
  4307. mv -f confcache "$cache_file"$$ &&
  4308. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4309. *)
  4310. mv -f confcache "$cache_file" ;;
  4311. esac
  4312. fi
  4313. fi
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4316. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4317. fi
  4318. fi
  4319. rm -f confcache
  4320. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4321. # Let make expand exec_prefix.
  4322. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4323. DEFS=-DHAVE_CONFIG_H
  4324. ac_libobjs=
  4325. ac_ltlibobjs=
  4326. U=
  4327. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  4328. # 1. Remove the extension, and $U if already installed.
  4329. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4330. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4331. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4332. # will be set to the directory where LIBOBJS objects are built.
  4333. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4334. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4335. done
  4336. LIB@&t@OBJS=$ac_libobjs
  4337. LTLIBOBJS=$ac_ltlibobjs
  4338. : "${CONFIG_STATUS=./config.status}"
  4339. ac_write_fail=0
  4340. ac_clean_files_save=$ac_clean_files
  4341. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4343. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4344. as_write_fail=0
  4345. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4346. #! $SHELL
  4347. # Generated by $as_me.
  4348. # Run this file to recreate the current configuration.
  4349. # Compiler output produced by configure, useful for debugging
  4350. # configure, is in config.log if it exists.
  4351. debug=false
  4352. ac_cs_recheck=false
  4353. ac_cs_silent=false
  4354. SHELL=\${CONFIG_SHELL-$SHELL}
  4355. export SHELL
  4356. _ASEOF
  4357. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4358. ## -------------------- ##
  4359. ## M4sh Initialization. ##
  4360. ## -------------------- ##
  4361. # Be more Bourne compatible
  4362. DUALCASE=1; export DUALCASE # for MKS sh
  4363. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4364. emulate sh
  4365. NULLCMD=:
  4366. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4367. # is contrary to our usage. Disable this feature.
  4368. alias -g '${1+"$@"}'='"$@"'
  4369. setopt NO_GLOB_SUBST
  4370. else
  4371. case `(set -o) 2>/dev/null` in @%:@(
  4372. *posix*) :
  4373. set -o posix ;; @%:@(
  4374. *) :
  4375. ;;
  4376. esac
  4377. fi
  4378. as_nl='
  4379. '
  4380. export as_nl
  4381. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4382. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4383. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4384. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4385. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4386. # but without wasting forks for bash or zsh.
  4387. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4388. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4389. as_echo='print -r --'
  4390. as_echo_n='print -rn --'
  4391. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4392. as_echo='printf %s\n'
  4393. as_echo_n='printf %s'
  4394. else
  4395. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4396. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4397. as_echo_n='/usr/ucb/echo -n'
  4398. else
  4399. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4400. as_echo_n_body='eval
  4401. arg=$1;
  4402. case $arg in @%:@(
  4403. *"$as_nl"*)
  4404. expr "X$arg" : "X\\(.*\\)$as_nl";
  4405. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4406. esac;
  4407. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4408. '
  4409. export as_echo_n_body
  4410. as_echo_n='sh -c $as_echo_n_body as_echo'
  4411. fi
  4412. export as_echo_body
  4413. as_echo='sh -c $as_echo_body as_echo'
  4414. fi
  4415. # The user is always right.
  4416. if test "${PATH_SEPARATOR+set}" != set; then
  4417. PATH_SEPARATOR=:
  4418. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4419. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4420. PATH_SEPARATOR=';'
  4421. }
  4422. fi
  4423. # IFS
  4424. # We need space, tab and new line, in precisely that order. Quoting is
  4425. # there to prevent editors from complaining about space-tab.
  4426. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4427. # splitting by setting IFS to empty value.)
  4428. IFS=" "" $as_nl"
  4429. # Find who we are. Look in the path if we contain no directory separator.
  4430. as_myself=
  4431. case $0 in @%:@((
  4432. *[\\/]* ) as_myself=$0 ;;
  4433. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4434. for as_dir in $PATH
  4435. do
  4436. IFS=$as_save_IFS
  4437. test -z "$as_dir" && as_dir=.
  4438. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4439. done
  4440. IFS=$as_save_IFS
  4441. ;;
  4442. esac
  4443. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4444. # in which case we are not to be found in the path.
  4445. if test "x$as_myself" = x; then
  4446. as_myself=$0
  4447. fi
  4448. if test ! -f "$as_myself"; then
  4449. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4450. exit 1
  4451. fi
  4452. # Unset variables that we do not need and which cause bugs (e.g. in
  4453. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4454. # suppresses any "Segmentation fault" message there. '((' could
  4455. # trigger a bug in pdksh 5.2.14.
  4456. for as_var in BASH_ENV ENV MAIL MAILPATH
  4457. do eval test x\${$as_var+set} = xset \
  4458. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4459. done
  4460. PS1='$ '
  4461. PS2='> '
  4462. PS4='+ '
  4463. # NLS nuisances.
  4464. LC_ALL=C
  4465. export LC_ALL
  4466. LANGUAGE=C
  4467. export LANGUAGE
  4468. # CDPATH.
  4469. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4470. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  4471. @%:@ ----------------------------------------
  4472. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4473. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4474. @%:@ script with STATUS, using 1 if that was 0.
  4475. as_fn_error ()
  4476. {
  4477. as_status=$1; test $as_status -eq 0 && as_status=1
  4478. if test "$4"; then
  4479. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4480. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4481. fi
  4482. $as_echo "$as_me: error: $2" >&2
  4483. as_fn_exit $as_status
  4484. } @%:@ as_fn_error
  4485. @%:@ as_fn_set_status STATUS
  4486. @%:@ -----------------------
  4487. @%:@ Set @S|@? to STATUS, without forking.
  4488. as_fn_set_status ()
  4489. {
  4490. return $1
  4491. } @%:@ as_fn_set_status
  4492. @%:@ as_fn_exit STATUS
  4493. @%:@ -----------------
  4494. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4495. as_fn_exit ()
  4496. {
  4497. set +e
  4498. as_fn_set_status $1
  4499. exit $1
  4500. } @%:@ as_fn_exit
  4501. @%:@ as_fn_unset VAR
  4502. @%:@ ---------------
  4503. @%:@ Portably unset VAR.
  4504. as_fn_unset ()
  4505. {
  4506. { eval $1=; unset $1;}
  4507. }
  4508. as_unset=as_fn_unset
  4509. @%:@ as_fn_append VAR VALUE
  4510. @%:@ ----------------------
  4511. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  4512. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  4513. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  4514. @%:@ implementations.
  4515. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4516. eval 'as_fn_append ()
  4517. {
  4518. eval $1+=\$2
  4519. }'
  4520. else
  4521. as_fn_append ()
  4522. {
  4523. eval $1=\$$1\$2
  4524. }
  4525. fi # as_fn_append
  4526. @%:@ as_fn_arith ARG...
  4527. @%:@ ------------------
  4528. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  4529. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  4530. @%:@ must be portable across @S|@(()) and expr.
  4531. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4532. eval 'as_fn_arith ()
  4533. {
  4534. as_val=$(( $* ))
  4535. }'
  4536. else
  4537. as_fn_arith ()
  4538. {
  4539. as_val=`expr "$@" || test $? -eq 1`
  4540. }
  4541. fi # as_fn_arith
  4542. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4543. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4544. as_expr=expr
  4545. else
  4546. as_expr=false
  4547. fi
  4548. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4549. as_basename=basename
  4550. else
  4551. as_basename=false
  4552. fi
  4553. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4554. as_dirname=dirname
  4555. else
  4556. as_dirname=false
  4557. fi
  4558. as_me=`$as_basename -- "$0" ||
  4559. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4560. X"$0" : 'X\(//\)$' \| \
  4561. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4562. $as_echo X/"$0" |
  4563. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4564. s//\1/
  4565. q
  4566. }
  4567. /^X\/\(\/\/\)$/{
  4568. s//\1/
  4569. q
  4570. }
  4571. /^X\/\(\/\).*/{
  4572. s//\1/
  4573. q
  4574. }
  4575. s/.*/./; q'`
  4576. # Avoid depending upon Character Ranges.
  4577. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4578. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4579. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4580. as_cr_digits='0123456789'
  4581. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4582. ECHO_C= ECHO_N= ECHO_T=
  4583. case `echo -n x` in @%:@(((((
  4584. -n*)
  4585. case `echo 'xy\c'` in
  4586. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4587. xy) ECHO_C='\c';;
  4588. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4589. ECHO_T=' ';;
  4590. esac;;
  4591. *)
  4592. ECHO_N='-n';;
  4593. esac
  4594. rm -f conf$$ conf$$.exe conf$$.file
  4595. if test -d conf$$.dir; then
  4596. rm -f conf$$.dir/conf$$.file
  4597. else
  4598. rm -f conf$$.dir
  4599. mkdir conf$$.dir 2>/dev/null
  4600. fi
  4601. if (echo >conf$$.file) 2>/dev/null; then
  4602. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4603. as_ln_s='ln -s'
  4604. # ... but there are two gotchas:
  4605. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4606. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4607. # In both cases, we have to default to `cp -pR'.
  4608. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4609. as_ln_s='cp -pR'
  4610. elif ln conf$$.file conf$$ 2>/dev/null; then
  4611. as_ln_s=ln
  4612. else
  4613. as_ln_s='cp -pR'
  4614. fi
  4615. else
  4616. as_ln_s='cp -pR'
  4617. fi
  4618. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4619. rmdir conf$$.dir 2>/dev/null
  4620. @%:@ as_fn_mkdir_p
  4621. @%:@ -------------
  4622. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  4623. as_fn_mkdir_p ()
  4624. {
  4625. case $as_dir in #(
  4626. -*) as_dir=./$as_dir;;
  4627. esac
  4628. test -d "$as_dir" || eval $as_mkdir_p || {
  4629. as_dirs=
  4630. while :; do
  4631. case $as_dir in #(
  4632. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4633. *) as_qdir=$as_dir;;
  4634. esac
  4635. as_dirs="'$as_qdir' $as_dirs"
  4636. as_dir=`$as_dirname -- "$as_dir" ||
  4637. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4638. X"$as_dir" : 'X\(//\)[^/]' \| \
  4639. X"$as_dir" : 'X\(//\)$' \| \
  4640. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4641. $as_echo X"$as_dir" |
  4642. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4643. s//\1/
  4644. q
  4645. }
  4646. /^X\(\/\/\)[^/].*/{
  4647. s//\1/
  4648. q
  4649. }
  4650. /^X\(\/\/\)$/{
  4651. s//\1/
  4652. q
  4653. }
  4654. /^X\(\/\).*/{
  4655. s//\1/
  4656. q
  4657. }
  4658. s/.*/./; q'`
  4659. test -d "$as_dir" && break
  4660. done
  4661. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4662. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4663. } @%:@ as_fn_mkdir_p
  4664. if mkdir -p . 2>/dev/null; then
  4665. as_mkdir_p='mkdir -p "$as_dir"'
  4666. else
  4667. test -d ./-p && rmdir ./-p
  4668. as_mkdir_p=false
  4669. fi
  4670. @%:@ as_fn_executable_p FILE
  4671. @%:@ -----------------------
  4672. @%:@ Test if FILE is an executable regular file.
  4673. as_fn_executable_p ()
  4674. {
  4675. test -f "$1" && test -x "$1"
  4676. } @%:@ as_fn_executable_p
  4677. as_test_x='test -x'
  4678. as_executable_p=as_fn_executable_p
  4679. # Sed expression to map a string onto a valid CPP name.
  4680. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4681. # Sed expression to map a string onto a valid variable name.
  4682. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4683. exec 6>&1
  4684. ## ----------------------------------- ##
  4685. ## Main body of $CONFIG_STATUS script. ##
  4686. ## ----------------------------------- ##
  4687. _ASEOF
  4688. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4690. # Save the log message, to keep $0 and so on meaningful, and to
  4691. # report actual input values of CONFIG_FILES etc. instead of their
  4692. # values after options handling.
  4693. ac_log="
  4694. This file was extended by zlog $as_me 1.0, which was
  4695. generated by GNU Autoconf 2.69. Invocation command line was
  4696. CONFIG_FILES = $CONFIG_FILES
  4697. CONFIG_HEADERS = $CONFIG_HEADERS
  4698. CONFIG_LINKS = $CONFIG_LINKS
  4699. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4700. $ $0 $@
  4701. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4702. "
  4703. _ACEOF
  4704. case $ac_config_files in *"
  4705. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4706. esac
  4707. case $ac_config_headers in *"
  4708. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4709. esac
  4710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4711. # Files that config.status was made for.
  4712. config_files="$ac_config_files"
  4713. config_headers="$ac_config_headers"
  4714. _ACEOF
  4715. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4716. ac_cs_usage="\
  4717. \`$as_me' instantiates files and other configuration actions
  4718. from templates according to the current configuration. Unless the files
  4719. and actions are specified as TAGs, all are instantiated by default.
  4720. Usage: $0 [OPTION]... [TAG]...
  4721. -h, --help print this help, then exit
  4722. -V, --version print version number and configuration settings, then exit
  4723. --config print configuration, then exit
  4724. -q, --quiet, --silent
  4725. do not print progress messages
  4726. -d, --debug don't remove temporary files
  4727. --recheck update $as_me by reconfiguring in the same conditions
  4728. --file=FILE[:TEMPLATE]
  4729. instantiate the configuration file FILE
  4730. --header=FILE[:TEMPLATE]
  4731. instantiate the configuration header FILE
  4732. Configuration files:
  4733. $config_files
  4734. Configuration headers:
  4735. $config_headers
  4736. Report bugs to <BUG-REPORT-ADDRESS>."
  4737. _ACEOF
  4738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4739. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4740. ac_cs_version="\\
  4741. zlog config.status 1.0
  4742. configured by $0, generated by GNU Autoconf 2.69,
  4743. with options \\"\$ac_cs_config\\"
  4744. Copyright (C) 2012 Free Software Foundation, Inc.
  4745. This config.status script is free software; the Free Software Foundation
  4746. gives unlimited permission to copy, distribute and modify it."
  4747. ac_pwd='$ac_pwd'
  4748. srcdir='$srcdir'
  4749. INSTALL='$INSTALL'
  4750. AWK='$AWK'
  4751. test -n "\$AWK" || AWK=awk
  4752. _ACEOF
  4753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4754. # The default lists apply if the user does not specify any file.
  4755. ac_need_defaults=:
  4756. while test $# != 0
  4757. do
  4758. case $1 in
  4759. --*=?*)
  4760. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4761. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4762. ac_shift=:
  4763. ;;
  4764. --*=)
  4765. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4766. ac_optarg=
  4767. ac_shift=:
  4768. ;;
  4769. *)
  4770. ac_option=$1
  4771. ac_optarg=$2
  4772. ac_shift=shift
  4773. ;;
  4774. esac
  4775. case $ac_option in
  4776. # Handling of the options.
  4777. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4778. ac_cs_recheck=: ;;
  4779. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4780. $as_echo "$ac_cs_version"; exit ;;
  4781. --config | --confi | --conf | --con | --co | --c )
  4782. $as_echo "$ac_cs_config"; exit ;;
  4783. --debug | --debu | --deb | --de | --d | -d )
  4784. debug=: ;;
  4785. --file | --fil | --fi | --f )
  4786. $ac_shift
  4787. case $ac_optarg in
  4788. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4789. '') as_fn_error $? "missing file argument" ;;
  4790. esac
  4791. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4792. ac_need_defaults=false;;
  4793. --header | --heade | --head | --hea )
  4794. $ac_shift
  4795. case $ac_optarg in
  4796. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4797. esac
  4798. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4799. ac_need_defaults=false;;
  4800. --he | --h)
  4801. # Conflict between --help and --header
  4802. as_fn_error $? "ambiguous option: \`$1'
  4803. Try \`$0 --help' for more information.";;
  4804. --help | --hel | -h )
  4805. $as_echo "$ac_cs_usage"; exit ;;
  4806. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4807. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4808. ac_cs_silent=: ;;
  4809. # This is an error.
  4810. -*) as_fn_error $? "unrecognized option: \`$1'
  4811. Try \`$0 --help' for more information." ;;
  4812. *) as_fn_append ac_config_targets " $1"
  4813. ac_need_defaults=false ;;
  4814. esac
  4815. shift
  4816. done
  4817. ac_configure_extra_args=
  4818. if $ac_cs_silent; then
  4819. exec 6>/dev/null
  4820. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4821. fi
  4822. _ACEOF
  4823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4824. if \$ac_cs_recheck; then
  4825. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4826. shift
  4827. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4828. CONFIG_SHELL='$SHELL'
  4829. export CONFIG_SHELL
  4830. exec "\$@"
  4831. fi
  4832. _ACEOF
  4833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4834. exec 5>>config.log
  4835. {
  4836. echo
  4837. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  4838. @%:@@%:@ Running $as_me. @%:@@%:@
  4839. _ASBOX
  4840. $as_echo "$ac_log"
  4841. } >&5
  4842. _ACEOF
  4843. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4844. _ACEOF
  4845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4846. # Handling of arguments.
  4847. for ac_config_target in $ac_config_targets
  4848. do
  4849. case $ac_config_target in
  4850. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4851. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4852. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4853. esac
  4854. done
  4855. # If the user did not use the arguments to specify the items to instantiate,
  4856. # then the envvar interface is used. Set only those that are not.
  4857. # We use the long form for the default assignment because of an extremely
  4858. # bizarre bug on SunOS 4.1.3.
  4859. if $ac_need_defaults; then
  4860. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4861. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4862. fi
  4863. # Have a temporary directory for convenience. Make it in the build tree
  4864. # simply because there is no reason against having it here, and in addition,
  4865. # creating and moving files from /tmp can sometimes cause problems.
  4866. # Hook for its removal unless debugging.
  4867. # Note that there is a small window in which the directory will not be cleaned:
  4868. # after its creation but before its name has been assigned to `$tmp'.
  4869. $debug ||
  4870. {
  4871. tmp= ac_tmp=
  4872. trap 'exit_status=$?
  4873. : "${ac_tmp:=$tmp}"
  4874. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4875. ' 0
  4876. trap 'as_fn_exit 1' 1 2 13 15
  4877. }
  4878. # Create a (secure) tmp directory for tmp files.
  4879. {
  4880. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4881. test -d "$tmp"
  4882. } ||
  4883. {
  4884. tmp=./conf$$-$RANDOM
  4885. (umask 077 && mkdir "$tmp")
  4886. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4887. ac_tmp=$tmp
  4888. # Set up the scripts for CONFIG_FILES section.
  4889. # No need to generate them if there are no CONFIG_FILES.
  4890. # This happens for instance with `./config.status config.h'.
  4891. if test -n "$CONFIG_FILES"; then
  4892. ac_cr=`echo X | tr X '\015'`
  4893. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4894. # But we know of no other shell where ac_cr would be empty at this
  4895. # point, so we can use a bashism as a fallback.
  4896. if test "x$ac_cr" = x; then
  4897. eval ac_cr=\$\'\\r\'
  4898. fi
  4899. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4900. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4901. ac_cs_awk_cr='\\r'
  4902. else
  4903. ac_cs_awk_cr=$ac_cr
  4904. fi
  4905. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4906. _ACEOF
  4907. {
  4908. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4909. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4910. echo "_ACEOF"
  4911. } >conf$$subs.sh ||
  4912. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4913. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4914. ac_delim='%!_!# '
  4915. for ac_last_try in false false false false false :; do
  4916. . ./conf$$subs.sh ||
  4917. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4918. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4919. if test $ac_delim_n = $ac_delim_num; then
  4920. break
  4921. elif $ac_last_try; then
  4922. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4923. else
  4924. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4925. fi
  4926. done
  4927. rm -f conf$$subs.sh
  4928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4929. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4930. _ACEOF
  4931. sed -n '
  4932. h
  4933. s/^/S["/; s/!.*/"]=/
  4934. p
  4935. g
  4936. s/^[^!]*!//
  4937. :repl
  4938. t repl
  4939. s/'"$ac_delim"'$//
  4940. t delim
  4941. :nl
  4942. h
  4943. s/\(.\{148\}\)..*/\1/
  4944. t more1
  4945. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4946. p
  4947. n
  4948. b repl
  4949. :more1
  4950. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4951. p
  4952. g
  4953. s/.\{148\}//
  4954. t nl
  4955. :delim
  4956. h
  4957. s/\(.\{148\}\)..*/\1/
  4958. t more2
  4959. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4960. p
  4961. b
  4962. :more2
  4963. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4964. p
  4965. g
  4966. s/.\{148\}//
  4967. t delim
  4968. ' <conf$$subs.awk | sed '
  4969. /^[^""]/{
  4970. N
  4971. s/\n//
  4972. }
  4973. ' >>$CONFIG_STATUS || ac_write_fail=1
  4974. rm -f conf$$subs.awk
  4975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4976. _ACAWK
  4977. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4978. for (key in S) S_is_set[key] = 1
  4979. FS = ""
  4980. }
  4981. {
  4982. line = $ 0
  4983. nfields = split(line, field, "@")
  4984. substed = 0
  4985. len = length(field[1])
  4986. for (i = 2; i < nfields; i++) {
  4987. key = field[i]
  4988. keylen = length(key)
  4989. if (S_is_set[key]) {
  4990. value = S[key]
  4991. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4992. len += length(value) + length(field[++i])
  4993. substed = 1
  4994. } else
  4995. len += 1 + keylen
  4996. }
  4997. print line
  4998. }
  4999. _ACAWK
  5000. _ACEOF
  5001. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5002. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5003. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5004. else
  5005. cat
  5006. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5007. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5008. _ACEOF
  5009. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5010. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5011. # trailing colons and then remove the whole line if VPATH becomes empty
  5012. # (actually we leave an empty line to preserve line numbers).
  5013. if test "x$srcdir" = x.; then
  5014. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5015. h
  5016. s///
  5017. s/^/:/
  5018. s/[ ]*$/:/
  5019. s/:\$(srcdir):/:/g
  5020. s/:\${srcdir}:/:/g
  5021. s/:@srcdir@:/:/g
  5022. s/^:*//
  5023. s/:*$//
  5024. x
  5025. s/\(=[ ]*\).*/\1/
  5026. G
  5027. s/\n//
  5028. s/^[^=]*=[ ]*$//
  5029. }'
  5030. fi
  5031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5032. fi # test -n "$CONFIG_FILES"
  5033. # Set up the scripts for CONFIG_HEADERS section.
  5034. # No need to generate them if there are no CONFIG_HEADERS.
  5035. # This happens for instance with `./config.status Makefile'.
  5036. if test -n "$CONFIG_HEADERS"; then
  5037. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5038. BEGIN {
  5039. _ACEOF
  5040. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5041. # here-document in config.status, that substitutes the proper values into
  5042. # config.h.in to produce config.h.
  5043. # Create a delimiter string that does not exist in confdefs.h, to ease
  5044. # handling of long lines.
  5045. ac_delim='%!_!# '
  5046. for ac_last_try in false false :; do
  5047. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5048. if test -z "$ac_tt"; then
  5049. break
  5050. elif $ac_last_try; then
  5051. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5052. else
  5053. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5054. fi
  5055. done
  5056. # For the awk script, D is an array of macro values keyed by name,
  5057. # likewise P contains macro parameters if any. Preserve backslash
  5058. # newline sequences.
  5059. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5060. sed -n '
  5061. s/.\{148\}/&'"$ac_delim"'/g
  5062. t rset
  5063. :rset
  5064. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5065. t def
  5066. d
  5067. :def
  5068. s/\\$//
  5069. t bsnl
  5070. s/["\\]/\\&/g
  5071. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5072. D["\1"]=" \3"/p
  5073. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5074. d
  5075. :bsnl
  5076. s/["\\]/\\&/g
  5077. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5078. D["\1"]=" \3\\\\\\n"\\/p
  5079. t cont
  5080. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5081. t cont
  5082. d
  5083. :cont
  5084. n
  5085. s/.\{148\}/&'"$ac_delim"'/g
  5086. t clear
  5087. :clear
  5088. s/\\$//
  5089. t bsnlc
  5090. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5091. d
  5092. :bsnlc
  5093. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5094. b cont
  5095. ' <confdefs.h | sed '
  5096. s/'"$ac_delim"'/"\\\
  5097. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5099. for (key in D) D_is_set[key] = 1
  5100. FS = ""
  5101. }
  5102. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5103. line = \$ 0
  5104. split(line, arg, " ")
  5105. if (arg[1] == "#") {
  5106. defundef = arg[2]
  5107. mac1 = arg[3]
  5108. } else {
  5109. defundef = substr(arg[1], 2)
  5110. mac1 = arg[2]
  5111. }
  5112. split(mac1, mac2, "(") #)
  5113. macro = mac2[1]
  5114. prefix = substr(line, 1, index(line, defundef) - 1)
  5115. if (D_is_set[macro]) {
  5116. # Preserve the white space surrounding the "#".
  5117. print prefix "define", macro P[macro] D[macro]
  5118. next
  5119. } else {
  5120. # Replace #undef with comments. This is necessary, for example,
  5121. # in the case of _POSIX_SOURCE, which is predefined and required
  5122. # on some systems where configure will not decide to define it.
  5123. if (defundef == "undef") {
  5124. print "/*", prefix defundef, macro, "*/"
  5125. next
  5126. }
  5127. }
  5128. }
  5129. { print }
  5130. _ACAWK
  5131. _ACEOF
  5132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5133. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5134. fi # test -n "$CONFIG_HEADERS"
  5135. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5136. shift
  5137. for ac_tag
  5138. do
  5139. case $ac_tag in
  5140. :[FHLC]) ac_mode=$ac_tag; continue;;
  5141. esac
  5142. case $ac_mode$ac_tag in
  5143. :[FHL]*:*);;
  5144. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5145. :[FH]-) ac_tag=-:-;;
  5146. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5147. esac
  5148. ac_save_IFS=$IFS
  5149. IFS=:
  5150. set x $ac_tag
  5151. IFS=$ac_save_IFS
  5152. shift
  5153. ac_file=$1
  5154. shift
  5155. case $ac_mode in
  5156. :L) ac_source=$1;;
  5157. :[FH])
  5158. ac_file_inputs=
  5159. for ac_f
  5160. do
  5161. case $ac_f in
  5162. -) ac_f="$ac_tmp/stdin";;
  5163. *) # Look for the file first in the build tree, then in the source tree
  5164. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5165. # because $ac_f cannot contain `:'.
  5166. test -f "$ac_f" ||
  5167. case $ac_f in
  5168. [\\/$]*) false;;
  5169. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5170. esac ||
  5171. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5172. esac
  5173. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5174. as_fn_append ac_file_inputs " '$ac_f'"
  5175. done
  5176. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5177. # use $as_me), people would be surprised to read:
  5178. # /* config.h. Generated by config.status. */
  5179. configure_input='Generated from '`
  5180. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5181. `' by configure.'
  5182. if test x"$ac_file" != x-; then
  5183. configure_input="$ac_file. $configure_input"
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5185. $as_echo "$as_me: creating $ac_file" >&6;}
  5186. fi
  5187. # Neutralize special characters interpreted by sed in replacement strings.
  5188. case $configure_input in #(
  5189. *\&* | *\|* | *\\* )
  5190. ac_sed_conf_input=`$as_echo "$configure_input" |
  5191. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5192. *) ac_sed_conf_input=$configure_input;;
  5193. esac
  5194. case $ac_tag in
  5195. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5196. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5197. esac
  5198. ;;
  5199. esac
  5200. ac_dir=`$as_dirname -- "$ac_file" ||
  5201. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5202. X"$ac_file" : 'X\(//\)[^/]' \| \
  5203. X"$ac_file" : 'X\(//\)$' \| \
  5204. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5205. $as_echo X"$ac_file" |
  5206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5207. s//\1/
  5208. q
  5209. }
  5210. /^X\(\/\/\)[^/].*/{
  5211. s//\1/
  5212. q
  5213. }
  5214. /^X\(\/\/\)$/{
  5215. s//\1/
  5216. q
  5217. }
  5218. /^X\(\/\).*/{
  5219. s//\1/
  5220. q
  5221. }
  5222. s/.*/./; q'`
  5223. as_dir="$ac_dir"; as_fn_mkdir_p
  5224. ac_builddir=.
  5225. case "$ac_dir" in
  5226. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5227. *)
  5228. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5229. # A ".." for each directory in $ac_dir_suffix.
  5230. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5231. case $ac_top_builddir_sub in
  5232. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5233. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5234. esac ;;
  5235. esac
  5236. ac_abs_top_builddir=$ac_pwd
  5237. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5238. # for backward compatibility:
  5239. ac_top_builddir=$ac_top_build_prefix
  5240. case $srcdir in
  5241. .) # We are building in place.
  5242. ac_srcdir=.
  5243. ac_top_srcdir=$ac_top_builddir_sub
  5244. ac_abs_top_srcdir=$ac_pwd ;;
  5245. [\\/]* | ?:[\\/]* ) # Absolute name.
  5246. ac_srcdir=$srcdir$ac_dir_suffix;
  5247. ac_top_srcdir=$srcdir
  5248. ac_abs_top_srcdir=$srcdir ;;
  5249. *) # Relative name.
  5250. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5251. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5252. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5253. esac
  5254. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5255. case $ac_mode in
  5256. :F)
  5257. #
  5258. # CONFIG_FILE
  5259. #
  5260. case $INSTALL in
  5261. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5262. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5263. esac
  5264. _ACEOF
  5265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5266. # If the template does not know about datarootdir, expand it.
  5267. # FIXME: This hack should be removed a few years after 2.60.
  5268. ac_datarootdir_hack=; ac_datarootdir_seen=
  5269. ac_sed_dataroot='
  5270. /datarootdir/ {
  5271. p
  5272. q
  5273. }
  5274. /@datadir@/p
  5275. /@docdir@/p
  5276. /@infodir@/p
  5277. /@localedir@/p
  5278. /@mandir@/p'
  5279. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5280. *datarootdir*) ac_datarootdir_seen=yes;;
  5281. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5283. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5284. _ACEOF
  5285. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5286. ac_datarootdir_hack='
  5287. s&@datadir@&$datadir&g
  5288. s&@docdir@&$docdir&g
  5289. s&@infodir@&$infodir&g
  5290. s&@localedir@&$localedir&g
  5291. s&@mandir@&$mandir&g
  5292. s&\\\${datarootdir}&$datarootdir&g' ;;
  5293. esac
  5294. _ACEOF
  5295. # Neutralize VPATH when `$srcdir' = `.'.
  5296. # Shell code in configure.ac might set extrasub.
  5297. # FIXME: do we really want to maintain this feature?
  5298. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5299. ac_sed_extra="$ac_vpsub
  5300. $extrasub
  5301. _ACEOF
  5302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5303. :t
  5304. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5305. s|@configure_input@|$ac_sed_conf_input|;t t
  5306. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5307. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5308. s&@srcdir@&$ac_srcdir&;t t
  5309. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5310. s&@top_srcdir@&$ac_top_srcdir&;t t
  5311. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5312. s&@builddir@&$ac_builddir&;t t
  5313. s&@abs_builddir@&$ac_abs_builddir&;t t
  5314. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5315. s&@INSTALL@&$ac_INSTALL&;t t
  5316. $ac_datarootdir_hack
  5317. "
  5318. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5319. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5320. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5321. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5322. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5323. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5325. which seems to be undefined. Please make sure it is defined" >&5
  5326. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5327. which seems to be undefined. Please make sure it is defined" >&2;}
  5328. rm -f "$ac_tmp/stdin"
  5329. case $ac_file in
  5330. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5331. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5332. esac \
  5333. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5334. ;;
  5335. :H)
  5336. #
  5337. # CONFIG_HEADER
  5338. #
  5339. if test x"$ac_file" != x-; then
  5340. {
  5341. $as_echo "/* $configure_input */" \
  5342. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5343. } >"$ac_tmp/config.h" \
  5344. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5345. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5347. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5348. else
  5349. rm -f "$ac_file"
  5350. mv "$ac_tmp/config.h" "$ac_file" \
  5351. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5352. fi
  5353. else
  5354. $as_echo "/* $configure_input */" \
  5355. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5356. || as_fn_error $? "could not create -" "$LINENO" 5
  5357. fi
  5358. ;;
  5359. esac
  5360. done # for ac_tag
  5361. as_fn_exit 0
  5362. _ACEOF
  5363. ac_clean_files=$ac_clean_files_save
  5364. test $ac_write_fail = 0 ||
  5365. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5366. # configure is writing to config.log, and then calls config.status.
  5367. # config.status does its own redirection, appending to config.log.
  5368. # Unfortunately, on DOS this fails, as config.log is still kept open
  5369. # by configure, so config.status won't be able to write to it; its
  5370. # output is simply discarded. So we exec the FD to /dev/null,
  5371. # effectively closing config.log, so it can be properly (re)opened and
  5372. # appended to by config.status. When coming back to configure, we
  5373. # need to make the FD available again.
  5374. if test "$no_create" != yes; then
  5375. ac_cs_success=:
  5376. ac_config_status_args=
  5377. test "$silent" = yes &&
  5378. ac_config_status_args="$ac_config_status_args --quiet"
  5379. exec 5>/dev/null
  5380. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5381. exec 5>>config.log
  5382. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5383. # would make configure fail if this is the last instruction.
  5384. $ac_cs_success || as_fn_exit 1
  5385. fi
  5386. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5388. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5389. fi