[Freeswitch-svn] [commit] r5536 - freeswitch/trunk

Freeswitch SVN mikej at freeswitch.org
Mon Jul 16 11:08:39 EDT 2007


Author: mikej
Date: Mon Jul 16 11:08:38 2007
New Revision: 5536

Modified:
   freeswitch/trunk/configure.in

Log:
add some helpers to build 64 bit on solaris amd 64

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Mon Jul 16 11:08:38 2007
@@ -117,6 +117,10 @@
     ;;
 esac
 
+#  Enable debugging
+AC_ARG_ENABLE(64,
+[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64="$enable_64"],[enable_64="yes"])
+
 # tweak compiler specific flags
 if test "x${ax_cv_c_compiler_vendor}"  =  "xsun" ; then
     APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
@@ -126,6 +130,10 @@
     APR_ADDTO(SWITCH_AM_CXXFLAGS, "-features=extensions")
 
     APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
+    if test "${enable_64}" = "yes"; then
+        APR_ADDTO(SWITCH_AM_CFLAGS, -m64)
+        APR_ADDTO(SWITCH_AM_LDFLAGS, -L/opt/csw/lib/amd64)
+    fi
 elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
     APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
     APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)



More information about the Freeswitch-svn mailing list