mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 04:31:25 +08:00
fltk-config: fix "Check bundled image libraries in source tree"
Avoid adding a non-existent folder to include directories (-I) in `fltk-config --cxxflags` etc.
This commit is contained in:
+4
-3
@@ -71,17 +71,18 @@ CAIROLIBS="@CAIROLIBS@"
|
||||
GLLIBS="@GLLIBS@"
|
||||
|
||||
# Check bundled image libraries in source tree
|
||||
if test -f "$libdir/libfltk_jpeg.a"; then
|
||||
echo "--- includedir='$includedir' ---"
|
||||
if test -f "$libdir/libfltk_jpeg.a" -a -d $includedir/jpeg; then
|
||||
CFLAGS="-I$includedir/jpeg $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
|
||||
fi
|
||||
|
||||
if test -f "$libdir/libfltk_z.a"; then
|
||||
if test -f "$libdir/libfltk_z.a" -a -d $includedir/zlib; then
|
||||
CFLAGS="-I$includedir/zlib $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
|
||||
fi
|
||||
|
||||
if test -f "$libdir/libfltk_png.a"; then
|
||||
if test -f "$libdir/libfltk_png.a" -a -d $includedir/png; then
|
||||
CFLAGS="-I$includedir/png $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/png $CXXFLAGS"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user