efl: proper use of AC_DEFINE_IF for HAVE_NOTIFY_WIN32 definition
authorLeandro Dorileo <dorileo@profusion.mobi>
Thu, 6 Dec 2012 16:22:20 +0000 (16:22 +0000)
committerLeandro Dorileo <dorileo@profusion.mobi>
Thu, 6 Dec 2012 16:22:20 +0000 (16:22 +0000)
--This line, and those below, will be ignored--

SVN revision: 80371

configure.ac

index df1b36e..d96c5e0 100644 (file)
@@ -479,11 +479,9 @@ have_inotify="${ac_cv_header_sys_inotify_h}"
 AM_CONDITIONAL([HAVE_INOTIFY], [test "x${have_inotify}" = "xyes"])
 
 have_notify_win32="${have_win32}"
-if test "x${have_notify_win32}" = "xyes" ; then
-  AC_DEFINE([HAVE_NOTIFY_WIN32], [1], [File monitoring with Windows notification])
-else
-  AC_DEFINE([HAVE_NOTIFY_WIN32], [], [File monitoring with Windows notification])
-fi
+AC_DEFINE_IF([HAVE_NOTIFY_WIN32],
+   [test "x${have_notify_win32}" = "xyes"], [1],
+   [File monitoring with Windows notification])
 AM_CONDITIONAL([HAVE_NOTIFY_WIN32], [test "x${have_notify_win32}" = "xyes"])