|
|
commit b275ff07158e80d1744ddb2f6c51094a87cf079a
Author: Greg Ercolano <erco@seriss.com>
AuthorDate: Sun Jan 23 03:10:13 2022 -0800
Commit: Greg Ercolano <erco@seriss.com>
CommitDate: Sun Jan 23 03:10:13 2022 -0800
Fix for fltk when make install used
fltk-config.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git fltk-config.in fltk-config.in
index dd549dd..bd3eace 100644
--- fltk-config.in
+++ fltk-config.in
@@ -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
[ Direct Link to Message ] | |
|
| |