| OLD | NEW |
| 1 # Autoconf M4 include file defining utility macros for complex Canadian | 1 # Autoconf M4 include file defining utility macros for complex Canadian |
| 2 # cross builds. | 2 # cross builds. |
| 3 | 3 |
| 4 dnl #### | 4 dnl #### |
| 5 dnl # _GCC_TOPLEV_NONCANONICAL_BUILD | 5 dnl # _GCC_TOPLEV_NONCANONICAL_BUILD |
| 6 dnl # $build_alias or canonical $build if blank. | 6 dnl # $build_alias or canonical $build if blank. |
| 7 dnl # Used when we would use $build_alias, but empty is not OK. | 7 dnl # Used when we would use $build_alias, but empty is not OK. |
| 8 AC_DEFUN([_GCC_TOPLEV_NONCANONICAL_BUILD], | 8 AC_DEFUN([_GCC_TOPLEV_NONCANONICAL_BUILD], |
| 9 [AC_REQUIRE([AC_CANONICAL_BUILD]) []dnl | 9 [AC_REQUIRE([AC_CANONICAL_BUILD]) []dnl |
| 10 case ${build_alias} in | 10 case ${build_alias} in |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 # bit harder from here). | 349 # bit harder from here). |
| 350 # Eventually autoconf will default to checking headers with the compiler | 350 # Eventually autoconf will default to checking headers with the compiler |
| 351 # instead, and we'll have to do this differently. | 351 # instead, and we'll have to do this differently. |
| 352 | 352 |
| 353 AC_DEFUN([AC_PROG_CPP_WERROR], | 353 AC_DEFUN([AC_PROG_CPP_WERROR], |
| 354 [AC_REQUIRE([AC_PROG_CPP])dnl | 354 [AC_REQUIRE([AC_PROG_CPP])dnl |
| 355 m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD])) | 355 m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD])) |
| 356 ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR | 356 ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR |
| 357 | 357 |
| 358 # Test for GNAT. | 358 # Test for GNAT. |
| 359 # We require the gnatbind program, and a compiler driver that | 359 # We require the gnatbind & gnatmake programs, as well as a compiler driver |
| 360 # understands Ada. We use the user's CC setting, already found, | 360 # that understands Ada. We use the user's CC setting, already found, and |
| 361 # and possibly add $1 to the command-line parameters. | 361 # possibly add $1 to the command-line parameters. |
| 362 # | 362 # |
| 363 # Sets the shell variable have_gnat to yes or no as appropriate, and | 363 # Sets the shell variable have_gnat to yes or no as appropriate, and |
| 364 # substitutes GNATBIND and GNATMAKE. | 364 # substitutes GNATBIND and GNATMAKE. |
| 365 AC_DEFUN([ACX_PROG_GNAT], | 365 AC_DEFUN([ACX_PROG_GNAT], |
| 366 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) | 366 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) |
| 367 AC_REQUIRE([AC_PROG_CC]) | 367 AC_REQUIRE([AC_PROG_CC]) |
| 368 AC_CHECK_TOOL(GNATBIND, gnatbind, no) | 368 AC_CHECK_TOOL(GNATBIND, gnatbind, no) |
| 369 AC_CHECK_TOOL(GNATMAKE, gnatmake, no) | 369 AC_CHECK_TOOL(GNATMAKE, gnatmake, no) |
| 370 AC_CACHE_CHECK([whether compiler driver understands Ada], | 370 AC_CACHE_CHECK([whether compiler driver understands Ada], |
| 371 acx_cv_cc_gcc_supports_ada, | 371 acx_cv_cc_gcc_supports_ada, |
| 372 [cat >conftest.adb <<EOF | 372 [cat >conftest.adb <<EOF |
| 373 procedure conftest is begin null; end conftest; | 373 procedure conftest is begin null; end conftest; |
| 374 EOF | 374 EOF |
| 375 acx_cv_cc_gcc_supports_ada=no | 375 acx_cv_cc_gcc_supports_ada=no |
| 376 # There is a bug in old released versions of GCC which causes the | 376 # There is a bug in old released versions of GCC which causes the |
| 377 # driver to exit successfully when the appropriate language module | 377 # driver to exit successfully when the appropriate language module |
| 378 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | 378 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. |
| 379 # Therefore we must check for the error message as well as an | 379 # Therefore we must check for the error message as well as an |
| 380 # unsuccessful exit. | 380 # unsuccessful exit. |
| 381 # Other compilers, like HP Tru64 UNIX cc, exit successfully when | 381 # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
| 382 # given a .adb file, but produce no object file. So we must check | 382 # given a .adb file, but produce no object file. So we must check |
| 383 # if an object file was really produced to guard against this. | 383 # if an object file was really produced to guard against this. |
| 384 errors=`(${CC} $1[]m4_ifval([$1], [ ])-c conftest.adb) 2>&1 || echo failure` | 384 errors=`(${CC} $1[]m4_ifval([$1], [ ])-c conftest.adb) 2>&1 || echo failure` |
| 385 if test x"$errors" = x && test -f conftest.$ac_objext; then | 385 if test x"$errors" = x && test -f conftest.$ac_objext; then |
| 386 acx_cv_cc_gcc_supports_ada=yes | 386 acx_cv_cc_gcc_supports_ada=yes |
| 387 fi | 387 fi |
| 388 rm -f conftest.*]) | 388 rm -f conftest.*]) |
| 389 | 389 |
| 390 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supp
orts_ada != xno; then | 390 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_
supports_ada != xno; then |
| 391 have_gnat=yes | 391 have_gnat=yes |
| 392 else | 392 else |
| 393 have_gnat=no | 393 have_gnat=no |
| 394 fi | 394 fi |
| 395 ]) | 395 ]) |
| 396 | 396 |
| 397 dnl 'make compare' can be significantly faster, if cmp itself can | 397 dnl 'make compare' can be significantly faster, if cmp itself can |
| 398 dnl skip bytes instead of using tail. The test being performed is | 398 dnl skip bytes instead of using tail. The test being performed is |
| 399 dnl "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2" | 399 dnl "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2" |
| 400 dnl but we need to sink errors and handle broken shells. We also test | 400 dnl but we need to sink errors and handle broken shells. We also test |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 rm cygwin-cat-check | 612 rm cygwin-cat-check |
| 613 AC_MSG_RESULT(no) | 613 AC_MSG_RESULT(no) |
| 614 AC_MSG_ERROR([The cat command does not ignore carriage return characters. | 614 AC_MSG_ERROR([The cat command does not ignore carriage return characters. |
| 615 Please either mount the build directory in binary mode or run the following | 615 Please either mount the build directory in binary mode or run the following |
| 616 commands before running any configure script: | 616 commands before running any configure script: |
| 617 set -o igncr | 617 set -o igncr |
| 618 export SHELLOPTS | 618 export SHELLOPTS |
| 619 ]) | 619 ]) |
| 620 fi | 620 fi |
| 621 ]) | 621 ]) |
| OLD | NEW |