mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 02:46:34 +08:00
Added --prefix flag as suggested by Ian McArthur.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+35
-13
@@ -35,11 +35,24 @@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
|
|||||||
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
||||||
|
|
||||||
### BEGIN fltk-config
|
### BEGIN fltk-config
|
||||||
symlink=`readlink $0`
|
|
||||||
if test -n "$symlink"; then
|
# First, we need to figure out where we are, in case we are in a non-installed invocation
|
||||||
selfdir=`dirname $symlink`
|
# BUT to do that we need to check if we were called via a symlink or not...
|
||||||
|
# AND some systems (e.g. mingw) have neither symlinks, nor readlink, nor which...
|
||||||
|
HAVE_READLINK=`type -p readlink`
|
||||||
|
if test -z "$HAVE_READLINK"; then
|
||||||
|
# We don't have readlink, so just use local dir as selfdir
|
||||||
|
selfdir=`dirname $0`
|
||||||
else
|
else
|
||||||
selfdif=`dirname $0`
|
# We do have readlink - let us check if we were called via a symlink or not
|
||||||
|
selfdir=`readlink $0`
|
||||||
|
if test -n "$selfdir"; then
|
||||||
|
# Was a symlink, find the real selfdir
|
||||||
|
selfdir=`dirname $selfdir`
|
||||||
|
else
|
||||||
|
# Not a symlink, find the selfdir
|
||||||
|
selfdir=`dirname $0`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
@@ -51,8 +64,8 @@ libdir=@libdir@
|
|||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
|
|
||||||
# compiler names
|
# compiler names
|
||||||
CC="@CC@"
|
|
||||||
CXX="@CXX@"
|
CXX="@CXX@"
|
||||||
|
CC="@CC@"
|
||||||
|
|
||||||
# post-process command (only needed for MacOS)
|
# post-process command (only needed for MacOS)
|
||||||
POSTBUILD="@POSTBUILD@"
|
POSTBUILD="@POSTBUILD@"
|
||||||
@@ -68,6 +81,7 @@ if test -f "$selfdir/FL/Fl_Window.H"; then
|
|||||||
bindir="$selfdir/fluid"
|
bindir="$selfdir/fluid"
|
||||||
includedir="$selfdir"
|
includedir="$selfdir"
|
||||||
libdir="$selfdir/lib"
|
libdir="$selfdir/lib"
|
||||||
|
prefix="$selfdir"
|
||||||
|
|
||||||
if test -f "$libdir/libfltk_jpeg.a"; then
|
if test -f "$libdir/libfltk_jpeg.a"; then
|
||||||
CFLAGS="-I$includedir/jpeg $CFLAGS"
|
CFLAGS="-I$includedir/jpeg $CFLAGS"
|
||||||
@@ -111,14 +125,15 @@ Options telling what we are doing:
|
|||||||
[--use-forms] use forms compatibility layer
|
[--use-forms] use forms compatibility layer
|
||||||
|
|
||||||
Options telling what information we request:
|
Options telling what information we request:
|
||||||
[--cc] return C compiler used to compile FLTK
|
|
||||||
[--cxx] return C++ compiler used to compile FLTK
|
|
||||||
[--cflags] return flags to compile C using FLTK
|
[--cflags] return flags to compile C using FLTK
|
||||||
[--cxxflags] return flags to compile C++ using FLTK
|
[--cxxflags] return flags to compile C++ using FLTK
|
||||||
[--ldflags] return flags to link against FLTK
|
[--ldflags] return flags to link against FLTK
|
||||||
[--ldstaticflags] return flags to link against static FLTK library
|
[--ldstaticflags] return flags to link against static FLTK library
|
||||||
even if there are DSOs installed
|
even if there are DSOs installed
|
||||||
[--libs] return FLTK libraries full path for dependencies
|
[--libs] return FLTK libraries full path for dependencies
|
||||||
|
[--cxx] return name of C++ compiler used to build FLTK
|
||||||
|
[--cc] return name of C compiler used to build FLTK
|
||||||
|
[--prefix] return path to FLTK installation
|
||||||
|
|
||||||
Option to compile and link an application:
|
Option to compile and link an application:
|
||||||
[-g] compile the program with debugging information
|
[-g] compile the program with debugging information
|
||||||
@@ -156,12 +171,6 @@ do
|
|||||||
--api-version)
|
--api-version)
|
||||||
echo $APIVERSION
|
echo $APIVERSION
|
||||||
;;
|
;;
|
||||||
--cc)
|
|
||||||
echo $CC
|
|
||||||
;;
|
|
||||||
--cxx)
|
|
||||||
echo $CXX
|
|
||||||
;;
|
|
||||||
--use-gl | --use-glut)
|
--use-gl | --use-glut)
|
||||||
use_gl=yes
|
use_gl=yes
|
||||||
;;
|
;;
|
||||||
@@ -186,6 +195,15 @@ do
|
|||||||
--libs)
|
--libs)
|
||||||
echo_libs=yes
|
echo_libs=yes
|
||||||
;;
|
;;
|
||||||
|
--cc)
|
||||||
|
echo $CC
|
||||||
|
;;
|
||||||
|
--cxx)
|
||||||
|
echo $CXX
|
||||||
|
;;
|
||||||
|
--prefix)
|
||||||
|
echo_fltk_prefix=yes
|
||||||
|
;;
|
||||||
-g)
|
-g)
|
||||||
debug=-g
|
debug=-g
|
||||||
;;
|
;;
|
||||||
@@ -308,6 +326,10 @@ if test "$echo_libs" = "yes"; then
|
|||||||
echo $LIBS
|
echo $LIBS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$echo_fltk_prefix" = "yes"; then
|
||||||
|
echo $prefix
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id$".
|
# End of "$Id$".
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user