Changeset 98 for trunk/configure.ac


Ignore:
Timestamp:
Mar 23, 2007, 11:07:52 PM (18 years ago)
Author:
rainer
Message:

Fix for ticket #58 (cross-compiling does not work).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r97 r98  
    2121
    2222AC_PROG_CC
     23if test "$host" != "$build"; then
     24   AC_CHECK_PROGS(BUILD_CC, gcc cc)
     25else
     26   BUILD_CC=$CC
     27fi
    2328AC_PROG_CPP
    2429AC_PROG_INSTALL
     
    2732AC_PATH_PROG(cmd_hostname,hostname)
    2833AC_SUBST(cmd_hostname)
     34AC_SUBST(BUILD_CC)
    2935
    3036GCC_STACK_PROTECT_CC
     
    199205        sys/select.h sys/socket.h netinet/in.h \
    200206        regex.h glob.h \
    201         linux/ext2_fs.h ext2fs/ext2_fs.h \
     207        linux/ext2_fs.h linux/fs.h ext2fs/ext2_fs.h \
    202208        elf.h linux/elf.h \
    203209        paths.h arpa/nameser.h arpa/nameser_compat.h \
Note: See TracChangeset for help on using the changeset viewer.