Merge from gcc:
2004-09-23 Kelley Cook <kcook@gcc.gnu.org> * config.guess: New upstream version * compile, depcomp, install-sh, ylwrap: Likewise. 2004-09-19 Roger Sayle <roger@eyesopen.com> * config/mh-x86omitfp: New host makefile fragment. Add -fomit-frame-pointer to the default BOOT_CFLAGS. * configure.in: Use it to speed up bootstrap on some IA-32 hosts. * configure: Regenerate. 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu> PR target/11572 * configure.in (*-*-darwin*): Renable libobjc. * configure: Regenerate.
This commit is contained in:
parent
f19dd04abc
commit
fe69863c4a
18
ChangeLog
18
ChangeLog
@ -1,3 +1,21 @@
|
|||||||
|
2004-09-23 Kelley Cook <kcook@gcc.gnu.org>
|
||||||
|
|
||||||
|
* config.guess: New upstream version
|
||||||
|
* compile, depcomp, install-sh, ylwrap: Likewise.
|
||||||
|
|
||||||
|
2004-09-19 Roger Sayle <roger@eyesopen.com>
|
||||||
|
|
||||||
|
* config/mh-x86omitfp: New host makefile fragment. Add
|
||||||
|
-fomit-frame-pointer to the default BOOT_CFLAGS.
|
||||||
|
* configure.in: Use it to speed up bootstrap on some IA-32 hosts.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
|
2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
|
||||||
|
|
||||||
|
PR target/11572
|
||||||
|
* configure.in (*-*-darwin*): Renable libobjc.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2004-09-09 Daniel Berlin <dberlin@dberlin.org>
|
2004-09-09 Daniel Berlin <dberlin@dberlin.org>
|
||||||
|
|
||||||
* Makefile.def: Remove libbanshee.
|
* Makefile.def: Remove libbanshee.
|
||||||
|
5
config.guess
vendored
5
config.guess
vendored
@ -3,7 +3,7 @@
|
|||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2004-08-29'
|
timestamp='2004-09-07'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
@ -827,6 +827,9 @@ EOF
|
|||||||
crisv32:Linux:*:*)
|
crisv32:Linux:*:*)
|
||||||
echo crisv32-axis-linux-gnu
|
echo crisv32-axis-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
frv:Linux:*:*)
|
||||||
|
echo frv-unknown-linux-gnu
|
||||||
|
exit 0 ;;
|
||||||
ia64:Linux:*:*)
|
ia64:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
2
config/mh-x86omitfp
Normal file
2
config/mh-x86omitfp
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Add -fomit-frame-pointer to the usual BOOT_CFLAGS to speed up the compiler.
|
||||||
|
BOOT_CFLAGS = -O2 -g -fomit-frame-pointer
|
167
configure
vendored
167
configure
vendored
@ -545,7 +545,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
ac_aux_dir=
|
ac_aux_dir=
|
||||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
for ac_dir in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/.. $srcdir/../..; do
|
||||||
if test -f $ac_dir/install-sh; then
|
if test -f $ac_dir/install-sh; then
|
||||||
ac_aux_dir=$ac_dir
|
ac_aux_dir=$ac_dir
|
||||||
ac_install_sh="$ac_aux_dir/install-sh -c"
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
||||||
@ -1141,11 +1141,10 @@ case "${target}" in
|
|||||||
;;
|
;;
|
||||||
powerpc-*-darwin*)
|
powerpc-*-darwin*)
|
||||||
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
||||||
noconfigdirs="$noconfigdirs target-libobjc"
|
|
||||||
;;
|
;;
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
||||||
noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
||||||
;;
|
;;
|
||||||
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
|
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
|
||||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
||||||
@ -1716,6 +1715,11 @@ case "${host}" in
|
|||||||
*-*-sysv4*)
|
*-*-sysv4*)
|
||||||
host_makefile_frag="config/mh-sysv4"
|
host_makefile_frag="config/mh-sysv4"
|
||||||
;;
|
;;
|
||||||
|
# This is placed last to prevent interfering with the cases above.
|
||||||
|
i[3456789]86-*-*)
|
||||||
|
# Build the stage2 and stage3 compilers with -fomit-frame-pointer.
|
||||||
|
host_makefile_frag="config/mh-x86omitfp"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1771,7 +1775,7 @@ else
|
|||||||
# Extract the first word of "gcc", so it can be a program name with args.
|
# Extract the first word of "gcc", so it can be a program name with args.
|
||||||
set dummy gcc; ac_word=$2
|
set dummy gcc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:1775: checking for $ac_word" >&5
|
echo "configure:1774: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -1801,7 +1805,7 @@ if test -z "$CC"; then
|
|||||||
# Extract the first word of "cc", so it can be a program name with args.
|
# Extract the first word of "cc", so it can be a program name with args.
|
||||||
set dummy cc; ac_word=$2
|
set dummy cc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:1805: checking for $ac_word" >&5
|
echo "configure:1804: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -1852,7 +1856,7 @@ fi
|
|||||||
# Extract the first word of "cl", so it can be a program name with args.
|
# Extract the first word of "cl", so it can be a program name with args.
|
||||||
set dummy cl; ac_word=$2
|
set dummy cl; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:1856: checking for $ac_word" >&5
|
echo "configure:1855: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -1884,7 +1888,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
||||||
echo "configure:1888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
echo "configure:1887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||||
@ -1895,12 +1899,12 @@ cross_compiling=$ac_cv_prog_cc_cross
|
|||||||
|
|
||||||
cat > conftest.$ac_ext << EOF
|
cat > conftest.$ac_ext << EOF
|
||||||
|
|
||||||
#line 1899 "configure"
|
#line 1898 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
main(){return(0);}
|
main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
ac_cv_prog_cc_works=yes
|
ac_cv_prog_cc_works=yes
|
||||||
# If we can't run a trivial program, we are probably using a cross compiler.
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
||||||
if (./conftest; exit) 2>/dev/null; then
|
if (./conftest; exit) 2>/dev/null; then
|
||||||
@ -1926,12 +1930,12 @@ if test $ac_cv_prog_cc_works = no; then
|
|||||||
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
||||||
fi
|
fi
|
||||||
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
||||||
echo "configure:1930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
echo "configure:1929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
||||||
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
||||||
cross_compiling=$ac_cv_prog_cc_cross
|
cross_compiling=$ac_cv_prog_cc_cross
|
||||||
|
|
||||||
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
||||||
echo "configure:1935: checking whether we are using GNU C" >&5
|
echo "configure:1934: checking whether we are using GNU C" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -1940,7 +1944,7 @@ else
|
|||||||
yes;
|
yes;
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
||||||
ac_cv_prog_gcc=yes
|
ac_cv_prog_gcc=yes
|
||||||
else
|
else
|
||||||
ac_cv_prog_gcc=no
|
ac_cv_prog_gcc=no
|
||||||
@ -1959,7 +1963,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
|
|||||||
ac_save_CFLAGS="$CFLAGS"
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
||||||
echo "configure:1963: checking whether ${CC-cc} accepts -g" >&5
|
echo "configure:1962: checking whether ${CC-cc} accepts -g" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2026,7 +2030,7 @@ fi
|
|||||||
# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
|
# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
|
||||||
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
|
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2030: checking for $ac_word" >&5
|
echo "configure:2029: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2058,7 +2062,7 @@ if test -n "$ac_tool_prefix"; then
|
|||||||
# Extract the first word of "gnatbind", so it can be a program name with args.
|
# Extract the first word of "gnatbind", so it can be a program name with args.
|
||||||
set dummy gnatbind; ac_word=$2
|
set dummy gnatbind; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2062: checking for $ac_word" >&5
|
echo "configure:2061: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2091,7 +2095,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
|
echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
|
||||||
echo "configure:2095: checking whether compiler driver understands Ada" >&5
|
echo "configure:2094: checking whether compiler driver understands Ada" >&5
|
||||||
if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2124,7 +2128,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
|
echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
|
||||||
echo "configure:2128: checking how to compare bootstrapped objects" >&5
|
echo "configure:2127: checking how to compare bootstrapped objects" >&5
|
||||||
if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2222,9 +2226,9 @@ saved_CFLAGS="$CFLAGS"
|
|||||||
CFLAGS="$CFLAGS $gmpinc"
|
CFLAGS="$CFLAGS $gmpinc"
|
||||||
# Check GMP actually works
|
# Check GMP actually works
|
||||||
echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
|
echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
|
||||||
echo "configure:2226: checking for correct version of gmp.h" >&5
|
echo "configure:2225: checking for correct version of gmp.h" >&5
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2228 "configure"
|
#line 2227 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include "gmp.h"
|
#include "gmp.h"
|
||||||
int main() {
|
int main() {
|
||||||
@ -2235,7 +2239,7 @@ choke me
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:2238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
else
|
else
|
||||||
@ -2248,12 +2252,12 @@ rm -f conftest*
|
|||||||
|
|
||||||
if test x"$have_gmp" = xyes; then
|
if test x"$have_gmp" = xyes; then
|
||||||
echo $ac_n "checking for MPFR""... $ac_c" 1>&6
|
echo $ac_n "checking for MPFR""... $ac_c" 1>&6
|
||||||
echo "configure:2252: checking for MPFR" >&5
|
echo "configure:2251: checking for MPFR" >&5
|
||||||
|
|
||||||
saved_LIBS="$LIBS"
|
saved_LIBS="$LIBS"
|
||||||
LIBS="$LIBS $gmplibs"
|
LIBS="$LIBS $gmplibs"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2257 "configure"
|
#line 2256 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <gmp.h>
|
#include <gmp.h>
|
||||||
#include <mpfr.h>
|
#include <mpfr.h>
|
||||||
@ -2261,7 +2265,7 @@ int main() {
|
|||||||
mpfr_t n; mpfr_init(n);
|
mpfr_t n; mpfr_init(n);
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
else
|
else
|
||||||
@ -2738,7 +2742,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2742: checking for $ac_word" >&5
|
echo "configure:2741: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2773,7 +2777,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2777: checking for $ac_word" >&5
|
echo "configure:2776: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2808,7 +2812,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2812: checking for $ac_word" >&5
|
echo "configure:2811: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2843,7 +2847,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2847: checking for $ac_word" >&5
|
echo "configure:2846: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2878,7 +2882,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2882: checking for $ac_word" >&5
|
echo "configure:2881: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2913,7 +2917,7 @@ do
|
|||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:2917: checking for $ac_word" >&5
|
echo "configure:2916: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3547,7 +3551,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
|
|||||||
# Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}ar; ac_word=$2
|
set dummy ${ncn_tool_prefix}ar; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3551: checking for $ac_word" >&5
|
echo "configure:3550: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3580,7 +3584,7 @@ if test -z "$ac_cv_prog_AR" ; then
|
|||||||
# Extract the first word of "ar", so it can be a program name with args.
|
# Extract the first word of "ar", so it can be a program name with args.
|
||||||
set dummy ar; ac_word=$2
|
set dummy ar; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3584: checking for $ac_word" >&5
|
echo "configure:3583: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3619,7 +3623,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}as; ac_word=$2
|
set dummy ${ncn_tool_prefix}as; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3623: checking for $ac_word" >&5
|
echo "configure:3622: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3652,7 +3656,7 @@ if test -z "$ac_cv_prog_AS" ; then
|
|||||||
# Extract the first word of "as", so it can be a program name with args.
|
# Extract the first word of "as", so it can be a program name with args.
|
||||||
set dummy as; ac_word=$2
|
set dummy as; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3656: checking for $ac_word" >&5
|
echo "configure:3655: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3691,7 +3695,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
|
set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3695: checking for $ac_word" >&5
|
echo "configure:3694: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3724,7 +3728,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then
|
|||||||
# Extract the first word of "dlltool", so it can be a program name with args.
|
# Extract the first word of "dlltool", so it can be a program name with args.
|
||||||
set dummy dlltool; ac_word=$2
|
set dummy dlltool; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3728: checking for $ac_word" >&5
|
echo "configure:3727: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3763,7 +3767,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}ld; ac_word=$2
|
set dummy ${ncn_tool_prefix}ld; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3767: checking for $ac_word" >&5
|
echo "configure:3766: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3796,7 +3800,7 @@ if test -z "$ac_cv_prog_LD" ; then
|
|||||||
# Extract the first word of "ld", so it can be a program name with args.
|
# Extract the first word of "ld", so it can be a program name with args.
|
||||||
set dummy ld; ac_word=$2
|
set dummy ld; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3800: checking for $ac_word" >&5
|
echo "configure:3799: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3835,7 +3839,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}nm; ac_word=$2
|
set dummy ${ncn_tool_prefix}nm; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3839: checking for $ac_word" >&5
|
echo "configure:3838: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3868,7 +3872,7 @@ if test -z "$ac_cv_prog_NM" ; then
|
|||||||
# Extract the first word of "nm", so it can be a program name with args.
|
# Extract the first word of "nm", so it can be a program name with args.
|
||||||
set dummy nm; ac_word=$2
|
set dummy nm; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3872: checking for $ac_word" >&5
|
echo "configure:3871: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3907,7 +3911,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
|
set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3911: checking for $ac_word" >&5
|
echo "configure:3910: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3940,7 +3944,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then
|
|||||||
# Extract the first word of "ranlib", so it can be a program name with args.
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
||||||
set dummy ranlib; ac_word=$2
|
set dummy ranlib; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3944: checking for $ac_word" >&5
|
echo "configure:3943: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -3979,7 +3983,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}windres; ac_word=$2
|
set dummy ${ncn_tool_prefix}windres; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:3983: checking for $ac_word" >&5
|
echo "configure:3982: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4012,7 +4016,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then
|
|||||||
# Extract the first word of "windres", so it can be a program name with args.
|
# Extract the first word of "windres", so it can be a program name with args.
|
||||||
set dummy windres; ac_word=$2
|
set dummy windres; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4016: checking for $ac_word" >&5
|
echo "configure:4015: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4051,7 +4055,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
|
set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4055: checking for $ac_word" >&5
|
echo "configure:4054: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4084,7 +4088,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then
|
|||||||
# Extract the first word of "objcopy", so it can be a program name with args.
|
# Extract the first word of "objcopy", so it can be a program name with args.
|
||||||
set dummy objcopy; ac_word=$2
|
set dummy objcopy; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4088: checking for $ac_word" >&5
|
echo "configure:4087: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4123,7 +4127,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
|
# Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
|
||||||
set dummy ${ncn_tool_prefix}objdump; ac_word=$2
|
set dummy ${ncn_tool_prefix}objdump; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4127: checking for $ac_word" >&5
|
echo "configure:4126: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4156,7 +4160,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then
|
|||||||
# Extract the first word of "objdump", so it can be a program name with args.
|
# Extract the first word of "objdump", so it can be a program name with args.
|
||||||
set dummy objdump; ac_word=$2
|
set dummy objdump; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4160: checking for $ac_word" >&5
|
echo "configure:4159: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4202,7 +4206,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4206: checking for $ac_word" >&5
|
echo "configure:4205: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4235,7 +4239,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "ar", so it can be a program name with args.
|
# Extract the first word of "ar", so it can be a program name with args.
|
||||||
set dummy ar; ac_word=$2
|
set dummy ar; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4239: checking for $ac_word" >&5
|
echo "configure:4238: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4274,7 +4278,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}as; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}as; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4278: checking for $ac_word" >&5
|
echo "configure:4277: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4307,7 +4311,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "as", so it can be a program name with args.
|
# Extract the first word of "as", so it can be a program name with args.
|
||||||
set dummy as; ac_word=$2
|
set dummy as; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4311: checking for $ac_word" >&5
|
echo "configure:4310: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4346,7 +4350,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4350: checking for $ac_word" >&5
|
echo "configure:4349: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4379,7 +4383,7 @@ if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "dlltool", so it can be a program name with args.
|
# Extract the first word of "dlltool", so it can be a program name with args.
|
||||||
set dummy dlltool; ac_word=$2
|
set dummy dlltool; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4383: checking for $ac_word" >&5
|
echo "configure:4382: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4418,7 +4422,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4422: checking for $ac_word" >&5
|
echo "configure:4421: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4451,7 +4455,7 @@ if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "ld", so it can be a program name with args.
|
# Extract the first word of "ld", so it can be a program name with args.
|
||||||
set dummy ld; ac_word=$2
|
set dummy ld; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4455: checking for $ac_word" >&5
|
echo "configure:4454: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4490,7 +4494,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4494: checking for $ac_word" >&5
|
echo "configure:4493: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4523,7 +4527,7 @@ if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "nm", so it can be a program name with args.
|
# Extract the first word of "nm", so it can be a program name with args.
|
||||||
set dummy nm; ac_word=$2
|
set dummy nm; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4527: checking for $ac_word" >&5
|
echo "configure:4526: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4562,7 +4566,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4566: checking for $ac_word" >&5
|
echo "configure:4565: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4595,7 +4599,7 @@ if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "ranlib", so it can be a program name with args.
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
||||||
set dummy ranlib; ac_word=$2
|
set dummy ranlib; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4599: checking for $ac_word" >&5
|
echo "configure:4598: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4634,7 +4638,7 @@ fi
|
|||||||
# Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
|
# Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
|
||||||
set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
|
set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4638: checking for $ac_word" >&5
|
echo "configure:4637: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4667,7 +4671,7 @@ if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
|
|||||||
# Extract the first word of "windres", so it can be a program name with args.
|
# Extract the first word of "windres", so it can be a program name with args.
|
||||||
set dummy windres; ac_word=$2
|
set dummy windres; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:4671: checking for $ac_word" >&5
|
echo "configure:4670: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4752,7 +4756,7 @@ RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
|
|||||||
NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
|
NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
|
||||||
|
|
||||||
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
||||||
echo "configure:4756: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
echo "configure:4755: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
||||||
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
||||||
if test "${enable_maintainer_mode+set}" = set; then
|
if test "${enable_maintainer_mode+set}" = set; then
|
||||||
enableval="$enable_maintainer_mode"
|
enableval="$enable_maintainer_mode"
|
||||||
@ -4799,7 +4803,7 @@ esac
|
|||||||
# gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
|
# gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
|
||||||
# possible, however, we can resort to mv.
|
# possible, however, we can resort to mv.
|
||||||
echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
|
echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
|
||||||
echo "configure:4803: checking if symbolic links between directories work" >&5
|
echo "configure:4802: checking if symbolic links between directories work" >&5
|
||||||
if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -4913,34 +4917,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|||||||
# Transform confdefs.h into DEFS.
|
# Transform confdefs.h into DEFS.
|
||||||
# Protect against shell expansion while executing Makefile rules.
|
# Protect against shell expansion while executing Makefile rules.
|
||||||
# Protect against Makefile macro expansion.
|
# Protect against Makefile macro expansion.
|
||||||
#
|
cat > conftest.defs <<\EOF
|
||||||
# If the first sed substitution is executed (which looks for macros that
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
||||||
# take arguments), then we branch to the quote section. Otherwise,
|
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
||||||
# look for a macro that doesn't take arguments.
|
s%\[%\\&%g
|
||||||
cat >confdef2opt.sed <<\_ACEOF
|
s%\]%\\&%g
|
||||||
t clear
|
s%\$%$$%g
|
||||||
: clear
|
EOF
|
||||||
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
||||||
t quote
|
rm -f conftest.defs
|
||||||
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
|
||||||
t quote
|
|
||||||
d
|
|
||||||
: quote
|
|
||||||
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
|
||||||
s,\[,\\&,g
|
|
||||||
s,\],\\&,g
|
|
||||||
s,\$,$$,g
|
|
||||||
p
|
|
||||||
_ACEOF
|
|
||||||
# We use echo to avoid assuming a particular line-breaking character.
|
|
||||||
# The extra dot is to prevent the shell from consuming trailing
|
|
||||||
# line-breaks from the sub-command output. A line-break within
|
|
||||||
# single-quotes doesn't work because, if this script is created in a
|
|
||||||
# platform that uses two characters for line-breaks (e.g., DOS), tr
|
|
||||||
# would break.
|
|
||||||
ac_LF_and_DOT=`echo; echo .`
|
|
||||||
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
|
||||||
rm -f confdef2opt.sed
|
|
||||||
|
|
||||||
|
|
||||||
# Without the "./", some shells look in PATH for config.status.
|
# Without the "./", some shells look in PATH for config.status.
|
||||||
|
@ -363,11 +363,10 @@ case "${target}" in
|
|||||||
;;
|
;;
|
||||||
powerpc-*-darwin*)
|
powerpc-*-darwin*)
|
||||||
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
||||||
noconfigdirs="$noconfigdirs target-libobjc"
|
|
||||||
;;
|
;;
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
|
||||||
noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
||||||
;;
|
;;
|
||||||
*-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*)
|
*-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*)
|
||||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
||||||
@ -938,6 +937,11 @@ case "${host}" in
|
|||||||
*-*-sysv4*)
|
*-*-sysv4*)
|
||||||
host_makefile_frag="config/mh-sysv4"
|
host_makefile_frag="config/mh-sysv4"
|
||||||
;;
|
;;
|
||||||
|
# This is placed last to prevent interfering with the cases above.
|
||||||
|
i[[3456789]]86-*-*)
|
||||||
|
# Build the stage2 and stage3 compilers with -fomit-frame-pointer.
|
||||||
|
host_makefile_frag="config/mh-x86omitfp"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
104
depcomp
104
depcomp
@ -1,7 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# depcomp - compile a program generating dependencies as side-effects
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
|
scriptversion=2004-05-31.23
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -25,22 +27,45 @@
|
|||||||
|
|
||||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||||
|
as side-effects.
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
depmode Dependency tracking mode.
|
||||||
|
source Source file read by `PROGRAMS ARGS'.
|
||||||
|
object Object file output by `PROGRAMS ARGS'.
|
||||||
|
DEPDIR directory where to store dependencies.
|
||||||
|
depfile Dependency file to output.
|
||||||
|
tmpdepfile Temporary file to use when outputing dependencies.
|
||||||
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "depcomp $scriptversion"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# `libtool' can also be set to `yes' or `no'.
|
|
||||||
|
|
||||||
if test -z "$depfile"; then
|
|
||||||
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
|
|
||||||
dir=`echo "$object" | sed 's,/.*$,/,'`
|
|
||||||
if test "$dir" = "$object"; then
|
|
||||||
dir=
|
|
||||||
fi
|
|
||||||
# FIXME: should be _deps on DOS.
|
|
||||||
depfile="$dir.deps/$base"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||||
|
depfile=${depfile-`echo "$object" |
|
||||||
|
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
@ -172,19 +197,25 @@ sgi)
|
|||||||
|
|
||||||
aix)
|
aix)
|
||||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
# in a .u file. This file always lives in the current directory.
|
# in a .u file. In older versions, this file always lives in the
|
||||||
# Also, the AIX compiler puts `$object:' at the start of each line;
|
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||||
# $object doesn't have directory information.
|
# start of each line; $object doesn't have directory information.
|
||||||
stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
|
# Version 6 uses the directory in both cases.
|
||||||
|
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||||
tmpdepfile="$stripped.u"
|
tmpdepfile="$stripped.u"
|
||||||
outname="$stripped.o"
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
"$@" -Wc,-M
|
"$@" -Wc,-M
|
||||||
else
|
else
|
||||||
"$@" -M
|
"$@" -M
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then :
|
||||||
|
else
|
||||||
|
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
fi
|
||||||
|
|
||||||
if test $stat -eq 0; then :
|
if test $stat -eq 0; then :
|
||||||
else
|
else
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
@ -192,6 +223,7 @@ aix)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then
|
if test -f "$tmpdepfile"; then
|
||||||
|
outname="$stripped.o"
|
||||||
# Each line is of the form `foo.o: dependent.h'.
|
# Each line is of the form `foo.o: dependent.h'.
|
||||||
# Do two passes, one to just change these to
|
# Do two passes, one to just change these to
|
||||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
@ -255,31 +287,40 @@ tru64)
|
|||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
|
# Dependencies are output in .lo.d with libtool 1.4.
|
||||||
|
# With libtool 1.5 they are output both in $dir.libs/$base.o.d
|
||||||
|
# and in $dir.libs/$base.o.d and $dir$base.o.d. We process the
|
||||||
|
# latter, because the former will be cleaned when $dir.libs is
|
||||||
|
# erased.
|
||||||
tmpdepfile1="$dir.libs/$base.lo.d"
|
tmpdepfile1="$dir.libs/$base.lo.d"
|
||||||
tmpdepfile2="$dir.libs/$base.d"
|
tmpdepfile2="$dir$base.o.d"
|
||||||
|
tmpdepfile3="$dir.libs/$base.d"
|
||||||
"$@" -Wc,-MD
|
"$@" -Wc,-MD
|
||||||
else
|
else
|
||||||
tmpdepfile1="$dir$base.o.d"
|
tmpdepfile1="$dir$base.o.d"
|
||||||
tmpdepfile2="$dir$base.d"
|
tmpdepfile2="$dir$base.d"
|
||||||
|
tmpdepfile3="$dir$base.d"
|
||||||
"$@" -MD
|
"$@" -MD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -eq 0; then :
|
||||||
else
|
else
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$tmpdepfile1"; then
|
if test -f "$tmpdepfile1"; then
|
||||||
tmpdepfile="$tmpdepfile1"
|
tmpdepfile="$tmpdepfile1"
|
||||||
else
|
elif test -f "$tmpdepfile2"; then
|
||||||
tmpdepfile="$tmpdepfile2"
|
tmpdepfile="$tmpdepfile2"
|
||||||
|
else
|
||||||
|
tmpdepfile="$tmpdepfile3"
|
||||||
fi
|
fi
|
||||||
if test -f "$tmpdepfile"; then
|
if test -f "$tmpdepfile"; then
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
# That's a space and a tab in the [].
|
# That's a tab and a space in the [].
|
||||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||||
else
|
else
|
||||||
echo "#dummy" > "$depfile"
|
echo "#dummy" > "$depfile"
|
||||||
fi
|
fi
|
||||||
@ -292,7 +333,7 @@ tru64)
|
|||||||
|
|
||||||
dashmstdout)
|
dashmstdout)
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
# always write the proprocessed file to stdout, regardless of -o.
|
# always write the preprocessed file to stdout, regardless of -o.
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
@ -388,7 +429,7 @@ makedepend)
|
|||||||
|
|
||||||
cpp)
|
cpp)
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
# always write the proprocessed file to stdout.
|
# always write the preprocessed file to stdout.
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
# Remove the call to Libtool.
|
||||||
@ -430,7 +471,7 @@ cpp)
|
|||||||
|
|
||||||
msvisualcpp)
|
msvisualcpp)
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
# always write the proprocessed file to stdout, regardless of -o,
|
# always write the preprocessed file to stdout, regardless of -o,
|
||||||
# because we must use -o when running libtool.
|
# because we must use -o when running libtool.
|
||||||
"$@" || exit $?
|
"$@" || exit $?
|
||||||
IFS=" "
|
IFS=" "
|
||||||
@ -470,3 +511,12 @@ none)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
134
install-sh
134
install-sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
scriptversion=2004-02-15.20
|
scriptversion=2004-09-10.20
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
@ -58,9 +58,6 @@ stripprog="${STRIPPROG-strip}"
|
|||||||
rmprog="${RMPROG-rm}"
|
rmprog="${RMPROG-rm}"
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
transformbasename=
|
|
||||||
transform_arg=
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
chmodcmd="$chmodprog 0755"
|
||||||
chowncmd=
|
chowncmd=
|
||||||
chgrpcmd=
|
chgrpcmd=
|
||||||
@ -70,23 +67,27 @@ mvcmd="$mvprog"
|
|||||||
src=
|
src=
|
||||||
dst=
|
dst=
|
||||||
dir_arg=
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
usage="Usage: $0 [OPTION]... SRCFILE DSTFILE
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
or: $0 -d DIRECTORIES...
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default.
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
In the second, create the directory path DIR.
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-b=TRANSFORMBASENAME
|
-c (ignored)
|
||||||
-c copy source (using $cpprog) instead of moving (using $mvprog).
|
|
||||||
-d create directories instead of installing files.
|
-d create directories instead of installing files.
|
||||||
-g GROUP $chgrp installed files to GROUP.
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
-m MODE $chmod installed files to MODE.
|
-m MODE $chmodprog installed files to MODE.
|
||||||
-o USER $chown installed files to USER.
|
-o USER $chownprog installed files to USER.
|
||||||
-s strip installed files (using $stripprog).
|
-s $stripprog installed files.
|
||||||
-t=TRANSFORM
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
--help display this help and exit.
|
--help display this help and exit.
|
||||||
--version display version info and exit.
|
--version display version info and exit.
|
||||||
|
|
||||||
@ -96,12 +97,7 @@ Environment variables override the default commands:
|
|||||||
|
|
||||||
while test -n "$1"; do
|
while test -n "$1"; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
-c) shift
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-c) instcmd=$cpprog
|
|
||||||
shift
|
|
||||||
continue;;
|
continue;;
|
||||||
|
|
||||||
-d) dir_arg=true
|
-d) dir_arg=true
|
||||||
@ -129,14 +125,20 @@ while test -n "$1"; do
|
|||||||
shift
|
shift
|
||||||
continue;;
|
continue;;
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
-t) dstarg=$2
|
||||||
shift
|
shift
|
||||||
continue;;
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
--version) echo "$0 $scriptversion"; exit 0;;
|
--version) echo "$0 $scriptversion"; exit 0;;
|
||||||
|
|
||||||
*) # When -d is used, all remaining arguments are directories to create.
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
test -n "$dir_arg" && break
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
@ -174,13 +176,13 @@ do
|
|||||||
src=
|
src=
|
||||||
|
|
||||||
if test -d "$dst"; then
|
if test -d "$dst"; then
|
||||||
instcmd=:
|
mkdircmd=:
|
||||||
chmodcmd=
|
chmodcmd=
|
||||||
else
|
else
|
||||||
instcmd=$mkdirprog
|
mkdircmd=$mkdirprog
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
# might cause directories to be created, which would be especially bad
|
# might cause directories to be created, which would be especially bad
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
if test ! -f "$src" && test ! -d "$src"; then
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
@ -202,6 +204,10 @@ do
|
|||||||
# If destination is a directory, append the input filename; won't work
|
# If destination is a directory, append the input filename; won't work
|
||||||
# if double slashes aren't ignored.
|
# if double slashes aren't ignored.
|
||||||
if test -d "$dst"; then
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
dst=$dst/`basename "$src"`
|
dst=$dst/`basename "$src"`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -229,77 +235,77 @@ do
|
|||||||
pathcomp=$pathcomp$1
|
pathcomp=$pathcomp$1
|
||||||
shift
|
shift
|
||||||
if test ! -d "$pathcomp"; then
|
if test ! -d "$pathcomp"; then
|
||||||
$mkdirprog "$pathcomp" || lasterr=$?
|
$mkdirprog "$pathcomp"
|
||||||
# mkdir can fail with a `File exist' error in case several
|
# mkdir can fail with a `File exist' error in case several
|
||||||
# install-sh are creating the directory concurrently. This
|
# install-sh are creating the directory concurrently. This
|
||||||
# is OK.
|
# is OK.
|
||||||
test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; }
|
test -d "$pathcomp" || exit
|
||||||
fi
|
fi
|
||||||
pathcomp=$pathcomp/
|
pathcomp=$pathcomp/
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
$doit $instcmd "$dst" \
|
$doit $mkdircmd "$dst" \
|
||||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
else
|
else
|
||||||
# If we're going to rename the final executable, determine the name now.
|
dstfile=`basename "$dst"`
|
||||||
if test -z "$transformarg"; then
|
|
||||||
dstfile=`basename "$dst"`
|
|
||||||
else
|
|
||||||
dstfile=`basename "$dst" $transformbasename \
|
|
||||||
| sed $transformarg`$transformbasename
|
|
||||||
fi
|
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename.
|
|
||||||
test -z "$dstfile" && dstfile=`basename "$dst"`
|
|
||||||
|
|
||||||
# Make a couple of temp file names in the proper directory.
|
# Make a couple of temp file names in the proper directory.
|
||||||
dsttmp=$dstdir/_inst.$$_
|
dsttmp=$dstdir/_inst.$$_
|
||||||
rmtmp=$dstdir/_rm.$$_
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
# Trap to clean up those temp files at exit.
|
# Trap to clean up those temp files at exit.
|
||||||
trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
# Copy the file name to the temp name.
|
||||||
$doit $instcmd "$src" "$dsttmp" &&
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits.
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
#
|
#
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
#
|
#
|
||||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
# Now remove or move aside any old file at destination location. We
|
|
||||||
# try this two ways since rm can't unlink itself on some systems and
|
|
||||||
# the destination file might be busy for other reasons. In this case,
|
|
||||||
# the final cleanup might fail but the new file should still install
|
|
||||||
# successfully.
|
|
||||||
{
|
|
||||||
if test -f "$dstdir/$dstfile"; then
|
|
||||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
|
||||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
|
||||||
|| {
|
|
||||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
|
||||||
(exit 1); exit
|
|
||||||
}
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
} &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
# Now rename the file to the real destination.
|
||||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
fi || { (exit 1); exit; }
|
fi || { (exit 1); exit; }
|
||||||
done
|
done
|
||||||
|
|
||||||
|
259
ylwrap
259
ylwrap
@ -1,6 +1,11 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# ylwrap - wrapper for lex/yacc invocations.
|
# ylwrap - wrapper for lex/yacc invocations.
|
||||||
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
|
||||||
|
scriptversion=2004-09-10.20
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
@ -17,56 +22,81 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
# Usage:
|
# As a special exception to the GNU General Public License, if you
|
||||||
# ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
|
# distribute this file as part of a program that contains a
|
||||||
# * PROGRAM is program to run.
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# * INPUT is the input file
|
# the same distribution terms that you use for the rest of that program.
|
||||||
# * OUTPUT is file PROG generates
|
|
||||||
# * DESIRED is file we actually want
|
# This file is maintained in Automake, please report
|
||||||
# * ARGS are passed to PROG
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
# Any number of OUTPUT,DESIRED pairs may be used.
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
'')
|
||||||
|
echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
--basedir)
|
||||||
|
basedir=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-h|--h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
|
||||||
|
|
||||||
|
Wrapper for lex/yacc invocations, renaming files as desired.
|
||||||
|
|
||||||
|
INPUT is the input file
|
||||||
|
OUTPUT is one file PROG generates
|
||||||
|
DESIRED is the file we actually want instead of OUTPUT
|
||||||
|
PROGRAM is program to run
|
||||||
|
ARGS are passed to PROG
|
||||||
|
|
||||||
|
Any number of OUTPUT,DESIRED pairs may be used.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-v|--v*)
|
||||||
|
echo "ylwrap $scriptversion"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# The input.
|
||||||
|
input="$1"
|
||||||
|
shift
|
||||||
|
case "$input" in
|
||||||
|
[\\/]* | ?:[\\/]*)
|
||||||
|
# Absolute path; do nothing.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Relative path. Make it absolute.
|
||||||
|
input="`pwd`/$input"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
pairlist=
|
||||||
|
while test "$#" -ne 0; do
|
||||||
|
if test "$1" = "--"; then
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
pairlist="$pairlist $1"
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
# The program to run.
|
# The program to run.
|
||||||
prog="$1"
|
prog="$1"
|
||||||
shift
|
shift
|
||||||
# Make any relative path in $prog absolute.
|
# Make any relative path in $prog absolute.
|
||||||
case "$prog" in
|
case "$prog" in
|
||||||
/* | [A-Za-z]:\\*) ;;
|
[\\/]* | ?:[\\/]*) ;;
|
||||||
*/*) prog="`pwd`/$prog" ;;
|
*[\\/]*) prog="`pwd`/$prog" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# The input.
|
|
||||||
input="$1"
|
|
||||||
shift
|
|
||||||
case "$input" in
|
|
||||||
/* | [A-Za-z]:\\*)
|
|
||||||
# Absolute path; do nothing.
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Relative path. Make it absolute. Why? Because otherwise any
|
|
||||||
# debugging info in the generated file will point to the wrong
|
|
||||||
# place. This is really gross.
|
|
||||||
input="`pwd`/$input"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# We don't want to use the absolute path if the input in the current
|
|
||||||
# directory like when making a tar ball.
|
|
||||||
input_base=`echo $input | sed -e 's|.*/||'`
|
|
||||||
if test -f $input_base && cmp $input_base $input >/dev/null 2>&1; then
|
|
||||||
input=$input_base
|
|
||||||
fi
|
|
||||||
|
|
||||||
pairlist=
|
|
||||||
while test "$#" -ne 0; do
|
|
||||||
if test "$1" = "--"; then
|
|
||||||
shift
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
pairlist="$pairlist $1"
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
# FIXME: add hostname here for parallel makes that run commands on
|
# FIXME: add hostname here for parallel makes that run commands on
|
||||||
# other machines. But that might take us over the 14-char limit.
|
# other machines. But that might take us over the 14-char limit.
|
||||||
dirname=ylwrap$$
|
dirname=ylwrap$$
|
||||||
@ -74,50 +104,119 @@ trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
|
|||||||
mkdir $dirname || exit 1
|
mkdir $dirname || exit 1
|
||||||
|
|
||||||
cd $dirname
|
cd $dirname
|
||||||
case "$input" in
|
|
||||||
/* | [A-Za-z]:\\*)
|
|
||||||
# Absolute path; do nothing.
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Make a symbolic link, hard link or hardcopy.
|
|
||||||
ln -s ../"$input" . > /dev/null 2>&1 || ln ../"$input" . > /dev/null 2>&1 || cp ../"$input" .
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
$prog ${1+"$@"} "$input"
|
|
||||||
status=$?
|
|
||||||
|
|
||||||
if test $status -eq 0; then
|
case $# in
|
||||||
set X $pairlist
|
0) $prog "$input" ;;
|
||||||
shift
|
*) $prog "$@" "$input" ;;
|
||||||
first=yes
|
esac
|
||||||
while test "$#" -ne 0; do
|
ret=$?
|
||||||
if test -f "$1"; then
|
|
||||||
# If $2 is an absolute path name, then just use that,
|
if test $ret -eq 0; then
|
||||||
# otherwise prepend `../'.
|
set X $pairlist
|
||||||
case "$2" in
|
shift
|
||||||
/* | [A-Za-z]:\\*) target="$2";;
|
first=yes
|
||||||
*) target="../$2";;
|
# Since DOS filename conventions don't allow two dots,
|
||||||
esac
|
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
|
||||||
mv "$1" "$target" || status=$?
|
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
|
||||||
|
y_tab_nodot="no"
|
||||||
|
if test -f y_tab.c || test -f y_tab.h; then
|
||||||
|
y_tab_nodot="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The directory holding the input.
|
||||||
|
input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
|
||||||
|
# Quote $INPUT_DIR so we can use it in a regexp.
|
||||||
|
# FIXME: really we should care about more than `.' and `\'.
|
||||||
|
input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
|
||||||
|
|
||||||
|
while test "$#" -ne 0; do
|
||||||
|
from="$1"
|
||||||
|
# Handle y_tab.c and y_tab.h output by DOS
|
||||||
|
if test $y_tab_nodot = "yes"; then
|
||||||
|
if test $from = "y.tab.c"; then
|
||||||
|
from="y_tab.c"
|
||||||
else
|
else
|
||||||
# A missing file is only an error for the first file. This
|
if test $from = "y.tab.h"; then
|
||||||
# is a blatant hack to let us support using "yacc -d". If -d
|
from="y_tab.h"
|
||||||
# is not specified, we don't want an error when the header
|
fi
|
||||||
# file is "missing".
|
|
||||||
if test $first = yes; then
|
|
||||||
status=1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
shift
|
fi
|
||||||
shift
|
if test -f "$from"; then
|
||||||
first=no
|
# If $2 is an absolute path name, then just use that,
|
||||||
done
|
# otherwise prepend `../'.
|
||||||
|
case "$2" in
|
||||||
|
[\\/]* | ?:[\\/]*) target="$2";;
|
||||||
|
*) target="../$2";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# We do not want to overwrite a header file if it hasn't
|
||||||
|
# changed. This avoid useless recompilations. However the
|
||||||
|
# parser itself (the first file) should always be updated,
|
||||||
|
# because it is the destination of the .y.c rule in the
|
||||||
|
# Makefile. Divert the output of all other files to a temporary
|
||||||
|
# file so we can compare them to existing versions.
|
||||||
|
if test $first = no; then
|
||||||
|
realtarget="$target"
|
||||||
|
target="tmp-`echo $target | sed s/.*[\\/]//g`"
|
||||||
|
fi
|
||||||
|
# Edit out `#line' or `#' directives.
|
||||||
|
#
|
||||||
|
# We don't want the resulting debug information to point at
|
||||||
|
# an absolute srcdir; it is better for it to just mention the
|
||||||
|
# .y file with no path.
|
||||||
|
#
|
||||||
|
# We want to use the real output file name, not yy.lex.c for
|
||||||
|
# instance.
|
||||||
|
#
|
||||||
|
# We want the include guards to be adjusted too.
|
||||||
|
FROM=`echo "$from" | sed \
|
||||||
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
|
||||||
|
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
|
||||||
|
TARGET=`echo "$2" | sed \
|
||||||
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
|
||||||
|
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
|
||||||
|
|
||||||
|
sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
|
||||||
|
-e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
|
||||||
|
|
||||||
|
# Check whether header files must be updated.
|
||||||
|
if test $first = no; then
|
||||||
|
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
|
||||||
|
echo "$2" is unchanged
|
||||||
|
rm -f "$target"
|
||||||
|
else
|
||||||
|
echo updating "$2"
|
||||||
|
mv -f "$target" "$realtarget"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# A missing file is only an error for the first file. This
|
||||||
|
# is a blatant hack to let us support using "yacc -d". If -d
|
||||||
|
# is not specified, we don't want an error when the header
|
||||||
|
# file is "missing".
|
||||||
|
if test $first = yes; then
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
first=no
|
||||||
|
done
|
||||||
else
|
else
|
||||||
status=$?
|
ret=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the directory.
|
# Remove the directory.
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf $dirname
|
rm -rf $dirname
|
||||||
|
|
||||||
exit $status
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user