From 9ac6934696fa366ec3f475549750efdd3c3a7154 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 24 Jun 2005 20:17:53 +0000 Subject: [PATCH] "test -e" is not portable, must use "test -f". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fltk-config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fltk-config.in b/fltk-config.in index 816089529..f87d5e93d 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -59,22 +59,22 @@ LDFLAGS="@LDFLAGS@" LDLIBS="@LIBS@" # Check for local invocation, and update paths accordingly... -if test -e "$selfdir/FL/Fl_Window.H"; then +if test -f "$selfdir/FL/Fl_Window.H"; then bindir="$selfdir/fluid" includedir="$selfdir" libdir="$selfdir/lib" - if test -e "$libdir/libfltk_jpeg.a"; then + if test -f "$libdir/libfltk_jpeg.a"; then CFLAGS="-I$includedir/jpeg $CFLAGS" CXXFLAGS="-I$includedir/jpeg $CXXFLAGS" fi - if test -e "$libdir/libfltk_z.a"; then + if test -f "$libdir/libfltk_z.a"; then CFLAGS="-I$includedir/zlib $CFLAGS" CXXFLAGS="-I$includedir/zlib $CXXFLAGS" fi - if test -e "$libdir/libfltk_png.a"; then + if test -f "$libdir/libfltk_png.a"; then CFLAGS="-I$includedir/png $CFLAGS" CXXFLAGS="-I$includedir/png $CXXFLAGS" fi