Fix discovery of gettimeofday() by autoconf.
authorCarl Hetherington <cth@carlh.net>
Sat, 19 Mar 2016 20:49:47 +0000 (20:49 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 19 Mar 2016 21:13:14 +0000 (21:13 +0000)
Without this, gettimeofday() is found but the -DHAVE_GETTIMEOFDAY
flag is not passed to the compiler.  This change may cause other
problems; I am not an autoconf expert.

configure.ac

index 68aadbb7f90b2b6673582c5c237e7e696bca4d7c..d1c64452a077eb27e25d653ce7115f2b7501ec77 100644 (file)
@@ -91,7 +91,7 @@ if test x"$GXX" = "xyes"; then
 fi
 
 # Checks for functions
-AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], )
+AC_CHECK_FUNCS(gettimeofday)
 
 # Checks for doxygen
 AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )