summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2006-06-19 18:29:31 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2006-06-19 18:29:31 +0000
commiteea2b38b34a326542c24d1e3485cdb856d36b57c (patch)
tree44053d3de3f997dca7899eae164e70aaead58b2f /configure.in
parent6190aa57287fad55e294e87f1e248dd3e335dd06 (diff)
Add --with-archflags option to configure script, and use it in the right
places. Update changes file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 54960b0bc..8ec6f04ed 100644
--- a/configure.in
+++ b/configure.in
@@ -56,11 +56,13 @@ if test "x$uname" = x; then
fi
dnl Don't automatically add "-g" to compiler options...
+ARCHFLAGS="${ARCHFLAGS:=}"
CFLAGS="${CFLAGS:=}"
CPPFLAGS="${CPPFLAGS:=}"
CXXFLAGS="${CXXFLAGS:=}"
OPTIM="${OPTIM:=}"
+AC_SUBST(ARCHFLAGS)
AC_SUBST(OPTIM)
dnl OS-specific pre-tests...
@@ -69,10 +71,7 @@ case $uname in
# Handle Cygwin option *first*, before all other tests.
AC_ARG_ENABLE(cygwin, [ --enable-cygwin use the CygWin libraries [default=no]])
if test x$enable_cygwin != xyes; then
- CFLAGS="$CFLAGS -mno-cygwin"
- CPPFLAGS="$CPPFLAGS -mno-cygwin"
- CXXFLAGS="$CXXFLAGS -mno-cygwin"
- LDFLAGS="$LDFLAGS -mno-cygwin"
+ ARCHFLAGS="$ARCHFLAGS -mno-cygwin"
fi
;;
esac
@@ -237,6 +236,10 @@ AC_ARG_ENABLE(threads, [ --enable-threads enable multi-threading support
AC_ARG_WITH(optim, [ --with-optim="flags" use custom optimization flags])
+AC_ARG_WITH(archflags, [ --with-archflags="flags"
+ use custom architecture flags],
+ ARCHFLAGS="$withval")
+
case $uname in
Darwin*)
AC_ARG_ENABLE(quartz, [ --enable-quartz use Quartz instead of Quickdraw (default=no)])