OSDN Git Service

Re-autconf configure script after Mike Frysinger's recent AC_ERROR
[uclinux-h8/elf2flt.git] / configure
index 8b816be..d672662 100755 (executable)
--- a/configure
+++ b/configure
@@ -2668,29 +2668,51 @@ fi
 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
 
 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
-       echo
-       echo "You need to specify the location of the libfd.a and libiberty.a"
-       echo "host libraries from the binutils package."
-       echo
-       echo "Run configure again specifying these options:"
-       echo
-       echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
-       echo
-       exit 1
+       { { echo "$as_me:$LINENO: error:
+
+You need to specify the location of the libfd.a and libiberty.a
+host libraries from the binutils package.
+
+Run configure again specifying these options:
+
+  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
+" >&5
+echo "$as_me: error:
+
+You need to specify the location of the libfd.a and libiberty.a
+host libraries from the binutils package.
+
+Run configure again specifying these options:
+
+  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
+" >&2;}
+   { (exit 1); exit 1; }; }
 fi
 
 if test "$ac_bfd_include_dir" = "NONE" ; then
-       echo
-       echo "You need to specify the location of the bfd.h header from a"
-       echo "configured/compiled version of the binutils package for your target."
-       echo "Without this your elf2flt may crash as it will try to use the"
-       echo "systems bfd.h which may be from a different binutils package."
-       echo
-       echo "Run configure again specifying these options:"
-       echo
-       echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
-       echo
-       exit 1
+       { { echo "$as_me:$LINENO: error:
+
+You need to specify the location of the bfd.h header from a
+configured/compiled version of the binutils package for your target.
+Without this your elf2flt may crash as it will try to use the
+systems bfd.h which may be from a different binutils package.
+
+Run configure again specifying these options:
+
+  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
+" >&5
+echo "$as_me: error:
+
+You need to specify the location of the bfd.h header from a
+configured/compiled version of the binutils package for your target.
+Without this your elf2flt may crash as it will try to use the
+systems bfd.h which may be from a different binutils package.
+
+Run configure again specifying these options:
+
+  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
+" >&2;}
+   { (exit 1); exit 1; }; }
 fi
 
 ac_ext=c