aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen/configure112
1 files changed, 112 insertions, 0 deletions
diff --git a/autogen/configure b/autogen/configure
index 61c03785f61..7fe40f5bd51 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -10340,6 +10340,118 @@ fi
10340## $window_system is now set to the window system we will 10340## $window_system is now set to the window system we will
10341## ultimately use. 10341## ultimately use.
10342 10342
10343if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10344 # Too many warnings for now.
10345
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10347$as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10348if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10350else
10351
10352 gl_save_compiler_FLAGS="$CFLAGS"
10353 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h. */
10356
10357int
10358main ()
10359{
10360
10361 ;
10362 return 0;
10363}
10364_ACEOF
10365if ac_fn_c_try_compile "$LINENO"; then :
10366 gl_cv_warn_c__Wno_unused_variable=yes
10367else
10368 gl_cv_warn_c__Wno_unused_variable=no
10369fi
10370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 CFLAGS="$gl_save_compiler_FLAGS"
10372
10373fi
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10375$as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10376if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10377 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10378fi
10379
10380
10381
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10383$as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10384if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387
10388 gl_save_compiler_FLAGS="$CFLAGS"
10389 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h. */
10392
10393int
10394main ()
10395{
10396
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401if ac_fn_c_try_compile "$LINENO"; then :
10402 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10403else
10404 gl_cv_warn_c__Wno_unused_but_set_variable=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 CFLAGS="$gl_save_compiler_FLAGS"
10408
10409fi
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10411$as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10412if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10413 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10414fi
10415
10416
10417
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10419$as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10420if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422else
10423
10424 gl_save_compiler_FLAGS="$CFLAGS"
10425 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h. */
10428
10429int
10430main ()
10431{
10432
10433 ;
10434 return 0;
10435}
10436_ACEOF
10437if ac_fn_c_try_compile "$LINENO"; then :
10438 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10439else
10440 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10441fi
10442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 CFLAGS="$gl_save_compiler_FLAGS"
10444
10445fi
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10447$as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10448if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10449 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10450fi
10451
10452
10453fi
10454
10343term_header= 10455term_header=
10344HAVE_X_WINDOWS=no 10456HAVE_X_WINDOWS=no
10345HAVE_X11=no 10457HAVE_X11=no