Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / gnu / dist / autoconf / configure
blob93a1d3f8a4c46b47565a86f9a62c97754b1c77d2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50 for GNU Autoconf 2.52.
5 # Report bugs to <bug-autoconf@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17 set -o posix
20 # Name of the executable.
21 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23 if expr a : '\(a\)' >/dev/null 2>&1; then
24 as_expr=expr
25 else
26 as_expr=false
29 rm -f conf$$ conf$$.exe conf$$.file
30 echo >conf$$.file
31 if ln -s conf$$.file conf$$ 2>/dev/null; then
32 # We could just check for DJGPP; but this test a) works b) is more generic
33 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34 if test -f conf$$.exe; then
35 # Don't use ln at all; we don't have any links
36 as_ln_s='cp -p'
37 else
38 as_ln_s='ln -s'
40 elif ln conf$$.file conf$$ 2>/dev/null; then
41 as_ln_s=ln
42 else
43 as_ln_s='cp -p'
45 rm -f conf$$ conf$$.exe conf$$.file
47 as_executable_p="test -f"
49 # Support unset when possible.
50 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
56 # NLS nuisances.
57 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
66 # IFS
67 # We need space, tab and new line, in precisely that order.
68 as_nl='
70 IFS=" $as_nl"
72 # CDPATH.
73 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
75 # Name of the host.
76 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
77 # so uname gets run too.
78 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
80 exec 6>&1
83 # Initializations.
85 ac_default_prefix=/usr/local
86 cross_compiling=no
87 subdirs=
88 MFLAGS= MAKEFLAGS=
89 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 # This variable seems obsolete. It should probably be removed, and
93 # only ac_max_sed_lines should be used.
94 : ${ac_max_here_lines=38}
96 # Avoid depending upon Character Ranges.
97 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
98 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
99 ac_cr_09='0123456789'
100 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
106 ac_unique_file="acgeneral.m4"
108 # Initialize some variables set by options.
109 ac_init_help=
110 ac_init_version=false
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
113 cache_file=/dev/null
114 exec_prefix=NONE
115 no_create=
116 no_recursion=
117 prefix=NONE
118 program_prefix=NONE
119 program_suffix=NONE
120 program_transform_name=s,x,x,
121 silent=
122 site=
123 srcdir=
124 verbose=
125 x_includes=NONE
126 x_libraries=NONE
128 # Installation directory options.
129 # These are left unexpanded so users can "make install exec_prefix=/foo"
130 # and all the variables that are supposed to be based on exec_prefix
131 # by default will actually change.
132 # Use braces instead of parens because sh, perl, etc. also accept them.
133 bindir='${exec_prefix}/bin'
134 sbindir='${exec_prefix}/sbin'
135 libexecdir='${exec_prefix}/libexec'
136 datadir='${prefix}/share'
137 sysconfdir='${prefix}/etc'
138 sharedstatedir='${prefix}/com'
139 localstatedir='${prefix}/var'
140 libdir='${exec_prefix}/lib'
141 includedir='${prefix}/include'
142 oldincludedir='/usr/include'
143 infodir='${prefix}/info'
144 mandir='${prefix}/man'
146 # Identity of this package.
147 PACKAGE_NAME='GNU Autoconf'
148 PACKAGE_TARNAME='autoconf'
149 PACKAGE_VERSION='2.52'
150 PACKAGE_STRING='GNU Autoconf 2.52'
151 PACKAGE_BUGREPORT='bug-autoconf@gnu.org'
153 ac_prev=
154 for ac_option
156 # If the previous option needs an argument, assign it.
157 if test -n "$ac_prev"; then
158 eval "$ac_prev=\$ac_option"
159 ac_prev=
160 continue
163 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165 # Accept the important Cygnus configure options, so we can diagnose typos.
167 case $ac_option in
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
170 ac_prev=bindir ;;
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir=$ac_optarg ;;
174 -build | --build | --buil | --bui | --bu)
175 ac_prev=build_alias ;;
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build_alias=$ac_optarg ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file=$ac_optarg ;;
186 --config-cache | -C)
187 cache_file=config.cache ;;
189 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
190 ac_prev=datadir ;;
191 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
192 | --da=*)
193 datadir=$ac_optarg ;;
195 -disable-* | --disable-*)
196 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
197 # Reject names that are not valid shell variable names.
198 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
199 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
200 { (exit 1); exit 1; }; }
201 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
202 eval "enable_$ac_feature=no" ;;
204 -enable-* | --enable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 case $ac_option in
212 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
213 *) ac_optarg=yes ;;
214 esac
215 eval "enable_$ac_feature='$ac_optarg'" ;;
217 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
218 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
219 | --exec | --exe | --ex)
220 ac_prev=exec_prefix ;;
221 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
222 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
223 | --exec=* | --exe=* | --ex=*)
224 exec_prefix=$ac_optarg ;;
226 -gas | --gas | --ga | --g)
227 # Obsolete; use --with-gas.
228 with_gas=yes ;;
230 -help | --help | --hel | --he | -h)
231 ac_init_help=long ;;
232 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
233 ac_init_help=recursive ;;
234 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
235 ac_init_help=short ;;
237 -host | --host | --hos | --ho)
238 ac_prev=host_alias ;;
239 -host=* | --host=* | --hos=* | --ho=*)
240 host_alias=$ac_optarg ;;
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir=$ac_optarg ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 ac_prev=infodir ;;
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir=$ac_optarg ;;
254 -libdir | --libdir | --libdi | --libd)
255 ac_prev=libdir ;;
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir=$ac_optarg ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir=$ac_optarg ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir=$ac_optarg ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 ac_prev=mandir ;;
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir=$ac_optarg ;;
280 -nfp | --nfp | --nf)
281 # Obsolete; use --without-fp.
282 with_fp=no ;;
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 | --no-cr | --no-c)
286 no_create=yes ;;
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 no_recursion=yes ;;
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir=$ac_optarg ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 ac_prev=prefix ;;
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix=$ac_optarg ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix=$ac_optarg ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix=$ac_optarg ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name=$ac_optarg ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
339 silent=yes ;;
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 ac_prev=sbindir ;;
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 | --sbi=* | --sb=*)
345 sbindir=$ac_optarg ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
350 | --sha | --sh)
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 | --sha=* | --sh=*)
356 sharedstatedir=$ac_optarg ;;
358 -site | --site | --sit)
359 ac_prev=site ;;
360 -site=* | --site=* | --sit=*)
361 site=$ac_optarg ;;
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 ac_prev=srcdir ;;
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir=$ac_optarg ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir=$ac_optarg ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
376 ac_prev=target_alias ;;
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target_alias=$ac_optarg ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 verbose=yes ;;
383 -version | --version | --versio | --versi | --vers | -V)
384 ac_init_version=: ;;
386 -with-* | --with-*)
387 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
388 # Reject names that are not valid shell variable names.
389 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
390 { echo "$as_me: error: invalid package name: $ac_package" >&2
391 { (exit 1); exit 1; }; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 case $ac_option in
394 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395 *) ac_optarg=yes ;;
396 esac
397 eval "with_$ac_package='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid package name: $ac_package" >&2
404 { (exit 1); exit 1; }; }
405 ac_package=`echo $ac_package | sed 's/-/_/g'`
406 eval "with_$ac_package=no" ;;
408 --x)
409 # Obsolete; use --with-x.
410 with_x=yes ;;
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes=$ac_optarg ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries=$ac_optarg ;;
426 -*) { echo "$as_me: error: unrecognized option: $ac_option
427 Try \`$0 --help' for more information." >&2
428 { (exit 1); exit 1; }; }
431 *=*)
432 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
433 # Reject names that are not valid shell variable names.
434 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
435 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
436 { (exit 1); exit 1; }; }
437 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
438 eval "$ac_envvar='$ac_optarg'"
439 export $ac_envvar ;;
442 # FIXME: should be removed in autoconf 3.0.
443 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
444 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
445 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
446 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
449 esac
450 done
452 if test -n "$ac_prev"; then
453 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
454 { echo "$as_me: error: missing argument to $ac_option" >&2
455 { (exit 1); exit 1; }; }
458 # Be sure to have absolute paths.
459 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
460 localstatedir libdir includedir oldincludedir infodir mandir \
461 exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
464 case $ac_val in
465 [\\/$]* | ?:[\\/]* ) ;;
466 NONE ) ;;
467 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
468 { (exit 1); exit 1; }; };;
469 esac
470 done
472 # There might be people who depend on the old broken behavior: `$host'
473 # used to hold the argument of --host etc.
474 build=$build_alias
475 host=$host_alias
476 target=$target_alias
478 # FIXME: should be removed in autoconf 3.0.
479 if test "x$host_alias" != x; then
480 if test "x$build_alias" = x; then
481 cross_compiling=maybe
482 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
483 If a cross compiler is detected then cross compile mode will be used." >&2
484 elif test "x$build_alias" != "x$host_alias"; then
485 cross_compiling=yes
489 ac_tool_prefix=
490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
492 test "$silent" = yes && exec 6>/dev/null
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
498 ac_prog=$0
499 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
505 else
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
511 { (exit 1); exit 1; }; }
512 else
513 { echo "$as_me: error: cannot find sources in $srcdir" >&2
514 { (exit 1); exit 1; }; }
517 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
518 ac_env_build_alias_set=${build_alias+set}
519 ac_env_build_alias_value=$build_alias
520 ac_cv_env_build_alias_set=${build_alias+set}
521 ac_cv_env_build_alias_value=$build_alias
522 ac_env_host_alias_set=${host_alias+set}
523 ac_env_host_alias_value=$host_alias
524 ac_cv_env_host_alias_set=${host_alias+set}
525 ac_cv_env_host_alias_value=$host_alias
526 ac_env_target_alias_set=${target_alias+set}
527 ac_env_target_alias_value=$target_alias
528 ac_cv_env_target_alias_set=${target_alias+set}
529 ac_cv_env_target_alias_value=$target_alias
532 # Report the --help message.
534 if test "$ac_init_help" = "long"; then
535 # Omit some internal or obsolete options to make the list less imposing.
536 # This message is too long to be a string in the A/UX 3.1 sh.
537 cat <<EOF
538 \`configure' configures GNU Autoconf 2.52 to adapt to many kinds of systems.
540 Usage: $0 [OPTION]... [VAR=VALUE]...
542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
543 VAR=VALUE. See below for descriptions of some of the useful variables.
545 Defaults for the options are specified in brackets.
547 Configuration:
548 -h, --help display this help and exit
549 --help=short display options specific to this package
550 --help=recursive display the short help of all the included packages
551 -V, --version display version information and exit
552 -q, --quiet, --silent do not print \`checking...' messages
553 --cache-file=FILE cache test results in FILE [disabled]
554 -C, --config-cache alias for \`--cache-file=config.cache'
555 -n, --no-create do not create output files
556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
560 cat <<EOF
561 Installation directories:
562 --prefix=PREFIX install architecture-independent files in PREFIX
563 [$ac_default_prefix]
564 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
565 [PREFIX]
567 By default, \`make install' will install all the files in
568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
570 for instance \`--prefix=\$HOME'.
572 For better control, use the options below.
574 Fine tuning of the installation directories:
575 --bindir=DIR user executables [EPREFIX/bin]
576 --sbindir=DIR system admin executables [EPREFIX/sbin]
577 --libexecdir=DIR program executables [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data [PREFIX/share]
579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
582 --libdir=DIR object code libraries [EPREFIX/lib]
583 --includedir=DIR C header files [PREFIX/include]
584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
585 --infodir=DIR info documentation [PREFIX/info]
586 --mandir=DIR man documentation [PREFIX/man]
589 cat <<\EOF
591 Program names:
592 --program-prefix=PREFIX prepend PREFIX to installed program names
593 --program-suffix=SUFFIX append SUFFIX to installed program names
594 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
598 if test -n "$ac_init_help"; then
599 case $ac_init_help in
600 short | recursive ) echo "Configuration of GNU Autoconf 2.52:";;
601 esac
602 cat <<\EOF
604 Report bugs to <bug-autoconf@gnu.org>.
608 if test "$ac_init_help" = "recursive"; then
609 # If there are subdirs, report their specific --help.
610 ac_popdir=`pwd`
611 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
612 cd $ac_subdir
613 # A "../" for each directory in /$ac_subdir.
614 ac_dots=`echo $ac_subdir |
615 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
617 case $srcdir in
618 .) # No --srcdir option. We are building in place.
619 ac_sub_srcdir=$srcdir ;;
620 [\\/]* | ?:[\\/]* ) # Absolute path.
621 ac_sub_srcdir=$srcdir/$ac_subdir ;;
622 *) # Relative path.
623 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
624 esac
626 # Check for guested configure; otherwise get Cygnus style configure.
627 if test -f $ac_sub_srcdir/configure.gnu; then
628 echo
629 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
630 elif test -f $ac_sub_srcdir/configure; then
631 echo
632 $SHELL $ac_sub_srcdir/configure --help=recursive
633 elif test -f $ac_sub_srcdir/configure.ac ||
634 test -f $ac_sub_srcdir/configure.in; then
635 echo
636 $ac_configure --help
637 else
638 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
640 cd $ac_popdir
641 done
644 test -n "$ac_init_help" && exit 0
645 if $ac_init_version; then
646 cat <<\EOF
647 GNU Autoconf configure 2.52
648 generated by GNU Autoconf 2.50
650 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
651 Free Software Foundation, Inc.
652 This configure script is free software; the Free Software Foundation
653 gives unlimited permission to copy, distribute and modify it.
655 exit 0
657 exec 5>config.log
658 cat >&5 <<EOF
659 This file contains any messages produced by compilers while
660 running configure, to aid debugging if configure makes a mistake.
662 It was created by GNU Autoconf $as_me 2.52, which was
663 generated by GNU Autoconf 2.50. Invocation command line was
665 $ $0 $@
669 cat <<_ASUNAME
670 ## ---------- ##
671 ## Platform. ##
672 ## ---------- ##
674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
686 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
691 PATH = $PATH
693 _ASUNAME
694 } >&5
696 cat >&5 <<EOF
697 ## ------------ ##
698 ## Core tests. ##
699 ## ------------ ##
703 # Keep a trace of the command line.
704 # Strip out --no-create and --no-recursion so they do not pile up.
705 # Also quote any args containing shell meta-characters.
706 ac_configure_args=
707 ac_sep=
708 for ac_arg
710 case $ac_arg in
711 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
712 | --no-cr | --no-c) ;;
713 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
714 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
715 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
716 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
717 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
718 ac_sep=" " ;;
719 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
720 ac_sep=" " ;;
721 esac
722 # Get rid of the leading space.
723 done
725 # When interrupted or exit'd, cleanup temporary files, and complete
726 # config.log. We remove comments because anyway the quotes in there
727 # would cause problems or look ugly.
728 trap 'exit_status=$?
729 # Save into config.log some information that might help in debugging.
730 echo >&5
731 echo "## ----------------- ##" >&5
732 echo "## Cache variables. ##" >&5
733 echo "## ----------------- ##" >&5
734 echo >&5
735 # The following way of writing the cache mishandles newlines in values,
737 (set) 2>&1 |
738 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
739 *ac_space=\ *)
740 sed -n \
741 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
742 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
745 sed -n \
746 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
748 esac;
749 } >&5
750 sed "/^$/d" confdefs.h >conftest.log
751 if test -s conftest.log; then
752 echo >&5
753 echo "## ------------ ##" >&5
754 echo "## confdefs.h. ##" >&5
755 echo "## ------------ ##" >&5
756 echo >&5
757 cat conftest.log >&5
759 (echo; echo) >&5
760 test "$ac_signal" != 0 &&
761 echo "$as_me: caught signal $ac_signal" >&5
762 echo "$as_me: exit $exit_status" >&5
763 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
764 exit $exit_status
766 for ac_signal in 1 2 13 15; do
767 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
768 done
769 ac_signal=0
771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
772 rm -rf conftest* confdefs.h
773 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
774 echo >confdefs.h
776 # Let the site file select an alternate cache file if it wants to.
777 # Prefer explicitly selected file to automatically selected ones.
778 if test -z "$CONFIG_SITE"; then
779 if test "x$prefix" != xNONE; then
780 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
781 else
782 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
785 for ac_site_file in $CONFIG_SITE; do
786 if test -r "$ac_site_file"; then
787 { echo "$as_me:787: loading site script $ac_site_file" >&5
788 echo "$as_me: loading site script $ac_site_file" >&6;}
789 cat "$ac_site_file" >&5
790 . "$ac_site_file"
792 done
794 if test -r "$cache_file"; then
795 # Some versions of bash will fail to source /dev/null (special
796 # files actually), so we avoid doing that.
797 if test -f "$cache_file"; then
798 { echo "$as_me:798: loading cache $cache_file" >&5
799 echo "$as_me: loading cache $cache_file" >&6;}
800 case $cache_file in
801 [\\/]* | ?:[\\/]* ) . $cache_file;;
802 *) . ./$cache_file;;
803 esac
805 else
806 { echo "$as_me:806: creating cache $cache_file" >&5
807 echo "$as_me: creating cache $cache_file" >&6;}
808 >$cache_file
811 # Check that the precious variables saved in the cache have kept the same
812 # value.
813 ac_suggest_removing_cache=false
814 for ac_var in `(set) 2>&1 |
815 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
817 eval ac_new_set=\$ac_env_${ac_var}_set
818 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
819 eval ac_new_val="\$ac_env_${ac_var}_value"
820 case $ac_old_set,$ac_new_set in
821 set,)
822 { echo "$as_me:822: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
823 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
824 ac_suggest_removing_cache=: ;;
825 ,set)
826 { echo "$as_me:826: WARNING: \`$ac_var' was not set in the previous run" >&5
827 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
828 ac_suggest_removing_cache=: ;;
829 ,);;
831 if test "x$ac_old_val" != "x$ac_new_val"; then
832 { echo "$as_me:832: WARNING: \`$ac_var' has changed since the previous run:" >&5
833 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
834 { echo "$as_me:834: WARNING: former value: $ac_old_val" >&5
835 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
836 { echo "$as_me:836: WARNING: current value: $ac_new_val" >&5
837 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
838 ac_suggest_removing_cache=:
839 fi;;
840 esac
841 done
842 if $ac_suggest_removing_cache; then
843 { echo "$as_me:843: WARNING: changes in the environment can compromise the build" >&5
844 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
845 { echo "$as_me:845: WARNING: consider removing $cache_file and starting over" >&5
846 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
849 ac_ext=c
850 ac_cpp='$CPP $CPPFLAGS'
851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
855 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
856 *c*,-n*) ECHO_N= ECHO_C='
857 ' ECHO_T=' ' ;;
858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
860 esac
861 echo "#! $SHELL" >conftest.sh
862 echo "exit 0" >>conftest.sh
863 chmod +x conftest.sh
864 if { (echo "$as_me:864: PATH=\".;.\"; conftest.sh") >&5
865 (PATH=".;."; conftest.sh) 2>&5
866 ac_status=$?
867 echo "$as_me:867: \$? = $ac_status" >&5
868 (exit $ac_status); }; then
869 ac_path_separator=';'
870 else
871 ac_path_separator=:
873 PATH_SEPARATOR="$ac_path_separator"
874 rm -f conftest.sh
876 ac_aux_dir=
877 for ac_dir in config $srcdir/config; do
878 if test -f $ac_dir/install-sh; then
879 ac_aux_dir=$ac_dir
880 ac_install_sh="$ac_aux_dir/install-sh -c"
881 break
882 elif test -f $ac_dir/install.sh; then
883 ac_aux_dir=$ac_dir
884 ac_install_sh="$ac_aux_dir/install.sh -c"
885 break
886 elif test -f $ac_dir/shtool; then
887 ac_aux_dir=$ac_dir
888 ac_install_sh="$ac_aux_dir/shtool install -c"
889 break
891 done
892 if test -z "$ac_aux_dir"; then
893 { { echo "$as_me:893: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
894 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
895 { (exit 1); exit 1; }; }
897 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
898 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
899 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
901 # Find a good install program. We prefer a C program (faster),
902 # so one script is as good as another. But avoid the broken or
903 # incompatible versions:
904 # SysV /etc/install, /usr/sbin/install
905 # SunOS /usr/etc/install
906 # IRIX /sbin/install
907 # AIX /bin/install
908 # AmigaOS /C/install, which installs bootblocks on floppy discs
909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
912 # ./install, which can be erroneously created by make from ./install.sh.
913 echo "$as_me:913: checking for a BSD compatible install" >&5
914 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
915 if test -z "$INSTALL"; then
916 if test "${ac_cv_path_install+set}" = set; then
917 echo $ECHO_N "(cached) $ECHO_C" >&6
918 else
919 ac_save_IFS=$IFS; IFS=$ac_path_separator
920 for ac_dir in $PATH; do
921 IFS=$ac_save_IFS
922 # Account for people who put trailing slashes in PATH elements.
923 case $ac_dir/ in
924 / | ./ | .// | /cC/* \
925 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
926 | /usr/ucb/* ) ;;
928 # OSF1 and SCO ODT 3.0 have their own names for install.
929 # Don't use installbsd from OSF since it installs stuff as root
930 # by default.
931 for ac_prog in ginstall scoinst install; do
932 if $as_executable_p "$ac_dir/$ac_prog"; then
933 if test $ac_prog = install &&
934 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
935 # AIX install. It has an incompatible calling convention.
937 elif test $ac_prog = install &&
938 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
939 # program-specific install script used by HP pwplus--don't use.
941 else
942 ac_cv_path_install="$ac_dir/$ac_prog -c"
943 break 2
946 done
948 esac
949 done
952 if test "${ac_cv_path_install+set}" = set; then
953 INSTALL=$ac_cv_path_install
954 else
955 # As a last resort, use the slow shell script. We don't cache a
956 # path for INSTALL within a source directory, because that will
957 # break other packages using the cache if that directory is
958 # removed, or if the path is relative.
959 INSTALL=$ac_install_sh
962 echo "$as_me:962: result: $INSTALL" >&5
963 echo "${ECHO_T}$INSTALL" >&6
965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
966 # It thinks the first close brace ends the variable substitution.
967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
973 echo "$as_me:973: checking whether build environment is sane" >&5
974 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
975 # Just in case
976 sleep 1
977 echo timestamp > conftest.file
978 # Do `set' in a subshell so we don't clobber the current shell's
979 # arguments. Must try -L first in case configure is actually a
980 # symlink; some systems play weird games with the mod time of symlinks
981 # (eg FreeBSD returns the mod time of the symlink's containing
982 # directory).
983 if (
984 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
985 if test "$*" = "X"; then
986 # -L didn't work.
987 set X `ls -t $srcdir/configure conftest.file`
989 if test "$*" != "X $srcdir/configure conftest.file" \
990 && test "$*" != "X conftest.file $srcdir/configure"; then
992 # If neither matched, then we have a broken ls. This can happen
993 # if, for instance, CONFIG_SHELL is bash and it inherits a
994 # broken ls alias from the environment. This has actually
995 # happened. Such a system could not be considered "sane".
996 { { echo "$as_me:996: error: ls -t appears to fail. Make sure there is not a broken
997 alias in your environment" >&5
998 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
999 alias in your environment" >&2;}
1000 { (exit 1); exit 1; }; }
1003 test "$2" = conftest.file
1005 then
1006 # Ok.
1008 else
1009 { { echo "$as_me:1009: error: newly created file is older than distributed files!
1010 Check your system clock" >&5
1011 echo "$as_me: error: newly created file is older than distributed files!
1012 Check your system clock" >&2;}
1013 { (exit 1); exit 1; }; }
1015 rm -f conftest*
1016 echo "$as_me:1016: result: yes" >&5
1017 echo "${ECHO_T}yes" >&6
1018 if test "$program_transform_name" = s,x,x,; then
1019 program_transform_name=
1020 else
1021 # Double any \ or $. echo might interpret backslashes.
1022 cat <<\EOF >conftest.sed
1023 s,\\,\\\\,g; s,\$,$$,g
1025 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1026 rm -f conftest.sed
1028 test "$program_prefix" != NONE &&
1029 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1030 # Use a double $ so make ignores it.
1031 test "$program_suffix" != NONE &&
1032 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1034 # sed with no file args requires a program.
1035 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1037 test x"${MISSING+set}" = xset ||
1038 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1039 # Use eval to expand $SHELL
1040 if eval "$MISSING --run true"; then
1041 am_missing_run="$MISSING --run "
1042 else
1043 am_missing_run=
1044 am_backtick='`'
1045 { echo "$as_me:1045: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1046 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1049 echo "$as_me:1049: checking whether ${MAKE-make} sets \${MAKE}" >&5
1050 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1051 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1052 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1053 echo $ECHO_N "(cached) $ECHO_C" >&6
1054 else
1055 cat >conftest.make <<\EOF
1056 all:
1057 @echo 'ac_maketemp="${MAKE}"'
1059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1060 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1061 if test -n "$ac_maketemp"; then
1062 eval ac_cv_prog_make_${ac_make}_set=yes
1063 else
1064 eval ac_cv_prog_make_${ac_make}_set=no
1066 rm -f conftest.make
1068 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1069 echo "$as_me:1069: result: yes" >&5
1070 echo "${ECHO_T}yes" >&6
1071 SET_MAKE=
1072 else
1073 echo "$as_me:1073: result: no" >&5
1074 echo "${ECHO_T}no" >&6
1075 SET_MAKE="MAKE=${MAKE-make}"
1078 PACKAGE=autoconf
1080 VERSION=2.52
1082 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1083 { { echo "$as_me:1083: error: source directory already configured; run \"make distclean\" there first" >&5
1084 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1085 { (exit 1); exit 1; }; }
1088 cat >>confdefs.h <<EOF
1089 #define PACKAGE "$PACKAGE"
1092 cat >>confdefs.h <<EOF
1093 #define VERSION "$VERSION"
1096 missing_dir=`cd $ac_aux_dir && pwd`
1098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1102 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1104 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1106 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1108 # Initialize the test suite.
1109 AUTOTEST_PATH=..
1111 # Extract the first word of "expr", so it can be a program name with args.
1112 set dummy expr; ac_word=$2
1113 echo "$as_me:1113: checking for $ac_word" >&5
1114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1115 if test "${ac_cv_path_EXPR+set}" = set; then
1116 echo $ECHO_N "(cached) $ECHO_C" >&6
1117 else
1118 case $EXPR in
1119 [\\/]* | ?:[\\/]*)
1120 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
1123 ac_save_IFS=$IFS; IFS=$ac_path_separator
1124 ac_dummy="$PATH"
1125 for ac_dir in $ac_dummy; do
1126 IFS=$ac_save_IFS
1127 test -z "$ac_dir" && ac_dir=.
1128 if $as_executable_p "$ac_dir/$ac_word"; then
1129 ac_cv_path_EXPR="$ac_dir/$ac_word"
1130 echo "$as_me:1130: found $ac_dir/$ac_word" >&5
1131 break
1133 done
1136 esac
1138 EXPR=$ac_cv_path_EXPR
1140 if test -n "$EXPR"; then
1141 echo "$as_me:1141: result: $EXPR" >&5
1142 echo "${ECHO_T}$EXPR" >&6
1143 else
1144 echo "$as_me:1144: result: no" >&5
1145 echo "${ECHO_T}no" >&6
1148 # We use a path for GNU m4 so even if users have another m4 first in
1149 # their path, the installer can configure with a path that has GNU m4
1150 # first and get that path embedded in the installed autoconf and
1151 # autoheader scripts.
1152 for ac_prog in gm4 gnum4 m4
1154 # Extract the first word of "$ac_prog", so it can be a program name with args.
1155 set dummy $ac_prog; ac_word=$2
1156 echo "$as_me:1156: checking for $ac_word" >&5
1157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1158 if test "${ac_cv_path_M4+set}" = set; then
1159 echo $ECHO_N "(cached) $ECHO_C" >&6
1160 else
1161 case $M4 in
1162 [\\/]* | ?:[\\/]*)
1163 ac_cv_path_M4="$M4" # Let the user override the test with a path.
1166 ac_save_IFS=$IFS; IFS=$ac_path_separator
1167 ac_dummy="$PATH"
1168 for ac_dir in $ac_dummy; do
1169 IFS=$ac_save_IFS
1170 test -z "$ac_dir" && ac_dir=.
1171 if $as_executable_p "$ac_dir/$ac_word"; then
1172 ac_cv_path_M4="$ac_dir/$ac_word"
1173 echo "$as_me:1173: found $ac_dir/$ac_word" >&5
1174 break
1176 done
1179 esac
1181 M4=$ac_cv_path_M4
1183 if test -n "$M4"; then
1184 echo "$as_me:1184: result: $M4" >&5
1185 echo "${ECHO_T}$M4" >&6
1186 else
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1191 test -n "$M4" && break
1192 done
1193 test -n "$M4" || M4="m4"
1195 # This is needed because Automake does not seem to realize there is
1196 # a AC-SUBST inside AC-PROG-GNU-M4. Grmph!
1198 # `autoconf' and `ifnames' use AWK. And we need decent RE support.
1199 for ac_prog in mawk gawk nawk awk
1201 # Extract the first word of "$ac_prog", so it can be a program name with args.
1202 set dummy $ac_prog; ac_word=$2
1203 echo "$as_me:1222: checking for $ac_word" >&5
1204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1205 if test "${ac_cv_prog_AWK+set}" = set; then
1206 echo $ECHO_N "(cached) $ECHO_C" >&6
1207 else
1208 if test -n "$AWK"; then
1209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1210 else
1211 ac_save_IFS=$IFS; IFS=$ac_path_separator
1212 ac_dummy="$PATH"
1213 for ac_dir in $ac_dummy; do
1214 IFS=$ac_save_IFS
1215 test -z "$ac_dir" && ac_dir=.
1216 $as_executable_p "$ac_dir/$ac_word" || continue
1217 ac_cv_prog_AWK="$ac_prog"
1218 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1219 break
1220 done
1224 AWK=$ac_cv_prog_AWK
1225 if test -n "$AWK"; then
1226 echo "$as_me:1245: result: $AWK" >&5
1227 echo "${ECHO_T}$AWK" >&6
1228 else
1229 echo "$as_me:1248: result: no" >&5
1230 echo "${ECHO_T}no" >&6
1233 test -n "$AWK" && break
1234 done
1236 # Some AWK fail
1237 if echo xfoo | $AWK '/foo|^bar$/ { print }' | grep xfoo >/dev/null; then :; else
1238 { { echo "$as_me:1257: error: the regex engine of $AWK is too broken to be used
1239 you might want to install GNU AWK" >&5
1240 echo "$as_me: error: the regex engine of $AWK is too broken to be used
1241 you might want to install GNU AWK" >&2;}
1242 { (exit 1); exit 1; }; }
1245 # Generating man pages.
1247 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
1249 # We use a path for perl so the #! line in autoscan will work.
1250 # Extract the first word of "perl", so it can be a program name with args.
1251 set dummy perl; ac_word=$2
1252 echo "$as_me:1271: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_path_PERL+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 else
1257 case $PERL in
1258 [\\/]* | ?:[\\/]*)
1259 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1262 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 ac_dummy="$PATH"
1264 for ac_dir in $ac_dummy; do
1265 IFS=$ac_save_IFS
1266 test -z "$ac_dir" && ac_dir=.
1267 if $as_executable_p "$ac_dir/$ac_word"; then
1268 ac_cv_path_PERL="$ac_dir/$ac_word"
1269 echo "$as_me:1288: found $ac_dir/$ac_word" >&5
1270 break
1272 done
1274 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
1276 esac
1278 PERL=$ac_cv_path_PERL
1280 if test -n "$PERL"; then
1281 echo "$as_me:1300: result: $PERL" >&5
1282 echo "${ECHO_T}$PERL" >&6
1283 else
1284 echo "$as_me:1303: result: no" >&5
1285 echo "${ECHO_T}no" >&6
1288 if test "$PERL" != no; then
1289 PERLSCRIPTS="autoscan autoupdate"
1290 else
1291 { echo "$as_me:1310: WARNING: autoscan and autoupdate will not be built since perl is not found" >&5
1292 echo "$as_me: WARNING: autoscan and autoupdate will not be built since perl is not found" >&2;}
1295 # Find a good install program. We prefer a C program (faster),
1296 # so one script is as good as another. But avoid the broken or
1297 # incompatible versions:
1298 # SysV /etc/install, /usr/sbin/install
1299 # SunOS /usr/etc/install
1300 # IRIX /sbin/install
1301 # AIX /bin/install
1302 # AmigaOS /C/install, which installs bootblocks on floppy discs
1303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1306 # ./install, which can be erroneously created by make from ./install.sh.
1307 echo "$as_me:1326: checking for a BSD compatible install" >&5
1308 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1309 if test -z "$INSTALL"; then
1310 if test "${ac_cv_path_install+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 else
1313 ac_save_IFS=$IFS; IFS=$ac_path_separator
1314 for ac_dir in $PATH; do
1315 IFS=$ac_save_IFS
1316 # Account for people who put trailing slashes in PATH elements.
1317 case $ac_dir/ in
1318 / | ./ | .// | /cC/* \
1319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1320 | /usr/ucb/* ) ;;
1322 # OSF1 and SCO ODT 3.0 have their own names for install.
1323 # Don't use installbsd from OSF since it installs stuff as root
1324 # by default.
1325 for ac_prog in ginstall scoinst install; do
1326 if $as_executable_p "$ac_dir/$ac_prog"; then
1327 if test $ac_prog = install &&
1328 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1329 # AIX install. It has an incompatible calling convention.
1331 elif test $ac_prog = install &&
1332 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1333 # program-specific install script used by HP pwplus--don't use.
1335 else
1336 ac_cv_path_install="$ac_dir/$ac_prog -c"
1337 break 2
1340 done
1342 esac
1343 done
1346 if test "${ac_cv_path_install+set}" = set; then
1347 INSTALL=$ac_cv_path_install
1348 else
1349 # As a last resort, use the slow shell script. We don't cache a
1350 # path for INSTALL within a source directory, because that will
1351 # break other packages using the cache if that directory is
1352 # removed, or if the path is relative.
1353 INSTALL=$ac_install_sh
1356 echo "$as_me:1375: result: $INSTALL" >&5
1357 echo "${ECHO_T}$INSTALL" >&6
1359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1360 # It thinks the first close brace ends the variable substitution.
1361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1367 # Automake can't see inner AC_SUBSTS (`aclocal' is bypassed), so we tag the
1368 # AC_SUBSTS here too.
1370 ac_config_files="$ac_config_files Makefile m4/Makefile man/Makefile config/Makefile tests/Makefile tests/atconfig"
1372 cat >confcache <<\_ACEOF
1373 # This file is a shell script that caches the results of configure
1374 # tests run on this system so they can be shared between configure
1375 # scripts and configure runs, see configure's option --config-cache.
1376 # It is not useful on other systems. If it contains results you don't
1377 # want to keep, you may remove or edit it.
1379 # config.status only pays attention to the cache file if you give it
1380 # the --recheck option to rerun configure.
1382 # `ac_cv_env_foo' variables (set or unset) will be overriden when
1383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1384 # following values.
1386 _ACEOF
1388 # The following way of writing the cache mishandles newlines in values,
1389 # but we know of no workaround that is simple, portable, and efficient.
1390 # So, don't put newlines in cache variables' values.
1391 # Ultrix sh set writes to stderr and can't be redirected directly,
1392 # and sets the high bit in the cache file unless we assign to the vars.
1394 (set) 2>&1 |
1395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1396 *ac_space=\ *)
1397 # `set' does not quote correctly, so add quotes (double-quote
1398 # substitution turns \\\\ into \\, and sed turns \\ into \).
1399 sed -n \
1400 "s/'/'\\\\''/g;
1401 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1404 # `set' quotes correctly as required by POSIX, so do not add quotes.
1405 sed -n \
1406 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1408 esac;
1410 sed '
1411 t clear
1412 : clear
1413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1414 t end
1415 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1416 : end' >>confcache
1417 if cmp -s $cache_file confcache; then :; else
1418 if test -w $cache_file; then
1419 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1420 cat confcache >$cache_file
1421 else
1422 echo "not updating unwritable cache $cache_file"
1425 rm -f confcache
1427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1428 # Let make expand exec_prefix.
1429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1433 # trailing colons and then remove the whole line if VPATH becomes empty
1434 # (actually we leave an empty line to preserve line numbers).
1435 if test "x$srcdir" = x.; then
1436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
1437 s/:*\$(srcdir):*/:/;
1438 s/:*\${srcdir}:*/:/;
1439 s/:*@srcdir@:*/:/;
1440 s/^\([^=]*=[ ]*\):*/\1/;
1441 s/:*$//;
1442 s/^[^=]*=[ ]*$//;
1446 # Transform confdefs.h into DEFS.
1447 # Protect against shell expansion while executing Makefile rules.
1448 # Protect against Makefile macro expansion.
1450 # If the first sed substitution is executed (which looks for macros that
1451 # take arguments), then we branch to the quote section. Otherwise,
1452 # look for a macro that doesn't take arguments.
1453 cat >confdef2opt.sed <<\EOF
1454 t clear
1455 : clear
1456 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1457 t quote
1458 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1459 t quote
1461 : quote
1462 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1463 s,\[,\\&,g
1464 s,\],\\&,g
1465 s,\$,$$,g
1468 # We use echo to avoid assuming a particular line-breaking character.
1469 # The extra dot is to prevent the shell from consuming trailing
1470 # line-breaks from the sub-command output. A line-break within
1471 # single-quotes doesn't work because, if this script is created in a
1472 # platform that uses two characters for line-breaks (e.g., DOS), tr
1473 # would break.
1474 ac_LF_and_DOT=`echo; echo .`
1475 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1476 rm -f confdef2opt.sed
1478 : ${CONFIG_STATUS=./config.status}
1479 ac_clean_files_save=$ac_clean_files
1480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1481 { echo "$as_me:1500: creating $CONFIG_STATUS" >&5
1482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1483 cat >$CONFIG_STATUS <<_ACEOF
1484 #! $SHELL
1485 # Generated automatically by configure.
1486 # Run this file to recreate the current configuration.
1487 # Compiler output produced by configure, useful for debugging
1488 # configure, is in config.log if it exists.
1490 debug=false
1491 SHELL=\${CONFIG_SHELL-$SHELL}
1492 ac_cs_invocation="\$0 \$@"
1494 _ACEOF
1496 cat >>$CONFIG_STATUS <<\_ACEOF
1497 # Be Bourne compatible
1498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1499 emulate sh
1500 NULLCMD=:
1501 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1502 set -o posix
1505 # Name of the executable.
1506 as_me=`echo "$0" |sed 's,.*[\\/],,'`
1508 if expr a : '\(a\)' >/dev/null 2>&1; then
1509 as_expr=expr
1510 else
1511 as_expr=false
1514 rm -f conf$$ conf$$.exe conf$$.file
1515 echo >conf$$.file
1516 if ln -s conf$$.file conf$$ 2>/dev/null; then
1517 # We could just check for DJGPP; but this test a) works b) is more generic
1518 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1519 if test -f conf$$.exe; then
1520 # Don't use ln at all; we don't have any links
1521 as_ln_s='cp -p'
1522 else
1523 as_ln_s='ln -s'
1525 elif ln conf$$.file conf$$ 2>/dev/null; then
1526 as_ln_s=ln
1527 else
1528 as_ln_s='cp -p'
1530 rm -f conf$$ conf$$.exe conf$$.file
1532 as_executable_p="test -f"
1534 # Support unset when possible.
1535 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1536 as_unset=unset
1537 else
1538 as_unset=false
1541 # NLS nuisances.
1542 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1543 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1544 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1545 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1546 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1547 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1548 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1549 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1551 # IFS
1552 # We need space, tab and new line, in precisely that order.
1553 as_nl='
1555 IFS=" $as_nl"
1557 # CDPATH.
1558 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1560 exec 6>&1
1562 _ACEOF
1564 # Files that config.status was made for.
1565 if test -n "$ac_config_files"; then
1566 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1569 if test -n "$ac_config_headers"; then
1570 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1573 if test -n "$ac_config_links"; then
1574 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1577 if test -n "$ac_config_commands"; then
1578 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1581 cat >>$CONFIG_STATUS <<\EOF
1583 ac_cs_usage="\
1584 \`$as_me' instantiates files from templates according to the
1585 current configuration.
1587 Usage: $0 [OPTIONS] [FILE]...
1589 -h, --help print this help, then exit
1590 -V, --version print version number, then exit
1591 -d, --debug don't remove temporary files
1592 --recheck update $as_me by reconfiguring in the same conditions
1593 --file=FILE[:TEMPLATE]
1594 instantiate the configuration file FILE
1596 Configuration files:
1597 $config_files
1599 Report bugs to <bug-autoconf@gnu.org>."
1602 cat >>$CONFIG_STATUS <<EOF
1603 ac_cs_version="\\
1604 GNU Autoconf config.status 2.52
1605 configured by $0, generated by GNU Autoconf 2.50,
1606 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1608 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1609 Free Software Foundation, Inc.
1610 This config.status script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it."
1612 srcdir=$srcdir
1613 INSTALL="$INSTALL"
1616 cat >>$CONFIG_STATUS <<\EOF
1617 # If no file are specified by the user, then we need to provide default
1618 # value. By we need to know if files were specified by the user.
1619 ac_need_defaults=:
1620 while test $# != 0
1622 case $1 in
1623 --*=*)
1624 ac_option=`expr "x$1" : 'x\([^=]*\)='`
1625 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1626 shift
1627 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1628 shift
1630 -*);;
1631 *) # This is not an option, so the user has probably given explicit
1632 # arguments.
1633 ac_need_defaults=false;;
1634 esac
1636 case $1 in
1637 # Handling of the options.
1639 cat >>$CONFIG_STATUS <<EOF
1640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1641 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1642 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1644 cat >>$CONFIG_STATUS <<\EOF
1645 --version | --vers* | -V )
1646 echo "$ac_cs_version"; exit 0 ;;
1647 --he | --h)
1648 # Conflict between --help and --header
1649 { { echo "$as_me:1668: error: ambiguous option: $1
1650 Try \`$0 --help' for more information." >&5
1651 echo "$as_me: error: ambiguous option: $1
1652 Try \`$0 --help' for more information." >&2;}
1653 { (exit 1); exit 1; }; };;
1654 --help | --hel | -h )
1655 echo "$ac_cs_usage"; exit 0 ;;
1656 --debug | --d* | -d )
1657 debug=: ;;
1658 --file | --fil | --fi | --f )
1659 shift
1660 CONFIG_FILES="$CONFIG_FILES $1"
1661 ac_need_defaults=false;;
1662 --header | --heade | --head | --hea )
1663 shift
1664 CONFIG_HEADERS="$CONFIG_HEADERS $1"
1665 ac_need_defaults=false;;
1667 # Handling of arguments.
1668 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1669 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
1670 'man/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1671 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
1672 'config/Makefile' ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
1673 'tests/Makefile' ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
1674 'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
1676 # This is an error.
1677 -*) { { echo "$as_me:1696: error: unrecognized option: $1
1678 Try \`$0 --help' for more information." >&5
1679 echo "$as_me: error: unrecognized option: $1
1680 Try \`$0 --help' for more information." >&2;}
1681 { (exit 1); exit 1; }; } ;;
1682 *) { { echo "$as_me:1701: error: invalid argument: $1" >&5
1683 echo "$as_me: error: invalid argument: $1" >&2;}
1684 { (exit 1); exit 1; }; };;
1685 esac
1686 shift
1687 done
1689 exec 5>>config.log
1690 cat >&5 << _ACEOF
1692 ## ----------------------- ##
1693 ## Running config.status. ##
1694 ## ----------------------- ##
1696 This file was extended by $as_me (GNU Autoconf 2.52) 2.50, executed with
1697 > $ac_cs_invocation
1698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 _ACEOF
1703 cat >>$CONFIG_STATUS <<\EOF
1704 # If the user did not use the arguments to specify the items to instantiate,
1705 # then the envvar interface is used. Set only those that are not.
1706 # We use the long form for the default assignment because of an extremely
1707 # bizarre bug on SunOS 4.1.3.
1708 if $ac_need_defaults; then
1709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1712 # Create a temporary directory, and hook for its removal unless debugging.
1713 $debug ||
1715 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1716 trap '{ (exit $?); exit $?; }' 1 2 13 15
1719 # Create a (secure) tmp directory for tmp files.
1720 : ${TMPDIR=/tmp}
1722 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1723 test -n "$tmp" && test -d "$tmp"
1724 } ||
1726 tmp=$TMPDIR/cs$$-$RANDOM
1727 (umask 077 && mkdir $tmp)
1728 } ||
1730 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1731 { (exit 1); exit 1; }
1736 cat >>$CONFIG_STATUS <<EOF
1739 # CONFIG_FILES section.
1742 # No need to generate the scripts if there are no CONFIG_FILES.
1743 # This happens for instance when ./config.status config.h
1744 if test -n "\$CONFIG_FILES"; then
1745 # Protect against being on the right side of a sed subst in config.status.
1746 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1747 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1748 s,@SHELL@,$SHELL,;t t
1749 s,@exec_prefix@,$exec_prefix,;t t
1750 s,@prefix@,$prefix,;t t
1751 s,@program_transform_name@,$program_transform_name,;t t
1752 s,@bindir@,$bindir,;t t
1753 s,@sbindir@,$sbindir,;t t
1754 s,@libexecdir@,$libexecdir,;t t
1755 s,@datadir@,$datadir,;t t
1756 s,@sysconfdir@,$sysconfdir,;t t
1757 s,@sharedstatedir@,$sharedstatedir,;t t
1758 s,@localstatedir@,$localstatedir,;t t
1759 s,@libdir@,$libdir,;t t
1760 s,@includedir@,$includedir,;t t
1761 s,@oldincludedir@,$oldincludedir,;t t
1762 s,@infodir@,$infodir,;t t
1763 s,@mandir@,$mandir,;t t
1764 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1765 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1766 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1767 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1768 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1769 s,@ECHO_C@,$ECHO_C,;t t
1770 s,@ECHO_N@,$ECHO_N,;t t
1771 s,@ECHO_T@,$ECHO_T,;t t
1772 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1773 s,@DEFS@,$DEFS,;t t
1774 s,@LIBS@,$LIBS,;t t
1775 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1776 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1777 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1778 s,@PACKAGE@,$PACKAGE,;t t
1779 s,@VERSION@,$VERSION,;t t
1780 s,@ACLOCAL@,$ACLOCAL,;t t
1781 s,@AUTOCONF@,$AUTOCONF,;t t
1782 s,@AUTOMAKE@,$AUTOMAKE,;t t
1783 s,@AUTOHEADER@,$AUTOHEADER,;t t
1784 s,@MAKEINFO@,$MAKEINFO,;t t
1785 s,@SET_MAKE@,$SET_MAKE,;t t
1786 s,@AUTOTEST_PATH@,$AUTOTEST_PATH,;t t
1787 s,@EXPR@,$EXPR,;t t
1788 s,@M4@,$M4,;t t
1789 s,@AWK@,$AWK,;t t
1790 s,@HELP2MAN@,$HELP2MAN,;t t
1791 s,@PERL@,$PERL,;t t
1792 s,@PERLSCRIPTS@,$PERLSCRIPTS,;t t
1793 CEOF
1797 cat >>$CONFIG_STATUS <<\EOF
1798 # Split the substitutions into bite-sized pieces for seds with
1799 # small command number limits, like on Digital OSF/1 and HP-UX.
1800 ac_max_sed_lines=48
1801 ac_sed_frag=1 # Number of current file.
1802 ac_beg=1 # First line for current file.
1803 ac_end=$ac_max_sed_lines # Line after last line for current file.
1804 ac_more_lines=:
1805 ac_sed_cmds=
1806 while $ac_more_lines; do
1807 if test $ac_beg -gt 1; then
1808 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1809 else
1810 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1812 if test ! -s $tmp/subs.frag; then
1813 ac_more_lines=false
1814 else
1815 # The purpose of the label and of the branching condition is to
1816 # speed up the sed processing (if there are no `@' at all, there
1817 # is no need to browse any of the substitutions).
1818 # These are the two extra sed commands mentioned above.
1819 (echo ':t
1820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1821 if test -z "$ac_sed_cmds"; then
1822 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1823 else
1824 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1826 ac_sed_frag=`expr $ac_sed_frag + 1`
1827 ac_beg=$ac_end
1828 ac_end=`expr $ac_end + $ac_max_sed_lines`
1830 done
1831 if test -z "$ac_sed_cmds"; then
1832 ac_sed_cmds=cat
1834 fi # test -n "$CONFIG_FILES"
1837 cat >>$CONFIG_STATUS <<\EOF
1838 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1840 case $ac_file in
1841 - | *:- | *:-:* ) # input from stdin
1842 cat >$tmp/stdin
1843 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1845 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1847 * ) ac_file_in=$ac_file.in ;;
1848 esac
1850 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1851 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1852 X"$ac_file" : 'X\(//\)[^/]' \| \
1853 X"$ac_file" : 'X\(//\)$' \| \
1854 X"$ac_file" : 'X\(/\)' \| \
1855 . : '\(.\)' 2>/dev/null ||
1856 echo X"$ac_file" |
1857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1859 /^X\(\/\/\)$/{ s//\1/; q; }
1860 /^X\(\/\).*/{ s//\1/; q; }
1861 s/.*/./; q'`
1862 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1863 { case "$ac_dir" in
1864 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1865 *) as_incr_dir=.;;
1866 esac
1867 as_dummy="$ac_dir"
1868 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1869 case $as_mkdir_dir in
1870 # Skip DOS drivespec
1871 ?:) as_incr_dir=$as_mkdir_dir ;;
1873 as_incr_dir=$as_incr_dir/$as_mkdir_dir
1874 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
1876 esac
1877 done; }
1879 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1880 # A "../" for each directory in $ac_dir_suffix.
1881 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1882 else
1883 ac_dir_suffix= ac_dots=
1886 case $srcdir in
1887 .) ac_srcdir=.
1888 if test -z "$ac_dots"; then
1889 ac_top_srcdir=.
1890 else
1891 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
1892 fi ;;
1893 [\\/]* | ?:[\\/]* )
1894 ac_srcdir=$srcdir$ac_dir_suffix;
1895 ac_top_srcdir=$srcdir ;;
1896 *) # Relative path.
1897 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
1898 ac_top_srcdir=$ac_dots$srcdir ;;
1899 esac
1901 case $INSTALL in
1902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1903 *) ac_INSTALL=$ac_dots$INSTALL ;;
1904 esac
1906 if test x"$ac_file" != x-; then
1907 { echo "$as_me:1926: creating $ac_file" >&5
1908 echo "$as_me: creating $ac_file" >&6;}
1909 rm -f "$ac_file"
1911 # Let's still pretend it is `configure' which instantiates (i.e., don't
1912 # use $as_me), people would be surprised to read:
1913 # /* config.h. Generated automatically by config.status. */
1914 configure_input="Generated automatically from `echo $ac_file_in |
1915 sed 's,.*/,,'` by configure."
1917 # First look for the input files in the build tree, otherwise in the
1918 # src tree.
1919 ac_file_inputs=`IFS=:
1920 for f in $ac_file_in; do
1921 case $f in
1922 -) echo $tmp/stdin ;;
1923 [\\/$]*)
1924 # Absolute (can't be DOS-style, as IFS=:)
1925 test -f "$f" || { { echo "$as_me:1944: error: cannot find input file: $f" >&5
1926 echo "$as_me: error: cannot find input file: $f" >&2;}
1927 { (exit 1); exit 1; }; }
1928 echo $f;;
1929 *) # Relative
1930 if test -f "$f"; then
1931 # Build tree
1932 echo $f
1933 elif test -f "$srcdir/$f"; then
1934 # Source tree
1935 echo $srcdir/$f
1936 else
1937 # /dev/null tree
1938 { { echo "$as_me:1957: error: cannot find input file: $f" >&5
1939 echo "$as_me: error: cannot find input file: $f" >&2;}
1940 { (exit 1); exit 1; }; }
1941 fi;;
1942 esac
1943 done` || { (exit 1); exit 1; }
1945 cat >>$CONFIG_STATUS <<EOF
1946 sed "$ac_vpsub
1947 $extrasub
1949 cat >>$CONFIG_STATUS <<\EOF
1951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1952 s,@configure_input@,$configure_input,;t t
1953 s,@srcdir@,$ac_srcdir,;t t
1954 s,@top_srcdir@,$ac_top_srcdir,;t t
1955 s,@INSTALL@,$ac_INSTALL,;t t
1956 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1957 rm -f $tmp/stdin
1958 if test x"$ac_file" != x-; then
1959 mv $tmp/out $ac_file
1960 else
1961 cat $tmp/out
1962 rm -f $tmp/out
1965 done
1968 cat >>$CONFIG_STATUS <<\EOF
1970 { (exit 0); exit 0; }
1972 chmod +x $CONFIG_STATUS
1973 ac_clean_files=$ac_clean_files_save
1975 # configure is writing to config.log, and then calls config.status.
1976 # config.status does its own redirection, appending to config.log.
1977 # Unfortunately, on DOS this fails, as config.log is still kept open
1978 # by configure, so config.status won't be able to write to it; its
1979 # output is simply discarded. So we exec the FD to /dev/null,
1980 # effectively closing config.log, so it can be properly (re)opened and
1981 # appended to by config.status. When coming back to configure, we
1982 # need to make the FD available again.
1983 if test "$no_create" != yes; then
1984 ac_cs_success=:
1985 exec 5>/dev/null
1986 $SHELL $CONFIG_STATUS || ac_cs_success=false
1987 exec 5>>config.log
1988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1989 # would make configure fail if this is the last instruction.
1990 $ac_cs_success || { (exit 1); exit 1; }
1993 # Report the state of this version of Autoconf if this is a beta.
1994 case 2.52 in
1995 *[a-z]*)
1996 cat <<EOF
1998 You are about to use an experimental version of Autoconf. Be sure to
1999 read the relevant mailing lists, most importantly <autoconf@gnu.org>.
2001 Below you will find information on the status of this version of Autoconf.
2004 sed -n '/^\* Status/,$p' $srcdir/BUGS;;
2005 esac