Annotation of Gnu-Mach/aclocal.m4, revision 1.1.1.2

1.1       root        1: dnl These modifications are to allow for an empty cross compiler tree.
                      2: dnl In the situation that cross-linking is impossible, the variable
                      3: dnl `cross_linkable' will be substituted with "yes".
                      4: 
                      5: dnl
                      6: AC_DEFUN(AC_PROG_CC_LOCAL,
                      7: [AC_BEFORE([$0], [AC_PROG_CPP])dnl
                      8: AC_CHECK_PROG(CC, gcc, gcc)
                      9: if test -z "$CC"; then
                     10:   AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
                     11:   test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
                     12: fi
                     13: 
                     14: AC_PROG_CC_WORKS_LOCAL
                     15: AC_PROG_CC_GNU
                     16: 
                     17: if test $ac_cv_prog_gcc = yes; then
                     18:   GCC=yes
                     19: dnl Check whether -g works, even if CFLAGS is set, in case the package
                     20: dnl plays around with CFLAGS (such as to build both debugging and
                     21: dnl normal versions of a library), tasteless as that idea is.
                     22:   ac_test_CFLAGS="${CFLAGS+set}"
                     23:   ac_save_CFLAGS="$CFLAGS"
                     24:   CFLAGS=
                     25: dnl  AC_PROG_CC_G
                     26:   if test "$ac_test_CFLAGS" = set; then
                     27:     CFLAGS="$ac_save_CFLAGS"
                     28: dnl # This doesn't work on Linux (libc-4.5.26): Because of differences between
                     29: dnl # the shared and the static libraries there are less symbols available
                     30: dnl # without -g than with -g. It is therefore better to run the configuration
                     31: dnl # without -g and to add -g afterwards than the contrary. So don't add
                     32: dnl # -g to the CFLAGS now.
                     33: dnl  elif test $ac_cv_prog_cc_g = yes; then
                     34: dnl    CFLAGS="-g -O"
                     35:   else
                     36: dnl    CFLAGS="-O"
                     37:     # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
                     38:     # that results from __OPTIMIZE__ being defined for CC but not CPP.
                     39: changequote(, )dnl
                     40:     if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
                     41: changequote([, ])dnl
                     42:       : # already optimizing
                     43:     else
                     44:       CC="$CC -O"
                     45:       ac_cv_prog_CC="$CC"
                     46:     fi
                     47:   fi
                     48: else
                     49:   GCC=
                     50: dnl # See above.
                     51: dnl   test "${CFLAGS+set}" = set || CFLAGS="-g"
                     52: fi
                     53: ])
                     54: 
                     55: AC_DEFUN(AC_PROG_CC_WORKS_LOCAL,
                     56: [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
                     57: AC_LANG_SAVE
                     58: AC_LANG_C
                     59: AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
                     60: AC_LANG_RESTORE
                     61: AC_MSG_RESULT($ac_cv_prog_cc_works)
                     62: if test $ac_cv_prog_cc_works = no; then
                     63:  cross_linkable=no
                     64:  ac_cv_prog_cc_cross=yes
                     65:  # AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
                     66: else
                     67:  cross_linkable=yes
                     68: fi
                     69: AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
                     70: AC_MSG_RESULT($ac_cv_prog_cc_cross)
                     71: AC_SUBST(cross_linkable)
                     72: cross_compiling=$ac_cv_prog_cc_cross
                     73: ])
1.1.1.2 ! root       74: 
        !            75: AC_DEFUN(hurd_SYSTYPE,
        !            76: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !            77: case "$host_cpu" in
        !            78: i[[3456]]86)   systype=i386 ;;
        !            79: *)             systype="$host_cpu" ;;
        !            80: esac
        !            81: AC_SUBST(systype)])

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.