summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2000-04-25 22:17:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2000-04-25 22:17:00 +0000
commit4b561b6e908a89d91f466bbc8a76c0f1084ee0df (patch)
tree782dc1b0f175b761f2a75c39d0621cf7e54d91cf /configure.in
parent4edd134933f7d9c6235667eede83bc54cf8e1070 (diff)
Updated copyright notices for all of the 1.0.x files.
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions) Added install rule to documentation directory. Dumped old packages directory; added traditional RPM spec file and EPM list file (that replace all of the packages stuff) The FLUID man page is now "fluid.1" for the formatted page and "fluid.man" for the non-formatted page, since only IRIX uses pack'd formatted man pages. Whew! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in25
1 files changed, 20 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 4540ecd8e..ba099c727 100644
--- a/configure.in
+++ b/configure.in
@@ -1,11 +1,11 @@
dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf"
dnl#
-dnl# "$Id: configure.in,v 1.33.2.6 1999/10/19 04:50:32 bill Exp $"
+dnl# "$Id: configure.in,v 1.33.2.7 2000/04/25 22:15:41 mike Exp $"
dnl#
dnl# Configuration script for the Fast Light Tool Kit (FLTK).
dnl#
-dnl# Copyright 1998-1999 by Bill Spitzak and others.
+dnl# Copyright 1998-2000 by Bill Spitzak and others.
dnl#
dnl# This library is free software; you can redistribute it and/or
dnl# modify it under the terms of the GNU Library General Public
@@ -41,8 +41,7 @@ DSONAME=""
dnl# Get the operating system and version number...
uname=`uname`
-uversion=`uname -r | sed -e 's/-.*$//g;s/\.//g'`
-dnl# uversion=`uname -r | sed -e '1,$s/[[-.A-Za-z]]//g'`
+uversion=`uname -r | sed -e 's/-.*$//g;s/[\.]//g'`
if test "$uname" = "IRIX64"; then
uname="IRIX"
fi
@@ -78,6 +77,10 @@ if eval "test x$enable_shared = xyes"; then
DSONAME="libfltk.so.1"
DSOCOMMAND="\$(CXX) -soname libfltk.so.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
;;
+ FreeBSD* | NetBSD* | OpenBSD*)
+ DSONAME="libfltk.so.1"
+ DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ -shared \$(OPTIM) -o"
+ ;;
*)
echo "Warning: shared libraries may not be supported. Trying -shared"
echo " option with compiler."
@@ -181,6 +184,18 @@ if test -n "$GXX"; then
CFLAGS="-fPIC $CFLAGS"
CXXFLAGS="-fPIC $CXXFLAGS"
fi
+ CFLAGS="-fno-rtti -fomit-stack-frame $CFLAGS"
+ CXXFLAGS="-fno-rtti -fomit-stack-frame $CXXFLAGS"
+
+ # See if GCC supports -fno-exceptions...
+
+ OLDCFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -fno-exceptions"
+ AC_TRY_COMPILE(#include <stdio.h>,void func(void) { puts("Hello, World!"); },
+ CXXFLAGS="$CXXFLAGS -fno-exceptions"
+ echo Congratulations, your GCC supports exceptions; disabling them...,
+ CFLAGS="$OLDCFLAGS"
+ echo I see that your GCC does not support exceptions.)
else
case `(uname) 2>/dev/null` in
IRIX*)
@@ -248,5 +263,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl#
-dnl# End of "$Id: configure.in,v 1.33.2.6 1999/10/19 04:50:32 bill Exp $".
+dnl# End of "$Id: configure.in,v 1.33.2.7 2000/04/25 22:15:41 mike Exp $".
dnl#