Changeset 474 for trunk/aclocal.m4
- Timestamp:
- May 30, 2015, 7:57:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r441 r474 1224 1224 ]) 1225 1225 1226 AC_DEFUN([GCC_FLAG_CHECK],[ 1227 AC_LANG_ASSERT(C) 1228 if test "X$CC" != "X"; then 1229 AC_MSG_CHECKING([whether ${CC} accepts $1]) 1230 dnl flag_check_cv, 1231 saved_cflags="$CFLAGS" 1232 CFLAGS="$CFLAGS -Werror $1" 1233 AC_TRY_COMPILE(,, flag_check_cv=yes, flag_check_cv=no) 1234 CFLAGS="$saved_cflags" 1235 1236 if test $flag_check_cv = yes; then 1237 CFLAGS="$CFLAGS $1" 1238 AC_MSG_RESULT([yes]) 1239 else 1240 AC_MSG_RESULT([no]) 1241 fi 1242 fi 1243 ]) 1244 1226 1245 AC_DEFUN([GCC_WEMPTY_BODY],[ 1227 1246 AC_LANG_ASSERT(C) 1228 1247 if test "X$CC" != "X"; then 1229 AC_C ACHE_CHECK([whether ${CC} accepts -Wno-empty-body],1230 empty_cv_body,1248 AC_CHECK([whether ${CC} accepts -Wno-empty-body], 1249 dnl empty_cv_body, 1231 1250 [empty_body_cflags="$CFLAGS" 1232 CFLAGS="$CFLAGS -W no-empty-body"1251 CFLAGS="$CFLAGS -Werror -Wno-empty-body" 1233 1252 AC_TRY_COMPILE(,, empty_cv_body=yes, empty_cv_body=no) 1234 1253 CFLAGS="$empty_body_cflags" … … 1380 1399 # 1381 1400 if test "x$GCC" = xyes; then 1382 case "$host_os" in 1383 *linux*) 1384 SAMHAIN_X86_64 1385 ;; 1386 *bsd*) 1387 SAMHAIN_X86_64 1388 ;; 1389 *) 1390 SAMHAIN_X86_64 1391 ;; 1392 esac 1401 $CC -E -dM - < /dev/null | egrep '__clang__' >/dev/null 2>&1 1402 if ! test $? = 0; then 1403 case "$host_os" in 1404 *linux*) 1405 SAMHAIN_X86_64 1406 ;; 1407 *bsd*) 1408 SAMHAIN_X86_64 1409 ;; 1410 *) 1411 SAMHAIN_X86_64 1412 ;; 1413 esac 1414 fi 1393 1415 fi 1394 1416 fi
Note:
See TracChangeset
for help on using the changeset viewer.