summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-12-19 14:35:08 +0000
committerManolo Gouy <Manolo>2016-12-19 14:35:08 +0000
commit5a7f80c466834d003d9588ad3d25334ecf558501 (patch)
tree4cc1c01ae4185fca9627aabcdc8bfe288de77804
parent936486cb1ccaba88add3b7caa984cdf841e019f1 (diff)
When targetting MacOS+X11, fltk-config should not bundle the executable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-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 ' ' '_'`