Changeset 4806

Show
Ignore:
Timestamp:
05/09/10 11:07:50 (4 years ago)
Author:
douglask
Message:

Add back MacOS X stuff for building universal library - 64 and 32 bit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/configure.in

    r4779 r4806  
    385385 
    386386case "$host_os" in  
     387  *darwin*) 
     388        dnl Check for 64-bit host gcc - in Snow Leopard+ 
     389        AC_MSG_CHECKING([for 64-bit gcc on OSX]) 
     390        if gcc -v 2>&1 | grep host=x86_64 >& /dev/null ; then 
     391                AC_MSG_RESULT([Building universal library - 64 and 32 bit]) 
     392                CFLAGS="$CFLAGS -arch i386 -arch x86_64" 
     393                LDFLAGS="$LDFLAGS -arch i386 -arch x86_64 -mmacosx-version-min=10.4" 
     394        else 
     395                AC_MSG_RESULT([No - Only building 32-bit library]) 
     396        fi 
     397        ;; 
    387398  mingw|mingw32) 
    388399        AC_MSG_CHECKING(for winsock) 
     
    415426        AC_MSG_RESULT($have_winsock) 
    416427        LIBS="$LIBS -liphlpapi" 
     428        ;; 
    417429esac 
    418430