Do checks for platform-specific compiler flags in the libethereal and
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 Oct 2000 07:30:35 +0000 (07:30 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 Oct 2000 07:30:35 +0000 (07:30 +0000)
wiretap configure scripts as well as in the main configure script.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2501 f5534014-38df-0310-8fa8-9805f1628bb7

epan/configure.in
wiretap/configure.in

index 1b0c9b65f7a2386bc5fc9aceabe37d32e7658966..78c7f17c58b96ad94e07e5c5f509a20c59c197bc 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.1 2000/10/16 23:17:39 guy Exp $
+# $Id: configure.in,v 1.2 2000/10/17 07:30:34 guy Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -35,6 +35,33 @@ else
   AC_MSG_RESULT(no)
 fi
 
+#
+# Add any platform-specific compiler flags needed.
+#
+AC_MSG_CHECKING(for platform-specific compiler flags)
+if test "x$GCC" = x
+then
+       #
+       # Not GCC - assume it's the vendor's compiler.
+       #
+       case "$host_os" in
+       hpux*)
+               #
+               # HP's ANSI C compiler; flags suggested by Jost Martin.
+               # "-Ae" for ANSI C plus extensions such as "long long".
+               # "+O2", for optimization.  XXX - works with "-g"?
+               #
+               CFLAGS="-Ae +O2 $CFLAGS"
+               AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
+               ;;
+       *)
+               AC_MSG_RESULT(none needed)
+               ;;
+       esac
+else
+       AC_MSG_RESULT(none needed)
+fi
+
 # Create DATAFILE_DIR #define for config.h
 DATAFILE_DIR=$sysconfdir
 DATAFILE_DIR=`(
index 1595831551a881e2b3973713ab6705242b05e009..426879a4320541f3fea3e693e19813e6fdd7f732 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.24 2000/10/17 00:09:43 guy Exp $
+# $Id: configure.in,v 1.25 2000/10/17 07:30:35 guy Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -35,6 +35,33 @@ else
   AC_MSG_RESULT(no)
 fi
 
+#
+# Add any platform-specific compiler flags needed.
+#
+AC_MSG_CHECKING(for platform-specific compiler flags)
+if test "x$GCC" = x
+then
+       #
+       # Not GCC - assume it's the vendor's compiler.
+       #
+       case "$host_os" in
+       hpux*)
+               #
+               # HP's ANSI C compiler; flags suggested by Jost Martin.
+               # "-Ae" for ANSI C plus extensions such as "long long".
+               # "+O2", for optimization.  XXX - works with "-g"?
+               #
+               CFLAGS="-Ae +O2 $CFLAGS"
+               AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
+               ;;
+       *)
+               AC_MSG_RESULT(none needed)
+               ;;
+       esac
+else
+       AC_MSG_RESULT(none needed)
+fi
+
 # Checks for glib first, or gtk+ if not present
 AM_PATH_GLIB(1.1.0, CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS")