24 |
# Name of the executable. |
# Name of the executable. |
25 |
as_me=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'` |
as_me=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'` |
26 |
|
|
27 |
# If LINENO is not supported by the shell, produce a version of this |
# Rewrite early, but we need PATH_SEPARATOR. |
28 |
# script where LINENO is hard coded. Rewrite if not up to date only. |
# The user is always right. |
29 |
# Comparing LINENO against _oline_ is not a good solution, since in |
if test "${PATH_SEPARATOR+set}" != set; then |
30 |
# the case of embedded executables (such as config.status within |
echo "#! $SHELL" >conftest.sh |
31 |
# configure) you'd compare LINENO wrt config.status vs. _oline_ vs |
echo "exit 0" >>conftest.sh |
32 |
# configure. Hence a useless rewrite (not to mention the risk of |
chmod +x conftest.sh |
33 |
# ``infinite'' rewrites. Merely check that LINENO is incremented |
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
34 |
# between two lines, which is a property guaranteed for _oline_, hence |
PATH_SEPARATOR=';' |
35 |
# it protects us from repetitive rewrites. Be sure to have a test |
else |
36 |
# that does detect non LINENO support... |
PATH_SEPARATOR=: |
37 |
|
fi |
38 |
|
rm -f conftest.sh |
39 |
|
fi |
40 |
|
|
41 |
as_lineno_1=$LINENO |
as_lineno_1=$LINENO |
42 |
as_lineno_2=$LINENO |
as_lineno_2=$LINENO |
43 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
44 |
if test "x$as_lineno_1" = "x$as_lineno_2" || |
if test "x$as_lineno_1" = "x$as_lineno_2" || |
45 |
test "x$as_lineno_3" != "x$as_lineno_2"; |
test "x$as_lineno_3" != "x$as_lineno_2"; |
46 |
then |
then |
47 |
# Find who we are. |
# Find who we are. Look in the path if we contain no path at all |
48 |
|
# relative or not. |
49 |
case $0 in |
case $0 in |
50 |
*[\\/]* | ?:[\\/]* ) as_myself=$0 ;; |
*[\\/]* ) as_myself=$0 ;; |
51 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
52 |
for as_dir in $PATH |
for as_dir in $PATH |
53 |
do |
do |
58 |
|
|
59 |
;; |
;; |
60 |
esac |
esac |
61 |
if test ! -f $as_myself; then |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
62 |
|
# in which case we are not to be found in the path. |
63 |
|
if test "x$as_myself" = x; then |
64 |
|
as_myself=$0 |
65 |
|
fi |
66 |
|
if test ! -f "$as_myself"; then |
67 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
68 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
69 |
fi |
fi |
70 |
if test ! -f $as_me.lineno || |
if test ! -f "$as_me.lineno" || |
71 |
test x`ls -1dt $as_me.lineno $as_myself 2>/dev/null | sed 1q` \ |
test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \ |
72 |
!= x$as_me.lineno; then |
!= x"$as_me.lineno"; then |
73 |
# Be sure to write the pattern so that it doesn't replace itself: |
# Be sure to write the pattern so that it doesn't replace itself: |
74 |
# it must not match itself. |
# it must not match itself. |
75 |
awk '{ |
awk <$as_myself ' |
76 |
if ($0 ~ /[$]LINENO/) |
/[$]LINENO/ { printf "%d:", NR } |
77 |
while (sub (/[$]LINENO/, NR)) |
{ print } |
78 |
continue |
' | |
79 |
print |
sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \ |
80 |
}' <$as_myself >$as_me.lineno |
>$as_me.lineno |
81 |
chmod +x $as_me.lineno |
chmod +x $as_me.lineno |
82 |
fi |
fi |
83 |
exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"} |
|
84 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
85 |
|
# (the dirname of $[0] is not the place where we might find the |
86 |
|
# original and so on. Autoconf is especially sensible to this). |
87 |
|
. ./$as_me.lineno |
88 |
|
# Exit status is that of the last command. |
89 |
|
exit |
90 |
fi |
fi |
91 |
|
|
92 |
# Avoid depending upon Character Ranges. |
# Avoid depending upon Character Ranges. |
127 |
fi |
fi |
128 |
rm -f conf$$ conf$$.exe conf$$.file |
rm -f conf$$ conf$$.exe conf$$.file |
129 |
|
|
|
# The user is always right. |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
|
|
echo "#! $SHELL" >conftest.sh |
|
|
echo "exit 0" >>conftest.sh |
|
|
chmod +x conftest.sh |
|
|
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conftest.sh |
|
|
fi |
|
|
|
|
130 |
as_executable_p="test -f" |
as_executable_p="test -f" |
131 |
|
|
132 |
# Sed expression to map a string onto a valid CPP name. |
# Sed expression to map a string onto a valid CPP name. |
1731 |
# Name of the executable. |
# Name of the executable. |
1732 |
as_me=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'` |
as_me=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'` |
1733 |
|
|
1734 |
# If LINENO is not supported by the shell, produce a version of this |
# Rewrite early, but we need PATH_SEPARATOR. |
1735 |
# script where LINENO is hard coded. Rewrite if not up to date only. |
# The user is always right. |
1736 |
# Comparing LINENO against _oline_ is not a good solution, since in |
if test "${PATH_SEPARATOR+set}" != set; then |
1737 |
# the case of embedded executables (such as config.status within |
echo "#! $SHELL" >conftest.sh |
1738 |
# configure) you'd compare LINENO wrt config.status vs. _oline_ vs |
echo "exit 0" >>conftest.sh |
1739 |
# configure. Hence a useless rewrite (not to mention the risk of |
chmod +x conftest.sh |
1740 |
# ``infinite'' rewrites. Merely check that LINENO is incremented |
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
1741 |
# between two lines, which is a property guaranteed for _oline_, hence |
PATH_SEPARATOR=';' |
1742 |
# it protects us from repetitive rewrites. Be sure to have a test |
else |
1743 |
# that does detect non LINENO support... |
PATH_SEPARATOR=: |
1744 |
|
fi |
1745 |
|
rm -f conftest.sh |
1746 |
|
fi |
1747 |
|
|
1748 |
as_lineno_1=$LINENO |
as_lineno_1=$LINENO |
1749 |
as_lineno_2=$LINENO |
as_lineno_2=$LINENO |
1750 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
1751 |
if test "x$as_lineno_1" = "x$as_lineno_2" || |
if test "x$as_lineno_1" = "x$as_lineno_2" || |
1752 |
test "x$as_lineno_3" != "x$as_lineno_2"; |
test "x$as_lineno_3" != "x$as_lineno_2"; |
1753 |
then |
then |
1754 |
# Find who we are. |
# Find who we are. Look in the path if we contain no path at all |
1755 |
|
# relative or not. |
1756 |
case $0 in |
case $0 in |
1757 |
*[\\/]* | ?:[\\/]* ) as_myself=$0 ;; |
*[\\/]* ) as_myself=$0 ;; |
1758 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1759 |
for as_dir in $PATH |
for as_dir in $PATH |
1760 |
do |
do |
1765 |
|
|
1766 |
;; |
;; |
1767 |
esac |
esac |
1768 |
if test ! -f $as_myself; then |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
1769 |
|
# in which case we are not to be found in the path. |
1770 |
|
if test "x$as_myself" = x; then |
1771 |
|
as_myself=$0 |
1772 |
|
fi |
1773 |
|
if test ! -f "$as_myself"; then |
1774 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
1775 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
1776 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1777 |
fi |
fi |
1778 |
if test ! -f $as_me.lineno || |
if test ! -f "$as_me.lineno" || |
1779 |
test x`ls -1dt $as_me.lineno $as_myself 2>/dev/null | sed 1q` \ |
test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \ |
1780 |
!= x$as_me.lineno; then |
!= x"$as_me.lineno"; then |
1781 |
# Be sure to write the pattern so that it doesn't replace itself: |
# Be sure to write the pattern so that it doesn't replace itself: |
1782 |
# it must not match itself. |
# it must not match itself. |
1783 |
awk '{ |
awk <$as_myself ' |
1784 |
if ($0 ~ /[$]LINENO/) |
/[$]LINENO/ { printf "%d:", NR } |
1785 |
while (sub (/[$]LINENO/, NR)) |
{ print } |
1786 |
continue |
' | |
1787 |
print |
sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \ |
1788 |
}' <$as_myself >$as_me.lineno |
>$as_me.lineno |
1789 |
chmod +x $as_me.lineno |
chmod +x $as_me.lineno |
1790 |
fi |
fi |
1791 |
exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"} |
|
1792 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
1793 |
|
# (the dirname of $[0] is not the place where we might find the |
1794 |
|
# original and so on. Autoconf is especially sensible to this). |
1795 |
|
. ./$as_me.lineno |
1796 |
|
# Exit status is that of the last command. |
1797 |
|
exit |
1798 |
fi |
fi |
1799 |
|
|
1800 |
# Avoid depending upon Character Ranges. |
# Avoid depending upon Character Ranges. |
1835 |
fi |
fi |
1836 |
rm -f conf$$ conf$$.exe conf$$.file |
rm -f conf$$ conf$$.exe conf$$.file |
1837 |
|
|
|
# The user is always right. |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
|
|
echo "#! $SHELL" >conftest.sh |
|
|
echo "exit 0" >>conftest.sh |
|
|
chmod +x conftest.sh |
|
|
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conftest.sh |
|
|
fi |
|
|
|
|
1838 |
as_executable_p="test -f" |
as_executable_p="test -f" |
1839 |
|
|
1840 |
# Sed expression to map a string onto a valid CPP name. |
# Sed expression to map a string onto a valid CPP name. |