Ignore:
Timestamp:
2008-05-18T22:21:56+12:00 (16 years ago)
Author:
davidb
Message:

Addition of COMPAT32BITFLAGS to help compilation on a 64-bit machine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indexers/trunk/packages/unac/configure.ac

    r13670 r15562  
    2121AC_PREREQ(2.13)
    2222
     23
     24dnl get $target_cpu, $target_vendor, and $target_os
     25dnl (as well as host_*)
     26AC_CANONICAL_SYSTEM
     27
    2328AC_CONFIG_HEADER(config.h)
    2429
    2530AC_PROG_MAKE_SET
     31
     32AC_MSG_CHECKING(to see if architecture is 64-bit)
     33arch_64bit=no
     34case "$host_cpu" in
     35x86_64) arch_64bit=yes ;;
     36esac
     37
     38if test "$arch_64bit" = yes; then
     39  AC_MSG_RESULT(yes)
     40  if test -z "$COMPAT32BITFLAGS" ; then
     41    COMPAT32BITFLAGS="-m32"
     42  fi
     43else
     44  AC_MSG_RESULT(no)
     45  if test -z "$COMPAT32BITFLAGS" ; then
     46    COMPAT32BITFLAGS=
     47  fi
     48fi
     49AC_SUBST(COMPAT32BITFLAGS)
    2650
    2751dnl
Note: See TracChangeset for help on using the changeset viewer.