1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
## --------------------- ## |
3 |
|
## M4sh Initialization. ## |
4 |
|
## --------------------- ## |
5 |
|
|
6 |
|
# Be Bourne compatible |
7 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8 |
|
emulate sh |
9 |
|
NULLCMD=: |
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 |
14 |
|
set -o posix |
15 |
|
fi |
16 |
|
|
17 |
|
# NLS nuisances. |
18 |
|
# Support unset when possible. |
19 |
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
20 |
|
as_unset=unset |
21 |
|
else |
22 |
|
as_unset=false |
23 |
|
fi |
24 |
|
|
25 |
|
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
26 |
|
{ $as_unset LANG || test "${LANG+set}" != set; } || |
27 |
|
{ LANG=C; export LANG; } |
28 |
|
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
29 |
|
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
30 |
|
{ LC_ALL=C; export LC_ALL; } |
31 |
|
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
32 |
|
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
33 |
|
{ LC_TIME=C; export LC_TIME; } |
34 |
|
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
35 |
|
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
36 |
|
{ LC_CTYPE=C; export LC_CTYPE; } |
37 |
|
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
38 |
|
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
39 |
|
{ LANGUAGE=C; export LANGUAGE; } |
40 |
|
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
41 |
|
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
42 |
|
{ LC_COLLATE=C; export LC_COLLATE; } |
43 |
|
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
44 |
|
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
45 |
|
{ LC_NUMERIC=C; export LC_NUMERIC; } |
46 |
|
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
47 |
|
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
48 |
|
{ LC_MESSAGES=C; export LC_MESSAGES; } |
49 |
|
|
50 |
|
|
51 |
|
# Required to use basename. |
52 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
|
as_expr=expr |
54 |
|
else |
55 |
|
as_expr=false |
56 |
|
fi |
57 |
|
|
58 |
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
|
as_basename=basename |
60 |
|
else |
61 |
|
as_basename=false |
62 |
|
fi |
63 |
|
|
64 |
|
|
65 |
|
# Name of the executable. |
66 |
|
as_me=`$as_basename "$0" || |
67 |
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
|
X"$0" : 'X\(//\)$' \| \ |
69 |
|
X"$0" : 'X\(/\)$' \| \ |
70 |
|
. : '\(.\)' 2>/dev/null || |
71 |
|
echo X/"$0" | |
72 |
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
|
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
|
s/.*/./; q'` |
76 |
|
|
77 |
|
|
78 |
# @configure_input@ |
# @configure_input@ |
79 |
# Running `$0' as if it were installed. |
# Running `$0' as if it were installed. |
80 |
|
|
|
me=`echo "$0" | sed -e 's,.*[\\/],,'` |
|
|
|
|
81 |
# Be sure to use the non installed Perl modules. |
# Be sure to use the non installed Perl modules. |
|
# We need no special protection for the subtools (e.g., autoheader runs |
|
|
# autoconf which runs autom4te) because by themselves, they try to use |
|
|
# subtools from the same directory (i.e., foo/autoheader will run |
|
|
# foo/autoconf etc.). |
|
82 |
autom4te_perllibdir=@abs_top_srcdir@/lib |
autom4te_perllibdir=@abs_top_srcdir@/lib |
83 |
export autom4te_perllibdir |
export autom4te_perllibdir |
84 |
|
|
85 |
case $me in |
case $as_me in |
86 |
ifnames) |
ifnames) |
87 |
# Does not have lib files. |
# Does not have lib files. |
88 |
exec @abs_top_builddir@/bin/$me ${1+"$@"} |
exec @abs_top_builddir@/bin/$as_me ${1+"$@"} |
89 |
;; |
;; |
90 |
autom4te) |
autom4te) |
91 |
AUTOM4TE_CFG=@abs_top_builddir@/lib/autom4te.cfg |
AUTOM4TE_CFG=@abs_top_builddir@/lib/autom4te.cfg |
94 |
esac |
esac |
95 |
|
|
96 |
# We might need files from build (frozen files), in addition of src files. |
# We might need files from build (frozen files), in addition of src files. |
97 |
exec @abs_top_builddir@/bin/$me \ |
exec @abs_top_builddir@/bin/$as_me \ |
98 |
-I @abs_top_builddir@/lib \ |
-I @abs_top_builddir@/lib \ |
99 |
-I @abs_top_srcdir@/lib ${1+"$@"} |
-I @abs_top_srcdir@/lib ${1+"$@"} |