diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-21 14:00:53 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-21 14:00:53 +0000 |
| commit | d3dee719fbaaa0b64d15ad7397e549d2e4ee7d6f (patch) | |
| tree | a6c6c76374f868f8c3f1c67f4aea0b3494441137 /configure.in | |
| parent | 0f60ac9155a721085315389b65c73380e001249f (diff) | |
More changes to top-level makefile and configuration files.
git-svn-id: file:///fltk/svn/fltk/trunk@27 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/configure.in b/configure.in index c6d875db5..087015b01 100644 --- a/configure.in +++ b/configure.in @@ -41,7 +41,11 @@ DEBUGFLAG="" AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],if eval "test x$enable_debug = xyes"; then DEBUGFLAG="-g" fi) -AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]],if eval "test x$enable_shared = xyes"; then +AC_ARG_ENABLE(debug, [ --enable-production turn off debugging [default=yes]],if eval "test x$enable_production != xno"; then + DEBUGFLAG="-O2" +fi) +AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]],[ +if eval "test x$enable_shared = xyes"; then RANLIB=":" case `uname` in SunOS* | UNIX_S*) @@ -52,15 +56,18 @@ AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [defau LIBNAME="libfltk.sl.1" LIBCOMMAND="ld -b -z +h libfltk.sl.1 $DEBUGFLAGS -o" ;; + OSF1* | IRIX*) + LIBNAME="libfltk.so.1" + LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" + ;; *) echo "Warning: shared libraries may not be supported. Trying -shared" echo " option to compiler." - OSF1* | IRIX*) LIBNAME="libfltk.so.1" LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" ;; esac -fi) +fi]) if test -n "$DEBUGFLAG"; then CFLAGS="$DEBUGFLAG $CFLAGS" @@ -124,10 +131,6 @@ if test "$ac_cv_have_overlay" = yes; then AC_DEFINE(HAVE_OVERLAY) fi -dnl Check for other libraries... - -AC_CHECK_LIB(jpeg,jpeg_destroy_decompress) - MAKEDEPEND="\$(CXX) -M" AC_SUBST(LIBNAME) @@ -137,5 +140,5 @@ AC_CONFIG_HEADER(config.h:configh.in) AC_OUTPUT(makeinclude) dnl# -dnl# End of "$Id: configure.in,v 1.2 1998/10/20 16:41:18 mike Exp $". +dnl# End of "$Id: configure.in,v 1.3 1998/10/21 14:00:53 mike Exp $". dnl# |
