diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-08-10 13:54:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-08-10 13:54:17 +0000 |
| commit | b04558b30d083ec86cd53f5c535a013239bf302b (patch) | |
| tree | 214e0258cc33f058844f54f2aeea22abe6f42746 /fltk-config.in | |
| parent | d7ae9e9fbc67273a6a010a9f760871d2413cad56 (diff) | |
Revert --prefix. Until we have a valid use case, we WILL NOT add
--prefix, since IMHO it makes no sense to offer it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
| -rwxr-xr-x | fltk-config.in | 48 |
1 files changed, 13 insertions, 35 deletions
diff --git a/fltk-config.in b/fltk-config.in index 01112df3c..c714943ef 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -35,24 +35,11 @@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" APIVERSION="$MAJOR_VERSION.$MINOR_VERSION" ### BEGIN fltk-config - -# First, we need to figure out where we are, in case we are in a non-installed invocation -# 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` +symlink=`readlink $0` +if test -n "$symlink"; then + selfdir=`dirname $symlink` else -# 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 + selfdif=`dirname $0` fi prefix=@prefix@ @@ -64,8 +51,8 @@ libdir=@libdir@ srcdir=@srcdir@ # compiler names -CXX="@CXX@" CC="@CC@" +CXX="@CXX@" # post-process command (only needed for MacOS) POSTBUILD="@POSTBUILD@" @@ -81,7 +68,6 @@ if test -f "$selfdir/FL/Fl_Window.H"; then bindir="$selfdir/fluid" includedir="$selfdir" libdir="$selfdir/lib" - prefix="$selfdir" if test -f "$libdir/libfltk_jpeg.a"; then CFLAGS="-I$includedir/jpeg $CFLAGS" @@ -125,15 +111,14 @@ Options telling what we are doing: [--use-forms] use forms compatibility layer 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 [--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 - [--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: [-g] compile the program with debugging information @@ -171,6 +156,12 @@ do --api-version) echo $APIVERSION ;; + --cc) + echo $CC + ;; + --cxx) + echo $CXX + ;; --use-gl | --use-glut) use_gl=yes ;; @@ -195,15 +186,6 @@ do --libs) echo_libs=yes ;; - --cc) - echo $CC - ;; - --cxx) - echo $CXX - ;; - --prefix) - echo_fltk_prefix=yes - ;; -g) debug=-g ;; @@ -326,10 +308,6 @@ if test "$echo_libs" = "yes"; then echo $LIBS fi -if test "$echo_fltk_prefix" = "yes"; then - echo $prefix -fi - # # End of "$Id$". # |
