summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfltk-config.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/fltk-config.in b/fltk-config.in
index a85c9a6cb..d82731500 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -291,7 +291,14 @@ if test -n "$compile"; then
fi
if test -n "$post"; then
- case "`uname`" in
+ running=`uname`
+ if test "$running" = "Darwin"; then
+ # if FLTK targets MacOS+X11, apps need not be bundled
+ if test `echo $LDLIBS | fgrep -c -e " -lX11"` = 1; then
+ running=""
+ fi
+ fi
+ case $running in
Darwin)
echo Creating "'$post.app'" bundle for desktop...
id=`echo $post | tr ' ' '_'`