configure 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  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. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. bindir='${exec_prefix}/bin'
  34. sbindir='${exec_prefix}/sbin'
  35. libexecdir='${exec_prefix}/libexec'
  36. datadir='${prefix}/share'
  37. sysconfdir='${prefix}/etc'
  38. sharedstatedir='${prefix}/com'
  39. localstatedir='${prefix}/var'
  40. libdir='${exec_prefix}/lib'
  41. includedir='${prefix}/include'
  42. oldincludedir='/usr/include'
  43. infodir='${prefix}/info'
  44. mandir='${prefix}/man'
  45. # Initialize some other variables.
  46. subdirs=
  47. MFLAGS= MAKEFLAGS=
  48. SHELL=${CONFIG_SHELL-/bin/sh}
  49. # Maximum number of lines to put in a shell here document.
  50. ac_max_here_lines=12
  51. ac_prev=
  52. for ac_option
  53. do
  54. # If the previous option needs an argument, assign it.
  55. if test -n "$ac_prev"; then
  56. eval "$ac_prev=\$ac_option"
  57. ac_prev=
  58. continue
  59. fi
  60. case "$ac_option" in
  61. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  62. *) ac_optarg= ;;
  63. esac
  64. # Accept the important Cygnus configure options, so we can diagnose typos.
  65. case "$ac_option" in
  66. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  67. ac_prev=bindir ;;
  68. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  69. bindir="$ac_optarg" ;;
  70. -build | --build | --buil | --bui | --bu)
  71. ac_prev=build ;;
  72. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  73. build="$ac_optarg" ;;
  74. -cache-file | --cache-file | --cache-fil | --cache-fi \
  75. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  76. ac_prev=cache_file ;;
  77. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  78. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  79. cache_file="$ac_optarg" ;;
  80. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  81. ac_prev=datadir ;;
  82. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  83. | --da=*)
  84. datadir="$ac_optarg" ;;
  85. -disable-* | --disable-*)
  86. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  87. # Reject names that are not valid shell variable names.
  88. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  89. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  90. fi
  91. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  92. eval "enable_${ac_feature}=no" ;;
  93. -enable-* | --enable-*)
  94. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  95. # Reject names that are not valid shell variable names.
  96. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  97. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  98. fi
  99. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  100. case "$ac_option" in
  101. *=*) ;;
  102. *) ac_optarg=yes ;;
  103. esac
  104. eval "enable_${ac_feature}='$ac_optarg'" ;;
  105. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  106. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  107. | --exec | --exe | --ex)
  108. ac_prev=exec_prefix ;;
  109. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  110. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  111. | --exec=* | --exe=* | --ex=*)
  112. exec_prefix="$ac_optarg" ;;
  113. -gas | --gas | --ga | --g)
  114. # Obsolete; use --with-gas.
  115. with_gas=yes ;;
  116. -help | --help | --hel | --he)
  117. # Omit some internal or obsolete options to make the list less imposing.
  118. # This message is too long to be a string in the A/UX 3.1 sh.
  119. cat << EOF
  120. Usage: configure [options] [host]
  121. Options: [defaults in brackets after descriptions]
  122. Configuration:
  123. --cache-file=FILE cache test results in FILE
  124. --help print this message
  125. --no-create do not create output files
  126. --quiet, --silent do not print \`checking...' messages
  127. --version print the version of autoconf that created configure
  128. Directory and file names:
  129. --prefix=PREFIX install architecture-independent files in PREFIX
  130. [$ac_default_prefix]
  131. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  132. [same as prefix]
  133. --bindir=DIR user executables in DIR [EPREFIX/bin]
  134. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  135. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  136. --datadir=DIR read-only architecture-independent data in DIR
  137. [PREFIX/share]
  138. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  139. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  140. [PREFIX/com]
  141. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  142. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  143. --includedir=DIR C header files in DIR [PREFIX/include]
  144. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  145. --infodir=DIR info documentation in DIR [PREFIX/info]
  146. --mandir=DIR man documentation in DIR [PREFIX/man]
  147. --srcdir=DIR find the sources in DIR [configure dir or ..]
  148. --program-prefix=PREFIX prepend PREFIX to installed program names
  149. --program-suffix=SUFFIX append SUFFIX to installed program names
  150. --program-transform-name=PROGRAM
  151. run sed PROGRAM on installed program names
  152. EOF
  153. cat << EOF
  154. Host type:
  155. --build=BUILD configure for building on BUILD [BUILD=HOST]
  156. --host=HOST configure for HOST [guessed]
  157. --target=TARGET configure for TARGET [TARGET=HOST]
  158. Features and packages:
  159. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  160. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  161. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  162. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  163. --x-includes=DIR X include files are in DIR
  164. --x-libraries=DIR X library files are in DIR
  165. EOF
  166. if test -n "$ac_help"; then
  167. echo "--enable and --with options recognized:$ac_help"
  168. fi
  169. exit 0 ;;
  170. -host | --host | --hos | --ho)
  171. ac_prev=host ;;
  172. -host=* | --host=* | --hos=* | --ho=*)
  173. host="$ac_optarg" ;;
  174. -includedir | --includedir | --includedi | --included | --include \
  175. | --includ | --inclu | --incl | --inc)
  176. ac_prev=includedir ;;
  177. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  178. | --includ=* | --inclu=* | --incl=* | --inc=*)
  179. includedir="$ac_optarg" ;;
  180. -infodir | --infodir | --infodi | --infod | --info | --inf)
  181. ac_prev=infodir ;;
  182. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  183. infodir="$ac_optarg" ;;
  184. -libdir | --libdir | --libdi | --libd)
  185. ac_prev=libdir ;;
  186. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  187. libdir="$ac_optarg" ;;
  188. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  189. | --libexe | --libex | --libe)
  190. ac_prev=libexecdir ;;
  191. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  192. | --libexe=* | --libex=* | --libe=*)
  193. libexecdir="$ac_optarg" ;;
  194. -localstatedir | --localstatedir | --localstatedi | --localstated \
  195. | --localstate | --localstat | --localsta | --localst \
  196. | --locals | --local | --loca | --loc | --lo)
  197. ac_prev=localstatedir ;;
  198. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  199. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  200. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  201. localstatedir="$ac_optarg" ;;
  202. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  203. ac_prev=mandir ;;
  204. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  205. mandir="$ac_optarg" ;;
  206. -nfp | --nfp | --nf)
  207. # Obsolete; use --without-fp.
  208. with_fp=no ;;
  209. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  210. | --no-cr | --no-c)
  211. no_create=yes ;;
  212. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  213. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  214. no_recursion=yes ;;
  215. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  216. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  217. | --oldin | --oldi | --old | --ol | --o)
  218. ac_prev=oldincludedir ;;
  219. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  220. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  221. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  222. oldincludedir="$ac_optarg" ;;
  223. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  224. ac_prev=prefix ;;
  225. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  226. prefix="$ac_optarg" ;;
  227. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  228. | --program-pre | --program-pr | --program-p)
  229. ac_prev=program_prefix ;;
  230. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  231. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  232. program_prefix="$ac_optarg" ;;
  233. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  234. | --program-suf | --program-su | --program-s)
  235. ac_prev=program_suffix ;;
  236. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  237. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  238. program_suffix="$ac_optarg" ;;
  239. -program-transform-name | --program-transform-name \
  240. | --program-transform-nam | --program-transform-na \
  241. | --program-transform-n | --program-transform- \
  242. | --program-transform | --program-transfor \
  243. | --program-transfo | --program-transf \
  244. | --program-trans | --program-tran \
  245. | --progr-tra | --program-tr | --program-t)
  246. ac_prev=program_transform_name ;;
  247. -program-transform-name=* | --program-transform-name=* \
  248. | --program-transform-nam=* | --program-transform-na=* \
  249. | --program-transform-n=* | --program-transform-=* \
  250. | --program-transform=* | --program-transfor=* \
  251. | --program-transfo=* | --program-transf=* \
  252. | --program-trans=* | --program-tran=* \
  253. | --progr-tra=* | --program-tr=* | --program-t=*)
  254. program_transform_name="$ac_optarg" ;;
  255. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  256. | -silent | --silent | --silen | --sile | --sil)
  257. silent=yes ;;
  258. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  259. ac_prev=sbindir ;;
  260. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  261. | --sbi=* | --sb=*)
  262. sbindir="$ac_optarg" ;;
  263. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  264. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  265. | --sharedst | --shareds | --shared | --share | --shar \
  266. | --sha | --sh)
  267. ac_prev=sharedstatedir ;;
  268. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  269. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  270. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  271. | --sha=* | --sh=*)
  272. sharedstatedir="$ac_optarg" ;;
  273. -site | --site | --sit)
  274. ac_prev=site ;;
  275. -site=* | --site=* | --sit=*)
  276. site="$ac_optarg" ;;
  277. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  278. ac_prev=srcdir ;;
  279. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  280. srcdir="$ac_optarg" ;;
  281. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  282. | --syscon | --sysco | --sysc | --sys | --sy)
  283. ac_prev=sysconfdir ;;
  284. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  285. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  286. sysconfdir="$ac_optarg" ;;
  287. -target | --target | --targe | --targ | --tar | --ta | --t)
  288. ac_prev=target ;;
  289. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  290. target="$ac_optarg" ;;
  291. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  292. verbose=yes ;;
  293. -version | --version | --versio | --versi | --vers)
  294. echo "configure generated by autoconf version 2.13"
  295. exit 0 ;;
  296. -with-* | --with-*)
  297. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  298. # Reject names that are not valid shell variable names.
  299. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  300. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  301. fi
  302. ac_package=`echo $ac_package| sed 's/-/_/g'`
  303. case "$ac_option" in
  304. *=*) ;;
  305. *) ac_optarg=yes ;;
  306. esac
  307. eval "with_${ac_package}='$ac_optarg'" ;;
  308. -without-* | --without-*)
  309. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  310. # Reject names that are not valid shell variable names.
  311. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  312. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  313. fi
  314. ac_package=`echo $ac_package| sed 's/-/_/g'`
  315. eval "with_${ac_package}=no" ;;
  316. --x)
  317. # Obsolete; use --with-x.
  318. with_x=yes ;;
  319. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  320. | --x-incl | --x-inc | --x-in | --x-i)
  321. ac_prev=x_includes ;;
  322. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  323. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  324. x_includes="$ac_optarg" ;;
  325. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  326. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  327. ac_prev=x_libraries ;;
  328. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  329. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  330. x_libraries="$ac_optarg" ;;
  331. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  332. ;;
  333. *)
  334. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  335. echo "configure: warning: $ac_option: invalid host type" 1>&2
  336. fi
  337. if test "x$nonopt" != xNONE; then
  338. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  339. fi
  340. nonopt="$ac_option"
  341. ;;
  342. esac
  343. done
  344. if test -n "$ac_prev"; then
  345. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  346. fi
  347. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  348. # File descriptor usage:
  349. # 0 standard input
  350. # 1 file creation
  351. # 2 errors and warnings
  352. # 3 some systems may open it to /dev/tty
  353. # 4 used on the Kubota Titan
  354. # 6 checking for... messages and results
  355. # 5 compiler messages saved in config.log
  356. if test "$silent" = yes; then
  357. exec 6>/dev/null
  358. else
  359. exec 6>&1
  360. fi
  361. exec 5>./config.log
  362. echo "\
  363. This file contains any messages produced by compilers while
  364. running configure, to aid debugging if configure makes a mistake.
  365. " 1>&5
  366. # Strip out --no-create and --no-recursion so they do not pile up.
  367. # Also quote any args containing shell metacharacters.
  368. ac_configure_args=
  369. for ac_arg
  370. do
  371. case "$ac_arg" in
  372. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  373. | --no-cr | --no-c) ;;
  374. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  375. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  376. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  377. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  378. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  379. esac
  380. done
  381. # NLS nuisances.
  382. # Only set these to C if already set. These must not be set unconditionally
  383. # because not all systems understand e.g. LANG=C (notably SCO).
  384. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  385. # Non-C LC_CTYPE values break the ctype check.
  386. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  387. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  388. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  389. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  390. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  391. rm -rf conftest* confdefs.h
  392. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  393. echo > confdefs.h
  394. # A filename unique to this package, relative to the directory that
  395. # configure is in, which we can look for to find out if srcdir is correct.
  396. ac_unique_file=emacs-lisp-intro.texi
  397. # Find the source files, if location was not specified.
  398. if test -z "$srcdir"; then
  399. ac_srcdir_defaulted=yes
  400. # Try the directory containing this script, then its parent.
  401. ac_prog=$0
  402. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  403. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  404. srcdir=$ac_confdir
  405. if test ! -r $srcdir/$ac_unique_file; then
  406. srcdir=..
  407. fi
  408. else
  409. ac_srcdir_defaulted=no
  410. fi
  411. if test ! -r $srcdir/$ac_unique_file; then
  412. if test "$ac_srcdir_defaulted" = yes; then
  413. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  414. else
  415. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  416. fi
  417. fi
  418. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  419. # Prefer explicitly selected file to automatically selected ones.
  420. if test -z "$CONFIG_SITE"; then
  421. if test "x$prefix" != xNONE; then
  422. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  423. else
  424. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  425. fi
  426. fi
  427. for ac_site_file in $CONFIG_SITE; do
  428. if test -r "$ac_site_file"; then
  429. echo "loading site script $ac_site_file"
  430. . "$ac_site_file"
  431. fi
  432. done
  433. if test -r "$cache_file"; then
  434. echo "loading cache $cache_file"
  435. . $cache_file
  436. else
  437. echo "creating cache $cache_file"
  438. > $cache_file
  439. fi
  440. ac_ext=c
  441. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  442. ac_cpp='$CPP $CPPFLAGS'
  443. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  444. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  445. cross_compiling=$ac_cv_prog_cc_cross
  446. ac_exeext=
  447. ac_objext=o
  448. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  449. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  450. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  451. ac_n= ac_c='
  452. ' ac_t=' '
  453. else
  454. ac_n=-n ac_c= ac_t=
  455. fi
  456. else
  457. ac_n= ac_c='\c' ac_t=
  458. fi
  459. ac_aux_dir=
  460. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  461. if test -f $ac_dir/install-sh; then
  462. ac_aux_dir=$ac_dir
  463. ac_install_sh="$ac_aux_dir/install-sh -c"
  464. break
  465. elif test -f $ac_dir/install.sh; then
  466. ac_aux_dir=$ac_dir
  467. ac_install_sh="$ac_aux_dir/install.sh -c"
  468. break
  469. fi
  470. done
  471. if test -z "$ac_aux_dir"; then
  472. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  473. fi
  474. ac_config_guess=$ac_aux_dir/config.guess
  475. ac_config_sub=$ac_aux_dir/config.sub
  476. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  477. # Find a good install program. We prefer a C program (faster),
  478. # so one script is as good as another. But avoid the broken or
  479. # incompatible versions:
  480. # SysV /etc/install, /usr/sbin/install
  481. # SunOS /usr/etc/install
  482. # IRIX /sbin/install
  483. # AIX /bin/install
  484. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  485. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  486. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  487. # ./install, which can be erroneously created by make from ./install.sh.
  488. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  489. echo "configure:556: checking for a BSD compatible install" >&5
  490. if test -z "$INSTALL"; then
  491. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  492. echo $ac_n "(cached) $ac_c" 1>&6
  493. else
  494. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  495. for ac_dir in $PATH; do
  496. # Account for people who put trailing slashes in PATH elements.
  497. case "$ac_dir/" in
  498. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  499. *)
  500. # OSF1 and SCO ODT 3.0 have their own names for install.
  501. # Don't use installbsd from OSF since it installs stuff as root
  502. # by default.
  503. for ac_prog in ginstall scoinst install; do
  504. if test -f $ac_dir/$ac_prog; then
  505. if test $ac_prog = install &&
  506. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  507. # AIX install. It has an incompatible calling convention.
  508. :
  509. else
  510. ac_cv_path_install="$ac_dir/$ac_prog -c"
  511. break 2
  512. fi
  513. fi
  514. done
  515. ;;
  516. esac
  517. done
  518. IFS="$ac_save_IFS"
  519. fi
  520. if test "${ac_cv_path_install+set}" = set; then
  521. INSTALL="$ac_cv_path_install"
  522. else
  523. # As a last resort, use the slow shell script. We don't cache a
  524. # path for INSTALL within a source directory, because that will
  525. # break other packages using the cache if that directory is
  526. # removed, or if the path is relative.
  527. INSTALL="$ac_install_sh"
  528. fi
  529. fi
  530. echo "$ac_t""$INSTALL" 1>&6
  531. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  532. # It thinks the first close brace ends the variable substitution.
  533. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  534. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  535. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  536. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  537. echo "configure:609: checking whether build environment is sane" >&5
  538. # Just in case
  539. sleep 1
  540. echo timestamp > conftestfile
  541. # Do `set' in a subshell so we don't clobber the current shell's
  542. # arguments. Must try -L first in case configure is actually a
  543. # symlink; some systems play weird games with the mod time of symlinks
  544. # (eg FreeBSD returns the mod time of the symlink's containing
  545. # directory).
  546. if (
  547. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  548. if test "$*" = "X"; then
  549. # -L didn't work.
  550. set X `ls -t $srcdir/configure conftestfile`
  551. fi
  552. if test "$*" != "X $srcdir/configure conftestfile" \
  553. && test "$*" != "X conftestfile $srcdir/configure"; then
  554. # If neither matched, then we have a broken ls. This can happen
  555. # if, for instance, CONFIG_SHELL is bash and it inherits a
  556. # broken ls alias from the environment. This has actually
  557. # happened. Such a system could not be considered "sane".
  558. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  559. alias in your environment" 1>&2; exit 1; }
  560. fi
  561. test "$2" = conftestfile
  562. )
  563. then
  564. # Ok.
  565. :
  566. else
  567. { echo "configure: error: newly created file is older than distributed files!
  568. Check your system clock" 1>&2; exit 1; }
  569. fi
  570. rm -f conftest*
  571. echo "$ac_t""yes" 1>&6
  572. if test "$program_transform_name" = s,x,x,; then
  573. program_transform_name=
  574. else
  575. # Double any \ or $. echo might interpret backslashes.
  576. cat <<\EOF_SED > conftestsed
  577. s,\\,\\\\,g; s,\$,$$,g
  578. EOF_SED
  579. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  580. rm -f conftestsed
  581. fi
  582. test "$program_prefix" != NONE &&
  583. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  584. # Use a double $ so make ignores it.
  585. test "$program_suffix" != NONE &&
  586. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  587. # sed with no file args requires a program.
  588. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  589. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  590. echo "configure:666: checking whether ${MAKE-make} sets \${MAKE}" >&5
  591. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  592. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  593. echo $ac_n "(cached) $ac_c" 1>&6
  594. else
  595. cat > conftestmake <<\EOF
  596. all:
  597. @echo 'ac_maketemp="${MAKE}"'
  598. EOF
  599. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  600. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  601. if test -n "$ac_maketemp"; then
  602. eval ac_cv_prog_make_${ac_make}_set=yes
  603. else
  604. eval ac_cv_prog_make_${ac_make}_set=no
  605. fi
  606. rm -f conftestmake
  607. fi
  608. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  609. echo "$ac_t""yes" 1>&6
  610. SET_MAKE=
  611. else
  612. echo "$ac_t""no" 1>&6
  613. SET_MAKE="MAKE=${MAKE-make}"
  614. fi
  615. PACKAGE=emacs-lisp-intro
  616. VERSION=2.00
  617. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  618. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  619. fi
  620. cat >> confdefs.h <<EOF
  621. #define PACKAGE "$PACKAGE"
  622. EOF
  623. cat >> confdefs.h <<EOF
  624. #define VERSION "$VERSION"
  625. EOF
  626. missing_dir=`cd $ac_aux_dir && pwd`
  627. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  628. echo "configure:712: checking for working aclocal" >&5
  629. # Run test in a subshell; some versions of sh will print an error if
  630. # an executable is not found, even if stderr is redirected.
  631. # Redirect stdin to placate older versions of autoconf. Sigh.
  632. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  633. ACLOCAL=aclocal
  634. echo "$ac_t""found" 1>&6
  635. else
  636. ACLOCAL="$missing_dir/missing aclocal"
  637. echo "$ac_t""missing" 1>&6
  638. fi
  639. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  640. echo "configure:725: checking for working autoconf" >&5
  641. # Run test in a subshell; some versions of sh will print an error if
  642. # an executable is not found, even if stderr is redirected.
  643. # Redirect stdin to placate older versions of autoconf. Sigh.
  644. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  645. AUTOCONF=autoconf
  646. echo "$ac_t""found" 1>&6
  647. else
  648. AUTOCONF="$missing_dir/missing autoconf"
  649. echo "$ac_t""missing" 1>&6
  650. fi
  651. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  652. echo "configure:738: checking for working automake" >&5
  653. # Run test in a subshell; some versions of sh will print an error if
  654. # an executable is not found, even if stderr is redirected.
  655. # Redirect stdin to placate older versions of autoconf. Sigh.
  656. if (automake --version) < /dev/null > /dev/null 2>&1; then
  657. AUTOMAKE=automake
  658. echo "$ac_t""found" 1>&6
  659. else
  660. AUTOMAKE="$missing_dir/missing automake"
  661. echo "$ac_t""missing" 1>&6
  662. fi
  663. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  664. echo "configure:751: checking for working autoheader" >&5
  665. # Run test in a subshell; some versions of sh will print an error if
  666. # an executable is not found, even if stderr is redirected.
  667. # Redirect stdin to placate older versions of autoconf. Sigh.
  668. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  669. AUTOHEADER=autoheader
  670. echo "$ac_t""found" 1>&6
  671. else
  672. AUTOHEADER="$missing_dir/missing autoheader"
  673. echo "$ac_t""missing" 1>&6
  674. fi
  675. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  676. echo "configure:764: checking for working makeinfo" >&5
  677. # Run test in a subshell; some versions of sh will print an error if
  678. # an executable is not found, even if stderr is redirected.
  679. # Redirect stdin to placate older versions of autoconf. Sigh.
  680. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  681. MAKEINFO=makeinfo
  682. echo "$ac_t""found" 1>&6
  683. else
  684. MAKEINFO="$missing_dir/missing makeinfo"
  685. echo "$ac_t""missing" 1>&6
  686. fi
  687. trap '' 1 2 15
  688. cat > confcache <<\EOF
  689. # This file is a shell script that caches the results of configure
  690. # tests run on this system so they can be shared between configure
  691. # scripts and configure runs. It is not useful on other systems.
  692. # If it contains results you don't want to keep, you may remove or edit it.
  693. #
  694. # By default, configure uses ./config.cache as the cache file,
  695. # creating it if it does not exist already. You can give configure
  696. # the --cache-file=FILE option to use a different cache file; that is
  697. # what configure does when it calls configure scripts in
  698. # subdirectories, so they share the cache.
  699. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  700. # config.status only pays attention to the cache file if you give it the
  701. # --recheck option to rerun configure.
  702. #
  703. EOF
  704. # The following way of writing the cache mishandles newlines in values,
  705. # but we know of no workaround that is simple, portable, and efficient.
  706. # So, don't put newlines in cache variables' values.
  707. # Ultrix sh set writes to stderr and can't be redirected directly,
  708. # and sets the high bit in the cache file unless we assign to the vars.
  709. (set) 2>&1 |
  710. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  711. *ac_space=\ *)
  712. # `set' does not quote correctly, so add quotes (double-quote substitution
  713. # turns \\\\ into \\, and sed turns \\ into \).
  714. sed -n \
  715. -e "s/'/'\\\\''/g" \
  716. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  717. ;;
  718. *)
  719. # `set' quotes correctly as required by POSIX, so do not add quotes.
  720. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  721. ;;
  722. esac >> confcache
  723. if cmp -s $cache_file confcache; then
  724. :
  725. else
  726. if test -w $cache_file; then
  727. echo "updating cache $cache_file"
  728. cat confcache > $cache_file
  729. else
  730. echo "not updating unwritable cache $cache_file"
  731. fi
  732. fi
  733. rm -f confcache
  734. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  735. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  736. # Let make expand exec_prefix.
  737. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  738. # Any assignment to VPATH causes Sun make to only execute
  739. # the first set of double-colon rules, so remove it if not needed.
  740. # If there is a colon in the path, we need to keep it.
  741. if test "x$srcdir" = x.; then
  742. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  743. fi
  744. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  745. # Transform confdefs.h into DEFS.
  746. # Protect against shell expansion while executing Makefile rules.
  747. # Protect against Makefile macro expansion.
  748. cat > conftest.defs <<\EOF
  749. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  750. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  751. s%\[%\\&%g
  752. s%\]%\\&%g
  753. s%\$%$$%g
  754. EOF
  755. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  756. rm -f conftest.defs
  757. # Without the "./", some shells look in PATH for config.status.
  758. : ${CONFIG_STATUS=./config.status}
  759. echo creating $CONFIG_STATUS
  760. rm -f $CONFIG_STATUS
  761. cat > $CONFIG_STATUS <<EOF
  762. #! /bin/sh
  763. # Generated automatically by configure.
  764. # Run this file to recreate the current configuration.
  765. # This directory was configured as follows,
  766. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  767. #
  768. # $0 $ac_configure_args
  769. #
  770. # Compiler output produced by configure, useful for debugging
  771. # configure, is in ./config.log if it exists.
  772. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  773. for ac_option
  774. do
  775. case "\$ac_option" in
  776. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  777. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  778. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  779. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  780. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  781. exit 0 ;;
  782. -help | --help | --hel | --he | --h)
  783. echo "\$ac_cs_usage"; exit 0 ;;
  784. *) echo "\$ac_cs_usage"; exit 1 ;;
  785. esac
  786. done
  787. ac_given_srcdir=$srcdir
  788. ac_given_INSTALL="$INSTALL"
  789. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  790. EOF
  791. cat >> $CONFIG_STATUS <<EOF
  792. # Protect against being on the right side of a sed subst in config.status.
  793. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  794. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  795. $ac_vpsub
  796. $extrasub
  797. s%@SHELL@%$SHELL%g
  798. s%@CFLAGS@%$CFLAGS%g
  799. s%@CPPFLAGS@%$CPPFLAGS%g
  800. s%@CXXFLAGS@%$CXXFLAGS%g
  801. s%@FFLAGS@%$FFLAGS%g
  802. s%@DEFS@%$DEFS%g
  803. s%@LDFLAGS@%$LDFLAGS%g
  804. s%@LIBS@%$LIBS%g
  805. s%@exec_prefix@%$exec_prefix%g
  806. s%@prefix@%$prefix%g
  807. s%@program_transform_name@%$program_transform_name%g
  808. s%@bindir@%$bindir%g
  809. s%@sbindir@%$sbindir%g
  810. s%@libexecdir@%$libexecdir%g
  811. s%@datadir@%$datadir%g
  812. s%@sysconfdir@%$sysconfdir%g
  813. s%@sharedstatedir@%$sharedstatedir%g
  814. s%@localstatedir@%$localstatedir%g
  815. s%@libdir@%$libdir%g
  816. s%@includedir@%$includedir%g
  817. s%@oldincludedir@%$oldincludedir%g
  818. s%@infodir@%$infodir%g
  819. s%@mandir@%$mandir%g
  820. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  821. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  822. s%@INSTALL_DATA@%$INSTALL_DATA%g
  823. s%@PACKAGE@%$PACKAGE%g
  824. s%@VERSION@%$VERSION%g
  825. s%@ACLOCAL@%$ACLOCAL%g
  826. s%@AUTOCONF@%$AUTOCONF%g
  827. s%@AUTOMAKE@%$AUTOMAKE%g
  828. s%@AUTOHEADER@%$AUTOHEADER%g
  829. s%@MAKEINFO@%$MAKEINFO%g
  830. s%@SET_MAKE@%$SET_MAKE%g
  831. CEOF
  832. EOF
  833. cat >> $CONFIG_STATUS <<\EOF
  834. # Split the substitutions into bite-sized pieces for seds with
  835. # small command number limits, like on Digital OSF/1 and HP-UX.
  836. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  837. ac_file=1 # Number of current file.
  838. ac_beg=1 # First line for current file.
  839. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  840. ac_more_lines=:
  841. ac_sed_cmds=""
  842. while $ac_more_lines; do
  843. if test $ac_beg -gt 1; then
  844. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  845. else
  846. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  847. fi
  848. if test ! -s conftest.s$ac_file; then
  849. ac_more_lines=false
  850. rm -f conftest.s$ac_file
  851. else
  852. if test -z "$ac_sed_cmds"; then
  853. ac_sed_cmds="sed -f conftest.s$ac_file"
  854. else
  855. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  856. fi
  857. ac_file=`expr $ac_file + 1`
  858. ac_beg=$ac_end
  859. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  860. fi
  861. done
  862. if test -z "$ac_sed_cmds"; then
  863. ac_sed_cmds=cat
  864. fi
  865. EOF
  866. cat >> $CONFIG_STATUS <<EOF
  867. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  868. EOF
  869. cat >> $CONFIG_STATUS <<\EOF
  870. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  871. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  872. case "$ac_file" in
  873. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  874. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  875. *) ac_file_in="${ac_file}.in" ;;
  876. esac
  877. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  878. # Remove last slash and all that follows it. Not all systems have dirname.
  879. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  880. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  881. # The file is in a subdirectory.
  882. test ! -d "$ac_dir" && mkdir "$ac_dir"
  883. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  884. # A "../" for each directory in $ac_dir_suffix.
  885. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  886. else
  887. ac_dir_suffix= ac_dots=
  888. fi
  889. case "$ac_given_srcdir" in
  890. .) srcdir=.
  891. if test -z "$ac_dots"; then top_srcdir=.
  892. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  893. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  894. *) # Relative path.
  895. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  896. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  897. esac
  898. case "$ac_given_INSTALL" in
  899. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  900. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  901. esac
  902. echo creating "$ac_file"
  903. rm -f "$ac_file"
  904. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  905. case "$ac_file" in
  906. *Makefile*) ac_comsub="1i\\
  907. # $configure_input" ;;
  908. *) ac_comsub= ;;
  909. esac
  910. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  911. sed -e "$ac_comsub
  912. s%@configure_input@%$configure_input%g
  913. s%@srcdir@%$srcdir%g
  914. s%@top_srcdir@%$top_srcdir%g
  915. s%@INSTALL@%$INSTALL%g
  916. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  917. fi; done
  918. rm -f conftest.s*
  919. EOF
  920. cat >> $CONFIG_STATUS <<EOF
  921. EOF
  922. cat >> $CONFIG_STATUS <<\EOF
  923. exit 0
  924. EOF
  925. chmod +x $CONFIG_STATUS
  926. rm -fr confdefs* $ac_clean_files
  927. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1