diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
| commit | 80b1529ef4d69d9e34a48a419a018d7f4d64054b (patch) | |
| tree | 7c743dc2f7f17654f1535314f6b0e6c5eadfc21b /configure.in | |
| parent | 60399e3945dcfe9a2bb9f00f794d9e8634dd6bd9 (diff) | |
Multiple patches from Bill:
- Double-buffered window fixes.
- Tabs fixes.
- X/WIN32 fixes.
- Fl_Input fixes.
- Support for vsnprintf and friends.
- Support for printf-style arguments in utility functions.
git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 0c31ab9e5..d532615e7 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl# -*- sh -*- dnl# the "configure" script is made from this by running GNU "autoconf" dnl# -dnl# "$Id: configure.in,v 1.10 1998/10/21 21:43:54 mike Exp $" +dnl# "$Id: configure.in,v 1.11 1998/11/05 16:04:37 mike Exp $" dnl# dnl# for the Fast Light Tool Kit (FLTK). dnl# @@ -31,9 +31,9 @@ AC_PROG_RANLIB LIBNAME="libfltk.a" if test "$RANLIB" != ":"; then - LIBCOMMAND="ar crv" + LIBCOMMAND="ar cr" else - LIBCOMMAND="ar crvs" + LIBCOMMAND="ar crs" fi DEBUGFLAG="-O2" @@ -99,6 +99,9 @@ fi AC_HEADER_DIRENT AC_CHECK_FUNCS(scandir) +AC_CHECK_FUNCS(vsnprintf) +AC_CHECK_FUNCS(snprintf) +AC_CHECK_FUNCS(vsprintf) AC_PATH_XTRA echo "Ignoring libraries \"$X_PRE_LIBS\" requested by configure." @@ -129,6 +132,28 @@ fi MAKEDEPEND="\$(CXX) -M" +dnl# add warnings to compiler switches: +dnl# do this last so messing with switches does not break tests +if test -n "$GXX"; then + CFLAGS="-Wall $CFLAGS" + CXXFLAGS="-Wall -Wno-return-type $CXXFLAGS" +else +if test "`(uname) 2>/dev/null`" = IRIX; then + if expr "`(uname -r)`" \>= 6.2; then + CXX="CC -n32" + CC="cc -n32" + LD="ld -n32" + MAKEDEPEND="CC -M" + # -woff 3322 is necessary due to errors in Xlib headers on IRIX + CFLAGS="-fullwarn $CFLAGS" + CXXFLAGS="-fullwarn -woff 1685 -woff 3322 $CXXFLAGS" + MAKEDEPEND="CC -M" + else + CXXFLAGS="+w +pp $CXXFLAGS" + fi +fi +fi + AC_SUBST(LIBNAME) AC_SUBST(LIBCOMMAND) AC_SUBST(MAKEDEPEND) @@ -136,5 +161,5 @@ AC_CONFIG_HEADER(config.h:configh.in) AC_OUTPUT(makeinclude) dnl# -dnl# End of "$Id: configure.in,v 1.10 1998/10/21 21:43:54 mike Exp $". +dnl# End of "$Id: configure.in,v 1.11 1998/11/05 16:04:37 mike Exp $". dnl# |
