From b2e0a1b087e4b6c0053123460d37a221b46e77b6 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 6 Mar 2007 20:00:04 +0000 Subject: STR #1624: Added --optim option for fltk-config which returns all flags for compilation that are not returned by --cflags or --cxxflags. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fltk-config.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fltk-config.in b/fltk-config.in index e7668d569..c073d5020 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -58,6 +58,7 @@ CFLAGS="@CFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@" CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@" LDFLAGS="@LDFLAGS@" LDLIBS="@LIBS@" +OPTIM="@OPTIM@" # Check for local invocation, and update paths accordingly... if test -f "$selfdir/FL/Fl_Window.H"; then @@ -109,6 +110,7 @@ Options telling what we are doing: Options telling what information we request: [--cc] return C compiler used to compile FLTK [--cxx] return C++ compiler used to compile FLTK + [--optim] return compiler optimization used to compile FLTK [--cflags] return flags to compile C using FLTK [--cxxflags] return flags to compile C++ using FLTK [--ldflags] return flags to link against FLTK @@ -159,6 +161,9 @@ do --cxx) echo $CXX ;; + --optim) + echo_optim=yes + ;; --use-gl | --use-glut) use_gl=yes ;; @@ -284,6 +289,10 @@ if test "$echo_cxxflags" = "yes"; then echo $includes $CXXFLAGS fi +if test "$echo_optim" = "yes"; then + echo $OPTIM +fi + if test "$echo_ldflags" = "yes"; then my_libs= libdirs=$libs -- cgit v1.2.3