configure.in
changeset 1550 31c2b8e4885e
parent 1548 a77c022733fe
child 1555 780fd5b61df1
--- a/configure.in	Sat Mar 18 22:42:09 2006 +0000
+++ b/configure.in	Sun Mar 19 05:27:22 2006 +0000
@@ -39,9 +39,9 @@
 AC_SUBST(LT_REVISION)
 AC_SUBST(LT_AGE)
 
-dnl Detect the canonical host and target build environment
+dnl Detect the canonical build and host environments
 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_HOST
 AC_C_BIGENDIAN
 if test x$ac_cv_c_bigendian = xyes; then
     AC_DEFINE(SDL_BYTEORDER, 4321)
@@ -54,7 +54,7 @@
 if test x$srcdir != x.; then
     INCLUDE="-Iinclude $INCLUDE"
 fi
-case "$target" in
+case "$host" in
     *-*-cygwin*)
         # We build SDL on cygwin without the UNIX emulation layer
         BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
@@ -285,7 +285,7 @@
             have_audio=yes
 
             # OpenBSD needs linking with ossaudio emulation library
-            case "$target" in
+            case "$host" in
                 *-*-openbsd*|*-*-netbsd*)
                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
             esac
@@ -569,7 +569,7 @@
 CheckNASM()
 {
     dnl Make sure we are running on an x86 platform
-    case $target in
+    case $host in
         i?86*)
             ;;
         *)
@@ -600,7 +600,7 @@
             AC_SUBST(NASM)
             AC_SUBST(NASMFLAGS)
 
-            case "$target" in
+            case "$host" in
                 # this line is needed for QNX, because it's not defined the __ELF__
                 *-*-qnx*)
                      EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
@@ -753,7 +753,7 @@
 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes]]),
                           , enable_x11_shared=yes)
 
-            case "$target" in
+            case "$host" in
                 *-*-darwin*)
                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
@@ -1353,7 +1353,7 @@
 {
     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
         AC_DEFINE(SDL_VIDEO_OPENGL)
-        case "$target" in
+        case "$host" in
             *-*-darwin*)
                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework OpenGL"
                 # The following is probably not available in Darwin:
@@ -1485,7 +1485,7 @@
     AC_ARG_ENABLE(pthread-sem,
 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [default=yes]]),
                   , enable_pthread_sem=yes)
-    case "$target" in
+    case "$host" in
         *-*-linux*)
             pthread_cflags="-D_REENTRANT"
             pthread_lib="-lpthread"
@@ -1894,8 +1894,8 @@
                   , enable_rpath=yes)
 }
 
-dnl Set up the configuration based on the target platform!
-case "$target" in
+dnl Set up the configuration based on the host platform!
+case "$host" in
     arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
         ARCH=linux
         CheckDummyVideo
@@ -1908,7 +1908,7 @@
         fi
         ;;
     *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
-        case "$target" in
+        case "$host" in
             *-*-linux*)         ARCH=linux ;;
             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
@@ -2072,7 +2072,7 @@
         ;;
     *-*-cygwin* | *-*-mingw32*)
         ARCH=win32
-        if test "$build" != "$target"; then # cross-compiling
+        if test "$build" != "$host"; then # cross-compiling
             # Default cross-compile location
             ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
         else
@@ -2335,7 +2335,7 @@
         ;;
     *)
         AC_MSG_ERROR([
-*** Unsupported target:  Please add to configure.in
+*** Unsupported host:  Please add to configure.in
         ])
         ;;
 esac