Fix for fltk when make install used

This commit is contained in:
Greg Ercolano 2022-01-23 03:10:13 -08:00
parent c0f5080cb0
commit b275ff0715
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ OPTIM="@OPTIM@"
CAIROFLAGS="@CAIROFLAGS@"
# Config
if grep -q '^#define FLTK_HAVE_CAIRO 1' $selfdir/FL/fl_config.h; then
if ( ( test -f "$includedir/FL/fl_config.h" && \
grep -q '^#define FLTK_HAVE_CAIRO 1' "$includedir/FL/fl_config.h" ) \
|| \
( test -f "$selfdir/FL/fl_config.h" && \
grep -q '^#define FLTK_HAVE_CAIRO 1' "$selfdir/FL/fl_config.h" ) ) ; then
FLTK_HAVE_CAIRO=1
else
FLTK_HAVE_CAIRO=0