Add AC_CANONICAL_HOST([]) to configure.ac and after AC_PROG_CC add
manual provision of CC=gcc, AR=ar, and LD=ld if they are not set and the target is *-*-*djgpp. (Requested by Christophe Grenier) (Logical change 1.298)edge.strict_endians
parent
0260c6db9c
commit
2658aaa398
17
configure.ac
17
configure.ac
|
@ -23,6 +23,7 @@
|
|||
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([ntfsprogs],[1.8.6-WIP],[linux-ntfs-dev@lists.sourceforge.net])
|
||||
AC_CANONICAL_HOST([])
|
||||
AC_CANONICAL_TARGET([])
|
||||
AC_CONFIG_SRCDIR([config.h.in])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
@ -37,14 +38,14 @@ AM_ENABLE_STATIC
|
|||
# but doesn't. So this sets host and erases nonopt effectively moving the
|
||||
# standalone command line option into the --host= form.
|
||||
if test "x$nonopt" != "xNONE"; then
|
||||
host="$nonopt"
|
||||
nonopt="NONE"
|
||||
host="$nonopt"
|
||||
nonopt="NONE"
|
||||
fi
|
||||
|
||||
AC_PREFIX_DEFAULT(/usr/local)
|
||||
if test "x$prefix" = "xNONE"; then
|
||||
prefix=$ac_default_prefix
|
||||
ac_configure_args="$ac_configure_args --prefix $prefix"
|
||||
prefix=$ac_default_prefix
|
||||
ac_configure_args="$ac_configure_args --prefix $prefix"
|
||||
fi
|
||||
|
||||
# Command-line options.
|
||||
|
@ -98,6 +99,14 @@ AC_PROG_LN_S
|
|||
AC_PROG_MAKE_SET
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
case "$target" in
|
||||
*-*-*djgpp)
|
||||
if test -z "$CC"; then CC=gcc; fi
|
||||
if test -z "$AR"; then AR=ar; fi
|
||||
if test -z "$LD"; then LD=ld; fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Enable large file support.
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
|
|
Loading…
Reference in New Issue