aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-18 02:14:49 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-18 02:14:49 +0200
commit3df9f063df73a4c780c6cf000482a30c197c2b48 (patch)
tree2ec2841c13fe48f16ed31748ada98194229478b4 /configure
parentfix removal of __attribute__ (diff)
downloadlibgamma-3df9f063df73a4c780c6cf000482a30c197c2b48.tar.gz
libgamma-3df9f063df73a4c780c6cf000482a30c197c2b48.tar.bz2
libgamma-3df9f063df73a4c780c6cf000482a30c197c2b48.tar.xz
os specific compile flags
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 69fa7e9..e8820e9 100755
--- a/configure
+++ b/configure
@@ -24,6 +24,8 @@ enable_quartz=0
fake_w32gdi=0
fake_quartz=0
+os=common
+
for arg in "$@"; do
case "${arg}" in
@@ -52,14 +54,18 @@ for arg in "$@"; do
(--windows=developer) enable_debug=1
enable_dummy=1
enable_w32gdi=1
+ os=w32
;;
(--windows) enable_w32gdi=1
+ os=w32
;;
(--mac-os-x=developer) enable_debug=1
enable_dummy=1
enable_quartz=1
+ os=osx
;;
(--mac-os-x) enable_quartz=1
+ os=osx
;;
(--debug) enable_debug=1 ;;
(--enable-dummy) enable_dummy=1 ;;
@@ -168,6 +174,13 @@ if [ ${fake_quartz} = 1 ]; then
have_quartz='Yes, fake via dummy method, `/dev/null`-style'
fi
fi
+if [ ${os} = w32 ]; then
+ echo 'SO = dll' >&3
+elif [ ${os} = os ]; then
+ echo 'SO = dylib' >&3n
+ echo 'SHARED = -dynamiclib' >&3
+ echo 'LDSO = ' >&3
+fi
echo >&4
echo >&4