2 ## --------------------- ##
3 ## M4sh Initialization. ##
4 ## --------------------- ##
7 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11 # is contrary to our usage. Disable this feature.
12 alias -g '${1+"$@"}'='"$@"'
13 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16 DUALCASE
=1; export DUALCASE
# for MKS sh
20 # Avoid depending upon Character Ranges.
21 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24 as_cr_digits
='0123456789'
25 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27 # The user is always right.
28 if test "${PATH_SEPARATOR+set}" != set; then
29 echo "#! /bin/sh" >conf$$.sh
30 echo "exit 0" >>conf$$.sh
32 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
40 # Support unset when possible.
41 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
48 # Find who we are. Look in the path if we contain no path at all
51 *[\\/]* ) as_myself
=$0 ;;
52 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
56 test -z "$as_dir" && as_dir
=.
57 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
62 # We did not find ourselves, most probably we were run as `sh COMMAND'
63 # in which case we are not to be found in the path.
64 if test "x$as_myself" = x
; then
67 if test ! -f "$as_myself"; then
68 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
69 { (exit 1); exit 1; }; }
72 # Work around bugs in pre-3.0 UWIN ksh.
73 $as_unset ENV MAIL MAILPATH
80 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
81 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
84 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
85 eval $as_var=C
; export $as_var
91 # Required to use basename.
92 if expr a
: '\(a\)' >/dev
/null
2>&1; then
98 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
105 # Name of the executable.
106 as_me
=`$as_basename "$0" ||
107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
108 X"$0" : 'X\(//\)$' \| \
109 X"$0" : 'X\(/\)$' \| \
110 . : '\(.\)' 2>/dev/null ||
112 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
113 /^X\/\(\/\/\)$/{ s//\1/; q; }
114 /^X\/\(\/\).*/{ s//\1/; q; }
119 if test "x$CONFIG_SHELL" = x
; then
120 if (eval ":") 2>/dev
/null
; then
126 if test $as_have_required = yes && (eval ":
136 func_ret_success () {
139 func_ret_failure () {
144 if func_success; then
148 echo func_failure succeeded.
151 if func_failure; then
153 echo func_success failed.
156 if func_ret_success; then
160 echo func_ret_success failed.
163 if func_ret_failure; then
165 echo func_ret_failure succeeded.
168 test \$exitcode = 0) || { (exit 1); exit 1; }
169 ") 2> /dev
/null
; then
172 as_candidate_shells
="$SHELL"
173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
174 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
177 test -z "$as_dir" && as_dir
=.
180 for as_base
in sh bash ksh sh5
; do
181 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
187 for as_shell
in $as_candidate_shells; do
188 if { $as_shell 2> /dev
/null
<<\_ASEOF
189 # Be Bourne compatible
190 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
194 # is contrary to our usage. Disable this feature.
195 alias -g '${1+"$@"}'='"$@"'
196 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
199 DUALCASE
=1; export DUALCASE
# for MKS sh
204 CONFIG_SHELL
=$as_shell
206 if { $as_shell 2> /dev
/null
<<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
214 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
217 DUALCASE
=1; export DUALCASE
# for MKS sh
229 func_ret_success
() {
232 func_ret_failure
() {
237 if func_success
; then
241 echo func_failure succeeded.
244 if func_failure
; then
246 echo func_success failed.
249 if func_ret_success
; then
253 echo func_ret_success failed.
256 if func_ret_failure
; then
258 echo func_ret_failure succeeded.
261 test $exitcode = 0) ||
{ (exit 1); exit 1; }
272 if test "x$CONFIG_SHELL" != x
; then
273 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
274 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
276 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
280 if test $as_have_required = no
; then
281 echo This
script requires a shell
more modern than all the
282 echo shells that I found on your system. Please
install a
283 echo modern shell
, or manually run the
script under such a
284 echo shell
if you
do have one.
285 { (exit 1); exit 1; }
295 (eval "func_return () {
304 func_ret_success () {
307 func_ret_failure () {
312 if func_success; then
316 echo func_failure succeeded.
319 if func_failure; then
321 echo func_success failed.
324 if func_ret_success; then
328 echo func_ret_success failed.
331 if func_ret_failure; then
333 echo func_ret_failure succeeded.
336 test \$exitcode = 0") ||
{
337 echo No shell found that supports shell functions.
338 echo Please tell autoconf@gnu.org about your system
,
339 echo including any error possibly output before this
344 testdir
=@abs_top_builddir@
/tests
345 AUTOCONF
=$testdir/autoconf
346 AUTOHEADER
=$testdir/autoheader
347 AUTOM4TE
=$testdir/autom4te
348 AUTOM4TE_CFG
=@abs_top_builddir@
/lib
/autom4te.cfg
349 autom4te_perllibdir
=@abs_top_srcdir@
/lib
350 export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
354 # Does not have lib files.
355 exec @abs_top_builddir@
/bin
/$as_me ${1+"$@"}
358 # We might need files from the build tree (frozen files), in
359 # addition of src files.
360 exec @abs_top_builddir@
/bin
/$as_me \
361 -B @abs_top_builddir@
/lib \
362 -B @abs_top_srcdir@
/lib
${1+"$@"}