configure.iselect 133 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618
  1. #! /bin/sh
  2. # From configure.in Revision: 1.8 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.56.
  5. #
  6. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  7. # Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. # Support unset when possible.
  24. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  25. as_unset=unset
  26. else
  27. as_unset=false
  28. fi
  29. # Work around bugs in pre-3.0 UWIN ksh.
  30. $as_unset ENV MAIL MAILPATH
  31. PS1='$ '
  32. PS2='> '
  33. PS4='+ '
  34. # NLS nuisances.
  35. for as_var in \
  36. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38. LC_TELEPHONE LC_TIME
  39. do
  40. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41. eval $as_var=C; export $as_var
  42. else
  43. $as_unset $as_var
  44. fi
  45. done
  46. # Required to use basename.
  47. if expr a : '\(a\)' >/dev/null 2>&1; then
  48. as_expr=expr
  49. else
  50. as_expr=false
  51. fi
  52. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  53. as_basename=basename
  54. else
  55. as_basename=false
  56. fi
  57. # Name of the executable.
  58. as_me=`$as_basename "$0" ||
  59. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60. X"$0" : 'X\(//\)$' \| \
  61. X"$0" : 'X\(/\)$' \| \
  62. . : '\(.\)' 2>/dev/null ||
  63. echo X/"$0" |
  64. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  65. /^X\/\(\/\/\)$/{ s//\1/; q; }
  66. /^X\/\(\/\).*/{ s//\1/; q; }
  67. s/.*/./; q'`
  68. # PATH needs CR, and LINENO needs CR and PATH.
  69. # Avoid depending upon Character Ranges.
  70. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  71. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  72. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  73. as_cr_digits='0123456789'
  74. as_cr_alnum=$as_cr_Letters$as_cr_digits
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. echo "#! /bin/sh" >conf$$.sh
  78. echo "exit 0" >>conf$$.sh
  79. chmod +x conf$$.sh
  80. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  81. PATH_SEPARATOR=';'
  82. else
  83. PATH_SEPARATOR=:
  84. fi
  85. rm -f conf$$.sh
  86. fi
  87. as_lineno_1=$LINENO
  88. as_lineno_2=$LINENO
  89. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  90. test "x$as_lineno_1" != "x$as_lineno_2" &&
  91. test "x$as_lineno_3" = "x$as_lineno_2" || {
  92. # Find who we are. Look in the path if we contain no path at all
  93. # relative or not.
  94. case $0 in
  95. *[\\/]* ) as_myself=$0 ;;
  96. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97. for as_dir in $PATH
  98. do
  99. IFS=$as_save_IFS
  100. test -z "$as_dir" && as_dir=.
  101. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  102. done
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  112. { (exit 1); exit 1; }; }
  113. fi
  114. case $CONFIG_SHELL in
  115. '')
  116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  118. do
  119. IFS=$as_save_IFS
  120. test -z "$as_dir" && as_dir=.
  121. for as_base in sh bash ksh sh5; do
  122. case $as_dir in
  123. /*)
  124. if ("$as_dir/$as_base" -c '
  125. as_lineno_1=$LINENO
  126. as_lineno_2=$LINENO
  127. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  128. test "x$as_lineno_1" != "x$as_lineno_2" &&
  129. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  130. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  131. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  132. CONFIG_SHELL=$as_dir/$as_base
  133. export CONFIG_SHELL
  134. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  135. fi;;
  136. esac
  137. done
  138. done
  139. ;;
  140. esac
  141. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  142. # uniformly replaced by the line number. The first 'sed' inserts a
  143. # line-number line before each line; the second 'sed' does the real
  144. # work. The second script uses 'N' to pair each line-number line
  145. # with the numbered line, and appends trailing '-' during
  146. # substitution so that $LINENO is not a special case at line end.
  147. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  148. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  149. sed '=' <$as_myself |
  150. sed '
  151. N
  152. s,$,-,
  153. : loop
  154. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  155. t loop
  156. s,-$,,
  157. s,^['$as_cr_digits']*\n,,
  158. ' >$as_me.lineno &&
  159. chmod +x $as_me.lineno ||
  160. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  161. { (exit 1); exit 1; }; }
  162. # Don't try to exec as it changes $[0], causing all sort of problems
  163. # (the dirname of $[0] is not the place where we might find the
  164. # original and so on. Autoconf is especially sensible to this).
  165. . ./$as_me.lineno
  166. # Exit status is that of the last command.
  167. exit
  168. }
  169. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  170. *c*,-n*) ECHO_N= ECHO_C='
  171. ' ECHO_T=' ' ;;
  172. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  173. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  174. esac
  175. if expr a : '\(a\)' >/dev/null 2>&1; then
  176. as_expr=expr
  177. else
  178. as_expr=false
  179. fi
  180. rm -f conf$$ conf$$.exe conf$$.file
  181. echo >conf$$.file
  182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  183. # We could just check for DJGPP; but this test a) works b) is more generic
  184. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  185. if test -f conf$$.exe; then
  186. # Don't use ln at all; we don't have any links
  187. as_ln_s='cp -p'
  188. else
  189. as_ln_s='ln -s'
  190. fi
  191. elif ln conf$$.file conf$$ 2>/dev/null; then
  192. as_ln_s=ln
  193. else
  194. as_ln_s='cp -p'
  195. fi
  196. rm -f conf$$ conf$$.exe conf$$.file
  197. if mkdir -p . 2>/dev/null; then
  198. as_mkdir_p=:
  199. else
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME=
  235. PACKAGE_TARNAME=
  236. PACKAGE_VERSION=
  237. PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="README"
  240. ac_default_prefix=/usr/local
  241. # Factoring default headers for most tests.
  242. ac_includes_default="\
  243. #include <stdio.h>
  244. #if HAVE_SYS_TYPES_H
  245. # include <sys/types.h>
  246. #endif
  247. #if HAVE_SYS_STAT_H
  248. # include <sys/stat.h>
  249. #endif
  250. #if STDC_HEADERS
  251. # include <stdlib.h>
  252. # include <stddef.h>
  253. #else
  254. # if HAVE_STDLIB_H
  255. # include <stdlib.h>
  256. # endif
  257. #endif
  258. #if HAVE_STRING_H
  259. # if !STDC_HEADERS && HAVE_MEMORY_H
  260. # include <memory.h>
  261. # endif
  262. # include <string.h>
  263. #endif
  264. #if HAVE_STRINGS_H
  265. # include <strings.h>
  266. #endif
  267. #if HAVE_INTTYPES_H
  268. # include <inttypes.h>
  269. #else
  270. # if HAVE_STDINT_H
  271. # include <stdint.h>
  272. # endif
  273. #endif
  274. #if HAVE_UNISTD_H
  275. # include <unistd.h>
  276. #endif"
  277. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP debug SET_MAKE SHTOOL EGREP LIBOBJS LTLIBOBJS'
  278. ac_subst_files=''
  279. # Initialize some variables set by options.
  280. ac_init_help=
  281. ac_init_version=false
  282. # The variables have the same names as the options, with
  283. # dashes changed to underlines.
  284. cache_file=/dev/null
  285. exec_prefix=NONE
  286. no_create=
  287. no_recursion=
  288. prefix=NONE
  289. program_prefix=NONE
  290. program_suffix=NONE
  291. program_transform_name=s,x,x,
  292. silent=
  293. site=
  294. srcdir=
  295. verbose=
  296. x_includes=NONE
  297. x_libraries=NONE
  298. # Installation directory options.
  299. # These are left unexpanded so users can "make install exec_prefix=/foo"
  300. # and all the variables that are supposed to be based on exec_prefix
  301. # by default will actually change.
  302. # Use braces instead of parens because sh, perl, etc. also accept them.
  303. bindir='${exec_prefix}/bin'
  304. sbindir='${exec_prefix}/sbin'
  305. libexecdir='${exec_prefix}/libexec'
  306. datadir='${prefix}/share'
  307. sysconfdir='${prefix}/etc'
  308. sharedstatedir='${prefix}/com'
  309. localstatedir='${prefix}/var'
  310. libdir='${exec_prefix}/lib'
  311. includedir='${prefix}/include'
  312. oldincludedir='/usr/include'
  313. infodir='${prefix}/info'
  314. mandir='${prefix}/man'
  315. ac_prev=
  316. for ac_option
  317. do
  318. # If the previous option needs an argument, assign it.
  319. if test -n "$ac_prev"; then
  320. eval "$ac_prev=\$ac_option"
  321. ac_prev=
  322. continue
  323. fi
  324. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  325. # Accept the important Cygnus configure options, so we can diagnose typos.
  326. case $ac_option in
  327. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  328. ac_prev=bindir ;;
  329. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  330. bindir=$ac_optarg ;;
  331. -build | --build | --buil | --bui | --bu)
  332. ac_prev=build_alias ;;
  333. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  334. build_alias=$ac_optarg ;;
  335. -cache-file | --cache-file | --cache-fil | --cache-fi \
  336. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  337. ac_prev=cache_file ;;
  338. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  339. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  340. cache_file=$ac_optarg ;;
  341. --config-cache | -C)
  342. cache_file=config.cache ;;
  343. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  344. ac_prev=datadir ;;
  345. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  346. | --da=*)
  347. datadir=$ac_optarg ;;
  348. -disable-* | --disable-*)
  349. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  350. # Reject names that are not valid shell variable names.
  351. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  352. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  353. { (exit 1); exit 1; }; }
  354. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  355. eval "enable_$ac_feature=no" ;;
  356. -enable-* | --enable-*)
  357. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  358. # Reject names that are not valid shell variable names.
  359. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  360. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  361. { (exit 1); exit 1; }; }
  362. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  363. case $ac_option in
  364. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  365. *) ac_optarg=yes ;;
  366. esac
  367. eval "enable_$ac_feature='$ac_optarg'" ;;
  368. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  369. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  370. | --exec | --exe | --ex)
  371. ac_prev=exec_prefix ;;
  372. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  373. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  374. | --exec=* | --exe=* | --ex=*)
  375. exec_prefix=$ac_optarg ;;
  376. -gas | --gas | --ga | --g)
  377. # Obsolete; use --with-gas.
  378. with_gas=yes ;;
  379. -help | --help | --hel | --he | -h)
  380. ac_init_help=long ;;
  381. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  382. ac_init_help=recursive ;;
  383. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  384. ac_init_help=short ;;
  385. -host | --host | --hos | --ho)
  386. ac_prev=host_alias ;;
  387. -host=* | --host=* | --hos=* | --ho=*)
  388. host_alias=$ac_optarg ;;
  389. -includedir | --includedir | --includedi | --included | --include \
  390. | --includ | --inclu | --incl | --inc)
  391. ac_prev=includedir ;;
  392. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  393. | --includ=* | --inclu=* | --incl=* | --inc=*)
  394. includedir=$ac_optarg ;;
  395. -infodir | --infodir | --infodi | --infod | --info | --inf)
  396. ac_prev=infodir ;;
  397. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  398. infodir=$ac_optarg ;;
  399. -libdir | --libdir | --libdi | --libd)
  400. ac_prev=libdir ;;
  401. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  402. libdir=$ac_optarg ;;
  403. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  404. | --libexe | --libex | --libe)
  405. ac_prev=libexecdir ;;
  406. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  407. | --libexe=* | --libex=* | --libe=*)
  408. libexecdir=$ac_optarg ;;
  409. -localstatedir | --localstatedir | --localstatedi | --localstated \
  410. | --localstate | --localstat | --localsta | --localst \
  411. | --locals | --local | --loca | --loc | --lo)
  412. ac_prev=localstatedir ;;
  413. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  414. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  415. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  416. localstatedir=$ac_optarg ;;
  417. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  418. ac_prev=mandir ;;
  419. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  420. mandir=$ac_optarg ;;
  421. -nfp | --nfp | --nf)
  422. # Obsolete; use --without-fp.
  423. with_fp=no ;;
  424. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425. | --no-cr | --no-c | -n)
  426. no_create=yes ;;
  427. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  428. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  429. no_recursion=yes ;;
  430. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  431. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  432. | --oldin | --oldi | --old | --ol | --o)
  433. ac_prev=oldincludedir ;;
  434. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  435. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  436. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  437. oldincludedir=$ac_optarg ;;
  438. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  439. ac_prev=prefix ;;
  440. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  441. prefix=$ac_optarg ;;
  442. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  443. | --program-pre | --program-pr | --program-p)
  444. ac_prev=program_prefix ;;
  445. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  446. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  447. program_prefix=$ac_optarg ;;
  448. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  449. | --program-suf | --program-su | --program-s)
  450. ac_prev=program_suffix ;;
  451. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  452. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  453. program_suffix=$ac_optarg ;;
  454. -program-transform-name | --program-transform-name \
  455. | --program-transform-nam | --program-transform-na \
  456. | --program-transform-n | --program-transform- \
  457. | --program-transform | --program-transfor \
  458. | --program-transfo | --program-transf \
  459. | --program-trans | --program-tran \
  460. | --progr-tra | --program-tr | --program-t)
  461. ac_prev=program_transform_name ;;
  462. -program-transform-name=* | --program-transform-name=* \
  463. | --program-transform-nam=* | --program-transform-na=* \
  464. | --program-transform-n=* | --program-transform-=* \
  465. | --program-transform=* | --program-transfor=* \
  466. | --program-transfo=* | --program-transf=* \
  467. | --program-trans=* | --program-tran=* \
  468. | --progr-tra=* | --program-tr=* | --program-t=*)
  469. program_transform_name=$ac_optarg ;;
  470. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  471. | -silent | --silent | --silen | --sile | --sil)
  472. silent=yes ;;
  473. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  474. ac_prev=sbindir ;;
  475. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  476. | --sbi=* | --sb=*)
  477. sbindir=$ac_optarg ;;
  478. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  479. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  480. | --sharedst | --shareds | --shared | --share | --shar \
  481. | --sha | --sh)
  482. ac_prev=sharedstatedir ;;
  483. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  484. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  485. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  486. | --sha=* | --sh=*)
  487. sharedstatedir=$ac_optarg ;;
  488. -site | --site | --sit)
  489. ac_prev=site ;;
  490. -site=* | --site=* | --sit=*)
  491. site=$ac_optarg ;;
  492. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  493. ac_prev=srcdir ;;
  494. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  495. srcdir=$ac_optarg ;;
  496. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  497. | --syscon | --sysco | --sysc | --sys | --sy)
  498. ac_prev=sysconfdir ;;
  499. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  500. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  501. sysconfdir=$ac_optarg ;;
  502. -target | --target | --targe | --targ | --tar | --ta | --t)
  503. ac_prev=target_alias ;;
  504. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  505. target_alias=$ac_optarg ;;
  506. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  507. verbose=yes ;;
  508. -version | --version | --versio | --versi | --vers | -V)
  509. ac_init_version=: ;;
  510. -with-* | --with-*)
  511. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  512. # Reject names that are not valid shell variable names.
  513. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  514. { echo "$as_me: error: invalid package name: $ac_package" >&2
  515. { (exit 1); exit 1; }; }
  516. ac_package=`echo $ac_package| sed 's/-/_/g'`
  517. case $ac_option in
  518. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  519. *) ac_optarg=yes ;;
  520. esac
  521. eval "with_$ac_package='$ac_optarg'" ;;
  522. -without-* | --without-*)
  523. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  524. # Reject names that are not valid shell variable names.
  525. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  526. { echo "$as_me: error: invalid package name: $ac_package" >&2
  527. { (exit 1); exit 1; }; }
  528. ac_package=`echo $ac_package | sed 's/-/_/g'`
  529. eval "with_$ac_package=no" ;;
  530. --x)
  531. # Obsolete; use --with-x.
  532. with_x=yes ;;
  533. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  534. | --x-incl | --x-inc | --x-in | --x-i)
  535. ac_prev=x_includes ;;
  536. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  537. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  538. x_includes=$ac_optarg ;;
  539. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  540. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  541. ac_prev=x_libraries ;;
  542. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  543. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  544. x_libraries=$ac_optarg ;;
  545. -*) { echo "$as_me: error: unrecognized option: $ac_option
  546. Try \`$0 --help' for more information." >&2
  547. { (exit 1); exit 1; }; }
  548. ;;
  549. *=*)
  550. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  551. # Reject names that are not valid shell variable names.
  552. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  553. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  554. { (exit 1); exit 1; }; }
  555. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  556. eval "$ac_envvar='$ac_optarg'"
  557. export $ac_envvar ;;
  558. *)
  559. # FIXME: should be removed in autoconf 3.0.
  560. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  561. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  562. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  563. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  564. ;;
  565. esac
  566. done
  567. if test -n "$ac_prev"; then
  568. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  569. { echo "$as_me: error: missing argument to $ac_option" >&2
  570. { (exit 1); exit 1; }; }
  571. fi
  572. # Be sure to have absolute paths.
  573. for ac_var in exec_prefix prefix
  574. do
  575. eval ac_val=$`echo $ac_var`
  576. case $ac_val in
  577. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  578. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  579. { (exit 1); exit 1; }; };;
  580. esac
  581. done
  582. # Be sure to have absolute paths.
  583. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  584. localstatedir libdir includedir oldincludedir infodir mandir
  585. do
  586. eval ac_val=$`echo $ac_var`
  587. case $ac_val in
  588. [\\/$]* | ?:[\\/]* ) ;;
  589. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  590. { (exit 1); exit 1; }; };;
  591. esac
  592. done
  593. # There might be people who depend on the old broken behavior: `$host'
  594. # used to hold the argument of --host etc.
  595. # FIXME: To remove some day.
  596. build=$build_alias
  597. host=$host_alias
  598. target=$target_alias
  599. # FIXME: To remove some day.
  600. if test "x$host_alias" != x; then
  601. if test "x$build_alias" = x; then
  602. cross_compiling=maybe
  603. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  604. If a cross compiler is detected then cross compile mode will be used." >&2
  605. elif test "x$build_alias" != "x$host_alias"; then
  606. cross_compiling=yes
  607. fi
  608. fi
  609. ac_tool_prefix=
  610. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  611. test "$silent" = yes && exec 6>/dev/null
  612. # Find the source files, if location was not specified.
  613. if test -z "$srcdir"; then
  614. ac_srcdir_defaulted=yes
  615. # Try the directory containing this script, then its parent.
  616. ac_confdir=`(dirname "$0") 2>/dev/null ||
  617. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  618. X"$0" : 'X\(//\)[^/]' \| \
  619. X"$0" : 'X\(//\)$' \| \
  620. X"$0" : 'X\(/\)' \| \
  621. . : '\(.\)' 2>/dev/null ||
  622. echo X"$0" |
  623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  624. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  625. /^X\(\/\/\)$/{ s//\1/; q; }
  626. /^X\(\/\).*/{ s//\1/; q; }
  627. s/.*/./; q'`
  628. srcdir=$ac_confdir
  629. if test ! -r $srcdir/$ac_unique_file; then
  630. srcdir=..
  631. fi
  632. else
  633. ac_srcdir_defaulted=no
  634. fi
  635. if test ! -r $srcdir/$ac_unique_file; then
  636. if test "$ac_srcdir_defaulted" = yes; then
  637. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  638. { (exit 1); exit 1; }; }
  639. else
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  641. { (exit 1); exit 1; }; }
  642. fi
  643. fi
  644. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  645. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  646. { (exit 1); exit 1; }; }
  647. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  648. ac_env_build_alias_set=${build_alias+set}
  649. ac_env_build_alias_value=$build_alias
  650. ac_cv_env_build_alias_set=${build_alias+set}
  651. ac_cv_env_build_alias_value=$build_alias
  652. ac_env_host_alias_set=${host_alias+set}
  653. ac_env_host_alias_value=$host_alias
  654. ac_cv_env_host_alias_set=${host_alias+set}
  655. ac_cv_env_host_alias_value=$host_alias
  656. ac_env_target_alias_set=${target_alias+set}
  657. ac_env_target_alias_value=$target_alias
  658. ac_cv_env_target_alias_set=${target_alias+set}
  659. ac_cv_env_target_alias_value=$target_alias
  660. ac_env_CC_set=${CC+set}
  661. ac_env_CC_value=$CC
  662. ac_cv_env_CC_set=${CC+set}
  663. ac_cv_env_CC_value=$CC
  664. ac_env_CFLAGS_set=${CFLAGS+set}
  665. ac_env_CFLAGS_value=$CFLAGS
  666. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  667. ac_cv_env_CFLAGS_value=$CFLAGS
  668. ac_env_LDFLAGS_set=${LDFLAGS+set}
  669. ac_env_LDFLAGS_value=$LDFLAGS
  670. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  671. ac_cv_env_LDFLAGS_value=$LDFLAGS
  672. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  673. ac_env_CPPFLAGS_value=$CPPFLAGS
  674. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  675. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  676. ac_env_CPP_set=${CPP+set}
  677. ac_env_CPP_value=$CPP
  678. ac_cv_env_CPP_set=${CPP+set}
  679. ac_cv_env_CPP_value=$CPP
  680. #
  681. # Report the --help message.
  682. #
  683. if test "$ac_init_help" = "long"; then
  684. # Omit some internal or obsolete options to make the list less imposing.
  685. # This message is too long to be a string in the A/UX 3.1 sh.
  686. cat <<_ACEOF
  687. \`configure' configures this package to adapt to many kinds of systems.
  688. Usage: $0 [OPTION]... [VAR=VALUE]...
  689. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  690. VAR=VALUE. See below for descriptions of some of the useful variables.
  691. Defaults for the options are specified in brackets.
  692. Configuration:
  693. -h, --help display this help and exit
  694. --help=short display options specific to this package
  695. --help=recursive display the short help of all the included packages
  696. -V, --version display version information and exit
  697. -q, --quiet, --silent do not print \`checking...' messages
  698. --cache-file=FILE cache test results in FILE [disabled]
  699. -C, --config-cache alias for \`--cache-file=config.cache'
  700. -n, --no-create do not create output files
  701. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  702. _ACEOF
  703. cat <<_ACEOF
  704. Installation directories:
  705. --prefix=PREFIX install architecture-independent files in PREFIX
  706. [$ac_default_prefix]
  707. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  708. [PREFIX]
  709. By default, \`make install' will install all the files in
  710. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  711. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  712. for instance \`--prefix=\$HOME'.
  713. For better control, use the options below.
  714. Fine tuning of the installation directories:
  715. --bindir=DIR user executables [EPREFIX/bin]
  716. --sbindir=DIR system admin executables [EPREFIX/sbin]
  717. --libexecdir=DIR program executables [EPREFIX/libexec]
  718. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  719. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  720. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  721. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  722. --libdir=DIR object code libraries [EPREFIX/lib]
  723. --includedir=DIR C header files [PREFIX/include]
  724. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  725. --infodir=DIR info documentation [PREFIX/info]
  726. --mandir=DIR man documentation [PREFIX/man]
  727. _ACEOF
  728. cat <<\_ACEOF
  729. _ACEOF
  730. fi
  731. if test -n "$ac_init_help"; then
  732. cat <<\_ACEOF
  733. Optional Features:
  734. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  735. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  736. --enable-debug to enable the debugging options for compilation
  737. Optional Packages:
  738. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  739. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  740. --with-incdir=DIR add DIR to the include path
  741. --with-libdir=DIR add DIR to the library path
  742. Some influential environment variables:
  743. CC C compiler command
  744. CFLAGS C compiler flags
  745. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  746. nonstandard directory <lib dir>
  747. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  748. headers in a nonstandard directory <include dir>
  749. CPP C preprocessor
  750. Use these variables to override the choices made by `configure' or to help
  751. it to find libraries and programs with nonstandard names/locations.
  752. _ACEOF
  753. fi
  754. if test "$ac_init_help" = "recursive"; then
  755. # If there are subdirs, report their specific --help.
  756. ac_popdir=`pwd`
  757. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  758. test -d $ac_dir || continue
  759. ac_builddir=.
  760. if test "$ac_dir" != .; then
  761. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  762. # A "../" for each directory in $ac_dir_suffix.
  763. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  764. else
  765. ac_dir_suffix= ac_top_builddir=
  766. fi
  767. case $srcdir in
  768. .) # No --srcdir option. We are building in place.
  769. ac_srcdir=.
  770. if test -z "$ac_top_builddir"; then
  771. ac_top_srcdir=.
  772. else
  773. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  774. fi ;;
  775. [\\/]* | ?:[\\/]* ) # Absolute path.
  776. ac_srcdir=$srcdir$ac_dir_suffix;
  777. ac_top_srcdir=$srcdir ;;
  778. *) # Relative path.
  779. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  780. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  781. esac
  782. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  783. # absolute.
  784. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  785. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  786. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  787. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  788. cd $ac_dir
  789. # Check for guested configure; otherwise get Cygnus style configure.
  790. if test -f $ac_srcdir/configure.gnu; then
  791. echo
  792. $SHELL $ac_srcdir/configure.gnu --help=recursive
  793. elif test -f $ac_srcdir/configure; then
  794. echo
  795. $SHELL $ac_srcdir/configure --help=recursive
  796. elif test -f $ac_srcdir/configure.ac ||
  797. test -f $ac_srcdir/configure.in; then
  798. echo
  799. $ac_configure --help
  800. else
  801. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  802. fi
  803. cd $ac_popdir
  804. done
  805. fi
  806. test -n "$ac_init_help" && exit 0
  807. if $ac_init_version; then
  808. cat <<\_ACEOF
  809. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  810. Free Software Foundation, Inc.
  811. This configure script is free software; the Free Software Foundation
  812. gives unlimited permission to copy, distribute and modify it.
  813. _ACEOF
  814. exit 0
  815. fi
  816. exec 5>config.log
  817. cat >&5 <<_ACEOF
  818. This file contains any messages produced by compilers while
  819. running configure, to aid debugging if configure makes a mistake.
  820. It was created by $as_me, which was
  821. generated by GNU Autoconf 2.56. Invocation command line was
  822. $ $0 $@
  823. _ACEOF
  824. {
  825. cat <<_ASUNAME
  826. ## --------- ##
  827. ## Platform. ##
  828. ## --------- ##
  829. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  830. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  831. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  832. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  833. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  834. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  835. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  836. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  837. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  838. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  839. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  840. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  841. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  842. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  843. _ASUNAME
  844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  845. for as_dir in $PATH
  846. do
  847. IFS=$as_save_IFS
  848. test -z "$as_dir" && as_dir=.
  849. echo "PATH: $as_dir"
  850. done
  851. } >&5
  852. cat >&5 <<_ACEOF
  853. ## ----------- ##
  854. ## Core tests. ##
  855. ## ----------- ##
  856. _ACEOF
  857. # Keep a trace of the command line.
  858. # Strip out --no-create and --no-recursion so they do not pile up.
  859. # Strip out --silent because we don't want to record it for future runs.
  860. # Also quote any args containing shell meta-characters.
  861. # Make two passes to allow for proper duplicate-argument suppression.
  862. ac_configure_args=
  863. ac_configure_args0=
  864. ac_configure_args1=
  865. ac_sep=
  866. ac_must_keep_next=false
  867. for ac_pass in 1 2
  868. do
  869. for ac_arg
  870. do
  871. case $ac_arg in
  872. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  873. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  874. | -silent | --silent | --silen | --sile | --sil)
  875. continue ;;
  876. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  877. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  878. esac
  879. case $ac_pass in
  880. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  881. 2)
  882. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  883. if test $ac_must_keep_next = true; then
  884. ac_must_keep_next=false # Got value, back to normal.
  885. else
  886. case $ac_arg in
  887. *=* | --config-cache | -C | -disable-* | --disable-* \
  888. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  889. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  890. | -with-* | --with-* | -without-* | --without-* | --x)
  891. case "$ac_configure_args0 " in
  892. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  893. esac
  894. ;;
  895. -* ) ac_must_keep_next=true ;;
  896. esac
  897. fi
  898. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  899. # Get rid of the leading space.
  900. ac_sep=" "
  901. ;;
  902. esac
  903. done
  904. done
  905. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  906. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  907. # When interrupted or exit'd, cleanup temporary files, and complete
  908. # config.log. We remove comments because anyway the quotes in there
  909. # would cause problems or look ugly.
  910. # WARNING: Be sure not to use single quotes in there, as some shells,
  911. # such as our DU 5.0 friend, will then `close' the trap.
  912. trap 'exit_status=$?
  913. # Save into config.log some information that might help in debugging.
  914. {
  915. echo
  916. cat <<\_ASBOX
  917. ## ---------------- ##
  918. ## Cache variables. ##
  919. ## ---------------- ##
  920. _ASBOX
  921. echo
  922. # The following way of writing the cache mishandles newlines in values,
  923. {
  924. (set) 2>&1 |
  925. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  926. *ac_space=\ *)
  927. sed -n \
  928. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  929. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  930. ;;
  931. *)
  932. sed -n \
  933. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  934. ;;
  935. esac;
  936. }
  937. echo
  938. cat <<\_ASBOX
  939. ## ----------------- ##
  940. ## Output variables. ##
  941. ## ----------------- ##
  942. _ASBOX
  943. echo
  944. for ac_var in $ac_subst_vars
  945. do
  946. eval ac_val=$`echo $ac_var`
  947. echo "$ac_var='"'"'$ac_val'"'"'"
  948. done | sort
  949. echo
  950. if test -n "$ac_subst_files"; then
  951. cat <<\_ASBOX
  952. ## ------------- ##
  953. ## Output files. ##
  954. ## ------------- ##
  955. _ASBOX
  956. echo
  957. for ac_var in $ac_subst_files
  958. do
  959. eval ac_val=$`echo $ac_var`
  960. echo "$ac_var='"'"'$ac_val'"'"'"
  961. done | sort
  962. echo
  963. fi
  964. if test -s confdefs.h; then
  965. cat <<\_ASBOX
  966. ## ----------- ##
  967. ## confdefs.h. ##
  968. ## ----------- ##
  969. _ASBOX
  970. echo
  971. sed "/^$/d" confdefs.h | sort
  972. echo
  973. fi
  974. test "$ac_signal" != 0 &&
  975. echo "$as_me: caught signal $ac_signal"
  976. echo "$as_me: exit $exit_status"
  977. } >&5
  978. rm -f core core.* *.core &&
  979. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  980. exit $exit_status
  981. ' 0
  982. for ac_signal in 1 2 13 15; do
  983. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  984. done
  985. ac_signal=0
  986. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  987. rm -rf conftest* confdefs.h
  988. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  989. echo >confdefs.h
  990. # Predefined preprocessor variables.
  991. cat >>confdefs.h <<_ACEOF
  992. #define PACKAGE_NAME "$PACKAGE_NAME"
  993. _ACEOF
  994. cat >>confdefs.h <<_ACEOF
  995. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  996. _ACEOF
  997. cat >>confdefs.h <<_ACEOF
  998. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  999. _ACEOF
  1000. cat >>confdefs.h <<_ACEOF
  1001. #define PACKAGE_STRING "$PACKAGE_STRING"
  1002. _ACEOF
  1003. cat >>confdefs.h <<_ACEOF
  1004. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1005. _ACEOF
  1006. # Let the site file select an alternate cache file if it wants to.
  1007. # Prefer explicitly selected file to automatically selected ones.
  1008. if test -z "$CONFIG_SITE"; then
  1009. if test "x$prefix" != xNONE; then
  1010. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1011. else
  1012. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1013. fi
  1014. fi
  1015. for ac_site_file in $CONFIG_SITE; do
  1016. if test -r "$ac_site_file"; then
  1017. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1018. echo "$as_me: loading site script $ac_site_file" >&6;}
  1019. sed 's/^/| /' "$ac_site_file" >&5
  1020. . "$ac_site_file"
  1021. fi
  1022. done
  1023. if test -r "$cache_file"; then
  1024. # Some versions of bash will fail to source /dev/null (special
  1025. # files actually), so we avoid doing that.
  1026. if test -f "$cache_file"; then
  1027. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1028. echo "$as_me: loading cache $cache_file" >&6;}
  1029. case $cache_file in
  1030. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1031. *) . ./$cache_file;;
  1032. esac
  1033. fi
  1034. else
  1035. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1036. echo "$as_me: creating cache $cache_file" >&6;}
  1037. >$cache_file
  1038. fi
  1039. # Check that the precious variables saved in the cache have kept the same
  1040. # value.
  1041. ac_cache_corrupted=false
  1042. for ac_var in `(set) 2>&1 |
  1043. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1044. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1045. eval ac_new_set=\$ac_env_${ac_var}_set
  1046. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1047. eval ac_new_val="\$ac_env_${ac_var}_value"
  1048. case $ac_old_set,$ac_new_set in
  1049. set,)
  1050. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1051. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1052. ac_cache_corrupted=: ;;
  1053. ,set)
  1054. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1055. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1056. ac_cache_corrupted=: ;;
  1057. ,);;
  1058. *)
  1059. if test "x$ac_old_val" != "x$ac_new_val"; then
  1060. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1061. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1062. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1063. echo "$as_me: former value: $ac_old_val" >&2;}
  1064. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1065. echo "$as_me: current value: $ac_new_val" >&2;}
  1066. ac_cache_corrupted=:
  1067. fi;;
  1068. esac
  1069. # Pass precious variables to config.status.
  1070. if test "$ac_new_set" = set; then
  1071. case $ac_new_val in
  1072. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1073. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1074. *) ac_arg=$ac_var=$ac_new_val ;;
  1075. esac
  1076. case " $ac_configure_args " in
  1077. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1078. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1079. esac
  1080. fi
  1081. done
  1082. if $ac_cache_corrupted; then
  1083. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1084. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1085. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1086. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1087. { (exit 1); exit 1; }; }
  1088. fi
  1089. ac_ext=c
  1090. ac_cpp='$CPP $CPPFLAGS'
  1091. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1092. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1093. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1094. ac_config_headers="$ac_config_headers config_ac.h"
  1095. echo "$as_me:$LINENO: result: " >&5
  1096. echo "${ECHO_T}" >&6
  1097. echo "$as_me:$LINENO: result: ${T_MD}CHECK: Build Environment${T_ME}" >&5
  1098. echo "${ECHO_T}${T_MD}CHECK: Build Environment${T_ME}" >&6
  1099. ac_ext=c
  1100. ac_cpp='$CPP $CPPFLAGS'
  1101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1104. if test -n "$ac_tool_prefix"; then
  1105. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1106. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1107. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1108. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1109. if test "${ac_cv_prog_CC+set}" = set; then
  1110. echo $ECHO_N "(cached) $ECHO_C" >&6
  1111. else
  1112. if test -n "$CC"; then
  1113. ac_cv_prog_CC="$CC" # Let the user override the test.
  1114. else
  1115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1116. for as_dir in $PATH
  1117. do
  1118. IFS=$as_save_IFS
  1119. test -z "$as_dir" && as_dir=.
  1120. for ac_exec_ext in '' $ac_executable_extensions; do
  1121. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1122. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1124. break 2
  1125. fi
  1126. done
  1127. done
  1128. fi
  1129. fi
  1130. CC=$ac_cv_prog_CC
  1131. if test -n "$CC"; then
  1132. echo "$as_me:$LINENO: result: $CC" >&5
  1133. echo "${ECHO_T}$CC" >&6
  1134. else
  1135. echo "$as_me:$LINENO: result: no" >&5
  1136. echo "${ECHO_T}no" >&6
  1137. fi
  1138. fi
  1139. if test -z "$ac_cv_prog_CC"; then
  1140. ac_ct_CC=$CC
  1141. # Extract the first word of "gcc", so it can be a program name with args.
  1142. set dummy gcc; ac_word=$2
  1143. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1144. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1145. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1146. echo $ECHO_N "(cached) $ECHO_C" >&6
  1147. else
  1148. if test -n "$ac_ct_CC"; then
  1149. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1150. else
  1151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1152. for as_dir in $PATH
  1153. do
  1154. IFS=$as_save_IFS
  1155. test -z "$as_dir" && as_dir=.
  1156. for ac_exec_ext in '' $ac_executable_extensions; do
  1157. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1158. ac_cv_prog_ac_ct_CC="gcc"
  1159. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1160. break 2
  1161. fi
  1162. done
  1163. done
  1164. fi
  1165. fi
  1166. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1167. if test -n "$ac_ct_CC"; then
  1168. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1169. echo "${ECHO_T}$ac_ct_CC" >&6
  1170. else
  1171. echo "$as_me:$LINENO: result: no" >&5
  1172. echo "${ECHO_T}no" >&6
  1173. fi
  1174. CC=$ac_ct_CC
  1175. else
  1176. CC="$ac_cv_prog_CC"
  1177. fi
  1178. if test -z "$CC"; then
  1179. if test -n "$ac_tool_prefix"; then
  1180. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1181. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1182. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1183. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1184. if test "${ac_cv_prog_CC+set}" = set; then
  1185. echo $ECHO_N "(cached) $ECHO_C" >&6
  1186. else
  1187. if test -n "$CC"; then
  1188. ac_cv_prog_CC="$CC" # Let the user override the test.
  1189. else
  1190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1191. for as_dir in $PATH
  1192. do
  1193. IFS=$as_save_IFS
  1194. test -z "$as_dir" && as_dir=.
  1195. for ac_exec_ext in '' $ac_executable_extensions; do
  1196. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1197. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1198. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1199. break 2
  1200. fi
  1201. done
  1202. done
  1203. fi
  1204. fi
  1205. CC=$ac_cv_prog_CC
  1206. if test -n "$CC"; then
  1207. echo "$as_me:$LINENO: result: $CC" >&5
  1208. echo "${ECHO_T}$CC" >&6
  1209. else
  1210. echo "$as_me:$LINENO: result: no" >&5
  1211. echo "${ECHO_T}no" >&6
  1212. fi
  1213. fi
  1214. if test -z "$ac_cv_prog_CC"; then
  1215. ac_ct_CC=$CC
  1216. # Extract the first word of "cc", so it can be a program name with args.
  1217. set dummy cc; ac_word=$2
  1218. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1220. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1221. echo $ECHO_N "(cached) $ECHO_C" >&6
  1222. else
  1223. if test -n "$ac_ct_CC"; then
  1224. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1225. else
  1226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1227. for as_dir in $PATH
  1228. do
  1229. IFS=$as_save_IFS
  1230. test -z "$as_dir" && as_dir=.
  1231. for ac_exec_ext in '' $ac_executable_extensions; do
  1232. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1233. ac_cv_prog_ac_ct_CC="cc"
  1234. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1235. break 2
  1236. fi
  1237. done
  1238. done
  1239. fi
  1240. fi
  1241. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1242. if test -n "$ac_ct_CC"; then
  1243. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1244. echo "${ECHO_T}$ac_ct_CC" >&6
  1245. else
  1246. echo "$as_me:$LINENO: result: no" >&5
  1247. echo "${ECHO_T}no" >&6
  1248. fi
  1249. CC=$ac_ct_CC
  1250. else
  1251. CC="$ac_cv_prog_CC"
  1252. fi
  1253. fi
  1254. if test -z "$CC"; then
  1255. # Extract the first word of "cc", so it can be a program name with args.
  1256. set dummy cc; ac_word=$2
  1257. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1259. if test "${ac_cv_prog_CC+set}" = set; then
  1260. echo $ECHO_N "(cached) $ECHO_C" >&6
  1261. else
  1262. if test -n "$CC"; then
  1263. ac_cv_prog_CC="$CC" # Let the user override the test.
  1264. else
  1265. ac_prog_rejected=no
  1266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1267. for as_dir in $PATH
  1268. do
  1269. IFS=$as_save_IFS
  1270. test -z "$as_dir" && as_dir=.
  1271. for ac_exec_ext in '' $ac_executable_extensions; do
  1272. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1273. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1274. ac_prog_rejected=yes
  1275. continue
  1276. fi
  1277. ac_cv_prog_CC="cc"
  1278. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1279. break 2
  1280. fi
  1281. done
  1282. done
  1283. if test $ac_prog_rejected = yes; then
  1284. # We found a bogon in the path, so make sure we never use it.
  1285. set dummy $ac_cv_prog_CC
  1286. shift
  1287. if test $# != 0; then
  1288. # We chose a different compiler from the bogus one.
  1289. # However, it has the same basename, so the bogon will be chosen
  1290. # first if we set CC to just the basename; use the full file name.
  1291. shift
  1292. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1293. fi
  1294. fi
  1295. fi
  1296. fi
  1297. CC=$ac_cv_prog_CC
  1298. if test -n "$CC"; then
  1299. echo "$as_me:$LINENO: result: $CC" >&5
  1300. echo "${ECHO_T}$CC" >&6
  1301. else
  1302. echo "$as_me:$LINENO: result: no" >&5
  1303. echo "${ECHO_T}no" >&6
  1304. fi
  1305. fi
  1306. if test -z "$CC"; then
  1307. if test -n "$ac_tool_prefix"; then
  1308. for ac_prog in cl
  1309. do
  1310. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1311. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1314. if test "${ac_cv_prog_CC+set}" = set; then
  1315. echo $ECHO_N "(cached) $ECHO_C" >&6
  1316. else
  1317. if test -n "$CC"; then
  1318. ac_cv_prog_CC="$CC" # Let the user override the test.
  1319. else
  1320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1321. for as_dir in $PATH
  1322. do
  1323. IFS=$as_save_IFS
  1324. test -z "$as_dir" && as_dir=.
  1325. for ac_exec_ext in '' $ac_executable_extensions; do
  1326. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1327. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1328. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1329. break 2
  1330. fi
  1331. done
  1332. done
  1333. fi
  1334. fi
  1335. CC=$ac_cv_prog_CC
  1336. if test -n "$CC"; then
  1337. echo "$as_me:$LINENO: result: $CC" >&5
  1338. echo "${ECHO_T}$CC" >&6
  1339. else
  1340. echo "$as_me:$LINENO: result: no" >&5
  1341. echo "${ECHO_T}no" >&6
  1342. fi
  1343. test -n "$CC" && break
  1344. done
  1345. fi
  1346. if test -z "$CC"; then
  1347. ac_ct_CC=$CC
  1348. for ac_prog in cl
  1349. do
  1350. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1351. set dummy $ac_prog; ac_word=$2
  1352. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1353. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1354. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1355. echo $ECHO_N "(cached) $ECHO_C" >&6
  1356. else
  1357. if test -n "$ac_ct_CC"; then
  1358. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1359. else
  1360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1361. for as_dir in $PATH
  1362. do
  1363. IFS=$as_save_IFS
  1364. test -z "$as_dir" && as_dir=.
  1365. for ac_exec_ext in '' $ac_executable_extensions; do
  1366. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1367. ac_cv_prog_ac_ct_CC="$ac_prog"
  1368. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1369. break 2
  1370. fi
  1371. done
  1372. done
  1373. fi
  1374. fi
  1375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1376. if test -n "$ac_ct_CC"; then
  1377. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1378. echo "${ECHO_T}$ac_ct_CC" >&6
  1379. else
  1380. echo "$as_me:$LINENO: result: no" >&5
  1381. echo "${ECHO_T}no" >&6
  1382. fi
  1383. test -n "$ac_ct_CC" && break
  1384. done
  1385. CC=$ac_ct_CC
  1386. fi
  1387. fi
  1388. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1389. See \`config.log' for more details." >&5
  1390. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1391. See \`config.log' for more details." >&2;}
  1392. { (exit 1); exit 1; }; }
  1393. # Provide some information about the compiler.
  1394. echo "$as_me:$LINENO:" \
  1395. "checking for C compiler version" >&5
  1396. ac_compiler=`set X $ac_compile; echo $2`
  1397. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1398. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1399. ac_status=$?
  1400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1401. (exit $ac_status); }
  1402. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1403. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1404. ac_status=$?
  1405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1406. (exit $ac_status); }
  1407. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1408. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1409. ac_status=$?
  1410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1411. (exit $ac_status); }
  1412. cat >conftest.$ac_ext <<_ACEOF
  1413. #line $LINENO "configure"
  1414. /* confdefs.h. */
  1415. _ACEOF
  1416. cat confdefs.h >>conftest.$ac_ext
  1417. cat >>conftest.$ac_ext <<_ACEOF
  1418. /* end confdefs.h. */
  1419. int
  1420. main ()
  1421. {
  1422. ;
  1423. return 0;
  1424. }
  1425. _ACEOF
  1426. ac_clean_files_save=$ac_clean_files
  1427. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1428. # Try to create an executable without -o first, disregard a.out.
  1429. # It will help us diagnose broken compilers, and finding out an intuition
  1430. # of exeext.
  1431. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1432. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1433. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1434. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1435. (eval $ac_link_default) 2>&5
  1436. ac_status=$?
  1437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1438. (exit $ac_status); }; then
  1439. # Find the output, starting from the most likely. This scheme is
  1440. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1441. # resort.
  1442. # Be careful to initialize this variable, since it used to be cached.
  1443. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1444. ac_cv_exeext=
  1445. # b.out is created by i960 compilers.
  1446. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1447. do
  1448. test -f "$ac_file" || continue
  1449. case $ac_file in
  1450. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1451. ;;
  1452. conftest.$ac_ext )
  1453. # This is the source file.
  1454. ;;
  1455. [ab].out )
  1456. # We found the default executable, but exeext='' is most
  1457. # certainly right.
  1458. break;;
  1459. *.* )
  1460. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1461. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1462. # but it would be cool to find out if it's true. Does anybody
  1463. # maintain Libtool? --akim.
  1464. export ac_cv_exeext
  1465. break;;
  1466. * )
  1467. break;;
  1468. esac
  1469. done
  1470. else
  1471. echo "$as_me: failed program was:" >&5
  1472. sed 's/^/| /' conftest.$ac_ext >&5
  1473. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1474. See \`config.log' for more details." >&5
  1475. echo "$as_me: error: C compiler cannot create executables
  1476. See \`config.log' for more details." >&2;}
  1477. { (exit 77); exit 77; }; }
  1478. fi
  1479. ac_exeext=$ac_cv_exeext
  1480. echo "$as_me:$LINENO: result: $ac_file" >&5
  1481. echo "${ECHO_T}$ac_file" >&6
  1482. # Check the compiler produces executables we can run. If not, either
  1483. # the compiler is broken, or we cross compile.
  1484. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1485. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1486. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1487. # If not cross compiling, check that we can run a simple program.
  1488. if test "$cross_compiling" != yes; then
  1489. if { ac_try='./$ac_file'
  1490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1491. (eval $ac_try) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; }; then
  1495. cross_compiling=no
  1496. else
  1497. if test "$cross_compiling" = maybe; then
  1498. cross_compiling=yes
  1499. else
  1500. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1501. If you meant to cross compile, use \`--host'.
  1502. See \`config.log' for more details." >&5
  1503. echo "$as_me: error: cannot run C compiled programs.
  1504. If you meant to cross compile, use \`--host'.
  1505. See \`config.log' for more details." >&2;}
  1506. { (exit 1); exit 1; }; }
  1507. fi
  1508. fi
  1509. fi
  1510. echo "$as_me:$LINENO: result: yes" >&5
  1511. echo "${ECHO_T}yes" >&6
  1512. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1513. ac_clean_files=$ac_clean_files_save
  1514. # Check the compiler produces executables we can run. If not, either
  1515. # the compiler is broken, or we cross compile.
  1516. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1517. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1518. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1519. echo "${ECHO_T}$cross_compiling" >&6
  1520. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1521. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1523. (eval $ac_link) 2>&5
  1524. ac_status=$?
  1525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1526. (exit $ac_status); }; then
  1527. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1528. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1529. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1530. # `rm'.
  1531. for ac_file in conftest.exe conftest conftest.*; do
  1532. test -f "$ac_file" || continue
  1533. case $ac_file in
  1534. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1535. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1536. export ac_cv_exeext
  1537. break;;
  1538. * ) break;;
  1539. esac
  1540. done
  1541. else
  1542. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1543. See \`config.log' for more details." >&5
  1544. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1545. See \`config.log' for more details." >&2;}
  1546. { (exit 1); exit 1; }; }
  1547. fi
  1548. rm -f conftest$ac_cv_exeext
  1549. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1550. echo "${ECHO_T}$ac_cv_exeext" >&6
  1551. rm -f conftest.$ac_ext
  1552. EXEEXT=$ac_cv_exeext
  1553. ac_exeext=$EXEEXT
  1554. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1555. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1556. if test "${ac_cv_objext+set}" = set; then
  1557. echo $ECHO_N "(cached) $ECHO_C" >&6
  1558. else
  1559. cat >conftest.$ac_ext <<_ACEOF
  1560. #line $LINENO "configure"
  1561. /* confdefs.h. */
  1562. _ACEOF
  1563. cat confdefs.h >>conftest.$ac_ext
  1564. cat >>conftest.$ac_ext <<_ACEOF
  1565. /* end confdefs.h. */
  1566. int
  1567. main ()
  1568. {
  1569. ;
  1570. return 0;
  1571. }
  1572. _ACEOF
  1573. rm -f conftest.o conftest.obj
  1574. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1575. (eval $ac_compile) 2>&5
  1576. ac_status=$?
  1577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1578. (exit $ac_status); }; then
  1579. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1580. case $ac_file in
  1581. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1582. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1583. break;;
  1584. esac
  1585. done
  1586. else
  1587. echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1590. See \`config.log' for more details." >&5
  1591. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1592. See \`config.log' for more details." >&2;}
  1593. { (exit 1); exit 1; }; }
  1594. fi
  1595. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1596. fi
  1597. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1598. echo "${ECHO_T}$ac_cv_objext" >&6
  1599. OBJEXT=$ac_cv_objext
  1600. ac_objext=$OBJEXT
  1601. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1602. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1603. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1604. echo $ECHO_N "(cached) $ECHO_C" >&6
  1605. else
  1606. cat >conftest.$ac_ext <<_ACEOF
  1607. #line $LINENO "configure"
  1608. /* confdefs.h. */
  1609. _ACEOF
  1610. cat confdefs.h >>conftest.$ac_ext
  1611. cat >>conftest.$ac_ext <<_ACEOF
  1612. /* end confdefs.h. */
  1613. int
  1614. main ()
  1615. {
  1616. #ifndef __GNUC__
  1617. choke me
  1618. #endif
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. rm -f conftest.$ac_objext
  1624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1625. (eval $ac_compile) 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); } &&
  1629. { ac_try='test -s conftest.$ac_objext'
  1630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1631. (eval $ac_try) 2>&5
  1632. ac_status=$?
  1633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1634. (exit $ac_status); }; }; then
  1635. ac_compiler_gnu=yes
  1636. else
  1637. echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. ac_compiler_gnu=no
  1640. fi
  1641. rm -f conftest.$ac_objext conftest.$ac_ext
  1642. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1643. fi
  1644. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1645. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1646. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1647. ac_test_CFLAGS=${CFLAGS+set}
  1648. ac_save_CFLAGS=$CFLAGS
  1649. CFLAGS="-g"
  1650. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1651. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1652. if test "${ac_cv_prog_cc_g+set}" = set; then
  1653. echo $ECHO_N "(cached) $ECHO_C" >&6
  1654. else
  1655. cat >conftest.$ac_ext <<_ACEOF
  1656. #line $LINENO "configure"
  1657. /* confdefs.h. */
  1658. _ACEOF
  1659. cat confdefs.h >>conftest.$ac_ext
  1660. cat >>conftest.$ac_ext <<_ACEOF
  1661. /* end confdefs.h. */
  1662. int
  1663. main ()
  1664. {
  1665. ;
  1666. return 0;
  1667. }
  1668. _ACEOF
  1669. rm -f conftest.$ac_objext
  1670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1671. (eval $ac_compile) 2>&5
  1672. ac_status=$?
  1673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1674. (exit $ac_status); } &&
  1675. { ac_try='test -s conftest.$ac_objext'
  1676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1677. (eval $ac_try) 2>&5
  1678. ac_status=$?
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); }; }; then
  1681. ac_cv_prog_cc_g=yes
  1682. else
  1683. echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_cv_prog_cc_g=no
  1686. fi
  1687. rm -f conftest.$ac_objext conftest.$ac_ext
  1688. fi
  1689. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1690. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1691. if test "$ac_test_CFLAGS" = set; then
  1692. CFLAGS=$ac_save_CFLAGS
  1693. elif test $ac_cv_prog_cc_g = yes; then
  1694. if test "$GCC" = yes; then
  1695. CFLAGS="-g -O2"
  1696. else
  1697. CFLAGS="-g"
  1698. fi
  1699. else
  1700. if test "$GCC" = yes; then
  1701. CFLAGS="-O2"
  1702. else
  1703. CFLAGS=
  1704. fi
  1705. fi
  1706. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1707. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1708. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1709. echo $ECHO_N "(cached) $ECHO_C" >&6
  1710. else
  1711. ac_cv_prog_cc_stdc=no
  1712. ac_save_CC=$CC
  1713. cat >conftest.$ac_ext <<_ACEOF
  1714. #line $LINENO "configure"
  1715. /* confdefs.h. */
  1716. _ACEOF
  1717. cat confdefs.h >>conftest.$ac_ext
  1718. cat >>conftest.$ac_ext <<_ACEOF
  1719. /* end confdefs.h. */
  1720. #include <stdarg.h>
  1721. #include <stdio.h>
  1722. #include <sys/types.h>
  1723. #include <sys/stat.h>
  1724. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1725. struct buf { int x; };
  1726. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1727. static char *e (p, i)
  1728. char **p;
  1729. int i;
  1730. {
  1731. return p[i];
  1732. }
  1733. static char *f (char * (*g) (char **, int), char **p, ...)
  1734. {
  1735. char *s;
  1736. va_list v;
  1737. va_start (v,p);
  1738. s = g (p, va_arg (v,int));
  1739. va_end (v);
  1740. return s;
  1741. }
  1742. int test (int i, double x);
  1743. struct s1 {int (*f) (int a);};
  1744. struct s2 {int (*f) (double a);};
  1745. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1746. int argc;
  1747. char **argv;
  1748. int
  1749. main ()
  1750. {
  1751. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. # Don't try gcc -ansi; that turns off useful extensions and
  1757. # breaks some systems' header files.
  1758. # AIX -qlanglvl=ansi
  1759. # Ultrix and OSF/1 -std1
  1760. # HP-UX 10.20 and later -Ae
  1761. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1762. # SVR4 -Xc -D__EXTENSIONS__
  1763. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1764. do
  1765. CC="$ac_save_CC $ac_arg"
  1766. rm -f conftest.$ac_objext
  1767. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1768. (eval $ac_compile) 2>&5
  1769. ac_status=$?
  1770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1771. (exit $ac_status); } &&
  1772. { ac_try='test -s conftest.$ac_objext'
  1773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1774. (eval $ac_try) 2>&5
  1775. ac_status=$?
  1776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1777. (exit $ac_status); }; }; then
  1778. ac_cv_prog_cc_stdc=$ac_arg
  1779. break
  1780. else
  1781. echo "$as_me: failed program was:" >&5
  1782. sed 's/^/| /' conftest.$ac_ext >&5
  1783. fi
  1784. rm -f conftest.$ac_objext
  1785. done
  1786. rm -f conftest.$ac_ext conftest.$ac_objext
  1787. CC=$ac_save_CC
  1788. fi
  1789. case "x$ac_cv_prog_cc_stdc" in
  1790. x|xno)
  1791. echo "$as_me:$LINENO: result: none needed" >&5
  1792. echo "${ECHO_T}none needed" >&6 ;;
  1793. *)
  1794. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1795. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1796. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1797. esac
  1798. # Some people use a C++ compiler to compile C. Since we use `exit',
  1799. # in C++ we need to declare it. In case someone uses the same compiler
  1800. # for both compiling C and C++ we need to have the C++ compiler decide
  1801. # the declaration of exit, since it's the most demanding environment.
  1802. cat >conftest.$ac_ext <<_ACEOF
  1803. #ifndef __cplusplus
  1804. choke me
  1805. #endif
  1806. _ACEOF
  1807. rm -f conftest.$ac_objext
  1808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1809. (eval $ac_compile) 2>&5
  1810. ac_status=$?
  1811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1812. (exit $ac_status); } &&
  1813. { ac_try='test -s conftest.$ac_objext'
  1814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1815. (eval $ac_try) 2>&5
  1816. ac_status=$?
  1817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1818. (exit $ac_status); }; }; then
  1819. for ac_declaration in \
  1820. ''\
  1821. '#include <stdlib.h>' \
  1822. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1823. 'extern "C" void std::exit (int); using std::exit;' \
  1824. 'extern "C" void exit (int) throw ();' \
  1825. 'extern "C" void exit (int);' \
  1826. 'void exit (int);'
  1827. do
  1828. cat >conftest.$ac_ext <<_ACEOF
  1829. #line $LINENO "configure"
  1830. /* confdefs.h. */
  1831. _ACEOF
  1832. cat confdefs.h >>conftest.$ac_ext
  1833. cat >>conftest.$ac_ext <<_ACEOF
  1834. /* end confdefs.h. */
  1835. #include <stdlib.h>
  1836. $ac_declaration
  1837. int
  1838. main ()
  1839. {
  1840. exit (42);
  1841. ;
  1842. return 0;
  1843. }
  1844. _ACEOF
  1845. rm -f conftest.$ac_objext
  1846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1847. (eval $ac_compile) 2>&5
  1848. ac_status=$?
  1849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1850. (exit $ac_status); } &&
  1851. { ac_try='test -s conftest.$ac_objext'
  1852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1853. (eval $ac_try) 2>&5
  1854. ac_status=$?
  1855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1856. (exit $ac_status); }; }; then
  1857. :
  1858. else
  1859. echo "$as_me: failed program was:" >&5
  1860. sed 's/^/| /' conftest.$ac_ext >&5
  1861. continue
  1862. fi
  1863. rm -f conftest.$ac_objext conftest.$ac_ext
  1864. cat >conftest.$ac_ext <<_ACEOF
  1865. #line $LINENO "configure"
  1866. /* confdefs.h. */
  1867. _ACEOF
  1868. cat confdefs.h >>conftest.$ac_ext
  1869. cat >>conftest.$ac_ext <<_ACEOF
  1870. /* end confdefs.h. */
  1871. $ac_declaration
  1872. int
  1873. main ()
  1874. {
  1875. exit (42);
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. rm -f conftest.$ac_objext
  1881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1882. (eval $ac_compile) 2>&5
  1883. ac_status=$?
  1884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1885. (exit $ac_status); } &&
  1886. { ac_try='test -s conftest.$ac_objext'
  1887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1888. (eval $ac_try) 2>&5
  1889. ac_status=$?
  1890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1891. (exit $ac_status); }; }; then
  1892. break
  1893. else
  1894. echo "$as_me: failed program was:" >&5
  1895. sed 's/^/| /' conftest.$ac_ext >&5
  1896. fi
  1897. rm -f conftest.$ac_objext conftest.$ac_ext
  1898. done
  1899. rm -f conftest*
  1900. if test -n "$ac_declaration"; then
  1901. echo '#ifdef __cplusplus' >>confdefs.h
  1902. echo $ac_declaration >>confdefs.h
  1903. echo '#endif' >>confdefs.h
  1904. fi
  1905. else
  1906. echo "$as_me: failed program was:" >&5
  1907. sed 's/^/| /' conftest.$ac_ext >&5
  1908. fi
  1909. rm -f conftest.$ac_objext conftest.$ac_ext
  1910. ac_ext=c
  1911. ac_cpp='$CPP $CPPFLAGS'
  1912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1915. ac_ext=c
  1916. ac_cpp='$CPP $CPPFLAGS'
  1917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1920. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  1921. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1922. # On Suns, sometimes $CPP names a directory.
  1923. if test -n "$CPP" && test -d "$CPP"; then
  1924. CPP=
  1925. fi
  1926. if test -z "$CPP"; then
  1927. if test "${ac_cv_prog_CPP+set}" = set; then
  1928. echo $ECHO_N "(cached) $ECHO_C" >&6
  1929. else
  1930. # Double quotes because CPP needs to be expanded
  1931. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1932. do
  1933. ac_preproc_ok=false
  1934. for ac_c_preproc_warn_flag in '' yes
  1935. do
  1936. # Use a header file that comes with gcc, so configuring glibc
  1937. # with a fresh cross-compiler works.
  1938. # On the NeXT, cc -E runs the code through the compiler's parser,
  1939. # not just through cpp. "Syntax error" is here to catch this case.
  1940. cat >conftest.$ac_ext <<_ACEOF
  1941. #line $LINENO "configure"
  1942. /* confdefs.h. */
  1943. _ACEOF
  1944. cat confdefs.h >>conftest.$ac_ext
  1945. cat >>conftest.$ac_ext <<_ACEOF
  1946. /* end confdefs.h. */
  1947. #include <assert.h>
  1948. Syntax error
  1949. _ACEOF
  1950. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1951. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1952. ac_status=$?
  1953. grep -v '^ *+' conftest.er1 >conftest.err
  1954. rm -f conftest.er1
  1955. cat conftest.err >&5
  1956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1957. (exit $ac_status); } >/dev/null; then
  1958. if test -s conftest.err; then
  1959. ac_cpp_err=$ac_c_preproc_warn_flag
  1960. else
  1961. ac_cpp_err=
  1962. fi
  1963. else
  1964. ac_cpp_err=yes
  1965. fi
  1966. if test -z "$ac_cpp_err"; then
  1967. :
  1968. else
  1969. echo "$as_me: failed program was:" >&5
  1970. sed 's/^/| /' conftest.$ac_ext >&5
  1971. # Broken: fails on valid input.
  1972. continue
  1973. fi
  1974. rm -f conftest.err conftest.$ac_ext
  1975. # OK, works on sane cases. Now check whether non-existent headers
  1976. # can be detected and how.
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. #line $LINENO "configure"
  1979. /* confdefs.h. */
  1980. _ACEOF
  1981. cat confdefs.h >>conftest.$ac_ext
  1982. cat >>conftest.$ac_ext <<_ACEOF
  1983. /* end confdefs.h. */
  1984. #include <ac_nonexistent.h>
  1985. _ACEOF
  1986. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1987. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1988. ac_status=$?
  1989. grep -v '^ *+' conftest.er1 >conftest.err
  1990. rm -f conftest.er1
  1991. cat conftest.err >&5
  1992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1993. (exit $ac_status); } >/dev/null; then
  1994. if test -s conftest.err; then
  1995. ac_cpp_err=$ac_c_preproc_warn_flag
  1996. else
  1997. ac_cpp_err=
  1998. fi
  1999. else
  2000. ac_cpp_err=yes
  2001. fi
  2002. if test -z "$ac_cpp_err"; then
  2003. # Broken: success on invalid input.
  2004. continue
  2005. else
  2006. echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. # Passes both tests.
  2009. ac_preproc_ok=:
  2010. break
  2011. fi
  2012. rm -f conftest.err conftest.$ac_ext
  2013. done
  2014. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2015. rm -f conftest.err conftest.$ac_ext
  2016. if $ac_preproc_ok; then
  2017. break
  2018. fi
  2019. done
  2020. ac_cv_prog_CPP=$CPP
  2021. fi
  2022. CPP=$ac_cv_prog_CPP
  2023. else
  2024. ac_cv_prog_CPP=$CPP
  2025. fi
  2026. echo "$as_me:$LINENO: result: $CPP" >&5
  2027. echo "${ECHO_T}$CPP" >&6
  2028. ac_preproc_ok=false
  2029. for ac_c_preproc_warn_flag in '' yes
  2030. do
  2031. # Use a header file that comes with gcc, so configuring glibc
  2032. # with a fresh cross-compiler works.
  2033. # On the NeXT, cc -E runs the code through the compiler's parser,
  2034. # not just through cpp. "Syntax error" is here to catch this case.
  2035. cat >conftest.$ac_ext <<_ACEOF
  2036. #line $LINENO "configure"
  2037. /* confdefs.h. */
  2038. _ACEOF
  2039. cat confdefs.h >>conftest.$ac_ext
  2040. cat >>conftest.$ac_ext <<_ACEOF
  2041. /* end confdefs.h. */
  2042. #include <assert.h>
  2043. Syntax error
  2044. _ACEOF
  2045. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2046. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2047. ac_status=$?
  2048. grep -v '^ *+' conftest.er1 >conftest.err
  2049. rm -f conftest.er1
  2050. cat conftest.err >&5
  2051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2052. (exit $ac_status); } >/dev/null; then
  2053. if test -s conftest.err; then
  2054. ac_cpp_err=$ac_c_preproc_warn_flag
  2055. else
  2056. ac_cpp_err=
  2057. fi
  2058. else
  2059. ac_cpp_err=yes
  2060. fi
  2061. if test -z "$ac_cpp_err"; then
  2062. :
  2063. else
  2064. echo "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. # Broken: fails on valid input.
  2067. continue
  2068. fi
  2069. rm -f conftest.err conftest.$ac_ext
  2070. # OK, works on sane cases. Now check whether non-existent headers
  2071. # can be detected and how.
  2072. cat >conftest.$ac_ext <<_ACEOF
  2073. #line $LINENO "configure"
  2074. /* confdefs.h. */
  2075. _ACEOF
  2076. cat confdefs.h >>conftest.$ac_ext
  2077. cat >>conftest.$ac_ext <<_ACEOF
  2078. /* end confdefs.h. */
  2079. #include <ac_nonexistent.h>
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. else
  2092. ac_cpp_err=
  2093. fi
  2094. else
  2095. ac_cpp_err=yes
  2096. fi
  2097. if test -z "$ac_cpp_err"; then
  2098. # Broken: success on invalid input.
  2099. continue
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Passes both tests.
  2104. ac_preproc_ok=:
  2105. break
  2106. fi
  2107. rm -f conftest.err conftest.$ac_ext
  2108. done
  2109. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2110. rm -f conftest.err conftest.$ac_ext
  2111. if $ac_preproc_ok; then
  2112. :
  2113. else
  2114. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2115. See \`config.log' for more details." >&5
  2116. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2117. See \`config.log' for more details." >&2;}
  2118. { (exit 1); exit 1; }; }
  2119. fi
  2120. ac_ext=c
  2121. ac_cpp='$CPP $CPPFLAGS'
  2122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2125. echo "$as_me:$LINENO: checking for compilation debug mode" >&5
  2126. echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6
  2127. # Check whether --enable-debug or --disable-debug was given.
  2128. if test "${enable_debug+set}" = set; then
  2129. enableval="$enable_debug"
  2130. x="enabled"
  2131. CFLAGS="-Wall -g -ggdb3"
  2132. LDFLAGS="-g -ggdb3"
  2133. debug=on
  2134. else
  2135. x=disabled
  2136. CFLAGS="-O2"
  2137. LDFLAGS=""
  2138. debug=off
  2139. fi;
  2140. echo "$as_me:$LINENO: result: $x" >&5
  2141. echo "${ECHO_T}$x" >&6
  2142. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2143. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2144. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  2145. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2146. echo $ECHO_N "(cached) $ECHO_C" >&6
  2147. else
  2148. cat >conftest.make <<\_ACEOF
  2149. all:
  2150. @echo 'ac_maketemp="$(MAKE)"'
  2151. _ACEOF
  2152. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2153. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2154. if test -n "$ac_maketemp"; then
  2155. eval ac_cv_prog_make_${ac_make}_set=yes
  2156. else
  2157. eval ac_cv_prog_make_${ac_make}_set=no
  2158. fi
  2159. rm -f conftest.make
  2160. fi
  2161. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2162. echo "$as_me:$LINENO: result: yes" >&5
  2163. echo "${ECHO_T}yes" >&6
  2164. SET_MAKE=
  2165. else
  2166. echo "$as_me:$LINENO: result: no" >&5
  2167. echo "${ECHO_T}no" >&6
  2168. SET_MAKE="MAKE=${MAKE-make}"
  2169. fi
  2170. echo "$as_me:$LINENO: result: " >&5
  2171. echo "${ECHO_T}" >&6
  2172. echo "$as_me:$LINENO: result: ${T_MD}CHECK: Curses Environment${T_ME}" >&5
  2173. echo "${ECHO_T}${T_MD}CHECK: Curses Environment${T_ME}" >&6
  2174. echo "$as_me:$LINENO: checking for additional include dir" >&5
  2175. echo $ECHO_N "checking for additional include dir... $ECHO_C" >&6
  2176. # Check whether --with-incdir or --without-incdir was given.
  2177. if test "${with_incdir+set}" = set; then
  2178. withval="$with_incdir"
  2179. CFLAGS="$CFLAGS -I$with_incdir"
  2180. CPPFLAGS="$CPPFLAGS -I$with_incdir"
  2181. x="$with_incdir"
  2182. else
  2183. x="none particular"
  2184. fi; echo "$as_me:$LINENO: result: $x" >&5
  2185. echo "${ECHO_T}$x" >&6
  2186. echo "$as_me:$LINENO: checking for additional library dir" >&5
  2187. echo $ECHO_N "checking for additional library dir... $ECHO_C" >&6
  2188. # Check whether --with-libdir or --without-libdir was given.
  2189. if test "${with_libdir+set}" = set; then
  2190. withval="$with_libdir"
  2191. LDFLAGS="$LDFLAGS -L$with_libdir"
  2192. x="$with_libdir"
  2193. else
  2194. x="none particular"
  2195. fi; echo "$as_me:$LINENO: result: $x" >&5
  2196. echo "${ECHO_T}$x" >&6
  2197. echo "$as_me:$LINENO: checking for egrep" >&5
  2198. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2199. if test "${ac_cv_prog_egrep+set}" = set; then
  2200. echo $ECHO_N "(cached) $ECHO_C" >&6
  2201. else
  2202. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2203. then ac_cv_prog_egrep='grep -E'
  2204. else ac_cv_prog_egrep='egrep'
  2205. fi
  2206. fi
  2207. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2208. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2209. EGREP=$ac_cv_prog_egrep
  2210. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2211. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2212. if test "${ac_cv_header_stdc+set}" = set; then
  2213. echo $ECHO_N "(cached) $ECHO_C" >&6
  2214. else
  2215. cat >conftest.$ac_ext <<_ACEOF
  2216. #line $LINENO "configure"
  2217. /* confdefs.h. */
  2218. _ACEOF
  2219. cat confdefs.h >>conftest.$ac_ext
  2220. cat >>conftest.$ac_ext <<_ACEOF
  2221. /* end confdefs.h. */
  2222. #include <stdlib.h>
  2223. #include <stdarg.h>
  2224. #include <string.h>
  2225. #include <float.h>
  2226. int
  2227. main ()
  2228. {
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. rm -f conftest.$ac_objext
  2234. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2235. (eval $ac_compile) 2>&5
  2236. ac_status=$?
  2237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2238. (exit $ac_status); } &&
  2239. { ac_try='test -s conftest.$ac_objext'
  2240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2241. (eval $ac_try) 2>&5
  2242. ac_status=$?
  2243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2244. (exit $ac_status); }; }; then
  2245. ac_cv_header_stdc=yes
  2246. else
  2247. echo "$as_me: failed program was:" >&5
  2248. sed 's/^/| /' conftest.$ac_ext >&5
  2249. ac_cv_header_stdc=no
  2250. fi
  2251. rm -f conftest.$ac_objext conftest.$ac_ext
  2252. if test $ac_cv_header_stdc = yes; then
  2253. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2254. cat >conftest.$ac_ext <<_ACEOF
  2255. #line $LINENO "configure"
  2256. /* confdefs.h. */
  2257. _ACEOF
  2258. cat confdefs.h >>conftest.$ac_ext
  2259. cat >>conftest.$ac_ext <<_ACEOF
  2260. /* end confdefs.h. */
  2261. #include <string.h>
  2262. _ACEOF
  2263. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2264. $EGREP "memchr" >/dev/null 2>&1; then
  2265. :
  2266. else
  2267. ac_cv_header_stdc=no
  2268. fi
  2269. rm -f conftest*
  2270. fi
  2271. if test $ac_cv_header_stdc = yes; then
  2272. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. #line $LINENO "configure"
  2275. /* confdefs.h. */
  2276. _ACEOF
  2277. cat confdefs.h >>conftest.$ac_ext
  2278. cat >>conftest.$ac_ext <<_ACEOF
  2279. /* end confdefs.h. */
  2280. #include <stdlib.h>
  2281. _ACEOF
  2282. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2283. $EGREP "free" >/dev/null 2>&1; then
  2284. :
  2285. else
  2286. ac_cv_header_stdc=no
  2287. fi
  2288. rm -f conftest*
  2289. fi
  2290. if test $ac_cv_header_stdc = yes; then
  2291. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2292. if test "$cross_compiling" = yes; then
  2293. :
  2294. else
  2295. cat >conftest.$ac_ext <<_ACEOF
  2296. #line $LINENO "configure"
  2297. /* confdefs.h. */
  2298. _ACEOF
  2299. cat confdefs.h >>conftest.$ac_ext
  2300. cat >>conftest.$ac_ext <<_ACEOF
  2301. /* end confdefs.h. */
  2302. #include <ctype.h>
  2303. #if ((' ' & 0x0FF) == 0x020)
  2304. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2305. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2306. #else
  2307. # define ISLOWER(c) \
  2308. (('a' <= (c) && (c) <= 'i') \
  2309. || ('j' <= (c) && (c) <= 'r') \
  2310. || ('s' <= (c) && (c) <= 'z'))
  2311. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2312. #endif
  2313. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2314. int
  2315. main ()
  2316. {
  2317. int i;
  2318. for (i = 0; i < 256; i++)
  2319. if (XOR (islower (i), ISLOWER (i))
  2320. || toupper (i) != TOUPPER (i))
  2321. exit(2);
  2322. exit (0);
  2323. }
  2324. _ACEOF
  2325. rm -f conftest$ac_exeext
  2326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2327. (eval $ac_link) 2>&5
  2328. ac_status=$?
  2329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2330. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2332. (eval $ac_try) 2>&5
  2333. ac_status=$?
  2334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2335. (exit $ac_status); }; }; then
  2336. :
  2337. else
  2338. echo "$as_me: program exited with status $ac_status" >&5
  2339. echo "$as_me: failed program was:" >&5
  2340. sed 's/^/| /' conftest.$ac_ext >&5
  2341. ( exit $ac_status )
  2342. ac_cv_header_stdc=no
  2343. fi
  2344. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2345. fi
  2346. fi
  2347. fi
  2348. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2349. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2350. if test $ac_cv_header_stdc = yes; then
  2351. cat >>confdefs.h <<\_ACEOF
  2352. #define STDC_HEADERS 1
  2353. _ACEOF
  2354. fi
  2355. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2356. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2357. inttypes.h stdint.h unistd.h
  2358. do
  2359. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2360. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2361. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2362. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2363. echo $ECHO_N "(cached) $ECHO_C" >&6
  2364. else
  2365. cat >conftest.$ac_ext <<_ACEOF
  2366. #line $LINENO "configure"
  2367. /* confdefs.h. */
  2368. _ACEOF
  2369. cat confdefs.h >>conftest.$ac_ext
  2370. cat >>conftest.$ac_ext <<_ACEOF
  2371. /* end confdefs.h. */
  2372. $ac_includes_default
  2373. #include <$ac_header>
  2374. _ACEOF
  2375. rm -f conftest.$ac_objext
  2376. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2377. (eval $ac_compile) 2>&5
  2378. ac_status=$?
  2379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2380. (exit $ac_status); } &&
  2381. { ac_try='test -s conftest.$ac_objext'
  2382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2383. (eval $ac_try) 2>&5
  2384. ac_status=$?
  2385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. (exit $ac_status); }; }; then
  2387. eval "$as_ac_Header=yes"
  2388. else
  2389. echo "$as_me: failed program was:" >&5
  2390. sed 's/^/| /' conftest.$ac_ext >&5
  2391. eval "$as_ac_Header=no"
  2392. fi
  2393. rm -f conftest.$ac_objext conftest.$ac_ext
  2394. fi
  2395. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2396. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2397. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2398. cat >>confdefs.h <<_ACEOF
  2399. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2400. _ACEOF
  2401. fi
  2402. done
  2403. if test "${ac_cv_header_ncurses_h+set}" = set; then
  2404. echo "$as_me:$LINENO: checking for ncurses.h" >&5
  2405. echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6
  2406. if test "${ac_cv_header_ncurses_h+set}" = set; then
  2407. echo $ECHO_N "(cached) $ECHO_C" >&6
  2408. fi
  2409. echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
  2410. echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6
  2411. else
  2412. # Is the header compilable?
  2413. echo "$as_me:$LINENO: checking ncurses.h usability" >&5
  2414. echo $ECHO_N "checking ncurses.h usability... $ECHO_C" >&6
  2415. cat >conftest.$ac_ext <<_ACEOF
  2416. #line $LINENO "configure"
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. $ac_includes_default
  2423. #include <ncurses.h>
  2424. _ACEOF
  2425. rm -f conftest.$ac_objext
  2426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2427. (eval $ac_compile) 2>&5
  2428. ac_status=$?
  2429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2430. (exit $ac_status); } &&
  2431. { ac_try='test -s conftest.$ac_objext'
  2432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2433. (eval $ac_try) 2>&5
  2434. ac_status=$?
  2435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2436. (exit $ac_status); }; }; then
  2437. ac_header_compiler=yes
  2438. else
  2439. echo "$as_me: failed program was:" >&5
  2440. sed 's/^/| /' conftest.$ac_ext >&5
  2441. ac_header_compiler=no
  2442. fi
  2443. rm -f conftest.$ac_objext conftest.$ac_ext
  2444. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2445. echo "${ECHO_T}$ac_header_compiler" >&6
  2446. # Is the header present?
  2447. echo "$as_me:$LINENO: checking ncurses.h presence" >&5
  2448. echo $ECHO_N "checking ncurses.h presence... $ECHO_C" >&6
  2449. cat >conftest.$ac_ext <<_ACEOF
  2450. #line $LINENO "configure"
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ncurses.h>
  2457. _ACEOF
  2458. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2459. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2460. ac_status=$?
  2461. grep -v '^ *+' conftest.er1 >conftest.err
  2462. rm -f conftest.er1
  2463. cat conftest.err >&5
  2464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2465. (exit $ac_status); } >/dev/null; then
  2466. if test -s conftest.err; then
  2467. ac_cpp_err=$ac_c_preproc_warn_flag
  2468. else
  2469. ac_cpp_err=
  2470. fi
  2471. else
  2472. ac_cpp_err=yes
  2473. fi
  2474. if test -z "$ac_cpp_err"; then
  2475. ac_header_preproc=yes
  2476. else
  2477. echo "$as_me: failed program was:" >&5
  2478. sed 's/^/| /' conftest.$ac_ext >&5
  2479. ac_header_preproc=no
  2480. fi
  2481. rm -f conftest.err conftest.$ac_ext
  2482. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2483. echo "${ECHO_T}$ac_header_preproc" >&6
  2484. # So? What about this header?
  2485. case $ac_header_compiler:$ac_header_preproc in
  2486. yes:no )
  2487. { echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2488. echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2489. { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
  2490. echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
  2491. (
  2492. cat <<\_ASBOX
  2493. ## ------------------------------------ ##
  2494. ## Report this to bug-autoconf@gnu.org. ##
  2495. ## ------------------------------------ ##
  2496. _ASBOX
  2497. ) |
  2498. sed "s/^/$as_me: WARNING: /" >&2
  2499. ;;
  2500. no:yes )
  2501. { echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5
  2502. echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;}
  2503. { echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5
  2504. echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;}
  2505. { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
  2506. echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
  2507. (
  2508. cat <<\_ASBOX
  2509. ## ------------------------------------ ##
  2510. ## Report this to bug-autoconf@gnu.org. ##
  2511. ## ------------------------------------ ##
  2512. _ASBOX
  2513. ) |
  2514. sed "s/^/$as_me: WARNING: /" >&2
  2515. ;;
  2516. esac
  2517. echo "$as_me:$LINENO: checking for ncurses.h" >&5
  2518. echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6
  2519. if test "${ac_cv_header_ncurses_h+set}" = set; then
  2520. echo $ECHO_N "(cached) $ECHO_C" >&6
  2521. else
  2522. ac_cv_header_ncurses_h=$ac_header_preproc
  2523. fi
  2524. echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
  2525. echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6
  2526. fi
  2527. if test $ac_cv_header_ncurses_h = yes; then
  2528. HAVE_NCURSES_HEADER=YES
  2529. else
  2530. HAVE_NCURSES_HEADER=NO
  2531. fi
  2532. echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
  2533. echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
  2534. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
  2535. echo $ECHO_N "(cached) $ECHO_C" >&6
  2536. else
  2537. ac_check_lib_save_LIBS=$LIBS
  2538. LIBS="-lncurses $LIBS"
  2539. cat >conftest.$ac_ext <<_ACEOF
  2540. #line $LINENO "configure"
  2541. /* confdefs.h. */
  2542. _ACEOF
  2543. cat confdefs.h >>conftest.$ac_ext
  2544. cat >>conftest.$ac_ext <<_ACEOF
  2545. /* end confdefs.h. */
  2546. /* Override any gcc2 internal prototype to avoid an error. */
  2547. #ifdef __cplusplus
  2548. extern "C"
  2549. #endif
  2550. /* We use char because int might match the return type of a gcc2
  2551. builtin and then its argument prototype would still apply. */
  2552. char initscr ();
  2553. int
  2554. main ()
  2555. {
  2556. initscr ();
  2557. ;
  2558. return 0;
  2559. }
  2560. _ACEOF
  2561. rm -f conftest.$ac_objext conftest$ac_exeext
  2562. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2563. (eval $ac_link) 2>&5
  2564. ac_status=$?
  2565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2566. (exit $ac_status); } &&
  2567. { ac_try='test -s conftest$ac_exeext'
  2568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2569. (eval $ac_try) 2>&5
  2570. ac_status=$?
  2571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2572. (exit $ac_status); }; }; then
  2573. ac_cv_lib_ncurses_initscr=yes
  2574. else
  2575. echo "$as_me: failed program was:" >&5
  2576. sed 's/^/| /' conftest.$ac_ext >&5
  2577. ac_cv_lib_ncurses_initscr=no
  2578. fi
  2579. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2580. LIBS=$ac_check_lib_save_LIBS
  2581. fi
  2582. echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
  2583. echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
  2584. if test $ac_cv_lib_ncurses_initscr = yes; then
  2585. HAVE_NCURSES_LIB=YES
  2586. else
  2587. HAVE_NCURSES_LIB=NO
  2588. fi
  2589. if test "${ac_cv_header_slcurses_h+set}" = set; then
  2590. echo "$as_me:$LINENO: checking for slcurses.h" >&5
  2591. echo $ECHO_N "checking for slcurses.h... $ECHO_C" >&6
  2592. if test "${ac_cv_header_slcurses_h+set}" = set; then
  2593. echo $ECHO_N "(cached) $ECHO_C" >&6
  2594. fi
  2595. echo "$as_me:$LINENO: result: $ac_cv_header_slcurses_h" >&5
  2596. echo "${ECHO_T}$ac_cv_header_slcurses_h" >&6
  2597. else
  2598. # Is the header compilable?
  2599. echo "$as_me:$LINENO: checking slcurses.h usability" >&5
  2600. echo $ECHO_N "checking slcurses.h usability... $ECHO_C" >&6
  2601. cat >conftest.$ac_ext <<_ACEOF
  2602. #line $LINENO "configure"
  2603. /* confdefs.h. */
  2604. _ACEOF
  2605. cat confdefs.h >>conftest.$ac_ext
  2606. cat >>conftest.$ac_ext <<_ACEOF
  2607. /* end confdefs.h. */
  2608. $ac_includes_default
  2609. #include <slcurses.h>
  2610. _ACEOF
  2611. rm -f conftest.$ac_objext
  2612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2613. (eval $ac_compile) 2>&5
  2614. ac_status=$?
  2615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2616. (exit $ac_status); } &&
  2617. { ac_try='test -s conftest.$ac_objext'
  2618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2619. (eval $ac_try) 2>&5
  2620. ac_status=$?
  2621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2622. (exit $ac_status); }; }; then
  2623. ac_header_compiler=yes
  2624. else
  2625. echo "$as_me: failed program was:" >&5
  2626. sed 's/^/| /' conftest.$ac_ext >&5
  2627. ac_header_compiler=no
  2628. fi
  2629. rm -f conftest.$ac_objext conftest.$ac_ext
  2630. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2631. echo "${ECHO_T}$ac_header_compiler" >&6
  2632. # Is the header present?
  2633. echo "$as_me:$LINENO: checking slcurses.h presence" >&5
  2634. echo $ECHO_N "checking slcurses.h presence... $ECHO_C" >&6
  2635. cat >conftest.$ac_ext <<_ACEOF
  2636. #line $LINENO "configure"
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. #include <slcurses.h>
  2643. _ACEOF
  2644. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2645. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2646. ac_status=$?
  2647. grep -v '^ *+' conftest.er1 >conftest.err
  2648. rm -f conftest.er1
  2649. cat conftest.err >&5
  2650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2651. (exit $ac_status); } >/dev/null; then
  2652. if test -s conftest.err; then
  2653. ac_cpp_err=$ac_c_preproc_warn_flag
  2654. else
  2655. ac_cpp_err=
  2656. fi
  2657. else
  2658. ac_cpp_err=yes
  2659. fi
  2660. if test -z "$ac_cpp_err"; then
  2661. ac_header_preproc=yes
  2662. else
  2663. echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_header_preproc=no
  2666. fi
  2667. rm -f conftest.err conftest.$ac_ext
  2668. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2669. echo "${ECHO_T}$ac_header_preproc" >&6
  2670. # So? What about this header?
  2671. case $ac_header_compiler:$ac_header_preproc in
  2672. yes:no )
  2673. { echo "$as_me:$LINENO: WARNING: slcurses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2674. echo "$as_me: WARNING: slcurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: slcurses.h: proceeding with the preprocessor's result" >&5
  2676. echo "$as_me: WARNING: slcurses.h: proceeding with the preprocessor's result" >&2;}
  2677. (
  2678. cat <<\_ASBOX
  2679. ## ------------------------------------ ##
  2680. ## Report this to bug-autoconf@gnu.org. ##
  2681. ## ------------------------------------ ##
  2682. _ASBOX
  2683. ) |
  2684. sed "s/^/$as_me: WARNING: /" >&2
  2685. ;;
  2686. no:yes )
  2687. { echo "$as_me:$LINENO: WARNING: slcurses.h: present but cannot be compiled" >&5
  2688. echo "$as_me: WARNING: slcurses.h: present but cannot be compiled" >&2;}
  2689. { echo "$as_me:$LINENO: WARNING: slcurses.h: check for missing prerequisite headers?" >&5
  2690. echo "$as_me: WARNING: slcurses.h: check for missing prerequisite headers?" >&2;}
  2691. { echo "$as_me:$LINENO: WARNING: slcurses.h: proceeding with the preprocessor's result" >&5
  2692. echo "$as_me: WARNING: slcurses.h: proceeding with the preprocessor's result" >&2;}
  2693. (
  2694. cat <<\_ASBOX
  2695. ## ------------------------------------ ##
  2696. ## Report this to bug-autoconf@gnu.org. ##
  2697. ## ------------------------------------ ##
  2698. _ASBOX
  2699. ) |
  2700. sed "s/^/$as_me: WARNING: /" >&2
  2701. ;;
  2702. esac
  2703. echo "$as_me:$LINENO: checking for slcurses.h" >&5
  2704. echo $ECHO_N "checking for slcurses.h... $ECHO_C" >&6
  2705. if test "${ac_cv_header_slcurses_h+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. ac_cv_header_slcurses_h=$ac_header_preproc
  2709. fi
  2710. echo "$as_me:$LINENO: result: $ac_cv_header_slcurses_h" >&5
  2711. echo "${ECHO_T}$ac_cv_header_slcurses_h" >&6
  2712. fi
  2713. if test $ac_cv_header_slcurses_h = yes; then
  2714. HAVE_SLCURSES_HEADER=YES
  2715. else
  2716. HAVE_SLCURSES_HEADER=NO
  2717. fi
  2718. OLIBS=$LIBS
  2719. LIBS="$LIBS -ltermcap"
  2720. echo "$as_me:$LINENO: checking for SLcurses_initscr in -lslang" >&5
  2721. echo $ECHO_N "checking for SLcurses_initscr in -lslang... $ECHO_C" >&6
  2722. if test "${ac_cv_lib_slang_SLcurses_initscr+set}" = set; then
  2723. echo $ECHO_N "(cached) $ECHO_C" >&6
  2724. else
  2725. ac_check_lib_save_LIBS=$LIBS
  2726. LIBS="-lslang $LIBS"
  2727. cat >conftest.$ac_ext <<_ACEOF
  2728. #line $LINENO "configure"
  2729. /* confdefs.h. */
  2730. _ACEOF
  2731. cat confdefs.h >>conftest.$ac_ext
  2732. cat >>conftest.$ac_ext <<_ACEOF
  2733. /* end confdefs.h. */
  2734. /* Override any gcc2 internal prototype to avoid an error. */
  2735. #ifdef __cplusplus
  2736. extern "C"
  2737. #endif
  2738. /* We use char because int might match the return type of a gcc2
  2739. builtin and then its argument prototype would still apply. */
  2740. char SLcurses_initscr ();
  2741. int
  2742. main ()
  2743. {
  2744. SLcurses_initscr ();
  2745. ;
  2746. return 0;
  2747. }
  2748. _ACEOF
  2749. rm -f conftest.$ac_objext conftest$ac_exeext
  2750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2751. (eval $ac_link) 2>&5
  2752. ac_status=$?
  2753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2754. (exit $ac_status); } &&
  2755. { ac_try='test -s conftest$ac_exeext'
  2756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2757. (eval $ac_try) 2>&5
  2758. ac_status=$?
  2759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2760. (exit $ac_status); }; }; then
  2761. ac_cv_lib_slang_SLcurses_initscr=yes
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. ac_cv_lib_slang_SLcurses_initscr=no
  2766. fi
  2767. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2768. LIBS=$ac_check_lib_save_LIBS
  2769. fi
  2770. echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLcurses_initscr" >&5
  2771. echo "${ECHO_T}$ac_cv_lib_slang_SLcurses_initscr" >&6
  2772. if test $ac_cv_lib_slang_SLcurses_initscr = yes; then
  2773. HAVE_SLCURSES_LIB=YES
  2774. else
  2775. HAVE_SLCURSES_LIB=NO
  2776. fi
  2777. LIBS=$OLIBS
  2778. if test ".$HAVE_NCURSES_HEADER.$HAVE_NCURSES_LIB." = .YES.YES.; then
  2779. USE_NCURSES=YES
  2780. cat >>confdefs.h <<\_ACEOF
  2781. #define USE_NCURSES 1
  2782. _ACEOF
  2783. LIBS="$LIBS -lncurses"
  2784. echo "$as_me:$LINENO: checking which Curses to use" >&5
  2785. echo $ECHO_N "checking which Curses to use... $ECHO_C" >&6
  2786. echo "$as_me:$LINENO: result: GNU NCurses" >&5
  2787. echo "${ECHO_T}GNU NCurses" >&6
  2788. else
  2789. if test ".$HAVE_SLCURSES_HEADER.$HAVE_SLCURSES_LIB." = .YES.YES.; then
  2790. USE_SLCURSES=YES
  2791. cat >>confdefs.h <<\_ACEOF
  2792. #define USE_SLCURSES 1
  2793. _ACEOF
  2794. LIBS="$LIBS -lslang -ltermcap"
  2795. echo "$as_me:$LINENO: checking which Curses to use" >&5
  2796. echo $ECHO_N "checking which Curses to use... $ECHO_C" >&6
  2797. echo "$as_me:$LINENO: result: S-Lang Curses" >&5
  2798. echo "${ECHO_T}S-Lang Curses" >&6
  2799. else
  2800. USE_CURSES=YES
  2801. cat >>confdefs.h <<\_ACEOF
  2802. #define USE_CURSES 1
  2803. _ACEOF
  2804. LIBS="$LIBS -lcurses"
  2805. echo "$as_me:$LINENO: checking which Curses to use" >&5
  2806. echo $ECHO_N "checking which Curses to use... $ECHO_C" >&6
  2807. echo "$as_me:$LINENO: result: Vendor Curses" >&5
  2808. echo "${ECHO_T}Vendor Curses" >&6
  2809. fi
  2810. fi
  2811. echo "$as_me:$LINENO: result: " >&5
  2812. echo "${ECHO_T}" >&6
  2813. echo "$as_me:$LINENO: result: ${T_MD}CHECK: System Ingredients${T_ME}" >&5
  2814. echo "${ECHO_T}${T_MD}CHECK: System Ingredients${T_ME}" >&6
  2815. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2816. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2817. if test "${ac_cv_c_const+set}" = set; then
  2818. echo $ECHO_N "(cached) $ECHO_C" >&6
  2819. else
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. #line $LINENO "configure"
  2822. /* confdefs.h. */
  2823. _ACEOF
  2824. cat confdefs.h >>conftest.$ac_ext
  2825. cat >>conftest.$ac_ext <<_ACEOF
  2826. /* end confdefs.h. */
  2827. int
  2828. main ()
  2829. {
  2830. /* FIXME: Include the comments suggested by Paul. */
  2831. #ifndef __cplusplus
  2832. /* Ultrix mips cc rejects this. */
  2833. typedef int charset[2];
  2834. const charset x;
  2835. /* SunOS 4.1.1 cc rejects this. */
  2836. char const *const *ccp;
  2837. char **p;
  2838. /* NEC SVR4.0.2 mips cc rejects this. */
  2839. struct point {int x, y;};
  2840. static struct point const zero = {0,0};
  2841. /* AIX XL C 1.02.0.0 rejects this.
  2842. It does not let you subtract one const X* pointer from another in
  2843. an arm of an if-expression whose if-part is not a constant
  2844. expression */
  2845. const char *g = "string";
  2846. ccp = &g + (g ? g-g : 0);
  2847. /* HPUX 7.0 cc rejects these. */
  2848. ++ccp;
  2849. p = (char**) ccp;
  2850. ccp = (char const *const *) p;
  2851. { /* SCO 3.2v4 cc rejects this. */
  2852. char *t;
  2853. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2854. *t++ = 0;
  2855. }
  2856. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2857. int x[] = {25, 17};
  2858. const int *foo = &x[0];
  2859. ++foo;
  2860. }
  2861. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2862. typedef const int *iptr;
  2863. iptr p = 0;
  2864. ++p;
  2865. }
  2866. { /* AIX XL C 1.02.0.0 rejects this saying
  2867. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2868. struct s { int j; const int *ap[3]; };
  2869. struct s *b; b->j = 5;
  2870. }
  2871. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2872. const int foo = 10;
  2873. }
  2874. #endif
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. rm -f conftest.$ac_objext
  2880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2881. (eval $ac_compile) 2>&5
  2882. ac_status=$?
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); } &&
  2885. { ac_try='test -s conftest.$ac_objext'
  2886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2887. (eval $ac_try) 2>&5
  2888. ac_status=$?
  2889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890. (exit $ac_status); }; }; then
  2891. ac_cv_c_const=yes
  2892. else
  2893. echo "$as_me: failed program was:" >&5
  2894. sed 's/^/| /' conftest.$ac_ext >&5
  2895. ac_cv_c_const=no
  2896. fi
  2897. rm -f conftest.$ac_objext conftest.$ac_ext
  2898. fi
  2899. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  2900. echo "${ECHO_T}$ac_cv_c_const" >&6
  2901. if test $ac_cv_c_const = no; then
  2902. cat >>confdefs.h <<\_ACEOF
  2903. #define const
  2904. _ACEOF
  2905. fi
  2906. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2907. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2908. if test "${ac_cv_header_stdc+set}" = set; then
  2909. echo $ECHO_N "(cached) $ECHO_C" >&6
  2910. else
  2911. cat >conftest.$ac_ext <<_ACEOF
  2912. #line $LINENO "configure"
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <stdlib.h>
  2919. #include <stdarg.h>
  2920. #include <string.h>
  2921. #include <float.h>
  2922. int
  2923. main ()
  2924. {
  2925. ;
  2926. return 0;
  2927. }
  2928. _ACEOF
  2929. rm -f conftest.$ac_objext
  2930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2931. (eval $ac_compile) 2>&5
  2932. ac_status=$?
  2933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934. (exit $ac_status); } &&
  2935. { ac_try='test -s conftest.$ac_objext'
  2936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2937. (eval $ac_try) 2>&5
  2938. ac_status=$?
  2939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940. (exit $ac_status); }; }; then
  2941. ac_cv_header_stdc=yes
  2942. else
  2943. echo "$as_me: failed program was:" >&5
  2944. sed 's/^/| /' conftest.$ac_ext >&5
  2945. ac_cv_header_stdc=no
  2946. fi
  2947. rm -f conftest.$ac_objext conftest.$ac_ext
  2948. if test $ac_cv_header_stdc = yes; then
  2949. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2950. cat >conftest.$ac_ext <<_ACEOF
  2951. #line $LINENO "configure"
  2952. /* confdefs.h. */
  2953. _ACEOF
  2954. cat confdefs.h >>conftest.$ac_ext
  2955. cat >>conftest.$ac_ext <<_ACEOF
  2956. /* end confdefs.h. */
  2957. #include <string.h>
  2958. _ACEOF
  2959. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2960. $EGREP "memchr" >/dev/null 2>&1; then
  2961. :
  2962. else
  2963. ac_cv_header_stdc=no
  2964. fi
  2965. rm -f conftest*
  2966. fi
  2967. if test $ac_cv_header_stdc = yes; then
  2968. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2969. cat >conftest.$ac_ext <<_ACEOF
  2970. #line $LINENO "configure"
  2971. /* confdefs.h. */
  2972. _ACEOF
  2973. cat confdefs.h >>conftest.$ac_ext
  2974. cat >>conftest.$ac_ext <<_ACEOF
  2975. /* end confdefs.h. */
  2976. #include <stdlib.h>
  2977. _ACEOF
  2978. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2979. $EGREP "free" >/dev/null 2>&1; then
  2980. :
  2981. else
  2982. ac_cv_header_stdc=no
  2983. fi
  2984. rm -f conftest*
  2985. fi
  2986. if test $ac_cv_header_stdc = yes; then
  2987. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2988. if test "$cross_compiling" = yes; then
  2989. :
  2990. else
  2991. cat >conftest.$ac_ext <<_ACEOF
  2992. #line $LINENO "configure"
  2993. /* confdefs.h. */
  2994. _ACEOF
  2995. cat confdefs.h >>conftest.$ac_ext
  2996. cat >>conftest.$ac_ext <<_ACEOF
  2997. /* end confdefs.h. */
  2998. #include <ctype.h>
  2999. #if ((' ' & 0x0FF) == 0x020)
  3000. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3001. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3002. #else
  3003. # define ISLOWER(c) \
  3004. (('a' <= (c) && (c) <= 'i') \
  3005. || ('j' <= (c) && (c) <= 'r') \
  3006. || ('s' <= (c) && (c) <= 'z'))
  3007. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3008. #endif
  3009. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3010. int
  3011. main ()
  3012. {
  3013. int i;
  3014. for (i = 0; i < 256; i++)
  3015. if (XOR (islower (i), ISLOWER (i))
  3016. || toupper (i) != TOUPPER (i))
  3017. exit(2);
  3018. exit (0);
  3019. }
  3020. _ACEOF
  3021. rm -f conftest$ac_exeext
  3022. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3023. (eval $ac_link) 2>&5
  3024. ac_status=$?
  3025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3026. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3028. (eval $ac_try) 2>&5
  3029. ac_status=$?
  3030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3031. (exit $ac_status); }; }; then
  3032. :
  3033. else
  3034. echo "$as_me: program exited with status $ac_status" >&5
  3035. echo "$as_me: failed program was:" >&5
  3036. sed 's/^/| /' conftest.$ac_ext >&5
  3037. ( exit $ac_status )
  3038. ac_cv_header_stdc=no
  3039. fi
  3040. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3041. fi
  3042. fi
  3043. fi
  3044. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3045. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3046. if test $ac_cv_header_stdc = yes; then
  3047. cat >>confdefs.h <<\_ACEOF
  3048. #define STDC_HEADERS 1
  3049. _ACEOF
  3050. fi
  3051. for ac_header in stdio.h stddef.h string.h strings.h stdlib.h
  3052. do
  3053. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3054. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3055. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3056. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3057. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3058. echo $ECHO_N "(cached) $ECHO_C" >&6
  3059. fi
  3060. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3061. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3062. else
  3063. # Is the header compilable?
  3064. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3065. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3066. cat >conftest.$ac_ext <<_ACEOF
  3067. #line $LINENO "configure"
  3068. /* confdefs.h. */
  3069. _ACEOF
  3070. cat confdefs.h >>conftest.$ac_ext
  3071. cat >>conftest.$ac_ext <<_ACEOF
  3072. /* end confdefs.h. */
  3073. $ac_includes_default
  3074. #include <$ac_header>
  3075. _ACEOF
  3076. rm -f conftest.$ac_objext
  3077. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3078. (eval $ac_compile) 2>&5
  3079. ac_status=$?
  3080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3081. (exit $ac_status); } &&
  3082. { ac_try='test -s conftest.$ac_objext'
  3083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3084. (eval $ac_try) 2>&5
  3085. ac_status=$?
  3086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3087. (exit $ac_status); }; }; then
  3088. ac_header_compiler=yes
  3089. else
  3090. echo "$as_me: failed program was:" >&5
  3091. sed 's/^/| /' conftest.$ac_ext >&5
  3092. ac_header_compiler=no
  3093. fi
  3094. rm -f conftest.$ac_objext conftest.$ac_ext
  3095. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3096. echo "${ECHO_T}$ac_header_compiler" >&6
  3097. # Is the header present?
  3098. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3099. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3100. cat >conftest.$ac_ext <<_ACEOF
  3101. #line $LINENO "configure"
  3102. /* confdefs.h. */
  3103. _ACEOF
  3104. cat confdefs.h >>conftest.$ac_ext
  3105. cat >>conftest.$ac_ext <<_ACEOF
  3106. /* end confdefs.h. */
  3107. #include <$ac_header>
  3108. _ACEOF
  3109. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3110. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3111. ac_status=$?
  3112. grep -v '^ *+' conftest.er1 >conftest.err
  3113. rm -f conftest.er1
  3114. cat conftest.err >&5
  3115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3116. (exit $ac_status); } >/dev/null; then
  3117. if test -s conftest.err; then
  3118. ac_cpp_err=$ac_c_preproc_warn_flag
  3119. else
  3120. ac_cpp_err=
  3121. fi
  3122. else
  3123. ac_cpp_err=yes
  3124. fi
  3125. if test -z "$ac_cpp_err"; then
  3126. ac_header_preproc=yes
  3127. else
  3128. echo "$as_me: failed program was:" >&5
  3129. sed 's/^/| /' conftest.$ac_ext >&5
  3130. ac_header_preproc=no
  3131. fi
  3132. rm -f conftest.err conftest.$ac_ext
  3133. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3134. echo "${ECHO_T}$ac_header_preproc" >&6
  3135. # So? What about this header?
  3136. case $ac_header_compiler:$ac_header_preproc in
  3137. yes:no )
  3138. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3139. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3140. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3141. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3142. (
  3143. cat <<\_ASBOX
  3144. ## ------------------------------------ ##
  3145. ## Report this to bug-autoconf@gnu.org. ##
  3146. ## ------------------------------------ ##
  3147. _ASBOX
  3148. ) |
  3149. sed "s/^/$as_me: WARNING: /" >&2
  3150. ;;
  3151. no:yes )
  3152. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3153. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3154. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3155. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3156. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3157. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3158. (
  3159. cat <<\_ASBOX
  3160. ## ------------------------------------ ##
  3161. ## Report this to bug-autoconf@gnu.org. ##
  3162. ## ------------------------------------ ##
  3163. _ASBOX
  3164. ) |
  3165. sed "s/^/$as_me: WARNING: /" >&2
  3166. ;;
  3167. esac
  3168. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3169. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3170. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3171. echo $ECHO_N "(cached) $ECHO_C" >&6
  3172. else
  3173. eval "$as_ac_Header=$ac_header_preproc"
  3174. fi
  3175. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3176. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3177. fi
  3178. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3179. cat >>confdefs.h <<_ACEOF
  3180. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3181. _ACEOF
  3182. fi
  3183. done
  3184. echo "$as_me:$LINENO: result: " >&5
  3185. echo "${ECHO_T}" >&6
  3186. echo "$as_me:$LINENO: result: ${T_MD}RESULT: Sourcefile Substitution${T_ME}" >&5
  3187. echo "${ECHO_T}${T_MD}RESULT: Sourcefile Substitution${T_ME}" >&6
  3188. ac_config_files="$ac_config_files Makefile config_sc.h"
  3189. cat >confcache <<\_ACEOF
  3190. # This file is a shell script that caches the results of configure
  3191. # tests run on this system so they can be shared between configure
  3192. # scripts and configure runs, see configure's option --config-cache.
  3193. # It is not useful on other systems. If it contains results you don't
  3194. # want to keep, you may remove or edit it.
  3195. #
  3196. # config.status only pays attention to the cache file if you give it
  3197. # the --recheck option to rerun configure.
  3198. #
  3199. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3200. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3201. # following values.
  3202. _ACEOF
  3203. # The following way of writing the cache mishandles newlines in values,
  3204. # but we know of no workaround that is simple, portable, and efficient.
  3205. # So, don't put newlines in cache variables' values.
  3206. # Ultrix sh set writes to stderr and can't be redirected directly,
  3207. # and sets the high bit in the cache file unless we assign to the vars.
  3208. {
  3209. (set) 2>&1 |
  3210. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3211. *ac_space=\ *)
  3212. # `set' does not quote correctly, so add quotes (double-quote
  3213. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3214. sed -n \
  3215. "s/'/'\\\\''/g;
  3216. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3217. ;;
  3218. *)
  3219. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3220. sed -n \
  3221. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3222. ;;
  3223. esac;
  3224. } |
  3225. sed '
  3226. t clear
  3227. : clear
  3228. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3229. t end
  3230. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3231. : end' >>confcache
  3232. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3233. if test -w $cache_file; then
  3234. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  3235. cat confcache >$cache_file
  3236. else
  3237. echo "not updating unwritable cache $cache_file"
  3238. fi
  3239. fi
  3240. rm -f confcache
  3241. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3242. # Let make expand exec_prefix.
  3243. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3244. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  3245. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  3246. # trailing colons and then remove the whole line if VPATH becomes empty
  3247. # (actually we leave an empty line to preserve line numbers).
  3248. if test "x$srcdir" = x.; then
  3249. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  3250. s/:*\$(srcdir):*/:/;
  3251. s/:*\${srcdir}:*/:/;
  3252. s/:*@srcdir@:*/:/;
  3253. s/^\([^=]*=[ ]*\):*/\1/;
  3254. s/:*$//;
  3255. s/^[^=]*=[ ]*$//;
  3256. }'
  3257. fi
  3258. DEFS=-DHAVE_CONFIG_H
  3259. ac_libobjs=
  3260. ac_ltlibobjs=
  3261. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3262. # 1. Remove the extension, and $U if already installed.
  3263. ac_i=`echo "$ac_i" |
  3264. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  3265. # 2. Add them.
  3266. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  3267. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  3268. done
  3269. LIBOBJS=$ac_libobjs
  3270. LTLIBOBJS=$ac_ltlibobjs
  3271. : ${CONFIG_STATUS=./config.status}
  3272. ac_clean_files_save=$ac_clean_files
  3273. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3274. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3275. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3276. cat >$CONFIG_STATUS <<_ACEOF
  3277. #! $SHELL
  3278. # Generated by $as_me.
  3279. # Run this file to recreate the current configuration.
  3280. # Compiler output produced by configure, useful for debugging
  3281. # configure, is in config.log if it exists.
  3282. debug=false
  3283. ac_cs_recheck=false
  3284. ac_cs_silent=false
  3285. SHELL=\${CONFIG_SHELL-$SHELL}
  3286. _ACEOF
  3287. cat >>$CONFIG_STATUS <<\_ACEOF
  3288. ## --------------------- ##
  3289. ## M4sh Initialization. ##
  3290. ## --------------------- ##
  3291. # Be Bourne compatible
  3292. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3293. emulate sh
  3294. NULLCMD=:
  3295. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3296. # is contrary to our usage. Disable this feature.
  3297. alias -g '${1+"$@"}'='"$@"'
  3298. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3299. set -o posix
  3300. fi
  3301. # Support unset when possible.
  3302. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  3303. as_unset=unset
  3304. else
  3305. as_unset=false
  3306. fi
  3307. # Work around bugs in pre-3.0 UWIN ksh.
  3308. $as_unset ENV MAIL MAILPATH
  3309. PS1='$ '
  3310. PS2='> '
  3311. PS4='+ '
  3312. # NLS nuisances.
  3313. for as_var in \
  3314. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3315. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3316. LC_TELEPHONE LC_TIME
  3317. do
  3318. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3319. eval $as_var=C; export $as_var
  3320. else
  3321. $as_unset $as_var
  3322. fi
  3323. done
  3324. # Required to use basename.
  3325. if expr a : '\(a\)' >/dev/null 2>&1; then
  3326. as_expr=expr
  3327. else
  3328. as_expr=false
  3329. fi
  3330. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3331. as_basename=basename
  3332. else
  3333. as_basename=false
  3334. fi
  3335. # Name of the executable.
  3336. as_me=`$as_basename "$0" ||
  3337. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3338. X"$0" : 'X\(//\)$' \| \
  3339. X"$0" : 'X\(/\)$' \| \
  3340. . : '\(.\)' 2>/dev/null ||
  3341. echo X/"$0" |
  3342. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3343. /^X\/\(\/\/\)$/{ s//\1/; q; }
  3344. /^X\/\(\/\).*/{ s//\1/; q; }
  3345. s/.*/./; q'`
  3346. # PATH needs CR, and LINENO needs CR and PATH.
  3347. # Avoid depending upon Character Ranges.
  3348. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3349. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3350. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3351. as_cr_digits='0123456789'
  3352. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3353. # The user is always right.
  3354. if test "${PATH_SEPARATOR+set}" != set; then
  3355. echo "#! /bin/sh" >conf$$.sh
  3356. echo "exit 0" >>conf$$.sh
  3357. chmod +x conf$$.sh
  3358. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3359. PATH_SEPARATOR=';'
  3360. else
  3361. PATH_SEPARATOR=:
  3362. fi
  3363. rm -f conf$$.sh
  3364. fi
  3365. as_lineno_1=$LINENO
  3366. as_lineno_2=$LINENO
  3367. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3368. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3369. test "x$as_lineno_3" = "x$as_lineno_2" || {
  3370. # Find who we are. Look in the path if we contain no path at all
  3371. # relative or not.
  3372. case $0 in
  3373. *[\\/]* ) as_myself=$0 ;;
  3374. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3375. for as_dir in $PATH
  3376. do
  3377. IFS=$as_save_IFS
  3378. test -z "$as_dir" && as_dir=.
  3379. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3380. done
  3381. ;;
  3382. esac
  3383. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3384. # in which case we are not to be found in the path.
  3385. if test "x$as_myself" = x; then
  3386. as_myself=$0
  3387. fi
  3388. if test ! -f "$as_myself"; then
  3389. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  3390. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  3391. { (exit 1); exit 1; }; }
  3392. fi
  3393. case $CONFIG_SHELL in
  3394. '')
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for as_base in sh bash ksh sh5; do
  3401. case $as_dir in
  3402. /*)
  3403. if ("$as_dir/$as_base" -c '
  3404. as_lineno_1=$LINENO
  3405. as_lineno_2=$LINENO
  3406. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3407. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3408. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  3409. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3410. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3411. CONFIG_SHELL=$as_dir/$as_base
  3412. export CONFIG_SHELL
  3413. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3414. fi;;
  3415. esac
  3416. done
  3417. done
  3418. ;;
  3419. esac
  3420. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3421. # uniformly replaced by the line number. The first 'sed' inserts a
  3422. # line-number line before each line; the second 'sed' does the real
  3423. # work. The second script uses 'N' to pair each line-number line
  3424. # with the numbered line, and appends trailing '-' during
  3425. # substitution so that $LINENO is not a special case at line end.
  3426. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3427. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  3428. sed '=' <$as_myself |
  3429. sed '
  3430. N
  3431. s,$,-,
  3432. : loop
  3433. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3434. t loop
  3435. s,-$,,
  3436. s,^['$as_cr_digits']*\n,,
  3437. ' >$as_me.lineno &&
  3438. chmod +x $as_me.lineno ||
  3439. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  3440. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  3441. { (exit 1); exit 1; }; }
  3442. # Don't try to exec as it changes $[0], causing all sort of problems
  3443. # (the dirname of $[0] is not the place where we might find the
  3444. # original and so on. Autoconf is especially sensible to this).
  3445. . ./$as_me.lineno
  3446. # Exit status is that of the last command.
  3447. exit
  3448. }
  3449. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3450. *c*,-n*) ECHO_N= ECHO_C='
  3451. ' ECHO_T=' ' ;;
  3452. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  3453. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  3454. esac
  3455. if expr a : '\(a\)' >/dev/null 2>&1; then
  3456. as_expr=expr
  3457. else
  3458. as_expr=false
  3459. fi
  3460. rm -f conf$$ conf$$.exe conf$$.file
  3461. echo >conf$$.file
  3462. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3463. # We could just check for DJGPP; but this test a) works b) is more generic
  3464. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  3465. if test -f conf$$.exe; then
  3466. # Don't use ln at all; we don't have any links
  3467. as_ln_s='cp -p'
  3468. else
  3469. as_ln_s='ln -s'
  3470. fi
  3471. elif ln conf$$.file conf$$ 2>/dev/null; then
  3472. as_ln_s=ln
  3473. else
  3474. as_ln_s='cp -p'
  3475. fi
  3476. rm -f conf$$ conf$$.exe conf$$.file
  3477. if mkdir -p . 2>/dev/null; then
  3478. as_mkdir_p=:
  3479. else
  3480. as_mkdir_p=false
  3481. fi
  3482. as_executable_p="test -f"
  3483. # Sed expression to map a string onto a valid CPP name.
  3484. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  3485. # Sed expression to map a string onto a valid variable name.
  3486. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  3487. # IFS
  3488. # We need space, tab and new line, in precisely that order.
  3489. as_nl='
  3490. '
  3491. IFS=" $as_nl"
  3492. # CDPATH.
  3493. $as_unset CDPATH
  3494. exec 6>&1
  3495. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  3496. # report actual input values of CONFIG_FILES etc. instead of their
  3497. # values after options handling. Logging --version etc. is OK.
  3498. exec 5>>config.log
  3499. {
  3500. echo
  3501. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3502. ## Running $as_me. ##
  3503. _ASBOX
  3504. } >&5
  3505. cat >&5 <<_CSEOF
  3506. This file was extended by $as_me, which was
  3507. generated by GNU Autoconf 2.56. Invocation command line was
  3508. CONFIG_FILES = $CONFIG_FILES
  3509. CONFIG_HEADERS = $CONFIG_HEADERS
  3510. CONFIG_LINKS = $CONFIG_LINKS
  3511. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3512. $ $0 $@
  3513. _CSEOF
  3514. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  3515. echo >&5
  3516. _ACEOF
  3517. # Files that config.status was made for.
  3518. if test -n "$ac_config_files"; then
  3519. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  3520. fi
  3521. if test -n "$ac_config_headers"; then
  3522. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  3523. fi
  3524. if test -n "$ac_config_links"; then
  3525. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  3526. fi
  3527. if test -n "$ac_config_commands"; then
  3528. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  3529. fi
  3530. cat >>$CONFIG_STATUS <<\_ACEOF
  3531. ac_cs_usage="\
  3532. \`$as_me' instantiates files from templates according to the
  3533. current configuration.
  3534. Usage: $0 [OPTIONS] [FILE]...
  3535. -h, --help print this help, then exit
  3536. -V, --version print version number, then exit
  3537. -q, --quiet do not print progress messages
  3538. -d, --debug don't remove temporary files
  3539. --recheck update $as_me by reconfiguring in the same conditions
  3540. --file=FILE[:TEMPLATE]
  3541. instantiate the configuration file FILE
  3542. --header=FILE[:TEMPLATE]
  3543. instantiate the configuration header FILE
  3544. Configuration files:
  3545. $config_files
  3546. Configuration headers:
  3547. $config_headers
  3548. Report bugs to <bug-autoconf@gnu.org>."
  3549. _ACEOF
  3550. cat >>$CONFIG_STATUS <<_ACEOF
  3551. ac_cs_version="\\
  3552. config.status
  3553. configured by $0, generated by GNU Autoconf 2.56,
  3554. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  3555. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  3556. Free Software Foundation, Inc.
  3557. This config.status script is free software; the Free Software Foundation
  3558. gives unlimited permission to copy, distribute and modify it."
  3559. srcdir=$srcdir
  3560. _ACEOF
  3561. cat >>$CONFIG_STATUS <<\_ACEOF
  3562. # If no file are specified by the user, then we need to provide default
  3563. # value. By we need to know if files were specified by the user.
  3564. ac_need_defaults=:
  3565. while test $# != 0
  3566. do
  3567. case $1 in
  3568. --*=*)
  3569. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  3570. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  3571. ac_shift=:
  3572. ;;
  3573. -*)
  3574. ac_option=$1
  3575. ac_optarg=$2
  3576. ac_shift=shift
  3577. ;;
  3578. *) # This is not an option, so the user has probably given explicit
  3579. # arguments.
  3580. ac_option=$1
  3581. ac_need_defaults=false;;
  3582. esac
  3583. case $ac_option in
  3584. # Handling of the options.
  3585. _ACEOF
  3586. cat >>$CONFIG_STATUS <<\_ACEOF
  3587. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3588. ac_cs_recheck=: ;;
  3589. --version | --vers* | -V )
  3590. echo "$ac_cs_version"; exit 0 ;;
  3591. --he | --h)
  3592. # Conflict between --help and --header
  3593. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  3594. Try \`$0 --help' for more information." >&5
  3595. echo "$as_me: error: ambiguous option: $1
  3596. Try \`$0 --help' for more information." >&2;}
  3597. { (exit 1); exit 1; }; };;
  3598. --help | --hel | -h )
  3599. echo "$ac_cs_usage"; exit 0 ;;
  3600. --debug | --d* | -d )
  3601. debug=: ;;
  3602. --file | --fil | --fi | --f )
  3603. $ac_shift
  3604. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3605. ac_need_defaults=false;;
  3606. --header | --heade | --head | --hea )
  3607. $ac_shift
  3608. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  3609. ac_need_defaults=false;;
  3610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3612. ac_cs_silent=: ;;
  3613. # This is an error.
  3614. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  3615. Try \`$0 --help' for more information." >&5
  3616. echo "$as_me: error: unrecognized option: $1
  3617. Try \`$0 --help' for more information." >&2;}
  3618. { (exit 1); exit 1; }; } ;;
  3619. *) ac_config_targets="$ac_config_targets $1" ;;
  3620. esac
  3621. shift
  3622. done
  3623. ac_configure_extra_args=
  3624. if $ac_cs_silent; then
  3625. exec 6>/dev/null
  3626. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3627. fi
  3628. _ACEOF
  3629. cat >>$CONFIG_STATUS <<_ACEOF
  3630. if \$ac_cs_recheck; then
  3631. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3632. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3633. fi
  3634. _ACEOF
  3635. cat >>$CONFIG_STATUS <<\_ACEOF
  3636. for ac_config_target in $ac_config_targets
  3637. do
  3638. case "$ac_config_target" in
  3639. # Handling of arguments.
  3640. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  3641. "config_sc.h" ) CONFIG_FILES="$CONFIG_FILES config_sc.h" ;;
  3642. "config_ac.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_ac.h" ;;
  3643. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3644. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3645. { (exit 1); exit 1; }; };;
  3646. esac
  3647. done
  3648. # If the user did not use the arguments to specify the items to instantiate,
  3649. # then the envvar interface is used. Set only those that are not.
  3650. # We use the long form for the default assignment because of an extremely
  3651. # bizarre bug on SunOS 4.1.3.
  3652. if $ac_need_defaults; then
  3653. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3654. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  3655. fi
  3656. # Have a temporary directory for convenience. Make it in the build tree
  3657. # simply because there is no reason to put it here, and in addition,
  3658. # creating and moving files from /tmp can sometimes cause problems.
  3659. # Create a temporary directory, and hook for its removal unless debugging.
  3660. $debug ||
  3661. {
  3662. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  3663. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3664. }
  3665. # Create a (secure) tmp directory for tmp files.
  3666. {
  3667. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  3668. test -n "$tmp" && test -d "$tmp"
  3669. } ||
  3670. {
  3671. tmp=./confstat$$-$RANDOM
  3672. (umask 077 && mkdir $tmp)
  3673. } ||
  3674. {
  3675. echo "$me: cannot create a temporary directory in ." >&2
  3676. { (exit 1); exit 1; }
  3677. }
  3678. _ACEOF
  3679. cat >>$CONFIG_STATUS <<_ACEOF
  3680. #
  3681. # CONFIG_FILES section.
  3682. #
  3683. # No need to generate the scripts if there are no CONFIG_FILES.
  3684. # This happens for instance when ./config.status config.h
  3685. if test -n "\$CONFIG_FILES"; then
  3686. # Protect against being on the right side of a sed subst in config.status.
  3687. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  3688. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  3689. s,@SHELL@,$SHELL,;t t
  3690. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  3691. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  3692. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  3693. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  3694. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  3695. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  3696. s,@exec_prefix@,$exec_prefix,;t t
  3697. s,@prefix@,$prefix,;t t
  3698. s,@program_transform_name@,$program_transform_name,;t t
  3699. s,@bindir@,$bindir,;t t
  3700. s,@sbindir@,$sbindir,;t t
  3701. s,@libexecdir@,$libexecdir,;t t
  3702. s,@datadir@,$datadir,;t t
  3703. s,@sysconfdir@,$sysconfdir,;t t
  3704. s,@sharedstatedir@,$sharedstatedir,;t t
  3705. s,@localstatedir@,$localstatedir,;t t
  3706. s,@libdir@,$libdir,;t t
  3707. s,@includedir@,$includedir,;t t
  3708. s,@oldincludedir@,$oldincludedir,;t t
  3709. s,@infodir@,$infodir,;t t
  3710. s,@mandir@,$mandir,;t t
  3711. s,@build_alias@,$build_alias,;t t
  3712. s,@host_alias@,$host_alias,;t t
  3713. s,@target_alias@,$target_alias,;t t
  3714. s,@DEFS@,$DEFS,;t t
  3715. s,@ECHO_C@,$ECHO_C,;t t
  3716. s,@ECHO_N@,$ECHO_N,;t t
  3717. s,@ECHO_T@,$ECHO_T,;t t
  3718. s,@LIBS@,$LIBS,;t t
  3719. s,@CC@,$CC,;t t
  3720. s,@CFLAGS@,$CFLAGS,;t t
  3721. s,@LDFLAGS@,$LDFLAGS,;t t
  3722. s,@CPPFLAGS@,$CPPFLAGS,;t t
  3723. s,@ac_ct_CC@,$ac_ct_CC,;t t
  3724. s,@EXEEXT@,$EXEEXT,;t t
  3725. s,@OBJEXT@,$OBJEXT,;t t
  3726. s,@CPP@,$CPP,;t t
  3727. s,@debug@,$debug,;t t
  3728. s,@SET_MAKE@,$SET_MAKE,;t t
  3729. s,@SHTOOL@,$SHTOOL,;t t
  3730. s,@EGREP@,$EGREP,;t t
  3731. s,@LIBOBJS@,$LIBOBJS,;t t
  3732. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  3733. CEOF
  3734. _ACEOF
  3735. cat >>$CONFIG_STATUS <<\_ACEOF
  3736. # Split the substitutions into bite-sized pieces for seds with
  3737. # small command number limits, like on Digital OSF/1 and HP-UX.
  3738. ac_max_sed_lines=48
  3739. ac_sed_frag=1 # Number of current file.
  3740. ac_beg=1 # First line for current file.
  3741. ac_end=$ac_max_sed_lines # Line after last line for current file.
  3742. ac_more_lines=:
  3743. ac_sed_cmds=
  3744. while $ac_more_lines; do
  3745. if test $ac_beg -gt 1; then
  3746. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3747. else
  3748. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3749. fi
  3750. if test ! -s $tmp/subs.frag; then
  3751. ac_more_lines=false
  3752. else
  3753. # The purpose of the label and of the branching condition is to
  3754. # speed up the sed processing (if there are no `@' at all, there
  3755. # is no need to browse any of the substitutions).
  3756. # These are the two extra sed commands mentioned above.
  3757. (echo ':t
  3758. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  3759. if test -z "$ac_sed_cmds"; then
  3760. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  3761. else
  3762. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  3763. fi
  3764. ac_sed_frag=`expr $ac_sed_frag + 1`
  3765. ac_beg=$ac_end
  3766. ac_end=`expr $ac_end + $ac_max_sed_lines`
  3767. fi
  3768. done
  3769. if test -z "$ac_sed_cmds"; then
  3770. ac_sed_cmds=cat
  3771. fi
  3772. fi # test -n "$CONFIG_FILES"
  3773. _ACEOF
  3774. cat >>$CONFIG_STATUS <<\_ACEOF
  3775. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  3776. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3777. case $ac_file in
  3778. - | *:- | *:-:* ) # input from stdin
  3779. cat >$tmp/stdin
  3780. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3781. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3782. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3783. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3784. * ) ac_file_in=$ac_file.in ;;
  3785. esac
  3786. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  3787. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  3788. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3789. X"$ac_file" : 'X\(//\)[^/]' \| \
  3790. X"$ac_file" : 'X\(//\)$' \| \
  3791. X"$ac_file" : 'X\(/\)' \| \
  3792. . : '\(.\)' 2>/dev/null ||
  3793. echo X"$ac_file" |
  3794. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3795. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3796. /^X\(\/\/\)$/{ s//\1/; q; }
  3797. /^X\(\/\).*/{ s//\1/; q; }
  3798. s/.*/./; q'`
  3799. { if $as_mkdir_p; then
  3800. mkdir -p "$ac_dir"
  3801. else
  3802. as_dir="$ac_dir"
  3803. as_dirs=
  3804. while test ! -d "$as_dir"; do
  3805. as_dirs="$as_dir $as_dirs"
  3806. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  3807. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3808. X"$as_dir" : 'X\(//\)[^/]' \| \
  3809. X"$as_dir" : 'X\(//\)$' \| \
  3810. X"$as_dir" : 'X\(/\)' \| \
  3811. . : '\(.\)' 2>/dev/null ||
  3812. echo X"$as_dir" |
  3813. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3814. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3815. /^X\(\/\/\)$/{ s//\1/; q; }
  3816. /^X\(\/\).*/{ s//\1/; q; }
  3817. s/.*/./; q'`
  3818. done
  3819. test ! -n "$as_dirs" || mkdir $as_dirs
  3820. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  3821. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  3822. { (exit 1); exit 1; }; }; }
  3823. ac_builddir=.
  3824. if test "$ac_dir" != .; then
  3825. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3826. # A "../" for each directory in $ac_dir_suffix.
  3827. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  3828. else
  3829. ac_dir_suffix= ac_top_builddir=
  3830. fi
  3831. case $srcdir in
  3832. .) # No --srcdir option. We are building in place.
  3833. ac_srcdir=.
  3834. if test -z "$ac_top_builddir"; then
  3835. ac_top_srcdir=.
  3836. else
  3837. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  3838. fi ;;
  3839. [\\/]* | ?:[\\/]* ) # Absolute path.
  3840. ac_srcdir=$srcdir$ac_dir_suffix;
  3841. ac_top_srcdir=$srcdir ;;
  3842. *) # Relative path.
  3843. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  3844. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  3845. esac
  3846. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  3847. # absolute.
  3848. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  3849. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  3850. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  3851. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  3852. if test x"$ac_file" != x-; then
  3853. { echo "$as_me:$LINENO: creating $ac_file" >&5
  3854. echo "$as_me: creating $ac_file" >&6;}
  3855. rm -f "$ac_file"
  3856. fi
  3857. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3858. # use $as_me), people would be surprised to read:
  3859. # /* config.h. Generated by config.status. */
  3860. if test x"$ac_file" = x-; then
  3861. configure_input=
  3862. else
  3863. configure_input="$ac_file. "
  3864. fi
  3865. configure_input=$configure_input"Generated from `echo $ac_file_in |
  3866. sed 's,.*/,,'` by configure."
  3867. # First look for the input files in the build tree, otherwise in the
  3868. # src tree.
  3869. ac_file_inputs=`IFS=:
  3870. for f in $ac_file_in; do
  3871. case $f in
  3872. -) echo $tmp/stdin ;;
  3873. [\\/$]*)
  3874. # Absolute (can't be DOS-style, as IFS=:)
  3875. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3876. echo "$as_me: error: cannot find input file: $f" >&2;}
  3877. { (exit 1); exit 1; }; }
  3878. echo $f;;
  3879. *) # Relative
  3880. if test -f "$f"; then
  3881. # Build tree
  3882. echo $f
  3883. elif test -f "$srcdir/$f"; then
  3884. # Source tree
  3885. echo $srcdir/$f
  3886. else
  3887. # /dev/null tree
  3888. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3889. echo "$as_me: error: cannot find input file: $f" >&2;}
  3890. { (exit 1); exit 1; }; }
  3891. fi;;
  3892. esac
  3893. done` || { (exit 1); exit 1; }
  3894. _ACEOF
  3895. cat >>$CONFIG_STATUS <<_ACEOF
  3896. sed "$ac_vpsub
  3897. $extrasub
  3898. _ACEOF
  3899. cat >>$CONFIG_STATUS <<\_ACEOF
  3900. :t
  3901. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3902. s,@configure_input@,$configure_input,;t t
  3903. s,@srcdir@,$ac_srcdir,;t t
  3904. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  3905. s,@top_srcdir@,$ac_top_srcdir,;t t
  3906. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  3907. s,@builddir@,$ac_builddir,;t t
  3908. s,@abs_builddir@,$ac_abs_builddir,;t t
  3909. s,@top_builddir@,$ac_top_builddir,;t t
  3910. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  3911. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  3912. rm -f $tmp/stdin
  3913. if test x"$ac_file" != x-; then
  3914. mv $tmp/out $ac_file
  3915. else
  3916. cat $tmp/out
  3917. rm -f $tmp/out
  3918. fi
  3919. done
  3920. _ACEOF
  3921. cat >>$CONFIG_STATUS <<\_ACEOF
  3922. #
  3923. # CONFIG_HEADER section.
  3924. #
  3925. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3926. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3927. #
  3928. # ac_d sets the value in "#define NAME VALUE" lines.
  3929. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  3930. ac_dB='[ ].*$,\1#\2'
  3931. ac_dC=' '
  3932. ac_dD=',;t'
  3933. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3934. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3935. ac_uB='$,\1#\2define\3'
  3936. ac_uC=' '
  3937. ac_uD=',;t'
  3938. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  3939. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3940. case $ac_file in
  3941. - | *:- | *:-:* ) # input from stdin
  3942. cat >$tmp/stdin
  3943. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3944. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3945. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3946. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3947. * ) ac_file_in=$ac_file.in ;;
  3948. esac
  3949. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  3950. echo "$as_me: creating $ac_file" >&6;}
  3951. # First look for the input files in the build tree, otherwise in the
  3952. # src tree.
  3953. ac_file_inputs=`IFS=:
  3954. for f in $ac_file_in; do
  3955. case $f in
  3956. -) echo $tmp/stdin ;;
  3957. [\\/$]*)
  3958. # Absolute (can't be DOS-style, as IFS=:)
  3959. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3960. echo "$as_me: error: cannot find input file: $f" >&2;}
  3961. { (exit 1); exit 1; }; }
  3962. echo $f;;
  3963. *) # Relative
  3964. if test -f "$f"; then
  3965. # Build tree
  3966. echo $f
  3967. elif test -f "$srcdir/$f"; then
  3968. # Source tree
  3969. echo $srcdir/$f
  3970. else
  3971. # /dev/null tree
  3972. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3973. echo "$as_me: error: cannot find input file: $f" >&2;}
  3974. { (exit 1); exit 1; }; }
  3975. fi;;
  3976. esac
  3977. done` || { (exit 1); exit 1; }
  3978. # Remove the trailing spaces.
  3979. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  3980. _ACEOF
  3981. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  3982. # `conftest.undefs', that substitutes the proper values into
  3983. # config.h.in to produce config.h. The first handles `#define'
  3984. # templates, and the second `#undef' templates.
  3985. # And first: Protect against being on the right side of a sed subst in
  3986. # config.status. Protect against being in an unquoted here document
  3987. # in config.status.
  3988. rm -f conftest.defines conftest.undefs
  3989. # Using a here document instead of a string reduces the quoting nightmare.
  3990. # Putting comments in sed scripts is not portable.
  3991. #
  3992. # `end' is used to avoid that the second main sed command (meant for
  3993. # 0-ary CPP macros) applies to n-ary macro definitions.
  3994. # See the Autoconf documentation for `clear'.
  3995. cat >confdef2sed.sed <<\_ACEOF
  3996. s/[\\&,]/\\&/g
  3997. s,[\\$`],\\&,g
  3998. t clear
  3999. : clear
  4000. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  4001. t end
  4002. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  4003. : end
  4004. _ACEOF
  4005. # If some macros were called several times there might be several times
  4006. # the same #defines, which is useless. Nevertheless, we may not want to
  4007. # sort them, since we want the *last* AC-DEFINE to be honored.
  4008. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  4009. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  4010. rm -f confdef2sed.sed
  4011. # This sed command replaces #undef with comments. This is necessary, for
  4012. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4013. # on some systems where configure will not decide to define it.
  4014. cat >>conftest.undefs <<\_ACEOF
  4015. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  4016. _ACEOF
  4017. # Break up conftest.defines because some shells have a limit on the size
  4018. # of here documents, and old seds have small limits too (100 cmds).
  4019. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  4020. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  4021. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  4022. echo ' :' >>$CONFIG_STATUS
  4023. rm -f conftest.tail
  4024. while grep . conftest.defines >/dev/null
  4025. do
  4026. # Write a limited-size here document to $tmp/defines.sed.
  4027. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  4028. # Speed up: don't consider the non `#define' lines.
  4029. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  4030. # Work around the forget-to-reset-the-flag bug.
  4031. echo 't clr' >>$CONFIG_STATUS
  4032. echo ': clr' >>$CONFIG_STATUS
  4033. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  4034. echo 'CEOF
  4035. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  4036. rm -f $tmp/in
  4037. mv $tmp/out $tmp/in
  4038. ' >>$CONFIG_STATUS
  4039. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  4040. rm -f conftest.defines
  4041. mv conftest.tail conftest.defines
  4042. done
  4043. rm -f conftest.defines
  4044. echo ' fi # grep' >>$CONFIG_STATUS
  4045. echo >>$CONFIG_STATUS
  4046. # Break up conftest.undefs because some shells have a limit on the size
  4047. # of here documents, and old seds have small limits too (100 cmds).
  4048. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  4049. rm -f conftest.tail
  4050. while grep . conftest.undefs >/dev/null
  4051. do
  4052. # Write a limited-size here document to $tmp/undefs.sed.
  4053. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  4054. # Speed up: don't consider the non `#undef'
  4055. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  4056. # Work around the forget-to-reset-the-flag bug.
  4057. echo 't clr' >>$CONFIG_STATUS
  4058. echo ': clr' >>$CONFIG_STATUS
  4059. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  4060. echo 'CEOF
  4061. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  4062. rm -f $tmp/in
  4063. mv $tmp/out $tmp/in
  4064. ' >>$CONFIG_STATUS
  4065. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  4066. rm -f conftest.undefs
  4067. mv conftest.tail conftest.undefs
  4068. done
  4069. rm -f conftest.undefs
  4070. cat >>$CONFIG_STATUS <<\_ACEOF
  4071. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4072. # use $as_me), people would be surprised to read:
  4073. # /* config.h. Generated by config.status. */
  4074. if test x"$ac_file" = x-; then
  4075. echo "/* Generated by configure. */" >$tmp/config.h
  4076. else
  4077. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  4078. fi
  4079. cat $tmp/in >>$tmp/config.h
  4080. rm -f $tmp/in
  4081. if test x"$ac_file" != x-; then
  4082. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  4083. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  4084. echo "$as_me: $ac_file is unchanged" >&6;}
  4085. else
  4086. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4087. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4088. X"$ac_file" : 'X\(//\)[^/]' \| \
  4089. X"$ac_file" : 'X\(//\)$' \| \
  4090. X"$ac_file" : 'X\(/\)' \| \
  4091. . : '\(.\)' 2>/dev/null ||
  4092. echo X"$ac_file" |
  4093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4094. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4095. /^X\(\/\/\)$/{ s//\1/; q; }
  4096. /^X\(\/\).*/{ s//\1/; q; }
  4097. s/.*/./; q'`
  4098. { if $as_mkdir_p; then
  4099. mkdir -p "$ac_dir"
  4100. else
  4101. as_dir="$ac_dir"
  4102. as_dirs=
  4103. while test ! -d "$as_dir"; do
  4104. as_dirs="$as_dir $as_dirs"
  4105. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4106. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4107. X"$as_dir" : 'X\(//\)[^/]' \| \
  4108. X"$as_dir" : 'X\(//\)$' \| \
  4109. X"$as_dir" : 'X\(/\)' \| \
  4110. . : '\(.\)' 2>/dev/null ||
  4111. echo X"$as_dir" |
  4112. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4113. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4114. /^X\(\/\/\)$/{ s//\1/; q; }
  4115. /^X\(\/\).*/{ s//\1/; q; }
  4116. s/.*/./; q'`
  4117. done
  4118. test ! -n "$as_dirs" || mkdir $as_dirs
  4119. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4120. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4121. { (exit 1); exit 1; }; }; }
  4122. rm -f $ac_file
  4123. mv $tmp/config.h $ac_file
  4124. fi
  4125. else
  4126. cat $tmp/config.h
  4127. rm -f $tmp/config.h
  4128. fi
  4129. done
  4130. _ACEOF
  4131. cat >>$CONFIG_STATUS <<\_ACEOF
  4132. { (exit 0); exit 0; }
  4133. _ACEOF
  4134. chmod +x $CONFIG_STATUS
  4135. ac_clean_files=$ac_clean_files_save
  4136. # configure is writing to config.log, and then calls config.status.
  4137. # config.status does its own redirection, appending to config.log.
  4138. # Unfortunately, on DOS this fails, as config.log is still kept open
  4139. # by configure, so config.status won't be able to write to it; its
  4140. # output is simply discarded. So we exec the FD to /dev/null,
  4141. # effectively closing config.log, so it can be properly (re)opened and
  4142. # appended to by config.status. When coming back to configure, we
  4143. # need to make the FD available again.
  4144. if test "$no_create" != yes; then
  4145. ac_cs_success=:
  4146. ac_config_status_args=
  4147. test "$silent" = yes &&
  4148. ac_config_status_args="$ac_config_status_args --quiet"
  4149. exec 5>/dev/null
  4150. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4151. exec 5>>config.log
  4152. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4153. # would make configure fail if this is the last instruction.
  4154. $ac_cs_success || { (exit 1); exit 1; }
  4155. fi