1
m4_define([_m4_divert(PARSE_ARGS_INIT)], 17)
2
m4_define([_m4_divert(PARSE_ARGS_FOROPTS)], 18)
3
m4_define([_m4_divert(PARSE_ARGS_MOREOPTS)], 19)
4
#m4_define([_m4_divert(PARSE_ARGS)], 20)
8
m4_define([_AC_INIT_PARSE_ARGS],
10
m4_divert_push([PARSE_ARGS_INIT])dnl
12
# Initialize some variables set by options.
15
# The variables have the same names as the options, with
16
# dashes changed to underlines.
18
AC_SUBST(exec_prefix, NONE)dnl
21
AC_SUBST(prefix, NONE)dnl
24
AC_SUBST(program_transform_name, [s,x,x,])dnl
32
# Installation directory options.
33
# These are left unexpanded so users can "make install exec_prefix=/foo"
34
# and all the variables that are supposed to be based on exec_prefix
35
# by default will actually change.
36
# Use braces instead of parens because sh, perl, etc. also accept them.
37
AC_SUBST([bindir], ['${exec_prefix}/bin'])dnl
38
AC_SUBST([sbindir], ['${exec_prefix}/sbin'])dnl
39
AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])dnl
40
AC_SUBST([datadir], ['${prefix}/share'])dnl
41
AC_SUBST([sysconfdir], ['${prefix}/etc'])dnl
42
AC_SUBST([sharedstatedir], ['${prefix}/com'])dnl
43
AC_SUBST([localstatedir], ['${prefix}/var'])dnl
44
AC_SUBST([libdir], ['${exec_prefix}/lib'])dnl
45
AC_SUBST([includedir], ['${prefix}/include'])dnl
46
dnl AC_SUBST([oldincludedir], ['/usr/include'])dnl
47
dnl AC_SUBST([infodir], ['${prefix}/info'])dnl
48
dnl AC_SUBST([mandir], ['${prefix}/man'])dnl
49
m4_divert_pop([PARSE_ARGS_INIT])dnl
50
m4_divert_push([PARSE_ARGS_FOROPTS])dnl
55
# If the previous option needs an argument, assign it.
56
if test -n "$ac_prev"; then
57
eval "$ac_prev=\$ac_option"
62
ac_optarg=`expr "x$ac_option" : 'x[[^=]]*=\(.*\)'`
64
# Accept the important Cygnus configure options, so we can diagnose typos.
68
-bindir | --bindir | --bindi | --bind | --bin | --bi)
70
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
73
-build | --build | --buil | --bui | --bu)
74
ac_prev=build_alias ;;
75
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
76
build_alias=$ac_optarg ;;
78
-cache-file | --cache-file | --cache-fil | --cache-fi \
79
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
81
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
82
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83
cache_file=$ac_optarg ;;
86
cache_file=config.cache ;;
88
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
90
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
94
-disable-* | --disable-*)
95
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
96
# Reject names that are not valid shell variable names.
97
expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
98
AC_MSG_ERROR([invalid feature name: $ac_feature])
99
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
100
eval "enable_$ac_feature=no" ;;
102
-enable-* | --enable-*)
103
ac_feature=`expr "x$ac_option" : 'x-*enable-\([[^=]]*\)'`
104
# Reject names that are not valid shell variable names.
105
expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
106
AC_MSG_ERROR([invalid feature name: $ac_feature])
107
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
109
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
112
eval "enable_$ac_feature='$ac_optarg'" ;;
114
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
115
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
116
| --exec | --exe | --ex)
117
ac_prev=exec_prefix ;;
118
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
119
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
120
| --exec=* | --exe=* | --ex=*)
121
exec_prefix=$ac_optarg ;;
123
-gas | --gas | --ga | --g)
124
# Obsolete; use --with-gas.
127
-help | --help | --hel | --he | -h)
129
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
130
ac_init_help=recursive ;;
131
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
132
ac_init_help=short ;;
134
-host | --host | --hos | --ho)
135
ac_prev=host_alias ;;
136
-host=* | --host=* | --hos=* | --ho=*)
137
host_alias=$ac_optarg ;;
139
-includedir | --includedir | --includedi | --included | --include \
140
| --includ | --inclu | --incl | --inc)
141
ac_prev=includedir ;;
142
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
143
| --includ=* | --inclu=* | --incl=* | --inc=*)
144
includedir=$ac_optarg ;;
146
-infodir | --infodir | --infodi | --infod | --info | --inf)
148
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
149
infodir=$ac_optarg ;;
151
-libdir | --libdir | --libdi | --libd)
153
-libdir=* | --libdir=* | --libdi=* | --libd=*)
156
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
157
| --libexe | --libex | --libe)
158
ac_prev=libexecdir ;;
159
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
160
| --libexe=* | --libex=* | --libe=*)
161
libexecdir=$ac_optarg ;;
163
-localstatedir | --localstatedir | --localstatedi | --localstated \
164
| --localstate | --localstat | --localsta | --localst \
165
| --locals | --local | --loca | --loc | --lo)
166
ac_prev=localstatedir ;;
167
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
168
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
169
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
170
localstatedir=$ac_optarg ;;
172
dnl -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
173
dnl ac_prev=mandir ;;
174
dnl -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
175
dnl mandir=$ac_optarg ;;
178
# Obsolete; use --without-fp.
181
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
182
| --no-cr | --no-c | -n)
185
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
186
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
189
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
190
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
191
| --oldin | --oldi | --old | --ol | --o)
192
ac_prev=oldincludedir ;;
193
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
194
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
195
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
196
oldincludedir=$ac_optarg ;;
198
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
200
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
203
-program-prefix | --program-prefix | --program-prefi | --program-pref \
204
| --program-pre | --program-pr | --program-p)
205
ac_prev=program_prefix ;;
206
-program-prefix=* | --program-prefix=* | --program-prefi=* \
207
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
208
program_prefix=$ac_optarg ;;
210
-program-suffix | --program-suffix | --program-suffi | --program-suff \
211
| --program-suf | --program-su | --program-s)
212
ac_prev=program_suffix ;;
213
-program-suffix=* | --program-suffix=* | --program-suffi=* \
214
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
215
program_suffix=$ac_optarg ;;
217
-program-transform-name | --program-transform-name \
218
| --program-transform-nam | --program-transform-na \
219
| --program-transform-n | --program-transform- \
220
| --program-transform | --program-transfor \
221
| --program-transfo | --program-transf \
222
| --program-trans | --program-tran \
223
| --progr-tra | --program-tr | --program-t)
224
ac_prev=program_transform_name ;;
225
-program-transform-name=* | --program-transform-name=* \
226
| --program-transform-nam=* | --program-transform-na=* \
227
| --program-transform-n=* | --program-transform-=* \
228
| --program-transform=* | --program-transfor=* \
229
| --program-transfo=* | --program-transf=* \
230
| --program-trans=* | --program-tran=* \
231
| --progr-tra=* | --program-tr=* | --program-t=*)
232
program_transform_name=$ac_optarg ;;
234
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
235
| -silent | --silent | --silen | --sile | --sil)
238
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
240
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
242
sbindir=$ac_optarg ;;
244
-sharedstatedir | --sharedstatedir | --sharedstatedi \
245
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
246
| --sharedst | --shareds | --shared | --share | --shar \
248
ac_prev=sharedstatedir ;;
249
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
250
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
251
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
253
sharedstatedir=$ac_optarg ;;
255
-site | --site | --sit)
257
-site=* | --site=* | --sit=*)
260
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
262
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
265
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
266
| --syscon | --sysco | --sysc | --sys | --sy)
267
ac_prev=sysconfdir ;;
268
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
269
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
270
sysconfdir=$ac_optarg ;;
272
-target | --target | --targe | --targ | --tar | --ta | --t)
273
ac_prev=target_alias ;;
274
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
275
target_alias=$ac_optarg ;;
277
-v | -verbose | --verbose | --verbos | --verbo | --verb)
280
-version | --version | --versio | --versi | --vers | -V)
284
ac_package=`expr "x$ac_option" : 'x-*with-\([[^=]]*\)'`
285
# Reject names that are not valid shell variable names.
286
expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
287
AC_MSG_ERROR([invalid package name: $ac_package])
288
ac_package=`echo $ac_package| sed 's/-/_/g'`
290
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
293
eval "with_$ac_package='$ac_optarg'" ;;
295
-without-* | --without-*)
296
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
297
# Reject names that are not valid shell variable names.
298
expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
299
AC_MSG_ERROR([invalid package name: $ac_package])
300
ac_package=`echo $ac_package | sed 's/-/_/g'`
301
eval "with_$ac_package=no" ;;
304
# Obsolete; use --with-x.
307
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
308
| --x-incl | --x-inc | --x-in | --x-i)
309
ac_prev=x_includes ;;
310
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
311
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
312
x_includes=$ac_optarg ;;
314
-x-libraries | --x-libraries | --x-librarie | --x-librari \
315
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
316
ac_prev=x_libraries ;;
317
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
318
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
319
x_libraries=$ac_optarg ;;
321
m4_divert_pop([PARSE_ARGS_FOROPTS])dnl
322
m4_divert_push([PARSE_ARGS_MOREOPTS])dnl
324
# ljr: TODO: should check if we've defined this path as valid...
325
ac_destvar=`expr "x$ac_option" : 'x-*\([[^=]]*\)'`
326
# Reject names that are not valid shell variable names.
327
expr "x$ac_destvar" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
328
AC_MSG_ERROR([invalid variable name: $ac_destvar])
330
*=*) eval "${ac_destvar}='\$ac_optarg'" ;;
331
*) ac_prev=${ac_destvar} ;;
336
-*) AC_MSG_ERROR([unrecognized option: $ac_option
337
Try `$[0] --help' for more information.])
341
ac_envvar=`expr "x$ac_option" : 'x\([[^=]]*\)='`
342
# Reject names that are not valid shell variable names.
343
expr "x$ac_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
344
AC_MSG_ERROR([invalid variable name: $ac_envvar])
345
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
346
eval "$ac_envvar='$ac_optarg'"
350
# FIXME: should be removed in autoconf 3.0.
351
AC_MSG_WARN([you should use --build, --host, --target])
352
expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
353
AC_MSG_WARN([invalid host type: $ac_option])
354
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
360
if test -n "$ac_prev"; then
361
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
362
AC_MSG_ERROR([missing argument to $ac_option])
365
# Be sure to have absolute paths.
366
for ac_var in exec_prefix prefix
368
eval ac_val=$`echo $ac_var`
370
[[\\/$]]* | ?:[[\\/]]* | NONE | '' ) ;;
371
*) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
375
# Be sure to have absolute paths.
376
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
377
localstatedir libdir includedir \
378
dnl oldincludedir infodir mandir \
379
m4_divert_pop([PARSE_ARGS_MOREOPTS])dnl
380
m4_divert_push([PARSE_ARGS])dnl
383
eval ac_val=$`echo $ac_var`
385
[[\\/$]]* | ?:[[\\/]]* ) ;;
386
*) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
390
# There might be people who depend on the old broken behavior: `$host'
391
# used to hold the argument of --host etc.
392
# FIXME: To remove some day.
397
# FIXME: To remove some day.
398
if test "x$host_alias" != x; then
399
if test "x$build_alias" = x; then
400
cross_compiling=maybe
401
AC_MSG_WARN([If you wanted to set the --build type, don't use --host.
402
If a cross compiler is detected then cross compile mode will be used.])
403
elif test "x$build_alias" != "x$host_alias"; then
409
test -n "$host_alias" && ac_tool_prefix=$host_alias-
411
test "$silent" = yes && exec AS_MESSAGE_FD>/dev/null
413
m4_divert_pop([PARSE_ARGS])dnl
414
])# _AC_INIT_PARSE_ARGS
416
m4_define([_m4_divert(HELP_DIR)], 99)
417
m4_define([_m4_divert(HELP_PRE)], 98)
421
# Handle the `configure --help' message.
422
m4_define([_AC_INIT_HELP],
423
[m4_divert_push([HELP_PRE])dnl
426
# Report the --help message.
428
if test "$ac_init_help" = "long"; then
429
# Omit some internal or obsolete options to make the list less imposing.
430
# This message is too long to be a string in the A/UX 3.1 sh.
432
\`configure' configures m4_ifset([AC_PACKAGE_STRING],
434
[this package]) to adapt to many kinds of systems.
436
Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...
438
[To assign environment variables (e.g., CC, CFLAGS...), specify them as
439
VAR=VALUE. See below for descriptions of some of the useful variables.
441
Defaults for the options are specified in brackets.
444
-h, --help display this help and exit
445
--help=short display options specific to this package
446
--help=recursive display the short help of all the included packages
447
-V, --version display version information and exit
448
-q, --quiet, --silent do not print \`checking...' messages
449
--cache-file=FILE cache test results in FILE [disabled]
450
-C, --config-cache alias for \`--cache-file=config.cache'
451
-n, --no-create do not create output files
452
--srcdir=DIR find the sources in DIR [configure dir or \`..']
455
m4_divert_pop([HELP_PRE])dnl
457
m4_divert_push([HELP_DIR])dnl
460
Installation directories:
461
--prefix=PREFIX install architecture-independent files in PREFIX
463
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
466
By default, \`make install' will install all the files in
467
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
468
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
469
for instance \`--prefix=\$HOME'.
471
For better control, use the options below.
473
Fine tuning of the installation directories:
474
--bindir=DIR user executables [EPREFIX/bin]
475
--sbindir=DIR system admin executables [EPREFIX/sbin]
476
--libexecdir=DIR program executables [EPREFIX/libexec]
477
--datadir=DIR read-only architecture-independent data [PREFIX/share]
478
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
479
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
480
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
481
--libdir=DIR object code libraries [EPREFIX/lib]
482
--includedir=DIR C header files [PREFIX/include]
483
]m4_divert_pop([HELP_DIR])dnl
484
dnl AS_HELP_STRING([--bindir=DIR],[user executables [EPREFIX/bin]])
485
dnl AS_HELP_STRING([--sbindir=DIR],[system admin executables [EPREFIX/sbin]])
486
dnl AS_HELP_STRING([--libexecdir=DIR],[program executables [EPREFIX/libexec]])
487
dnl AS_HELP_STRING([--datadir=DIR],[read-only architecture-independent data [PREFIX/share]])
488
dnl AS_HELP_STRING([--sysconfdir=DIR],[read-only single-machine data [PREFIX/etc]])
489
dnl AS_HELP_STRING([--sharedstatedir=DIR],[modifiable architecture-independent data [PREFIX/com]])
490
dnl AS_HELP_STRING([--localstatedir=DIR],[modifiable single-machine data [PREFIX/var]])
491
dnl AS_HELP_STRING([--libdir=DIR],[object code libraries [EPREFIX/lib]])
492
dnl AS_HELP_STRING([--includedir=DIR],[C header files [PREFIX/include]])
493
dnl --oldincludedir=DIR C header files for non-gcc [/usr/include]
494
dnl --infodir=DIR info documentation [PREFIX/info]
495
dnl --mandir=DIR man documentation [PREFIX/man]
497
m4_divert_push([HELP_BEGIN])dnl
501
m4_divert_pop([HELP_BEGIN])dnl
502
dnl The order of the diversions here is
504
dnl General usage and configure options. Displayed only in long --help.
507
dnl Directory options. Displayed only in long --help.
510
dnl which may be extended by extra generic options such as with X or
511
dnl AC_ARG_PROGRAM. Displayed only in long --help.
514
dnl Support for cross compilation (--build, --host and --target).
515
dnl Display only in long --help.
518
dnl which starts with the trailer of the HELP_BEGIN, HELP_CANON section,
519
dnl then implements the header of the non generic options.
528
dnl initialized below, in which we dump the trailer (handling of the
529
dnl recursion for instance).
530
m4_divert_push([HELP_ENABLE])dnl
534
if test -n "$ac_init_help"; then
535
m4_ifset([AC_PACKAGE_STRING],
536
[ case $ac_init_help in
537
short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";;
540
m4_divert_pop([HELP_ENABLE])dnl
541
m4_divert_push([HELP_END])dnl
542
m4_ifset([AC_PACKAGE_BUGREPORT], [
543
Report bugs to <AC_PACKAGE_BUGREPORT>.])
547
if test "$ac_init_help" = "recursive"; then
548
# If there are subdirs, report their specific --help.
550
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
551
test -d $ac_dir || continue
552
_AC_SRCPATHS(["$ac_dir"])
554
# Check for guested configure; otherwise get Cygnus style configure.
555
if test -f $ac_srcdir/configure.gnu; then
557
$SHELL $ac_srcdir/configure.gnu --help=recursive
558
elif test -f $ac_srcdir/configure; then
560
$SHELL $ac_srcdir/configure --help=recursive
561
elif test -f $ac_srcdir/configure.ac ||
562
test -f $ac_srcdir/configure.in; then
566
AC_MSG_WARN([no configuration information is in $ac_dir])
572
test -n "$ac_init_help" && exit 0
573
m4_divert_pop([HELP_END])dnl
577
# 1. the name of the directory configuration variable
578
# 2. the default value
579
# 3. a description of the purpose of the directory
580
# 4. human-form of the default value
581
AC_DEFUN([AC_ARG_DIR],
583
m4_divert_once([HELP_DIR], [[
584
Yet even more specific tuning of install directories:]])dnl
586
m4_divert_once([HELP_DIR], AS_HELP_STRING([--$1=DIR],[$3 [[$4]]]))
587
m4_divert_push(PARSE_ARGS_INIT)dnl
588
AC_SUBST([$1], ['$2'])dnl
589
m4_divert_pop(PARSE_ARGS_INIT)
591
m4_divert_once([PARSE_ARGS_FOROPTS], [dnl
592
-$1 | --$1 | -with-$1 | --with-$1)
593
dnl | --datadi | --datad | --data | --dat | --da)
595
-$1=* | --$1=* | -with-$1=* | --with-$1=*)
596
dnl | --datadi=* | --datad=* | --data=* | --dat=* \
600
m4_divert_once([PARSE_ARGS_MOREOPTS], [$1 \])