diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-27 22:03:29 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-27 22:03:29 +0000 |
| commit | 1a7bbc55c54949ef02f2635137ac5c6b72ad7bbe (patch) | |
| tree | 2bc3a8d83122323928c7f699913327511cc7360b /fltk-config.in | |
| parent | 42df8c128819f34f572d892e8bf93cf4cf610ec6 (diff) | |
Configure script changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
| -rwxr-xr-x | fltk-config.in | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/fltk-config.in b/fltk-config.in index 7ba4b9d1b..784d74e0f 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -1,6 +1,6 @@ #! /bin/sh # -# "$Id: fltk-config.in,v 1.12.2.3 2001/11/18 12:48:38 easysw Exp $" +# "$Id: fltk-config.in,v 1.12.2.4 2001/11/27 22:03:29 easysw Exp $" # # FLTK configuration utility. # @@ -25,9 +25,9 @@ # Please report all bugs and problems to "fltk-bugs@fltk.org". # -MAJOR_VERSION=1 -MINOR_VERSION=1 -PATCH_VERSION=0 +MAJOR_VERSION=@FL_MAJOR_VERSION@ +MINOR_VERSION=@FL_MINOR_VERSION@ +PATCH_VERSION=@FL_PATCH_VERSION@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" APIVERSION="$MAJOR_VERSION.$MINOR_VERSION" @@ -68,18 +68,21 @@ Options: [--version] [--api-version] -options telling what we are doing : +Options telling what we are doing: [--use-gl] use GL [--use-images] use extra image formats (PNG, JPEG) [--use-glut] use glut compatibility layer -options telling what information we request +Options telling what information we request: [--cflags] return flags to compile C using FLTK [--cxxflags] return flags to compile C++ using FLTK [--ldflags] return flags to link against FLTK [--ldstaticflags] return flags to link against static FLTK library even if there are DSOs installed [--libs] return FLTK libraries full path for dependencies + +Option to compile and link an application: + [--compile program.cxx] " exit $1 } @@ -88,6 +91,7 @@ if test $# -eq 0; then usage 1 fi no_plugins=no +compile= # Parse command line options while test $# -gt 0 @@ -141,6 +145,10 @@ do --libs) echo_libs=yes ;; + --compile) + compile=$2 + shift + ;; *) echo_help=yes ;; @@ -182,6 +190,12 @@ LDSTATIC="$LDSTATIC -lm" if test -n "$echo_help"; then usage 1 fi +if test -n "$compile"; then + prog=`basename $compile` + + $CXX $CXXFLAGS -o $prog $compile $LDSTATIC +fi + if test "$echo_prefix" = "yes"; then echo $prefix fi |
