configure 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-readline Disable readline compatibility"
  14. ac_help="$ac_help
  15. --enable-debug Enable debugging code"
  16. # Initialize some variables set by options.
  17. # The variables have the same names as the options, with
  18. # dashes changed to underlines.
  19. build=NONE
  20. cache_file=./config.cache
  21. exec_prefix=NONE
  22. host=NONE
  23. no_create=
  24. nonopt=NONE
  25. no_recursion=
  26. prefix=NONE
  27. program_prefix=NONE
  28. program_suffix=NONE
  29. program_transform_name=s,x,x,
  30. silent=
  31. site=
  32. srcdir=
  33. target=NONE
  34. verbose=
  35. x_includes=NONE
  36. x_libraries=NONE
  37. bindir='${exec_prefix}/bin'
  38. sbindir='${exec_prefix}/sbin'
  39. libexecdir='${exec_prefix}/libexec'
  40. datadir='${prefix}/share'
  41. sysconfdir='${prefix}/etc'
  42. sharedstatedir='${prefix}/com'
  43. localstatedir='${prefix}/var'
  44. libdir='${exec_prefix}/lib'
  45. includedir='${prefix}/include'
  46. oldincludedir='/usr/include'
  47. infodir='${prefix}/info'
  48. mandir='${prefix}/man'
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52. SHELL=${CONFIG_SHELL-/bin/sh}
  53. # Maximum number of lines to put in a shell here document.
  54. ac_max_here_lines=12
  55. ac_prev=
  56. for ac_option
  57. do
  58. # If the previous option needs an argument, assign it.
  59. if test -n "$ac_prev"; then
  60. eval "$ac_prev=\$ac_option"
  61. ac_prev=
  62. continue
  63. fi
  64. case "$ac_option" in
  65. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66. *) ac_optarg= ;;
  67. esac
  68. # Accept the important Cygnus configure options, so we can diagnose typos.
  69. case "$ac_option" in
  70. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  71. ac_prev=bindir ;;
  72. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  73. bindir="$ac_optarg" ;;
  74. -build | --build | --buil | --bui | --bu)
  75. ac_prev=build ;;
  76. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  77. build="$ac_optarg" ;;
  78. -cache-file | --cache-file | --cache-fil | --cache-fi \
  79. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  80. ac_prev=cache_file ;;
  81. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  82. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  83. cache_file="$ac_optarg" ;;
  84. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  85. ac_prev=datadir ;;
  86. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  87. | --da=*)
  88. datadir="$ac_optarg" ;;
  89. -disable-* | --disable-*)
  90. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  91. # Reject names that are not valid shell variable names.
  92. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  94. fi
  95. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  96. eval "enable_${ac_feature}=no" ;;
  97. -enable-* | --enable-*)
  98. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  99. # Reject names that are not valid shell variable names.
  100. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  101. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  102. fi
  103. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  104. case "$ac_option" in
  105. *=*) ;;
  106. *) ac_optarg=yes ;;
  107. esac
  108. eval "enable_${ac_feature}='$ac_optarg'" ;;
  109. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  110. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  111. | --exec | --exe | --ex)
  112. ac_prev=exec_prefix ;;
  113. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  114. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  115. | --exec=* | --exe=* | --ex=*)
  116. exec_prefix="$ac_optarg" ;;
  117. -gas | --gas | --ga | --g)
  118. # Obsolete; use --with-gas.
  119. with_gas=yes ;;
  120. -help | --help | --hel | --he)
  121. # Omit some internal or obsolete options to make the list less imposing.
  122. # This message is too long to be a string in the A/UX 3.1 sh.
  123. cat << EOF
  124. Usage: configure [options] [host]
  125. Options: [defaults in brackets after descriptions]
  126. Configuration:
  127. --cache-file=FILE cache test results in FILE
  128. --help print this message
  129. --no-create do not create output files
  130. --quiet, --silent do not print \`checking...' messages
  131. --version print the version of autoconf that created configure
  132. Directory and file names:
  133. --prefix=PREFIX install architecture-independent files in PREFIX
  134. [$ac_default_prefix]
  135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  136. [same as prefix]
  137. --bindir=DIR user executables in DIR [EPREFIX/bin]
  138. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  139. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  140. --datadir=DIR read-only architecture-independent data in DIR
  141. [PREFIX/share]
  142. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  143. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  144. [PREFIX/com]
  145. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  146. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  147. --includedir=DIR C header files in DIR [PREFIX/include]
  148. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  149. --infodir=DIR info documentation in DIR [PREFIX/info]
  150. --mandir=DIR man documentation in DIR [PREFIX/man]
  151. --srcdir=DIR find the sources in DIR [configure dir or ..]
  152. --program-prefix=PREFIX prepend PREFIX to installed program names
  153. --program-suffix=SUFFIX append SUFFIX to installed program names
  154. --program-transform-name=PROGRAM
  155. run sed PROGRAM on installed program names
  156. EOF
  157. cat << EOF
  158. Host type:
  159. --build=BUILD configure for building on BUILD [BUILD=HOST]
  160. --host=HOST configure for HOST [guessed]
  161. --target=TARGET configure for TARGET [TARGET=HOST]
  162. Features and packages:
  163. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  164. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  165. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  166. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  167. --x-includes=DIR X include files are in DIR
  168. --x-libraries=DIR X library files are in DIR
  169. EOF
  170. if test -n "$ac_help"; then
  171. echo "--enable and --with options recognized:$ac_help"
  172. fi
  173. exit 0 ;;
  174. -host | --host | --hos | --ho)
  175. ac_prev=host ;;
  176. -host=* | --host=* | --hos=* | --ho=*)
  177. host="$ac_optarg" ;;
  178. -includedir | --includedir | --includedi | --included | --include \
  179. | --includ | --inclu | --incl | --inc)
  180. ac_prev=includedir ;;
  181. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  182. | --includ=* | --inclu=* | --incl=* | --inc=*)
  183. includedir="$ac_optarg" ;;
  184. -infodir | --infodir | --infodi | --infod | --info | --inf)
  185. ac_prev=infodir ;;
  186. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  187. infodir="$ac_optarg" ;;
  188. -libdir | --libdir | --libdi | --libd)
  189. ac_prev=libdir ;;
  190. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  191. libdir="$ac_optarg" ;;
  192. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  193. | --libexe | --libex | --libe)
  194. ac_prev=libexecdir ;;
  195. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  196. | --libexe=* | --libex=* | --libe=*)
  197. libexecdir="$ac_optarg" ;;
  198. -localstatedir | --localstatedir | --localstatedi | --localstated \
  199. | --localstate | --localstat | --localsta | --localst \
  200. | --locals | --local | --loca | --loc | --lo)
  201. ac_prev=localstatedir ;;
  202. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  203. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  204. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  205. localstatedir="$ac_optarg" ;;
  206. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  207. ac_prev=mandir ;;
  208. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  209. mandir="$ac_optarg" ;;
  210. -nfp | --nfp | --nf)
  211. # Obsolete; use --without-fp.
  212. with_fp=no ;;
  213. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  214. | --no-cr | --no-c)
  215. no_create=yes ;;
  216. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  217. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  218. no_recursion=yes ;;
  219. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  220. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  221. | --oldin | --oldi | --old | --ol | --o)
  222. ac_prev=oldincludedir ;;
  223. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  224. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  225. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  226. oldincludedir="$ac_optarg" ;;
  227. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  228. ac_prev=prefix ;;
  229. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  230. prefix="$ac_optarg" ;;
  231. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  232. | --program-pre | --program-pr | --program-p)
  233. ac_prev=program_prefix ;;
  234. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  235. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  236. program_prefix="$ac_optarg" ;;
  237. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  238. | --program-suf | --program-su | --program-s)
  239. ac_prev=program_suffix ;;
  240. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  241. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  242. program_suffix="$ac_optarg" ;;
  243. -program-transform-name | --program-transform-name \
  244. | --program-transform-nam | --program-transform-na \
  245. | --program-transform-n | --program-transform- \
  246. | --program-transform | --program-transfor \
  247. | --program-transfo | --program-transf \
  248. | --program-trans | --program-tran \
  249. | --progr-tra | --program-tr | --program-t)
  250. ac_prev=program_transform_name ;;
  251. -program-transform-name=* | --program-transform-name=* \
  252. | --program-transform-nam=* | --program-transform-na=* \
  253. | --program-transform-n=* | --program-transform-=* \
  254. | --program-transform=* | --program-transfor=* \
  255. | --program-transfo=* | --program-transf=* \
  256. | --program-trans=* | --program-tran=* \
  257. | --progr-tra=* | --program-tr=* | --program-t=*)
  258. program_transform_name="$ac_optarg" ;;
  259. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  260. | -silent | --silent | --silen | --sile | --sil)
  261. silent=yes ;;
  262. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  263. ac_prev=sbindir ;;
  264. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  265. | --sbi=* | --sb=*)
  266. sbindir="$ac_optarg" ;;
  267. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  268. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  269. | --sharedst | --shareds | --shared | --share | --shar \
  270. | --sha | --sh)
  271. ac_prev=sharedstatedir ;;
  272. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  273. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  274. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  275. | --sha=* | --sh=*)
  276. sharedstatedir="$ac_optarg" ;;
  277. -site | --site | --sit)
  278. ac_prev=site ;;
  279. -site=* | --site=* | --sit=*)
  280. site="$ac_optarg" ;;
  281. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  282. ac_prev=srcdir ;;
  283. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  284. srcdir="$ac_optarg" ;;
  285. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  286. | --syscon | --sysco | --sysc | --sys | --sy)
  287. ac_prev=sysconfdir ;;
  288. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  289. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  290. sysconfdir="$ac_optarg" ;;
  291. -target | --target | --targe | --targ | --tar | --ta | --t)
  292. ac_prev=target ;;
  293. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  294. target="$ac_optarg" ;;
  295. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  296. verbose=yes ;;
  297. -version | --version | --versio | --versi | --vers)
  298. echo "configure generated by autoconf version 2.13"
  299. exit 0 ;;
  300. -with-* | --with-*)
  301. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  305. fi
  306. ac_package=`echo $ac_package| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "with_${ac_package}='$ac_optarg'" ;;
  312. -without-* | --without-*)
  313. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  314. # Reject names that are not valid shell variable names.
  315. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  316. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  317. fi
  318. ac_package=`echo $ac_package| sed 's/-/_/g'`
  319. eval "with_${ac_package}=no" ;;
  320. --x)
  321. # Obsolete; use --with-x.
  322. with_x=yes ;;
  323. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  324. | --x-incl | --x-inc | --x-in | --x-i)
  325. ac_prev=x_includes ;;
  326. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  327. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  328. x_includes="$ac_optarg" ;;
  329. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  330. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  331. ac_prev=x_libraries ;;
  332. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  333. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  334. x_libraries="$ac_optarg" ;;
  335. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  336. ;;
  337. *)
  338. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  339. echo "configure: warning: $ac_option: invalid host type" 1>&2
  340. fi
  341. if test "x$nonopt" != xNONE; then
  342. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  343. fi
  344. nonopt="$ac_option"
  345. ;;
  346. esac
  347. done
  348. if test -n "$ac_prev"; then
  349. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  350. fi
  351. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  352. # File descriptor usage:
  353. # 0 standard input
  354. # 1 file creation
  355. # 2 errors and warnings
  356. # 3 some systems may open it to /dev/tty
  357. # 4 used on the Kubota Titan
  358. # 6 checking for... messages and results
  359. # 5 compiler messages saved in config.log
  360. if test "$silent" = yes; then
  361. exec 6>/dev/null
  362. else
  363. exec 6>&1
  364. fi
  365. exec 5>./config.log
  366. echo "\
  367. This file contains any messages produced by compilers while
  368. running configure, to aid debugging if configure makes a mistake.
  369. " 1>&5
  370. # Strip out --no-create and --no-recursion so they do not pile up.
  371. # Also quote any args containing shell metacharacters.
  372. ac_configure_args=
  373. for ac_arg
  374. do
  375. case "$ac_arg" in
  376. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  377. | --no-cr | --no-c) ;;
  378. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  379. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  380. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  381. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  382. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  383. esac
  384. done
  385. # NLS nuisances.
  386. # Only set these to C if already set. These must not be set unconditionally
  387. # because not all systems understand e.g. LANG=C (notably SCO).
  388. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  389. # Non-C LC_CTYPE values break the ctype check.
  390. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  391. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  392. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  393. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  394. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  395. rm -rf conftest* confdefs.h
  396. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  397. echo > confdefs.h
  398. # A filename unique to this package, relative to the directory that
  399. # configure is in, which we can look for to find out if srcdir is correct.
  400. ac_unique_file=Makefile.in
  401. # Find the source files, if location was not specified.
  402. if test -z "$srcdir"; then
  403. ac_srcdir_defaulted=yes
  404. # Try the directory containing this script, then its parent.
  405. ac_prog=$0
  406. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  407. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  408. srcdir=$ac_confdir
  409. if test ! -r $srcdir/$ac_unique_file; then
  410. srcdir=..
  411. fi
  412. else
  413. ac_srcdir_defaulted=no
  414. fi
  415. if test ! -r $srcdir/$ac_unique_file; then
  416. if test "$ac_srcdir_defaulted" = yes; then
  417. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  418. else
  419. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  420. fi
  421. fi
  422. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  423. # Prefer explicitly selected file to automatically selected ones.
  424. if test -z "$CONFIG_SITE"; then
  425. if test "x$prefix" != xNONE; then
  426. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  427. else
  428. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  429. fi
  430. fi
  431. for ac_site_file in $CONFIG_SITE; do
  432. if test -r "$ac_site_file"; then
  433. echo "loading site script $ac_site_file"
  434. . "$ac_site_file"
  435. fi
  436. done
  437. if test -r "$cache_file"; then
  438. echo "loading cache $cache_file"
  439. . $cache_file
  440. else
  441. echo "creating cache $cache_file"
  442. > $cache_file
  443. fi
  444. ac_ext=c
  445. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  446. ac_cpp='$CPP $CPPFLAGS'
  447. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  448. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  449. cross_compiling=$ac_cv_prog_cc_cross
  450. ac_exeext=
  451. ac_objext=o
  452. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  453. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  454. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  455. ac_n= ac_c='
  456. ' ac_t=' '
  457. else
  458. ac_n=-n ac_c= ac_t=
  459. fi
  460. else
  461. ac_n= ac_c='\c' ac_t=
  462. fi
  463. CFLAGS=$CFLAGS
  464. # Extract the first word of "gcc", so it can be a program name with args.
  465. set dummy gcc; ac_word=$2
  466. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  467. echo "configure:534: checking for $ac_word" >&5
  468. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  469. echo $ac_n "(cached) $ac_c" 1>&6
  470. else
  471. if test -n "$CC"; then
  472. ac_cv_prog_CC="$CC" # Let the user override the test.
  473. else
  474. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  475. ac_dummy="$PATH"
  476. for ac_dir in $ac_dummy; do
  477. test -z "$ac_dir" && ac_dir=.
  478. if test -f $ac_dir/$ac_word; then
  479. ac_cv_prog_CC="gcc"
  480. break
  481. fi
  482. done
  483. IFS="$ac_save_ifs"
  484. fi
  485. fi
  486. CC="$ac_cv_prog_CC"
  487. if test -n "$CC"; then
  488. echo "$ac_t""$CC" 1>&6
  489. else
  490. echo "$ac_t""no" 1>&6
  491. fi
  492. if test -z "$CC"; then
  493. # Extract the first word of "cc", so it can be a program name with args.
  494. set dummy cc; ac_word=$2
  495. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  496. echo "configure:564: checking for $ac_word" >&5
  497. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  498. echo $ac_n "(cached) $ac_c" 1>&6
  499. else
  500. if test -n "$CC"; then
  501. ac_cv_prog_CC="$CC" # Let the user override the test.
  502. else
  503. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  504. ac_prog_rejected=no
  505. ac_dummy="$PATH"
  506. for ac_dir in $ac_dummy; do
  507. test -z "$ac_dir" && ac_dir=.
  508. if test -f $ac_dir/$ac_word; then
  509. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  510. ac_prog_rejected=yes
  511. continue
  512. fi
  513. ac_cv_prog_CC="cc"
  514. break
  515. fi
  516. done
  517. IFS="$ac_save_ifs"
  518. if test $ac_prog_rejected = yes; then
  519. # We found a bogon in the path, so make sure we never use it.
  520. set dummy $ac_cv_prog_CC
  521. shift
  522. if test $# -gt 0; then
  523. # We chose a different compiler from the bogus one.
  524. # However, it has the same basename, so the bogon will be chosen
  525. # first if we set CC to just the basename; use the full file name.
  526. shift
  527. set dummy "$ac_dir/$ac_word" "$@"
  528. shift
  529. ac_cv_prog_CC="$@"
  530. fi
  531. fi
  532. fi
  533. fi
  534. CC="$ac_cv_prog_CC"
  535. if test -n "$CC"; then
  536. echo "$ac_t""$CC" 1>&6
  537. else
  538. echo "$ac_t""no" 1>&6
  539. fi
  540. if test -z "$CC"; then
  541. case "`uname -s`" in
  542. *win32* | *WIN32*)
  543. # Extract the first word of "cl", so it can be a program name with args.
  544. set dummy cl; ac_word=$2
  545. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  546. echo "configure:615: checking for $ac_word" >&5
  547. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  548. echo $ac_n "(cached) $ac_c" 1>&6
  549. else
  550. if test -n "$CC"; then
  551. ac_cv_prog_CC="$CC" # Let the user override the test.
  552. else
  553. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  554. ac_dummy="$PATH"
  555. for ac_dir in $ac_dummy; do
  556. test -z "$ac_dir" && ac_dir=.
  557. if test -f $ac_dir/$ac_word; then
  558. ac_cv_prog_CC="cl"
  559. break
  560. fi
  561. done
  562. IFS="$ac_save_ifs"
  563. fi
  564. fi
  565. CC="$ac_cv_prog_CC"
  566. if test -n "$CC"; then
  567. echo "$ac_t""$CC" 1>&6
  568. else
  569. echo "$ac_t""no" 1>&6
  570. fi
  571. ;;
  572. esac
  573. fi
  574. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  575. fi
  576. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  577. echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  578. ac_ext=c
  579. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  580. ac_cpp='$CPP $CPPFLAGS'
  581. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  582. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  583. cross_compiling=$ac_cv_prog_cc_cross
  584. cat > conftest.$ac_ext << EOF
  585. #line 658 "configure"
  586. #include "confdefs.h"
  587. main(){return(0);}
  588. EOF
  589. if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  590. ac_cv_prog_cc_works=yes
  591. # If we can't run a trivial program, we are probably using a cross compiler.
  592. if (./conftest; exit) 2>/dev/null; then
  593. ac_cv_prog_cc_cross=no
  594. else
  595. ac_cv_prog_cc_cross=yes
  596. fi
  597. else
  598. echo "configure: failed program was:" >&5
  599. cat conftest.$ac_ext >&5
  600. ac_cv_prog_cc_works=no
  601. fi
  602. rm -fr conftest*
  603. ac_ext=c
  604. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  605. ac_cpp='$CPP $CPPFLAGS'
  606. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  607. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  608. cross_compiling=$ac_cv_prog_cc_cross
  609. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  610. if test $ac_cv_prog_cc_works = no; then
  611. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  612. fi
  613. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  614. echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  615. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  616. cross_compiling=$ac_cv_prog_cc_cross
  617. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  618. echo "configure:694: checking whether we are using GNU C" >&5
  619. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  620. echo $ac_n "(cached) $ac_c" 1>&6
  621. else
  622. cat > conftest.c <<EOF
  623. #ifdef __GNUC__
  624. yes;
  625. #endif
  626. EOF
  627. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  628. ac_cv_prog_gcc=yes
  629. else
  630. ac_cv_prog_gcc=no
  631. fi
  632. fi
  633. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  634. if test $ac_cv_prog_gcc = yes; then
  635. GCC=yes
  636. else
  637. GCC=
  638. fi
  639. ac_test_CFLAGS="${CFLAGS+set}"
  640. ac_save_CFLAGS="$CFLAGS"
  641. CFLAGS=
  642. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  643. echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
  644. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  645. echo $ac_n "(cached) $ac_c" 1>&6
  646. else
  647. echo 'void f(){}' > conftest.c
  648. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  649. ac_cv_prog_cc_g=yes
  650. else
  651. ac_cv_prog_cc_g=no
  652. fi
  653. rm -f conftest*
  654. fi
  655. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  656. if test "$ac_test_CFLAGS" = set; then
  657. CFLAGS="$ac_save_CFLAGS"
  658. elif test $ac_cv_prog_cc_g = yes; then
  659. if test "$GCC" = yes; then
  660. CFLAGS="-g -O2"
  661. else
  662. CFLAGS="-g"
  663. fi
  664. else
  665. if test "$GCC" = yes; then
  666. CFLAGS="-O2"
  667. else
  668. CFLAGS=
  669. fi
  670. fi
  671. if test "x$CFLAGS" = "x" ; then
  672. no_CFLAGS="yes"
  673. fi
  674. if test "x$no_CFLAGS" = "xyes" -a "x$GCC" = "xyes" ; then
  675. CFLAGS="-Wall -pipe -g3"
  676. fi
  677. A_CFLAGS=""
  678. S_CFLAGS="-fPIC -DPIC"
  679. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  680. echo "configure:764: checking how to run the C preprocessor" >&5
  681. # On Suns, sometimes $CPP names a directory.
  682. if test -n "$CPP" && test -d "$CPP"; then
  683. CPP=
  684. fi
  685. if test -z "$CPP"; then
  686. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  687. echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689. # This must be in double quotes, not single quotes, because CPP may get
  690. # substituted into the Makefile and "${CC-cc}" will confuse make.
  691. CPP="${CC-cc} -E"
  692. # On the NeXT, cc -E runs the code through the compiler's parser,
  693. # not just through cpp.
  694. cat > conftest.$ac_ext <<EOF
  695. #line 779 "configure"
  696. #include "confdefs.h"
  697. #include <assert.h>
  698. Syntax Error
  699. EOF
  700. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  701. { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  702. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  703. if test -z "$ac_err"; then
  704. :
  705. else
  706. echo "$ac_err" >&5
  707. echo "configure: failed program was:" >&5
  708. cat conftest.$ac_ext >&5
  709. rm -rf conftest*
  710. CPP="${CC-cc} -E -traditional-cpp"
  711. cat > conftest.$ac_ext <<EOF
  712. #line 796 "configure"
  713. #include "confdefs.h"
  714. #include <assert.h>
  715. Syntax Error
  716. EOF
  717. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  718. { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  719. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  720. if test -z "$ac_err"; then
  721. :
  722. else
  723. echo "$ac_err" >&5
  724. echo "configure: failed program was:" >&5
  725. cat conftest.$ac_ext >&5
  726. rm -rf conftest*
  727. CPP="${CC-cc} -nologo -E"
  728. cat > conftest.$ac_ext <<EOF
  729. #line 813 "configure"
  730. #include "confdefs.h"
  731. #include <assert.h>
  732. Syntax Error
  733. EOF
  734. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  735. { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  736. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  737. if test -z "$ac_err"; then
  738. :
  739. else
  740. echo "$ac_err" >&5
  741. echo "configure: failed program was:" >&5
  742. cat conftest.$ac_ext >&5
  743. rm -rf conftest*
  744. CPP=/lib/cpp
  745. fi
  746. rm -f conftest*
  747. fi
  748. rm -f conftest*
  749. fi
  750. rm -f conftest*
  751. ac_cv_prog_CPP="$CPP"
  752. fi
  753. CPP="$ac_cv_prog_CPP"
  754. else
  755. ac_cv_prog_CPP="$CPP"
  756. fi
  757. echo "$ac_t""$CPP" 1>&6
  758. for ac_prog in mawk gawk nawk awk
  759. do
  760. # Extract the first word of "$ac_prog", so it can be a program name with args.
  761. set dummy $ac_prog; ac_word=$2
  762. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  763. echo "configure:848: checking for $ac_word" >&5
  764. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  765. echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767. if test -n "$AWK"; then
  768. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  769. else
  770. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  771. ac_dummy="$PATH"
  772. for ac_dir in $ac_dummy; do
  773. test -z "$ac_dir" && ac_dir=.
  774. if test -f $ac_dir/$ac_word; then
  775. ac_cv_prog_AWK="$ac_prog"
  776. break
  777. fi
  778. done
  779. IFS="$ac_save_ifs"
  780. fi
  781. fi
  782. AWK="$ac_cv_prog_AWK"
  783. if test -n "$AWK"; then
  784. echo "$ac_t""$AWK" 1>&6
  785. else
  786. echo "$ac_t""no" 1>&6
  787. fi
  788. test -n "$AWK" && break
  789. done
  790. ac_aux_dir=
  791. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  792. if test -f $ac_dir/install-sh; then
  793. ac_aux_dir=$ac_dir
  794. ac_install_sh="$ac_aux_dir/install-sh -c"
  795. break
  796. elif test -f $ac_dir/install.sh; then
  797. ac_aux_dir=$ac_dir
  798. ac_install_sh="$ac_aux_dir/install.sh -c"
  799. break
  800. fi
  801. done
  802. if test -z "$ac_aux_dir"; then
  803. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  804. fi
  805. ac_config_guess=$ac_aux_dir/config.guess
  806. ac_config_sub=$ac_aux_dir/config.sub
  807. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  808. # Make sure we can run config.sub.
  809. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  810. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  811. fi
  812. echo $ac_n "checking host system type""... $ac_c" 1>&6
  813. echo "configure:904: checking host system type" >&5
  814. host_alias=$host
  815. case "$host_alias" in
  816. NONE)
  817. case $nonopt in
  818. NONE)
  819. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  820. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  821. fi ;;
  822. *) host_alias=$nonopt ;;
  823. esac ;;
  824. esac
  825. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  826. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  827. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  828. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  829. echo "$ac_t""$host" 1>&6
  830. case "${host}" in
  831. *-*-darwin*)
  832. CFLAGS="$CFLAGS -fno-common -no-cpp-precomp"
  833. ABI="macho"
  834. ;;
  835. *-*-freebsd*)
  836. ABI="elf"
  837. ;;
  838. *-*-linux* | *cygwin*)
  839. if echo ${host} | grep -q cygwin ; then \
  840. echo "cygwin detected"; \
  841. S_CFLAGS=""; \
  842. echo "/* cygdef.h. Generated automatically by configure. */
  843. #ifndef _CYGDEF_H_
  844. #define _CYGDEF_H_ 1
  845. #include <sys/ioctl.h>
  846. #define __linux__ 1
  847. typedef void (*sig_t)(int);
  848. #endif /* _CYGDEF_H_ */" > cygdef.h; \
  849. echo "
  850. #define CYGWIN 1
  851. " > confdefs.h; \
  852. fi
  853. ABI="elf"
  854. ;;
  855. *-*-netbsd*)
  856. echo $ac_n "checking ABI""... $ac_c" 1>&6
  857. echo "configure:955: checking ABI" >&5
  858. cat > conftest.$ac_ext <<EOF
  859. #line 957 "configure"
  860. #include "confdefs.h"
  861. #ifdef __ELF__
  862. yes
  863. #endif
  864. EOF
  865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  866. egrep "yes" >/dev/null 2>&1; then
  867. rm -rf conftest*
  868. ABI="elf"
  869. else
  870. rm -rf conftest*
  871. ABI="aout"
  872. fi
  873. rm -f conftest*
  874. echo "$ac_t""$ABI" 1>&6
  875. ;;
  876. *-*-solaris2*)
  877. ABI="elf"
  878. cat >> confdefs.h <<\EOF
  879. #define SUNOS 1
  880. EOF
  881. ;;
  882. *)
  883. echo "$ac_t""Unsupported operating system: ${host}" 1>&6
  884. ABI="elf"
  885. ;;
  886. esac
  887. # Find a good install program. We prefer a C program (faster),
  888. # so one script is as good as another. But avoid the broken or
  889. # incompatible versions:
  890. # SysV /etc/install, /usr/sbin/install
  891. # SunOS /usr/etc/install
  892. # IRIX /sbin/install
  893. # AIX /bin/install
  894. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  895. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  896. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  897. # ./install, which can be erroneously created by make from ./install.sh.
  898. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  899. echo "configure:1001: checking for a BSD compatible install" >&5
  900. if test -z "$INSTALL"; then
  901. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  902. echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  905. for ac_dir in $PATH; do
  906. # Account for people who put trailing slashes in PATH elements.
  907. case "$ac_dir/" in
  908. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  909. *)
  910. # OSF1 and SCO ODT 3.0 have their own names for install.
  911. # Don't use installbsd from OSF since it installs stuff as root
  912. # by default.
  913. for ac_prog in ginstall scoinst install; do
  914. if test -f $ac_dir/$ac_prog; then
  915. if test $ac_prog = install &&
  916. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  917. # AIX install. It has an incompatible calling convention.
  918. :
  919. else
  920. ac_cv_path_install="$ac_dir/$ac_prog -c"
  921. break 2
  922. fi
  923. fi
  924. done
  925. ;;
  926. esac
  927. done
  928. IFS="$ac_save_IFS"
  929. fi
  930. if test "${ac_cv_path_install+set}" = set; then
  931. INSTALL="$ac_cv_path_install"
  932. else
  933. # As a last resort, use the slow shell script. We don't cache a
  934. # path for INSTALL within a source directory, because that will
  935. # break other packages using the cache if that directory is
  936. # removed, or if the path is relative.
  937. INSTALL="$ac_install_sh"
  938. fi
  939. fi
  940. echo "$ac_t""$INSTALL" 1>&6
  941. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  942. # It thinks the first close brace ends the variable substitution.
  943. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  944. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  945. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  946. # Extract the first word of "ranlib", so it can be a program name with args.
  947. set dummy ranlib; ac_word=$2
  948. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  949. echo "configure:1056: checking for $ac_word" >&5
  950. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  951. echo $ac_n "(cached) $ac_c" 1>&6
  952. else
  953. if test -n "$RANLIB"; then
  954. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  955. else
  956. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  957. ac_dummy="$PATH"
  958. for ac_dir in $ac_dummy; do
  959. test -z "$ac_dir" && ac_dir=.
  960. if test -f $ac_dir/$ac_word; then
  961. ac_cv_prog_RANLIB="ranlib"
  962. break
  963. fi
  964. done
  965. IFS="$ac_save_ifs"
  966. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  967. fi
  968. fi
  969. RANLIB="$ac_cv_prog_RANLIB"
  970. if test -n "$RANLIB"; then
  971. echo "$ac_t""$RANLIB" 1>&6
  972. else
  973. echo "$ac_t""no" 1>&6
  974. fi
  975. for ac_prog in ar gar
  976. do
  977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  978. set dummy $ac_prog; ac_word=$2
  979. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  980. echo "configure:1088: checking for $ac_word" >&5
  981. if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
  982. echo $ac_n "(cached) $ac_c" 1>&6
  983. else
  984. case "$AR" in
  985. /*)
  986. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  987. ;;
  988. ?:/*)
  989. ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
  990. ;;
  991. *)
  992. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  993. ac_dummy="$PATH"
  994. for ac_dir in $ac_dummy; do
  995. test -z "$ac_dir" && ac_dir=.
  996. if test -f $ac_dir/$ac_word; then
  997. ac_cv_path_AR="$ac_dir/$ac_word"
  998. break
  999. fi
  1000. done
  1001. IFS="$ac_save_ifs"
  1002. ;;
  1003. esac
  1004. fi
  1005. AR="$ac_cv_path_AR"
  1006. if test -n "$AR"; then
  1007. echo "$ac_t""$AR" 1>&6
  1008. else
  1009. echo "$ac_t""no" 1>&6
  1010. fi
  1011. test -n "$AR" && break
  1012. done
  1013. echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
  1014. echo "configure:1125: checking for tgetent in -ltermcap" >&5
  1015. ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
  1016. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1017. echo $ac_n "(cached) $ac_c" 1>&6
  1018. else
  1019. ac_save_LIBS="$LIBS"
  1020. LIBS="-ltermcap $LIBS"
  1021. cat > conftest.$ac_ext <<EOF
  1022. #line 1133 "configure"
  1023. #include "confdefs.h"
  1024. /* Override any gcc2 internal prototype to avoid an error. */
  1025. /* We use char because int might match the return type of a gcc2
  1026. builtin and then its argument prototype would still apply. */
  1027. char tgetent();
  1028. int main() {
  1029. tgetent()
  1030. ; return 0; }
  1031. EOF
  1032. if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1033. rm -rf conftest*
  1034. eval "ac_cv_lib_$ac_lib_var=yes"
  1035. else
  1036. echo "configure: failed program was:" >&5
  1037. cat conftest.$ac_ext >&5
  1038. rm -rf conftest*
  1039. eval "ac_cv_lib_$ac_lib_var=no"
  1040. fi
  1041. rm -f conftest*
  1042. LIBS="$ac_save_LIBS"
  1043. fi
  1044. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1045. echo "$ac_t""yes" 1>&6
  1046. ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1047. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1048. cat >> confdefs.h <<EOF
  1049. #define $ac_tr_lib 1
  1050. EOF
  1051. LIBS="-ltermcap $LIBS"
  1052. else
  1053. echo "$ac_t""no" 1>&6
  1054. \
  1055. echo $ac_n "checking for tgetent in -ltinfo""... $ac_c" 1>&6
  1056. echo "configure:1171: checking for tgetent in -ltinfo" >&5
  1057. ac_lib_var=`echo tinfo'_'tgetent | sed 'y%./+-%__p_%'`
  1058. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1059. echo $ac_n "(cached) $ac_c" 1>&6
  1060. else
  1061. ac_save_LIBS="$LIBS"
  1062. LIBS="-ltinfo $LIBS"
  1063. cat > conftest.$ac_ext <<EOF
  1064. #line 1179 "configure"
  1065. #include "confdefs.h"
  1066. /* Override any gcc2 internal prototype to avoid an error. */
  1067. /* We use char because int might match the return type of a gcc2
  1068. builtin and then its argument prototype would still apply. */
  1069. char tgetent();
  1070. int main() {
  1071. tgetent()
  1072. ; return 0; }
  1073. EOF
  1074. if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1075. rm -rf conftest*
  1076. eval "ac_cv_lib_$ac_lib_var=yes"
  1077. else
  1078. echo "configure: failed program was:" >&5
  1079. cat conftest.$ac_ext >&5
  1080. rm -rf conftest*
  1081. eval "ac_cv_lib_$ac_lib_var=no"
  1082. fi
  1083. rm -f conftest*
  1084. LIBS="$ac_save_LIBS"
  1085. fi
  1086. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1087. echo "$ac_t""yes" 1>&6
  1088. ac_tr_lib=HAVE_LIB`echo tinfo | sed -e 's/^a-zA-Z0-9_/_/g' \
  1089. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1090. cat >> confdefs.h <<EOF
  1091. #define $ac_tr_lib 1
  1092. EOF
  1093. LIBS="-ltinfo $LIBS"
  1094. else
  1095. echo "$ac_t""no" 1>&6
  1096. \
  1097. echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
  1098. echo "configure:1217: checking for tgetent in -lcurses" >&5
  1099. ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
  1100. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1101. echo $ac_n "(cached) $ac_c" 1>&6
  1102. else
  1103. ac_save_LIBS="$LIBS"
  1104. LIBS="-lcurses $LIBS"
  1105. cat > conftest.$ac_ext <<EOF
  1106. #line 1225 "configure"
  1107. #include "confdefs.h"
  1108. /* Override any gcc2 internal prototype to avoid an error. */
  1109. /* We use char because int might match the return type of a gcc2
  1110. builtin and then its argument prototype would still apply. */
  1111. char tgetent();
  1112. int main() {
  1113. tgetent()
  1114. ; return 0; }
  1115. EOF
  1116. if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1117. rm -rf conftest*
  1118. eval "ac_cv_lib_$ac_lib_var=yes"
  1119. else
  1120. echo "configure: failed program was:" >&5
  1121. cat conftest.$ac_ext >&5
  1122. rm -rf conftest*
  1123. eval "ac_cv_lib_$ac_lib_var=no"
  1124. fi
  1125. rm -f conftest*
  1126. LIBS="$ac_save_LIBS"
  1127. fi
  1128. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1129. echo "$ac_t""yes" 1>&6
  1130. ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
  1131. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1132. cat >> confdefs.h <<EOF
  1133. #define $ac_tr_lib 1
  1134. EOF
  1135. LIBS="-lcurses $LIBS"
  1136. else
  1137. echo "$ac_t""no" 1>&6
  1138. \
  1139. echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
  1140. echo "configure:1263: checking for tgetent in -lncurses" >&5
  1141. ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
  1142. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1143. echo $ac_n "(cached) $ac_c" 1>&6
  1144. else
  1145. ac_save_LIBS="$LIBS"
  1146. LIBS="-lncurses $LIBS"
  1147. cat > conftest.$ac_ext <<EOF
  1148. #line 1271 "configure"
  1149. #include "confdefs.h"
  1150. /* Override any gcc2 internal prototype to avoid an error. */
  1151. /* We use char because int might match the return type of a gcc2
  1152. builtin and then its argument prototype would still apply. */
  1153. char tgetent();
  1154. int main() {
  1155. tgetent()
  1156. ; return 0; }
  1157. EOF
  1158. if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1159. rm -rf conftest*
  1160. eval "ac_cv_lib_$ac_lib_var=yes"
  1161. else
  1162. echo "configure: failed program was:" >&5
  1163. cat conftest.$ac_ext >&5
  1164. rm -rf conftest*
  1165. eval "ac_cv_lib_$ac_lib_var=no"
  1166. fi
  1167. rm -f conftest*
  1168. LIBS="$ac_save_LIBS"
  1169. fi
  1170. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1171. echo "$ac_t""yes" 1>&6
  1172. ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
  1173. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1174. cat >> confdefs.h <<EOF
  1175. #define $ac_tr_lib 1
  1176. EOF
  1177. LIBS="-lncurses $LIBS"
  1178. else
  1179. echo "$ac_t""no" 1>&6
  1180. \
  1181. { echo "configure: error: termcap support not found" 1>&2; exit 1; }
  1182. fi
  1183. fi
  1184. fi
  1185. fi
  1186. for ac_hdr in termcap.h
  1187. do
  1188. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1189. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1190. echo "configure:1322: checking for $ac_hdr" >&5
  1191. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1192. echo $ac_n "(cached) $ac_c" 1>&6
  1193. else
  1194. cat > conftest.$ac_ext <<EOF
  1195. #line 1327 "configure"
  1196. #include "confdefs.h"
  1197. #include <$ac_hdr>
  1198. EOF
  1199. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1200. { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1201. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1202. if test -z "$ac_err"; then
  1203. rm -rf conftest*
  1204. eval "ac_cv_header_$ac_safe=yes"
  1205. else
  1206. echo "$ac_err" >&5
  1207. echo "configure: failed program was:" >&5
  1208. cat conftest.$ac_ext >&5
  1209. rm -rf conftest*
  1210. eval "ac_cv_header_$ac_safe=no"
  1211. fi
  1212. rm -f conftest*
  1213. fi
  1214. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1215. echo "$ac_t""yes" 1>&6
  1216. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1217. cat >> confdefs.h <<EOF
  1218. #define $ac_tr_hdr 1
  1219. EOF
  1220. else
  1221. echo "$ac_t""no" 1>&6
  1222. \
  1223. for ac_hdr in term.h
  1224. do
  1225. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1226. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1227. echo "configure:1360: checking for $ac_hdr" >&5
  1228. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1229. echo $ac_n "(cached) $ac_c" 1>&6
  1230. else
  1231. cat > conftest.$ac_ext <<EOF
  1232. #line 1365 "configure"
  1233. #include "confdefs.h"
  1234. #include <$ac_hdr>
  1235. EOF
  1236. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1237. { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1238. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1239. if test -z "$ac_err"; then
  1240. rm -rf conftest*
  1241. eval "ac_cv_header_$ac_safe=yes"
  1242. else
  1243. echo "$ac_err" >&5
  1244. echo "configure: failed program was:" >&5
  1245. cat conftest.$ac_ext >&5
  1246. rm -rf conftest*
  1247. eval "ac_cv_header_$ac_safe=no"
  1248. fi
  1249. rm -f conftest*
  1250. fi
  1251. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1252. echo "$ac_t""yes" 1>&6
  1253. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1254. cat >> confdefs.h <<EOF
  1255. #define $ac_tr_hdr 1
  1256. EOF
  1257. else
  1258. echo "$ac_t""no" 1>&6
  1259. \
  1260. echo "$ac_t""Need term.h since termcap.h is missing" 1>&6
  1261. fi
  1262. done
  1263. for ac_hdr in curses.h
  1264. do
  1265. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1266. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1267. echo "configure:1402: checking for $ac_hdr" >&5
  1268. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1269. echo $ac_n "(cached) $ac_c" 1>&6
  1270. else
  1271. cat > conftest.$ac_ext <<EOF
  1272. #line 1407 "configure"
  1273. #include "confdefs.h"
  1274. #include <$ac_hdr>
  1275. EOF
  1276. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1277. { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1278. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1279. if test -z "$ac_err"; then
  1280. rm -rf conftest*
  1281. eval "ac_cv_header_$ac_safe=yes"
  1282. else
  1283. echo "$ac_err" >&5
  1284. echo "configure: failed program was:" >&5
  1285. cat conftest.$ac_ext >&5
  1286. rm -rf conftest*
  1287. eval "ac_cv_header_$ac_safe=no"
  1288. fi
  1289. rm -f conftest*
  1290. fi
  1291. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1292. echo "$ac_t""yes" 1>&6
  1293. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1294. cat >> confdefs.h <<EOF
  1295. #define $ac_tr_hdr 1
  1296. EOF
  1297. else
  1298. echo "$ac_t""no" 1>&6
  1299. \
  1300. for ac_hdr in ncurses.h
  1301. do
  1302. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1303. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1304. echo "configure:1440: checking for $ac_hdr" >&5
  1305. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1306. echo $ac_n "(cached) $ac_c" 1>&6
  1307. else
  1308. cat > conftest.$ac_ext <<EOF
  1309. #line 1445 "configure"
  1310. #include "confdefs.h"
  1311. #include <$ac_hdr>
  1312. EOF
  1313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1314. { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1316. if test -z "$ac_err"; then
  1317. rm -rf conftest*
  1318. eval "ac_cv_header_$ac_safe=yes"
  1319. else
  1320. echo "$ac_err" >&5
  1321. echo "configure: failed program was:" >&5
  1322. cat conftest.$ac_ext >&5
  1323. rm -rf conftest*
  1324. eval "ac_cv_header_$ac_safe=no"
  1325. fi
  1326. rm -f conftest*
  1327. fi
  1328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1329. echo "$ac_t""yes" 1>&6
  1330. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1331. cat >> confdefs.h <<EOF
  1332. #define $ac_tr_hdr 1
  1333. EOF
  1334. else
  1335. echo "$ac_t""no" 1>&6
  1336. \
  1337. echo "$ac_t""Need curses.h or ncurses.h" 1>&6
  1338. fi
  1339. done
  1340. fi
  1341. done
  1342. fi
  1343. done
  1344. for ac_hdr in sys/cdefs.h vis.h
  1345. do
  1346. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1347. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1348. echo "configure:1489: checking for $ac_hdr" >&5
  1349. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1350. echo $ac_n "(cached) $ac_c" 1>&6
  1351. else
  1352. cat > conftest.$ac_ext <<EOF
  1353. #line 1494 "configure"
  1354. #include "confdefs.h"
  1355. #include <$ac_hdr>
  1356. EOF
  1357. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1358. { (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1359. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1360. if test -z "$ac_err"; then
  1361. rm -rf conftest*
  1362. eval "ac_cv_header_$ac_safe=yes"
  1363. else
  1364. echo "$ac_err" >&5
  1365. echo "configure: failed program was:" >&5
  1366. cat conftest.$ac_ext >&5
  1367. rm -rf conftest*
  1368. eval "ac_cv_header_$ac_safe=no"
  1369. fi
  1370. rm -f conftest*
  1371. fi
  1372. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1373. echo "$ac_t""yes" 1>&6
  1374. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1375. cat >> confdefs.h <<EOF
  1376. #define $ac_tr_hdr 1
  1377. EOF
  1378. else
  1379. echo "$ac_t""no" 1>&6
  1380. fi
  1381. done
  1382. for ac_func in issetugid
  1383. do
  1384. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1385. echo "configure:1529: checking for $ac_func" >&5
  1386. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1387. echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389. cat > conftest.$ac_ext <<EOF
  1390. #line 1534 "configure"
  1391. #include "confdefs.h"
  1392. /* System header to define __stub macros and hopefully few prototypes,
  1393. which can conflict with char $ac_func(); below. */
  1394. #include <assert.h>
  1395. /* Override any gcc2 internal prototype to avoid an error. */
  1396. /* We use char because int might match the return type of a gcc2
  1397. builtin and then its argument prototype would still apply. */
  1398. char $ac_func();
  1399. int main() {
  1400. /* The GNU C library defines this for functions which it implements
  1401. to always fail with ENOSYS. Some functions are actually named
  1402. something starting with __ and the normal name is an alias. */
  1403. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1404. choke me
  1405. #else
  1406. $ac_func();
  1407. #endif
  1408. ; return 0; }
  1409. EOF
  1410. if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1411. rm -rf conftest*
  1412. eval "ac_cv_func_$ac_func=yes"
  1413. else
  1414. echo "configure: failed program was:" >&5
  1415. cat conftest.$ac_ext >&5
  1416. rm -rf conftest*
  1417. eval "ac_cv_func_$ac_func=no"
  1418. fi
  1419. rm -f conftest*
  1420. fi
  1421. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1422. echo "$ac_t""yes" 1>&6
  1423. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1424. cat >> confdefs.h <<EOF
  1425. #define $ac_tr_func 1
  1426. EOF
  1427. else
  1428. echo "$ac_t""no" 1>&6
  1429. fi
  1430. done
  1431. for ac_func in fgetln
  1432. do
  1433. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1434. echo "configure:1584: checking for $ac_func" >&5
  1435. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1436. echo $ac_n "(cached) $ac_c" 1>&6
  1437. else
  1438. cat > conftest.$ac_ext <<EOF
  1439. #line 1589 "configure"
  1440. #include "confdefs.h"
  1441. /* System header to define __stub macros and hopefully few prototypes,
  1442. which can conflict with char $ac_func(); below. */
  1443. #include <assert.h>
  1444. /* Override any gcc2 internal prototype to avoid an error. */
  1445. /* We use char because int might match the return type of a gcc2
  1446. builtin and then its argument prototype would still apply. */
  1447. char $ac_func();
  1448. int main() {
  1449. /* The GNU C library defines this for functions which it implements
  1450. to always fail with ENOSYS. Some functions are actually named
  1451. something starting with __ and the normal name is an alias. */
  1452. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1453. choke me
  1454. #else
  1455. $ac_func();
  1456. #endif
  1457. ; return 0; }
  1458. EOF
  1459. if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1460. rm -rf conftest*
  1461. eval "ac_cv_func_$ac_func=yes"
  1462. else
  1463. echo "configure: failed program was:" >&5
  1464. cat conftest.$ac_ext >&5
  1465. rm -rf conftest*
  1466. eval "ac_cv_func_$ac_func=no"
  1467. fi
  1468. rm -f conftest*
  1469. fi
  1470. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1471. echo "$ac_t""yes" 1>&6
  1472. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1473. cat >> confdefs.h <<EOF
  1474. #define $ac_tr_func 1
  1475. EOF
  1476. else
  1477. echo "$ac_t""no" 1>&6
  1478. CCSRCS="$CCSRCS np/fgetln.c"
  1479. fi
  1480. done
  1481. for ac_func in strvis
  1482. do
  1483. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1484. echo "configure:1640: checking for $ac_func" >&5
  1485. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1486. echo $ac_n "(cached) $ac_c" 1>&6
  1487. else
  1488. cat > conftest.$ac_ext <<EOF
  1489. #line 1645 "configure"
  1490. #include "confdefs.h"
  1491. /* System header to define __stub macros and hopefully few prototypes,
  1492. which can conflict with char $ac_func(); below. */
  1493. #include <assert.h>
  1494. /* Override any gcc2 internal prototype to avoid an error. */
  1495. /* We use char because int might match the return type of a gcc2
  1496. builtin and then its argument prototype would still apply. */
  1497. char $ac_func();
  1498. int main() {
  1499. /* The GNU C library defines this for functions which it implements
  1500. to always fail with ENOSYS. Some functions are actually named
  1501. something starting with __ and the normal name is an alias. */
  1502. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1503. choke me
  1504. #else
  1505. $ac_func();
  1506. #endif
  1507. ; return 0; }
  1508. EOF
  1509. if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1510. rm -rf conftest*
  1511. eval "ac_cv_func_$ac_func=yes"
  1512. else
  1513. echo "configure: failed program was:" >&5
  1514. cat conftest.$ac_ext >&5
  1515. rm -rf conftest*
  1516. eval "ac_cv_func_$ac_func=no"
  1517. fi
  1518. rm -f conftest*
  1519. fi
  1520. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1521. echo "$ac_t""yes" 1>&6
  1522. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1523. cat >> confdefs.h <<EOF
  1524. #define $ac_tr_func 1
  1525. EOF
  1526. else
  1527. echo "$ac_t""no" 1>&6
  1528. CCSRCS="$CCSRCS np/vis.c"
  1529. fi
  1530. done
  1531. for ac_func in strunvis
  1532. do
  1533. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1534. echo "configure:1696: checking for $ac_func" >&5
  1535. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1536. echo $ac_n "(cached) $ac_c" 1>&6
  1537. else
  1538. cat > conftest.$ac_ext <<EOF
  1539. #line 1701 "configure"
  1540. #include "confdefs.h"
  1541. /* System header to define __stub macros and hopefully few prototypes,
  1542. which can conflict with char $ac_func(); below. */
  1543. #include <assert.h>
  1544. /* Override any gcc2 internal prototype to avoid an error. */
  1545. /* We use char because int might match the return type of a gcc2
  1546. builtin and then its argument prototype would still apply. */
  1547. char $ac_func();
  1548. int main() {
  1549. /* The GNU C library defines this for functions which it implements
  1550. to always fail with ENOSYS. Some functions are actually named
  1551. something starting with __ and the normal name is an alias. */
  1552. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1553. choke me
  1554. #else
  1555. $ac_func();
  1556. #endif
  1557. ; return 0; }
  1558. EOF
  1559. if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1560. rm -rf conftest*
  1561. eval "ac_cv_func_$ac_func=yes"
  1562. else
  1563. echo "configure: failed program was:" >&5
  1564. cat conftest.$ac_ext >&5
  1565. rm -rf conftest*
  1566. eval "ac_cv_func_$ac_func=no"
  1567. fi
  1568. rm -f conftest*
  1569. fi
  1570. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1571. echo "$ac_t""yes" 1>&6
  1572. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1573. cat >> confdefs.h <<EOF
  1574. #define $ac_tr_func 1
  1575. EOF
  1576. else
  1577. echo "$ac_t""no" 1>&6
  1578. CCSRCS="$CCSRCS np/unvis.c"
  1579. fi
  1580. done
  1581. for ac_func in strlcpy
  1582. do
  1583. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1584. echo "configure:1752: checking for $ac_func" >&5
  1585. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1586. echo $ac_n "(cached) $ac_c" 1>&6
  1587. else
  1588. cat > conftest.$ac_ext <<EOF
  1589. #line 1757 "configure"
  1590. #include "confdefs.h"
  1591. /* System header to define __stub macros and hopefully few prototypes,
  1592. which can conflict with char $ac_func(); below. */
  1593. #include <assert.h>
  1594. /* Override any gcc2 internal prototype to avoid an error. */
  1595. /* We use char because int might match the return type of a gcc2
  1596. builtin and then its argument prototype would still apply. */
  1597. char $ac_func();
  1598. int main() {
  1599. /* The GNU C library defines this for functions which it implements
  1600. to always fail with ENOSYS. Some functions are actually named
  1601. something starting with __ and the normal name is an alias. */
  1602. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1603. choke me
  1604. #else
  1605. $ac_func();
  1606. #endif
  1607. ; return 0; }
  1608. EOF
  1609. if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1610. rm -rf conftest*
  1611. eval "ac_cv_func_$ac_func=yes"
  1612. else
  1613. echo "configure: failed program was:" >&5
  1614. cat conftest.$ac_ext >&5
  1615. rm -rf conftest*
  1616. eval "ac_cv_func_$ac_func=no"
  1617. fi
  1618. rm -f conftest*
  1619. fi
  1620. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1621. echo "$ac_t""yes" 1>&6
  1622. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1623. cat >> confdefs.h <<EOF
  1624. #define $ac_tr_func 1
  1625. EOF
  1626. else
  1627. echo "$ac_t""no" 1>&6
  1628. CCSRCS="$CCSRCS np/strlcpy.c"
  1629. fi
  1630. done
  1631. for ac_func in strlcat
  1632. do
  1633. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1634. echo "configure:1808: checking for $ac_func" >&5
  1635. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1636. echo $ac_n "(cached) $ac_c" 1>&6
  1637. else
  1638. cat > conftest.$ac_ext <<EOF
  1639. #line 1813 "configure"
  1640. #include "confdefs.h"
  1641. /* System header to define __stub macros and hopefully few prototypes,
  1642. which can conflict with char $ac_func(); below. */
  1643. #include <assert.h>
  1644. /* Override any gcc2 internal prototype to avoid an error. */
  1645. /* We use char because int might match the return type of a gcc2
  1646. builtin and then its argument prototype would still apply. */
  1647. char $ac_func();
  1648. int main() {
  1649. /* The GNU C library defines this for functions which it implements
  1650. to always fail with ENOSYS. Some functions are actually named
  1651. something starting with __ and the normal name is an alias. */
  1652. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1653. choke me
  1654. #else
  1655. $ac_func();
  1656. #endif
  1657. ; return 0; }
  1658. EOF
  1659. if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1660. rm -rf conftest*
  1661. eval "ac_cv_func_$ac_func=yes"
  1662. else
  1663. echo "configure: failed program was:" >&5
  1664. cat conftest.$ac_ext >&5
  1665. rm -rf conftest*
  1666. eval "ac_cv_func_$ac_func=no"
  1667. fi
  1668. rm -f conftest*
  1669. fi
  1670. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1671. echo "$ac_t""yes" 1>&6
  1672. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1673. cat >> confdefs.h <<EOF
  1674. #define $ac_tr_func 1
  1675. EOF
  1676. else
  1677. echo "$ac_t""no" 1>&6
  1678. CCSRCS="$CCSRCS np/strlcat.c"
  1679. fi
  1680. done
  1681. cat > conftest.$ac_ext <<EOF
  1682. #line 1863 "configure"
  1683. #include "confdefs.h"
  1684. #include <sys/cdefs.h>
  1685. #ifdef __RCSID
  1686. yes
  1687. #endif
  1688. EOF
  1689. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1690. egrep "yes" >/dev/null 2>&1; then
  1691. :
  1692. else
  1693. rm -rf conftest*
  1694. CPPFLAGS="$CPPFLAGS '-D__RCSID(x)='"
  1695. fi
  1696. rm -f conftest*
  1697. cat > conftest.$ac_ext <<EOF
  1698. #line 1882 "configure"
  1699. #include "confdefs.h"
  1700. #include <sys/cdefs.h>
  1701. #ifdef __COPYRIGHT
  1702. yes
  1703. #endif
  1704. EOF
  1705. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1706. egrep "yes" >/dev/null 2>&1; then
  1707. :
  1708. else
  1709. rm -rf conftest*
  1710. CPPFLAGS="$CPPFLAGS '-D__COPYRIGHT(x)='"
  1711. fi
  1712. rm -f conftest*
  1713. cat > conftest.$ac_ext <<EOF
  1714. #line 1901 "configure"
  1715. #include "confdefs.h"
  1716. #include <sys/cdefs.h>
  1717. #ifdef __RENAME
  1718. yes
  1719. #endif
  1720. EOF
  1721. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1722. egrep "yes" >/dev/null 2>&1; then
  1723. :
  1724. else
  1725. rm -rf conftest*
  1726. CPPFLAGS="$CPPFLAGS '-D__RENAME(x)='"
  1727. fi
  1728. rm -f conftest*
  1729. cat > conftest.$ac_ext <<EOF
  1730. #line 1920 "configure"
  1731. #include "confdefs.h"
  1732. #include <sys/cdefs.h>
  1733. #ifdef _DIAGASSERT
  1734. yes
  1735. #endif
  1736. EOF
  1737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1738. egrep "yes" >/dev/null 2>&1; then
  1739. :
  1740. else
  1741. rm -rf conftest*
  1742. CPPFLAGS="$CPPFLAGS '-D_DIAGASSERT(x)='"
  1743. fi
  1744. rm -f conftest*
  1745. # Check whether --enable-readline or --disable-readline was given.
  1746. if test "${enable_readline+set}" = set; then
  1747. enableval="$enable_readline"
  1748. if test "x$enable_readline" != "xyes" ; then
  1749. enable_readline="no"
  1750. fi
  1751. else
  1752. enable_readline="yes"
  1753. fi
  1754. # Check whether --enable-debug or --disable-debug was given.
  1755. if test "${enable_debug+set}" = set; then
  1756. enableval="$enable_debug"
  1757. if test "x$enable_debug" != "xyes" ; then
  1758. enable_debug="no"
  1759. fi
  1760. else
  1761. enable_debug="no"
  1762. fi
  1763. if test "x$enable_debug" = "xyes" ; then
  1764. CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG"
  1765. CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE"
  1766. else
  1767. CFLAGS="$CFLAGS -O"
  1768. fi
  1769. ACSRCS="common.c emacs.c vi.c"
  1770. BCSRCS="chared.c el.c hist.c key.c map.c parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c"
  1771. CCSRCS="$CCSRCS history.c tokenizer.c"
  1772. AGCSRCS="fcns.c help.c"
  1773. BGCSRCS="editline.c"
  1774. HDRS="chared.h el.h hist.h key.h map.h parse.h prompt.h refresh.h search.h sig.h sys.h term.h tokenizer.h tty.h"
  1775. IHDRS="histedit.h"
  1776. IHDR_LINKS=
  1777. AGHDRS="common.h emacs.h vi.h"
  1778. BGHDRS="fcns.h help.h"
  1779. HDR_DIRS="include"
  1780. MAN3="editline.3"
  1781. MAN5="editrc.5"
  1782. MAN3_LINKS=
  1783. for i in el_init.3 el_end.3 el_reset.3 el_gets.3 el_getc.3 el_push.3 \
  1784. el_parse.3 el_set.3 el_get.3 el_source.3 el_resize.3 el_line.3 \
  1785. el_insertstr.3 el_deletestr.3 history_init.3 history_end.3 \
  1786. history.3 ; do
  1787. MAN3_LINKS="$MAN3_LINKS editline.3 $i"
  1788. done
  1789. MAN_DIRS="man/man3 man/man5"
  1790. LIB_DIRS="lib"
  1791. LIB_MAJOR="2"
  1792. LIB_MINOR="6"
  1793. LIB_A="libedit.a"
  1794. LIB_A_LINKS=
  1795. if test "x$ABI" = "xelf" ; then
  1796. LIB_S="libedit.so.$LIB_MAJOR"
  1797. LIB_S_LINK="libedit.so"
  1798. LIB_S_LINKS="$LIB_S $LIB_S_LINK"
  1799. S_LDFLAGS="-shared"
  1800. elif test "x$ABI" = "xaout" ; then
  1801. LIB_S="libedit.so.$LIB_MAJOR.$LIB_MINOR"
  1802. LIB_S_LINKS=
  1803. S_LDFLAGS="-shared"
  1804. elif test "x$ABI" = "xmacho" ; then
  1805. S_LDFLAGS="-shared"
  1806. LIB_S="libedit.$LIB_MAJOR.dylib"
  1807. LIB_S_LINK="libedit.dylib"
  1808. LIB_S_LINKS="$LIB_S $LIB_S_LINK"
  1809. if test "x$prefix" = "xNONE" ; then
  1810. S_LDFLAGS="-undefined suppress -flat_namespace -dynamiclib -compatibility_version $LIB_MAJOR -current_version $LIB_MAJOR -install_name /usr/local/lib/$LIB_S"
  1811. else
  1812. S_LDFLAGS="-undefined suppress -flat_namespace -dynamiclib -compatibility_version $LIB_MAJOR -current_version $LIB_MAJOR -install_name $prefix/lib/$LIB_S"
  1813. fi
  1814. fi
  1815. TEST="TEST/test"
  1816. TCSRCS="TEST/test.c"
  1817. if test "x$enable_readline" = "xyes" ; then
  1818. CCSRCS="$CCSRCS readline.c"
  1819. IHDRS="$IHDRS readline.h"
  1820. IHDR_LINKS="readline.h readline/history.h"
  1821. HDR_DIRS="$HDR_DIRS include/readline"
  1822. LIB_A_LINKS="$LIB_A_LINKS libedit.a libreadline.a"
  1823. if test "x$ABI" = "xelf" ; then
  1824. LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.so"
  1825. elif test "x$ABI" = "xaout" ; then
  1826. LIB_S_LINKS="$LIB_S_LINKS $LIB_S libreadline.so.$LIB_MAJOR.$LIB_MINOR"
  1827. elif test "x$ABI" = "xmacho" ; then
  1828. LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.dylib"
  1829. fi
  1830. fi
  1831. trap '' 1 2 15
  1832. cat > confcache <<\EOF
  1833. # This file is a shell script that caches the results of configure
  1834. # tests run on this system so they can be shared between configure
  1835. # scripts and configure runs. It is not useful on other systems.
  1836. # If it contains results you don't want to keep, you may remove or edit it.
  1837. #
  1838. # By default, configure uses ./config.cache as the cache file,
  1839. # creating it if it does not exist already. You can give configure
  1840. # the --cache-file=FILE option to use a different cache file; that is
  1841. # what configure does when it calls configure scripts in
  1842. # subdirectories, so they share the cache.
  1843. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1844. # config.status only pays attention to the cache file if you give it the
  1845. # --recheck option to rerun configure.
  1846. #
  1847. EOF
  1848. # The following way of writing the cache mishandles newlines in values,
  1849. # but we know of no workaround that is simple, portable, and efficient.
  1850. # So, don't put newlines in cache variables' values.
  1851. # Ultrix sh set writes to stderr and can't be redirected directly,
  1852. # and sets the high bit in the cache file unless we assign to the vars.
  1853. (set) 2>&1 |
  1854. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1855. *ac_space=\ *)
  1856. # `set' does not quote correctly, so add quotes (double-quote substitution
  1857. # turns \\\\ into \\, and sed turns \\ into \).
  1858. sed -n \
  1859. -e "s/'/'\\\\''/g" \
  1860. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1861. ;;
  1862. *)
  1863. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1864. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1865. ;;
  1866. esac >> confcache
  1867. if cmp -s $cache_file confcache; then
  1868. :
  1869. else
  1870. if test -w $cache_file; then
  1871. echo "updating cache $cache_file"
  1872. cat confcache > $cache_file
  1873. else
  1874. echo "not updating unwritable cache $cache_file"
  1875. fi
  1876. fi
  1877. rm -f confcache
  1878. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1879. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1880. # Let make expand exec_prefix.
  1881. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1882. # Any assignment to VPATH causes Sun make to only execute
  1883. # the first set of double-colon rules, so remove it if not needed.
  1884. # If there is a colon in the path, we need to keep it.
  1885. if test "x$srcdir" = x.; then
  1886. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1887. fi
  1888. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1889. DEFS=-DHAVE_CONFIG_H
  1890. # Without the "./", some shells look in PATH for config.status.
  1891. : ${CONFIG_STATUS=./config.status}
  1892. echo creating $CONFIG_STATUS
  1893. rm -f $CONFIG_STATUS
  1894. cat > $CONFIG_STATUS <<EOF
  1895. #! /bin/sh
  1896. # Generated automatically by configure.
  1897. # Run this file to recreate the current configuration.
  1898. # This directory was configured as follows,
  1899. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1900. #
  1901. # $0 $ac_configure_args
  1902. #
  1903. # Compiler output produced by configure, useful for debugging
  1904. # configure, is in ./config.log if it exists.
  1905. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1906. for ac_option
  1907. do
  1908. case "\$ac_option" in
  1909. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1910. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1911. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1912. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1913. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1914. exit 0 ;;
  1915. -help | --help | --hel | --he | --h)
  1916. echo "\$ac_cs_usage"; exit 0 ;;
  1917. *) echo "\$ac_cs_usage"; exit 1 ;;
  1918. esac
  1919. done
  1920. ac_given_srcdir=$srcdir
  1921. ac_given_INSTALL="$INSTALL"
  1922. trap 'rm -fr `echo "Makefile makelist config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1923. EOF
  1924. cat >> $CONFIG_STATUS <<EOF
  1925. # Protect against being on the right side of a sed subst in config.status.
  1926. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1927. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1928. $ac_vpsub
  1929. $extrasub
  1930. s%@SHELL@%$SHELL%g
  1931. s%@CFLAGS@%$CFLAGS%g
  1932. s%@CPPFLAGS@%$CPPFLAGS%g
  1933. s%@CXXFLAGS@%$CXXFLAGS%g
  1934. s%@FFLAGS@%$FFLAGS%g
  1935. s%@DEFS@%$DEFS%g
  1936. s%@LDFLAGS@%$LDFLAGS%g
  1937. s%@LIBS@%$LIBS%g
  1938. s%@exec_prefix@%$exec_prefix%g
  1939. s%@prefix@%$prefix%g
  1940. s%@program_transform_name@%$program_transform_name%g
  1941. s%@bindir@%$bindir%g
  1942. s%@sbindir@%$sbindir%g
  1943. s%@libexecdir@%$libexecdir%g
  1944. s%@datadir@%$datadir%g
  1945. s%@sysconfdir@%$sysconfdir%g
  1946. s%@sharedstatedir@%$sharedstatedir%g
  1947. s%@localstatedir@%$localstatedir%g
  1948. s%@libdir@%$libdir%g
  1949. s%@includedir@%$includedir%g
  1950. s%@oldincludedir@%$oldincludedir%g
  1951. s%@infodir@%$infodir%g
  1952. s%@mandir@%$mandir%g
  1953. s%@CC@%$CC%g
  1954. s%@A_CFLAGS@%$A_CFLAGS%g
  1955. s%@S_CFLAGS@%$S_CFLAGS%g
  1956. s%@CPP@%$CPP%g
  1957. s%@AWK@%$AWK%g
  1958. s%@host@%$host%g
  1959. s%@host_alias@%$host_alias%g
  1960. s%@host_cpu@%$host_cpu%g
  1961. s%@host_vendor@%$host_vendor%g
  1962. s%@host_os@%$host_os%g
  1963. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1964. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1965. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1966. s%@RANLIB@%$RANLIB%g
  1967. s%@AR@%$AR%g
  1968. s%@ACSRCS@%$ACSRCS%g
  1969. s%@BCSRCS@%$BCSRCS%g
  1970. s%@CCSRCS@%$CCSRCS%g
  1971. s%@AGCSRCS@%$AGCSRCS%g
  1972. s%@BGCSRCS@%$BGCSRCS%g
  1973. s%@HDRS@%$HDRS%g
  1974. s%@IHDRS@%$IHDRS%g
  1975. s%@IHDR_LINKS@%$IHDR_LINKS%g
  1976. s%@AGHDRS@%$AGHDRS%g
  1977. s%@BGHDRS@%$BGHDRS%g
  1978. s%@HDR_DIRS@%$HDR_DIRS%g
  1979. s%@MAN3@%$MAN3%g
  1980. s%@MAN5@%$MAN5%g
  1981. s%@MAN3_LINKS@%$MAN3_LINKS%g
  1982. s%@MAN_DIRS@%$MAN_DIRS%g
  1983. s%@LIB_DIRS@%$LIB_DIRS%g
  1984. s%@LIB_VER@%$LIB_VER%g
  1985. s%@LIB_A@%$LIB_A%g
  1986. s%@LIB_A_LINKS@%$LIB_A_LINKS%g
  1987. s%@LIB_S@%$LIB_S%g
  1988. s%@LIB_S_LINKS@%$LIB_S_LINKS%g
  1989. s%@S_LDFLAGS@%$S_LDFLAGS%g
  1990. s%@TEST@%$TEST%g
  1991. s%@TCSRCS@%$TCSRCS%g
  1992. CEOF
  1993. EOF
  1994. cat >> $CONFIG_STATUS <<\EOF
  1995. # Split the substitutions into bite-sized pieces for seds with
  1996. # small command number limits, like on Digital OSF/1 and HP-UX.
  1997. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1998. ac_file=1 # Number of current file.
  1999. ac_beg=1 # First line for current file.
  2000. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2001. ac_more_lines=:
  2002. ac_sed_cmds=""
  2003. while $ac_more_lines; do
  2004. if test $ac_beg -gt 1; then
  2005. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2006. else
  2007. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2008. fi
  2009. if test ! -s conftest.s$ac_file; then
  2010. ac_more_lines=false
  2011. rm -f conftest.s$ac_file
  2012. else
  2013. if test -z "$ac_sed_cmds"; then
  2014. ac_sed_cmds="sed -f conftest.s$ac_file"
  2015. else
  2016. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2017. fi
  2018. ac_file=`expr $ac_file + 1`
  2019. ac_beg=$ac_end
  2020. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2021. fi
  2022. done
  2023. if test -z "$ac_sed_cmds"; then
  2024. ac_sed_cmds=cat
  2025. fi
  2026. EOF
  2027. cat >> $CONFIG_STATUS <<EOF
  2028. CONFIG_FILES=\${CONFIG_FILES-"Makefile makelist"}
  2029. EOF
  2030. cat >> $CONFIG_STATUS <<\EOF
  2031. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2032. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2033. case "$ac_file" in
  2034. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2035. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2036. *) ac_file_in="${ac_file}.in" ;;
  2037. esac
  2038. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2039. # Remove last slash and all that follows it. Not all systems have dirname.
  2040. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2041. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2042. # The file is in a subdirectory.
  2043. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2044. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2045. # A "../" for each directory in $ac_dir_suffix.
  2046. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2047. else
  2048. ac_dir_suffix= ac_dots=
  2049. fi
  2050. case "$ac_given_srcdir" in
  2051. .) srcdir=.
  2052. if test -z "$ac_dots"; then top_srcdir=.
  2053. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2054. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2055. *) # Relative path.
  2056. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2057. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2058. esac
  2059. case "$ac_given_INSTALL" in
  2060. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2061. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2062. esac
  2063. echo creating "$ac_file"
  2064. rm -f "$ac_file"
  2065. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2066. case "$ac_file" in
  2067. *Makefile*) ac_comsub="1i\\
  2068. # $configure_input" ;;
  2069. *) ac_comsub= ;;
  2070. esac
  2071. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2072. sed -e "$ac_comsub
  2073. s%@configure_input@%$configure_input%g
  2074. s%@srcdir@%$srcdir%g
  2075. s%@top_srcdir@%$top_srcdir%g
  2076. s%@INSTALL@%$INSTALL%g
  2077. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2078. fi; done
  2079. rm -f conftest.s*
  2080. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2081. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2082. #
  2083. # ac_d sets the value in "#define NAME VALUE" lines.
  2084. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2085. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2086. ac_dC='\3'
  2087. ac_dD='%g'
  2088. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2089. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2090. ac_uB='\([ ]\)%\1#\2define\3'
  2091. ac_uC=' '
  2092. ac_uD='\4%g'
  2093. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2094. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2095. ac_eB='$%\1#\2define\3'
  2096. ac_eC=' '
  2097. ac_eD='%g'
  2098. if test "${CONFIG_HEADERS+set}" != set; then
  2099. EOF
  2100. cat >> $CONFIG_STATUS <<EOF
  2101. CONFIG_HEADERS="config.h"
  2102. EOF
  2103. cat >> $CONFIG_STATUS <<\EOF
  2104. fi
  2105. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2106. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2107. case "$ac_file" in
  2108. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2109. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2110. *) ac_file_in="${ac_file}.in" ;;
  2111. esac
  2112. echo creating $ac_file
  2113. rm -f conftest.frag conftest.in conftest.out
  2114. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2115. cat $ac_file_inputs > conftest.in
  2116. EOF
  2117. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2118. # the proper values into config.h.in to produce config.h. And first:
  2119. # Protect against being on the right side of a sed subst in config.status.
  2120. # Protect against being in an unquoted here document in config.status.
  2121. rm -f conftest.vals
  2122. cat > conftest.hdr <<\EOF
  2123. s/[\\&%]/\\&/g
  2124. s%[\\$`]%\\&%g
  2125. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2126. s%ac_d%ac_u%gp
  2127. s%ac_u%ac_e%gp
  2128. EOF
  2129. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2130. rm -f conftest.hdr
  2131. # This sed command replaces #undef with comments. This is necessary, for
  2132. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2133. # on some systems where configure will not decide to define it.
  2134. cat >> conftest.vals <<\EOF
  2135. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2136. EOF
  2137. # Break up conftest.vals because some shells have a limit on
  2138. # the size of here documents, and old seds have small limits too.
  2139. rm -f conftest.tail
  2140. while :
  2141. do
  2142. ac_lines=`grep -c . conftest.vals`
  2143. # grep -c gives empty output for an empty file on some AIX systems.
  2144. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2145. # Write a limited-size here document to conftest.frag.
  2146. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2147. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2148. echo 'CEOF
  2149. sed -f conftest.frag conftest.in > conftest.out
  2150. rm -f conftest.in
  2151. mv conftest.out conftest.in
  2152. ' >> $CONFIG_STATUS
  2153. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2154. rm -f conftest.vals
  2155. mv conftest.tail conftest.vals
  2156. done
  2157. rm -f conftest.vals
  2158. cat >> $CONFIG_STATUS <<\EOF
  2159. rm -f conftest.frag conftest.h
  2160. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2161. cat conftest.in >> conftest.h
  2162. rm -f conftest.in
  2163. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2164. echo "$ac_file is unchanged"
  2165. rm -f conftest.h
  2166. else
  2167. # Remove last slash and all that follows it. Not all systems have dirname.
  2168. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2169. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2170. # The file is in a subdirectory.
  2171. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2172. fi
  2173. rm -f $ac_file
  2174. mv conftest.h $ac_file
  2175. fi
  2176. fi; done
  2177. EOF
  2178. cat >> $CONFIG_STATUS <<EOF
  2179. EOF
  2180. cat >> $CONFIG_STATUS <<\EOF
  2181. exit 0
  2182. EOF
  2183. chmod +x $CONFIG_STATUS
  2184. rm -fr confdefs* $ac_clean_files
  2185. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1