/pidgin/main: 469b0ae5fee1: Correct invalid AC_LANG_PROGRAM uses

Tomasz Wasilczyk twasilczyk at pidgin.im
Thu Mar 13 07:16:40 EDT 2014


Changeset: 469b0ae5fee1b4bc2b0163727620c97605eec7a4
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-03-13 12:16 +0100
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/469b0ae5fee1

Description:

Correct invalid AC_LANG_PROGRAM uses

diffstat:

 configure.ac |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (30 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1330,9 +1330,7 @@ if test "x$GCC" = "xyes"; then
 		orig_CFLAGS="$CFLAGS"
 		CFLAGS="$CFLAGS $newflag"
 		AC_MSG_CHECKING(for $newflag option to gcc)
-		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
-			int main() {return 0;}
-		]])], [
+		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [
 			AC_MSG_RESULT(yes)
 			CFLAGS="$orig_CFLAGS"
 			DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
@@ -1345,7 +1343,6 @@ if test "x$GCC" = "xyes"; then
 	if test "x$enable_fortify" = "xyes"; then
 		AC_MSG_CHECKING(for FORTIFY_SOURCE support)
 		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <features.h>]], [[
-			int main() {
 			#if !(__GNUC_PREREQ (4, 1) \
 				|| (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \
 				|| (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \
@@ -1355,7 +1352,6 @@ if test "x$GCC" = "xyes"; then
 			#error No FORTIFY_SOURCE support
 			#endif
 				return 0;
-			}
 		]])], [
 			AC_MSG_RESULT(yes)
 			DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2"



More information about the Commits mailing list