1 |
#! /bin/sh |
#! /bin/sh |
2 |
# @configure_generated@ |
# @configure_input@ |
3 |
# Wrapper around a non installed m4 to make it work as an installed one. |
# Wrapper around a non installed m4 to make it work as an installed one. |
4 |
|
|
5 |
"@top_buildpath@/src/m4" \ |
"@top_buildpath@/src/m4" \ |
7 |
${1+"$@"} 2>/tmp/m4-$$ |
${1+"$@"} 2>/tmp/m4-$$ |
8 |
status=$? |
status=$? |
9 |
# Normalize stderr. |
# Normalize stderr. |
10 |
sed 's,^[lt-]*m4[.ex]*:,m4:,' /tmp/m4-$$ >&2 |
# - If configure --disable-shared, then src/m4 is a real program, |
11 |
|
# neutralize the full path display |
12 |
|
# - otherwise, it is a libtool wrapper, relying on PATH to execute the |
13 |
|
# actual program, either lt-m4, or m4. |
14 |
|
# |
15 |
|
# - In both cases, beware of .exe. |
16 |
|
sed 's,^[^:]*[lt-]*m4[.ex]*:,m4:,' /tmp/m4-$$ >&2 |
17 |
rm /tmp/m4-$$ |
rm /tmp/m4-$$ |
18 |
|
|
19 |
exit $status |
exit $status |