aboutsummaryrefslogtreecommitdiffstats
path: root/dists/autogen/m4
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-09 21:28:44 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-09 21:28:44 +0000
commitd6554ccc1ec223c52f33ff034491e64ac1fa92aa (patch)
tree353003ffc63d684a99a19fcf96b45d4ba4effa1e /dists/autogen/m4
parent36db9a046b5bb3e60968236a0c24c88e4b18fb82 (diff)
downloadusdx-d6554ccc1ec223c52f33ff034491e64ac1fa92aa.tar.gz
usdx-d6554ccc1ec223c52f33ff034491e64ac1fa92aa.tar.xz
usdx-d6554ccc1ec223c52f33ff034491e64ac1fa92aa.zip
FreeBSD compatibility fixes:
- libpng -> libpng12 - arithmetic expressions with no argument do not work $(()) -> check for empty minor/major/release version added (error occurred with portaudio. The version is simply 19) - duplicates in linker flags removed (-L...) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1356 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'dists/autogen/m4')
-rw-r--r--dists/autogen/m4/ax_extract_version.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/dists/autogen/m4/ax_extract_version.m4 b/dists/autogen/m4/ax_extract_version.m4
index e9501f69..c514e3c3 100644
--- a/dists/autogen/m4/ax_extract_version.m4
+++ b/dists/autogen/m4/ax_extract_version.m4
@@ -39,6 +39,10 @@ eof
# Note: Do NOT indent the eof-delimiter
# We use a here-document (<<< here-strings not POSIX compatible)
+ test -z $major && major=0
+ test -z $minor && minor=0
+ test -z $release && release=0
+
# strip preceding 0s and set unset version-parts to 0
[$1][_VERSION_MAJOR]=$(($major))
[$1][_VERSION_MINOR]=$(($minor))