diff --git a/.gitignore b/.gitignore
index adaf4090..a82e37f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ po/Makefile.in.in
po/POTFILES
po/remove-potcdate.sed
po/stamp-*
+osx/Info.plist
data/pkgconfig/hexchat-plugin.pc
data/misc/hexchat.appdata.xml
src/common/dbus/example
diff --git a/configure.ac b/configure.ac
index 37ad4d9c..ccede768 100644
--- a/configure.ac
+++ b/configure.ac
@@ -838,6 +838,7 @@ src/fe-text/Makefile
src/fe-gtk/Makefile
src/htm/Makefile
src/htm/thememan
+osx/Info.plist
plugins/Makefile
plugins/python/Makefile
plugins/perl/Makefile
diff --git a/osx/Info.plist b/osx/Info.plist.in
similarity index 90%
rename from osx/Info.plist
rename to osx/Info.plist.in
index 06469a5e..2ee15897 100644
--- a/osx/Info.plist
+++ b/osx/Info.plist.in
@@ -7,7 +7,7 @@
CFBundleExecutable
HexChat
CFBundleGetInfoString
- 2.9.6
+ @VERSION@
CFBundleIconFile
hexchat.icns
CFBundleIdentifier
@@ -17,11 +17,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 2.9.6
+ @VERSION@
CFBundleSignature
????
CFBundleVersion
- 2.9.6
+ @VERSION@
NSHumanReadableCopyright
LSMinimumSystemVersion