Enable C99 mode
authorOmari Stephens <[email protected]>
Sun, 9 Jul 2017 21:40:05 +0000 (21:40 +0000)
committerOmari Stephens <[email protected]>
Sun, 9 Jul 2017 21:45:36 +0000 (21:45 +0000)
Also, make AC_INIT macro independent of available branch names.

configure.in

index 9ab7cabf0761fb41f9f66ea4ebff2db941a948f6..d24e7f9ca7067dd9ce9c8df7ece0ed7fd06abc49 100644 (file)
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 
 AC_PREREQ(2.57)
-AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short master), [[email protected]], [], [http://www.geeqie.org/])
+AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short HEAD), [[email protected]], [], [http://www.geeqie.org/])
 
 # Add -Werror to the default CFLAGS
 CFLAGS+=" -Werror -Wno-error=deprecated-declarations"
@@ -132,6 +132,7 @@ fi
 
 AC_ISC_POSIX
 AC_PROG_CC
+AC_PROG_CC_C99
 AC_PROG_CXX
 AC_STDC_HEADERS
 AC_ARG_PROGRAM