~ubuntu-branches/ubuntu/trusty/xinput/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois, Julien Cristau, Chase Douglas, Cyril Brulebois
  • Date: 2012-05-20 13:56:03 UTC
  • mfrom: (1.1.9) (4.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120520135603-kz0mjqk7s0p84mz0
Tags: 1.6.0-1
[ Julien Cristau ]
* Change Maintainer to the X Strike Force.
* Add Vcs-* control fields.

[ Chase Douglas ]
* Bump Standards-Version to 3.9.2
* Add build deps on libxrandr-dev and libxinerama-dev
* Bump build deps on libxi and x11proto-input-dev

[ Cyril Brulebois ]
* New upstream release.
* Replace Julien with myself in Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for xinput 1.5.99.1.
 
3
# Generated by GNU Autoconf 2.68 for xinput 1.6.0.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
561
561
# Identity of this package.
562
562
PACKAGE_NAME='xinput'
563
563
PACKAGE_TARNAME='xinput'
564
 
PACKAGE_VERSION='1.5.99.1'
565
 
PACKAGE_STRING='xinput 1.5.99.1'
 
564
PACKAGE_VERSION='1.6.0'
 
565
PACKAGE_STRING='xinput 1.6.0'
566
566
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567
567
PACKAGE_URL=''
568
568
 
620
620
XINPUT_CFLAGS
621
621
AM_BACKSLASH
622
622
AM_DEFAULT_VERBOSITY
 
623
AM_DEFAULT_V
 
624
AM_V
623
625
MAN_SUBSTS
624
626
XORG_MAN_PAGE
625
627
ADMIN_MAN_DIR
650
652
CHANGELOG_CMD
651
653
STRICT_CFLAGS
652
654
CWARNFLAGS
 
655
BASE_CFLAGS
653
656
EGREP
654
657
GREP
655
658
CPP
656
659
am__fastdepCC_FALSE
657
660
am__fastdepCC_TRUE
658
661
CCDEPMODE
 
662
am__nodep
659
663
AMDEPBACKSLASH
660
664
AMDEP_FALSE
661
665
AMDEP_TRUE
738
742
enable_option_checking
739
743
enable_maintainer_mode
740
744
enable_dependency_tracking
 
745
enable_selective_werror
741
746
enable_strict_compilation
742
747
enable_silent_rules
743
748
'
1303
1308
  # Omit some internal or obsolete options to make the list less imposing.
1304
1309
  # This message is too long to be a string in the A/UX 3.1 sh.
1305
1310
  cat <<_ACEOF
1306
 
\`configure' configures xinput 1.5.99.1 to adapt to many kinds of systems.
 
1311
\`configure' configures xinput 1.6.0 to adapt to many kinds of systems.
1307
1312
 
1308
1313
Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1314
 
1373
1378
 
1374
1379
if test -n "$ac_init_help"; then
1375
1380
  case $ac_init_help in
1376
 
     short | recursive ) echo "Configuration of xinput 1.5.99.1:";;
 
1381
     short | recursive ) echo "Configuration of xinput 1.6.0:";;
1377
1382
   esac
1378
1383
  cat <<\_ACEOF
1379
1384
 
1385
1390
                          (and sometimes confusing) to the casual installer
1386
1391
  --disable-dependency-tracking  speeds up one-time build
1387
1392
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1393
  --disable-selective-werror
 
1394
                          Turn off selective compiler errors. (default:
 
1395
                          enabled)
1388
1396
  --enable-strict-compilation
1389
1397
                          Enable all warnings from compiler and make them
1390
1398
                          errors (default: disabled)
1481
1489
test -n "$ac_init_help" && exit $ac_status
1482
1490
if $ac_init_version; then
1483
1491
  cat <<\_ACEOF
1484
 
xinput configure 1.5.99.1
 
1492
xinput configure 1.6.0
1485
1493
generated by GNU Autoconf 2.68
1486
1494
 
1487
1495
Copyright (C) 2010 Free Software Foundation, Inc.
1688
1696
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1697
 
1690
1698
} # ac_fn_c_check_header_compile
 
1699
 
 
1700
# ac_fn_c_try_link LINENO
 
1701
# -----------------------
 
1702
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1703
ac_fn_c_try_link ()
 
1704
{
 
1705
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1706
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1707
  if { { ac_try="$ac_link"
 
1708
case "(($ac_try" in
 
1709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1710
  *) ac_try_echo=$ac_try;;
 
1711
esac
 
1712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1713
$as_echo "$ac_try_echo"; } >&5
 
1714
  (eval "$ac_link") 2>conftest.err
 
1715
  ac_status=$?
 
1716
  if test -s conftest.err; then
 
1717
    grep -v '^ *+' conftest.err >conftest.er1
 
1718
    cat conftest.er1 >&5
 
1719
    mv -f conftest.er1 conftest.err
 
1720
  fi
 
1721
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1722
  test $ac_status = 0; } && {
 
1723
         test -z "$ac_c_werror_flag" ||
 
1724
         test ! -s conftest.err
 
1725
       } && test -s conftest$ac_exeext && {
 
1726
         test "$cross_compiling" = yes ||
 
1727
         $as_test_x conftest$ac_exeext
 
1728
       }; then :
 
1729
  ac_retval=0
 
1730
else
 
1731
  $as_echo "$as_me: failed program was:" >&5
 
1732
sed 's/^/| /' conftest.$ac_ext >&5
 
1733
 
 
1734
        ac_retval=1
 
1735
fi
 
1736
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1737
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1738
  # interfere with the next link command; also delete a directory that is
 
1739
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1740
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1741
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1742
  as_fn_set_status $ac_retval
 
1743
 
 
1744
} # ac_fn_c_try_link
1691
1745
cat >config.log <<_ACEOF
1692
1746
This file contains any messages produced by compilers while
1693
1747
running configure, to aid debugging if configure makes a mistake.
1694
1748
 
1695
 
It was created by xinput $as_me 1.5.99.1, which was
 
1749
It was created by xinput $as_me 1.6.0, which was
1696
1750
generated by GNU Autoconf 2.68.  Invocation command line was
1697
1751
 
1698
1752
  $ $0 $@
2512
2566
 
2513
2567
# Define the identity of the package.
2514
2568
 PACKAGE='xinput'
2515
 
 VERSION='1.5.99.1'
 
2569
 VERSION='1.6.0'
2516
2570
 
2517
2571
 
2518
2572
cat >>confdefs.h <<_ACEOF
2542
2596
 
2543
2597
# We need awk for the "check" target.  The system "awk" is bad on
2544
2598
# some platforms.
2545
 
# Always define AMTAR for backward compatibility.
2546
 
 
2547
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2548
 
 
2549
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2599
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2600
# in the wild :-(  We should find a proper way to deprecate it ...
 
2601
AMTAR='$${TAR-tar}'
 
2602
 
 
2603
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2550
2604
 
2551
2605
 
2552
2606
 
2640
2694
if test "x$enable_dependency_tracking" != xno; then
2641
2695
  am_depcomp="$ac_aux_dir/depcomp"
2642
2696
  AMDEPBACKSLASH='\'
 
2697
  am__nodep='_no'
2643
2698
fi
2644
2699
 if test "x$enable_dependency_tracking" != xno; then
2645
2700
  AMDEP_TRUE=
3453
3508
  # instance it was reported that on HP-UX the gcc test will end up
3454
3509
  # making a dummy file named `D' -- because `-MD' means `put the output
3455
3510
  # in D'.
 
3511
  rm -rf conftest.dir
3456
3512
  mkdir conftest.dir
3457
3513
  # Copy depcomp to subdir because otherwise we won't find it if we're
3458
3514
  # using a relative directory.
3512
3568
        break
3513
3569
      fi
3514
3570
      ;;
3515
 
    msvisualcpp | msvcmsys)
 
3571
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3516
3572
      # This compiler won't grok `-c -o', but also, the minuso test has
3517
3573
      # not run yet.  These depmodes are late enough in the game, and
3518
3574
      # so weak that their functioning should not be impacted.
4430
4486
 
4431
4487
 
4432
4488
 
 
4489
# Check whether --enable-selective-werror was given.
 
4490
if test "${enable_selective_werror+set}" = set; then :
 
4491
  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
 
4492
else
 
4493
  SELECTIVE_WERROR=yes
 
4494
fi
 
4495
 
 
4496
 
 
4497
# -v is too short to test reliably with XORG_TESTSET_CFLAG
 
4498
if test "x$SUNCC" = "xyes"; then
 
4499
    BASE_CFLAGS="-v"
 
4500
else
 
4501
    BASE_CFLAGS=""
 
4502
fi
 
4503
 
 
4504
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
 
4505
 
 
4506
 
 
4507
 
 
4508
 
 
4509
 
 
4510
xorg_testset_save_CFLAGS="$CFLAGS"
 
4511
 
 
4512
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4513
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4514
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4515
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4516
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4517
/* end confdefs.h.  */
 
4518
int i;
 
4519
_ACEOF
 
4520
if ac_fn_c_try_compile "$LINENO"; then :
 
4521
  xorg_testset_unknown_warning_option=yes
 
4522
else
 
4523
  xorg_testset_unknown_warning_option=no
 
4524
fi
 
4525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4526
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4527
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4528
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4529
fi
 
4530
 
 
4531
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4532
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4533
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4534
        fi
 
4535
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4536
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4537
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4538
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4539
/* end confdefs.h.  */
 
4540
int i;
 
4541
_ACEOF
 
4542
if ac_fn_c_try_compile "$LINENO"; then :
 
4543
  xorg_testset_unused_command_line_argument=yes
 
4544
else
 
4545
  xorg_testset_unused_command_line_argument=no
 
4546
fi
 
4547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4548
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
4549
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
4550
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4551
fi
 
4552
 
 
4553
found="no"
 
4554
 
 
4555
        if test $found = "no" ; then
 
4556
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4557
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4558
                fi
 
4559
 
 
4560
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
4561
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4562
                fi
 
4563
 
 
4564
                CFLAGS="$CFLAGS -Wall"
 
4565
 
 
4566
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
 
4567
$as_echo_n "checking if $CC supports -Wall... " >&6; }
 
4568
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4569
/* end confdefs.h.  */
 
4570
int i;
 
4571
int
 
4572
main ()
 
4573
{
 
4574
 
 
4575
  ;
 
4576
  return 0;
 
4577
}
 
4578
_ACEOF
 
4579
if ac_fn_c_try_link "$LINENO"; then :
 
4580
  supported=yes
 
4581
else
 
4582
  supported=no
 
4583
fi
 
4584
rm -f core conftest.err conftest.$ac_objext \
 
4585
    conftest$ac_exeext conftest.$ac_ext
 
4586
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4587
$as_echo "$supported" >&6; }
 
4588
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4589
 
 
4590
                if test "$supported" = "yes" ; then
 
4591
                        BASE_CFLAGS="$BASE_CFLAGS -Wall"
 
4592
                        found="yes"
 
4593
                fi
 
4594
        fi
 
4595
 
 
4596
 
 
4597
 
 
4598
 
 
4599
 
 
4600
 
 
4601
 
 
4602
xorg_testset_save_CFLAGS="$CFLAGS"
 
4603
 
 
4604
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4605
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4606
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4607
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4608
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4609
/* end confdefs.h.  */
 
4610
int i;
 
4611
_ACEOF
 
4612
if ac_fn_c_try_compile "$LINENO"; then :
 
4613
  xorg_testset_unknown_warning_option=yes
 
4614
else
 
4615
  xorg_testset_unknown_warning_option=no
 
4616
fi
 
4617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4618
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4619
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4620
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4621
fi
 
4622
 
 
4623
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4624
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4625
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4626
        fi
 
4627
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4628
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4629
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4630
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4631
/* end confdefs.h.  */
 
4632
int i;
 
4633
_ACEOF
 
4634
if ac_fn_c_try_compile "$LINENO"; then :
 
4635
  xorg_testset_unused_command_line_argument=yes
 
4636
else
 
4637
  xorg_testset_unused_command_line_argument=no
 
4638
fi
 
4639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4640
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
4641
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
4642
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4643
fi
 
4644
 
 
4645
found="no"
 
4646
 
 
4647
        if test $found = "no" ; then
 
4648
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4649
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4650
                fi
 
4651
 
 
4652
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
4653
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4654
                fi
 
4655
 
 
4656
                CFLAGS="$CFLAGS -Wpointer-arith"
 
4657
 
 
4658
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
 
4659
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
 
4660
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4661
/* end confdefs.h.  */
 
4662
int i;
 
4663
int
 
4664
main ()
 
4665
{
 
4666
 
 
4667
  ;
 
4668
  return 0;
 
4669
}
 
4670
_ACEOF
 
4671
if ac_fn_c_try_link "$LINENO"; then :
 
4672
  supported=yes
 
4673
else
 
4674
  supported=no
 
4675
fi
 
4676
rm -f core conftest.err conftest.$ac_objext \
 
4677
    conftest$ac_exeext conftest.$ac_ext
 
4678
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4679
$as_echo "$supported" >&6; }
 
4680
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4681
 
 
4682
                if test "$supported" = "yes" ; then
 
4683
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
 
4684
                        found="yes"
 
4685
                fi
 
4686
        fi
 
4687
 
 
4688
 
 
4689
 
 
4690
 
 
4691
 
 
4692
 
 
4693
 
 
4694
xorg_testset_save_CFLAGS="$CFLAGS"
 
4695
 
 
4696
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4697
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4698
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4699
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4700
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4701
/* end confdefs.h.  */
 
4702
int i;
 
4703
_ACEOF
 
4704
if ac_fn_c_try_compile "$LINENO"; then :
 
4705
  xorg_testset_unknown_warning_option=yes
 
4706
else
 
4707
  xorg_testset_unknown_warning_option=no
 
4708
fi
 
4709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4710
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4711
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4712
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4713
fi
 
4714
 
 
4715
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4716
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4717
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4718
        fi
 
4719
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4720
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4721
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4722
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4723
/* end confdefs.h.  */
 
4724
int i;
 
4725
_ACEOF
 
4726
if ac_fn_c_try_compile "$LINENO"; then :
 
4727
  xorg_testset_unused_command_line_argument=yes
 
4728
else
 
4729
  xorg_testset_unused_command_line_argument=no
 
4730
fi
 
4731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4732
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
4733
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
4734
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4735
fi
 
4736
 
 
4737
found="no"
 
4738
 
 
4739
        if test $found = "no" ; then
 
4740
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4741
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4742
                fi
 
4743
 
 
4744
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
4745
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4746
                fi
 
4747
 
 
4748
                CFLAGS="$CFLAGS -Wstrict-prototypes"
 
4749
 
 
4750
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
 
4751
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
 
4752
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4753
/* end confdefs.h.  */
 
4754
int i;
 
4755
int
 
4756
main ()
 
4757
{
 
4758
 
 
4759
  ;
 
4760
  return 0;
 
4761
}
 
4762
_ACEOF
 
4763
if ac_fn_c_try_link "$LINENO"; then :
 
4764
  supported=yes
 
4765
else
 
4766
  supported=no
 
4767
fi
 
4768
rm -f core conftest.err conftest.$ac_objext \
 
4769
    conftest$ac_exeext conftest.$ac_ext
 
4770
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4771
$as_echo "$supported" >&6; }
 
4772
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4773
 
 
4774
                if test "$supported" = "yes" ; then
 
4775
                        BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
 
4776
                        found="yes"
 
4777
                fi
 
4778
        fi
 
4779
 
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
xorg_testset_save_CFLAGS="$CFLAGS"
 
4787
 
 
4788
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4789
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4790
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4791
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4792
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4793
/* end confdefs.h.  */
 
4794
int i;
 
4795
_ACEOF
 
4796
if ac_fn_c_try_compile "$LINENO"; then :
 
4797
  xorg_testset_unknown_warning_option=yes
 
4798
else
 
4799
  xorg_testset_unknown_warning_option=no
 
4800
fi
 
4801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4802
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4803
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4804
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4805
fi
 
4806
 
 
4807
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4808
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4809
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4810
        fi
 
4811
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4812
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4813
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4814
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4815
/* end confdefs.h.  */
 
4816
int i;
 
4817
_ACEOF
 
4818
if ac_fn_c_try_compile "$LINENO"; then :
 
4819
  xorg_testset_unused_command_line_argument=yes
 
4820
else
 
4821
  xorg_testset_unused_command_line_argument=no
 
4822
fi
 
4823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4824
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
4825
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
4826
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4827
fi
 
4828
 
 
4829
found="no"
 
4830
 
 
4831
        if test $found = "no" ; then
 
4832
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4833
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4834
                fi
 
4835
 
 
4836
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
4837
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4838
                fi
 
4839
 
 
4840
                CFLAGS="$CFLAGS -Wmissing-prototypes"
 
4841
 
 
4842
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
 
4843
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
 
4844
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4845
/* end confdefs.h.  */
 
4846
int i;
 
4847
int
 
4848
main ()
 
4849
{
 
4850
 
 
4851
  ;
 
4852
  return 0;
 
4853
}
 
4854
_ACEOF
 
4855
if ac_fn_c_try_link "$LINENO"; then :
 
4856
  supported=yes
 
4857
else
 
4858
  supported=no
 
4859
fi
 
4860
rm -f core conftest.err conftest.$ac_objext \
 
4861
    conftest$ac_exeext conftest.$ac_ext
 
4862
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4863
$as_echo "$supported" >&6; }
 
4864
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4865
 
 
4866
                if test "$supported" = "yes" ; then
 
4867
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
 
4868
                        found="yes"
 
4869
                fi
 
4870
        fi
 
4871
 
 
4872
 
 
4873
 
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
xorg_testset_save_CFLAGS="$CFLAGS"
 
4879
 
 
4880
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4881
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4882
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4883
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4884
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4885
/* end confdefs.h.  */
 
4886
int i;
 
4887
_ACEOF
 
4888
if ac_fn_c_try_compile "$LINENO"; then :
 
4889
  xorg_testset_unknown_warning_option=yes
 
4890
else
 
4891
  xorg_testset_unknown_warning_option=no
 
4892
fi
 
4893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4894
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4895
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4896
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4897
fi
 
4898
 
 
4899
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4900
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4901
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4902
        fi
 
4903
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4904
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4905
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4906
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4907
/* end confdefs.h.  */
 
4908
int i;
 
4909
_ACEOF
 
4910
if ac_fn_c_try_compile "$LINENO"; then :
 
4911
  xorg_testset_unused_command_line_argument=yes
 
4912
else
 
4913
  xorg_testset_unused_command_line_argument=no
 
4914
fi
 
4915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4916
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
4917
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
4918
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4919
fi
 
4920
 
 
4921
found="no"
 
4922
 
 
4923
        if test $found = "no" ; then
 
4924
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4925
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4926
                fi
 
4927
 
 
4928
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
4929
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4930
                fi
 
4931
 
 
4932
                CFLAGS="$CFLAGS -Wmissing-declarations"
 
4933
 
 
4934
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
 
4935
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
 
4936
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4937
/* end confdefs.h.  */
 
4938
int i;
 
4939
int
 
4940
main ()
 
4941
{
 
4942
 
 
4943
  ;
 
4944
  return 0;
 
4945
}
 
4946
_ACEOF
 
4947
if ac_fn_c_try_link "$LINENO"; then :
 
4948
  supported=yes
 
4949
else
 
4950
  supported=no
 
4951
fi
 
4952
rm -f core conftest.err conftest.$ac_objext \
 
4953
    conftest$ac_exeext conftest.$ac_ext
 
4954
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4955
$as_echo "$supported" >&6; }
 
4956
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4957
 
 
4958
                if test "$supported" = "yes" ; then
 
4959
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
 
4960
                        found="yes"
 
4961
                fi
 
4962
        fi
 
4963
 
 
4964
 
 
4965
 
 
4966
 
 
4967
 
 
4968
 
 
4969
 
 
4970
xorg_testset_save_CFLAGS="$CFLAGS"
 
4971
 
 
4972
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
4973
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4974
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4975
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4976
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4977
/* end confdefs.h.  */
 
4978
int i;
 
4979
_ACEOF
 
4980
if ac_fn_c_try_compile "$LINENO"; then :
 
4981
  xorg_testset_unknown_warning_option=yes
 
4982
else
 
4983
  xorg_testset_unknown_warning_option=no
 
4984
fi
 
4985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4986
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
4987
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
4988
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4989
fi
 
4990
 
 
4991
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
4992
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
4993
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4994
        fi
 
4995
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4996
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4997
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4998
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4999
/* end confdefs.h.  */
 
5000
int i;
 
5001
_ACEOF
 
5002
if ac_fn_c_try_compile "$LINENO"; then :
 
5003
  xorg_testset_unused_command_line_argument=yes
 
5004
else
 
5005
  xorg_testset_unused_command_line_argument=no
 
5006
fi
 
5007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5008
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5009
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5010
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5011
fi
 
5012
 
 
5013
found="no"
 
5014
 
 
5015
        if test $found = "no" ; then
 
5016
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5017
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5018
                fi
 
5019
 
 
5020
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5021
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5022
                fi
 
5023
 
 
5024
                CFLAGS="$CFLAGS -Wnested-externs"
 
5025
 
 
5026
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
 
5027
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
 
5028
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5029
/* end confdefs.h.  */
 
5030
int i;
 
5031
int
 
5032
main ()
 
5033
{
 
5034
 
 
5035
  ;
 
5036
  return 0;
 
5037
}
 
5038
_ACEOF
 
5039
if ac_fn_c_try_link "$LINENO"; then :
 
5040
  supported=yes
 
5041
else
 
5042
  supported=no
 
5043
fi
 
5044
rm -f core conftest.err conftest.$ac_objext \
 
5045
    conftest$ac_exeext conftest.$ac_ext
 
5046
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5047
$as_echo "$supported" >&6; }
 
5048
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5049
 
 
5050
                if test "$supported" = "yes" ; then
 
5051
                        BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
 
5052
                        found="yes"
 
5053
                fi
 
5054
        fi
 
5055
 
 
5056
 
 
5057
 
 
5058
 
 
5059
 
 
5060
 
 
5061
 
 
5062
xorg_testset_save_CFLAGS="$CFLAGS"
 
5063
 
 
5064
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5065
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5066
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5067
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5068
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5069
/* end confdefs.h.  */
 
5070
int i;
 
5071
_ACEOF
 
5072
if ac_fn_c_try_compile "$LINENO"; then :
 
5073
  xorg_testset_unknown_warning_option=yes
 
5074
else
 
5075
  xorg_testset_unknown_warning_option=no
 
5076
fi
 
5077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5078
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5079
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5080
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5081
fi
 
5082
 
 
5083
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5084
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5085
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5086
        fi
 
5087
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5088
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5089
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5090
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5091
/* end confdefs.h.  */
 
5092
int i;
 
5093
_ACEOF
 
5094
if ac_fn_c_try_compile "$LINENO"; then :
 
5095
  xorg_testset_unused_command_line_argument=yes
 
5096
else
 
5097
  xorg_testset_unused_command_line_argument=no
 
5098
fi
 
5099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5100
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5101
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5102
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5103
fi
 
5104
 
 
5105
found="no"
 
5106
 
 
5107
        if test $found = "no" ; then
 
5108
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5109
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5110
                fi
 
5111
 
 
5112
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5113
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5114
                fi
 
5115
 
 
5116
                CFLAGS="$CFLAGS -Wbad-function-cast"
 
5117
 
 
5118
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
 
5119
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
 
5120
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5121
/* end confdefs.h.  */
 
5122
int i;
 
5123
int
 
5124
main ()
 
5125
{
 
5126
 
 
5127
  ;
 
5128
  return 0;
 
5129
}
 
5130
_ACEOF
 
5131
if ac_fn_c_try_link "$LINENO"; then :
 
5132
  supported=yes
 
5133
else
 
5134
  supported=no
 
5135
fi
 
5136
rm -f core conftest.err conftest.$ac_objext \
 
5137
    conftest$ac_exeext conftest.$ac_ext
 
5138
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5139
$as_echo "$supported" >&6; }
 
5140
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5141
 
 
5142
                if test "$supported" = "yes" ; then
 
5143
                        BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
 
5144
                        found="yes"
 
5145
                fi
 
5146
        fi
 
5147
 
 
5148
 
 
5149
 
 
5150
 
 
5151
 
 
5152
 
 
5153
 
 
5154
xorg_testset_save_CFLAGS="$CFLAGS"
 
5155
 
 
5156
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5157
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5158
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5159
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5160
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5161
/* end confdefs.h.  */
 
5162
int i;
 
5163
_ACEOF
 
5164
if ac_fn_c_try_compile "$LINENO"; then :
 
5165
  xorg_testset_unknown_warning_option=yes
 
5166
else
 
5167
  xorg_testset_unknown_warning_option=no
 
5168
fi
 
5169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5170
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5171
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5172
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5173
fi
 
5174
 
 
5175
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5176
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5177
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5178
        fi
 
5179
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5180
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5181
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5182
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5183
/* end confdefs.h.  */
 
5184
int i;
 
5185
_ACEOF
 
5186
if ac_fn_c_try_compile "$LINENO"; then :
 
5187
  xorg_testset_unused_command_line_argument=yes
 
5188
else
 
5189
  xorg_testset_unused_command_line_argument=no
 
5190
fi
 
5191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5192
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5193
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5194
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5195
fi
 
5196
 
 
5197
found="no"
 
5198
 
 
5199
        if test $found = "no" ; then
 
5200
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5201
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5202
                fi
 
5203
 
 
5204
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5205
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5206
                fi
 
5207
 
 
5208
                CFLAGS="$CFLAGS -Wformat=2"
 
5209
 
 
5210
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
 
5211
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
 
5212
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5213
/* end confdefs.h.  */
 
5214
int i;
 
5215
int
 
5216
main ()
 
5217
{
 
5218
 
 
5219
  ;
 
5220
  return 0;
 
5221
}
 
5222
_ACEOF
 
5223
if ac_fn_c_try_link "$LINENO"; then :
 
5224
  supported=yes
 
5225
else
 
5226
  supported=no
 
5227
fi
 
5228
rm -f core conftest.err conftest.$ac_objext \
 
5229
    conftest$ac_exeext conftest.$ac_ext
 
5230
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5231
$as_echo "$supported" >&6; }
 
5232
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5233
 
 
5234
                if test "$supported" = "yes" ; then
 
5235
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
 
5236
                        found="yes"
 
5237
                fi
 
5238
        fi
 
5239
 
 
5240
        if test $found = "no" ; then
 
5241
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5242
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5243
                fi
 
5244
 
 
5245
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5246
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5247
                fi
 
5248
 
 
5249
                CFLAGS="$CFLAGS -Wformat"
 
5250
 
 
5251
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
 
5252
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
 
5253
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5254
/* end confdefs.h.  */
 
5255
int i;
 
5256
int
 
5257
main ()
 
5258
{
 
5259
 
 
5260
  ;
 
5261
  return 0;
 
5262
}
 
5263
_ACEOF
 
5264
if ac_fn_c_try_link "$LINENO"; then :
 
5265
  supported=yes
 
5266
else
 
5267
  supported=no
 
5268
fi
 
5269
rm -f core conftest.err conftest.$ac_objext \
 
5270
    conftest$ac_exeext conftest.$ac_ext
 
5271
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5272
$as_echo "$supported" >&6; }
 
5273
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5274
 
 
5275
                if test "$supported" = "yes" ; then
 
5276
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
 
5277
                        found="yes"
 
5278
                fi
 
5279
        fi
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
xorg_testset_save_CFLAGS="$CFLAGS"
 
5288
 
 
5289
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5290
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5291
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5292
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5293
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5294
/* end confdefs.h.  */
 
5295
int i;
 
5296
_ACEOF
 
5297
if ac_fn_c_try_compile "$LINENO"; then :
 
5298
  xorg_testset_unknown_warning_option=yes
 
5299
else
 
5300
  xorg_testset_unknown_warning_option=no
 
5301
fi
 
5302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5303
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5304
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5305
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5306
fi
 
5307
 
 
5308
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5309
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5310
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5311
        fi
 
5312
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5313
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5314
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5315
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5316
/* end confdefs.h.  */
 
5317
int i;
 
5318
_ACEOF
 
5319
if ac_fn_c_try_compile "$LINENO"; then :
 
5320
  xorg_testset_unused_command_line_argument=yes
 
5321
else
 
5322
  xorg_testset_unused_command_line_argument=no
 
5323
fi
 
5324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5325
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5326
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5327
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5328
fi
 
5329
 
 
5330
found="no"
 
5331
 
 
5332
        if test $found = "no" ; then
 
5333
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5334
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5335
                fi
 
5336
 
 
5337
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5338
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5339
                fi
 
5340
 
 
5341
                CFLAGS="$CFLAGS -Wold-style-definition"
 
5342
 
 
5343
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
 
5344
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
 
5345
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5346
/* end confdefs.h.  */
 
5347
int i;
 
5348
int
 
5349
main ()
 
5350
{
 
5351
 
 
5352
  ;
 
5353
  return 0;
 
5354
}
 
5355
_ACEOF
 
5356
if ac_fn_c_try_link "$LINENO"; then :
 
5357
  supported=yes
 
5358
else
 
5359
  supported=no
 
5360
fi
 
5361
rm -f core conftest.err conftest.$ac_objext \
 
5362
    conftest$ac_exeext conftest.$ac_ext
 
5363
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5364
$as_echo "$supported" >&6; }
 
5365
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5366
 
 
5367
                if test "$supported" = "yes" ; then
 
5368
                        BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
 
5369
                        found="yes"
 
5370
                fi
 
5371
        fi
 
5372
 
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
xorg_testset_save_CFLAGS="$CFLAGS"
 
5380
 
 
5381
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5382
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5383
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5384
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5385
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5386
/* end confdefs.h.  */
 
5387
int i;
 
5388
_ACEOF
 
5389
if ac_fn_c_try_compile "$LINENO"; then :
 
5390
  xorg_testset_unknown_warning_option=yes
 
5391
else
 
5392
  xorg_testset_unknown_warning_option=no
 
5393
fi
 
5394
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5395
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5396
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5397
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5398
fi
 
5399
 
 
5400
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5401
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5402
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5403
        fi
 
5404
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5405
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5406
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5407
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5408
/* end confdefs.h.  */
 
5409
int i;
 
5410
_ACEOF
 
5411
if ac_fn_c_try_compile "$LINENO"; then :
 
5412
  xorg_testset_unused_command_line_argument=yes
 
5413
else
 
5414
  xorg_testset_unused_command_line_argument=no
 
5415
fi
 
5416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5417
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5418
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5419
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5420
fi
 
5421
 
 
5422
found="no"
 
5423
 
 
5424
        if test $found = "no" ; then
 
5425
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5426
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5427
                fi
 
5428
 
 
5429
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5430
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5431
                fi
 
5432
 
 
5433
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 
5434
 
 
5435
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
 
5436
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
 
5437
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5438
/* end confdefs.h.  */
 
5439
int i;
 
5440
int
 
5441
main ()
 
5442
{
 
5443
 
 
5444
  ;
 
5445
  return 0;
 
5446
}
 
5447
_ACEOF
 
5448
if ac_fn_c_try_link "$LINENO"; then :
 
5449
  supported=yes
 
5450
else
 
5451
  supported=no
 
5452
fi
 
5453
rm -f core conftest.err conftest.$ac_objext \
 
5454
    conftest$ac_exeext conftest.$ac_ext
 
5455
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5456
$as_echo "$supported" >&6; }
 
5457
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5458
 
 
5459
                if test "$supported" = "yes" ; then
 
5460
                        BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
 
5461
                        found="yes"
 
5462
                fi
 
5463
        fi
 
5464
 
 
5465
 
 
5466
 
 
5467
# This chunk adds additional warnings that could catch undesired effects.
 
5468
 
 
5469
 
 
5470
 
 
5471
 
 
5472
 
 
5473
xorg_testset_save_CFLAGS="$CFLAGS"
 
5474
 
 
5475
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5476
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5477
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5478
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5479
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5480
/* end confdefs.h.  */
 
5481
int i;
 
5482
_ACEOF
 
5483
if ac_fn_c_try_compile "$LINENO"; then :
 
5484
  xorg_testset_unknown_warning_option=yes
 
5485
else
 
5486
  xorg_testset_unknown_warning_option=no
 
5487
fi
 
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5489
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5490
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5491
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5492
fi
 
5493
 
 
5494
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5495
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5496
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5497
        fi
 
5498
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5499
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5500
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5501
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5502
/* end confdefs.h.  */
 
5503
int i;
 
5504
_ACEOF
 
5505
if ac_fn_c_try_compile "$LINENO"; then :
 
5506
  xorg_testset_unused_command_line_argument=yes
 
5507
else
 
5508
  xorg_testset_unused_command_line_argument=no
 
5509
fi
 
5510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5511
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5512
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5513
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5514
fi
 
5515
 
 
5516
found="no"
 
5517
 
 
5518
        if test $found = "no" ; then
 
5519
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5520
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5521
                fi
 
5522
 
 
5523
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5524
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5525
                fi
 
5526
 
 
5527
                CFLAGS="$CFLAGS -Wunused"
 
5528
 
 
5529
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
 
5530
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
 
5531
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5532
/* end confdefs.h.  */
 
5533
int i;
 
5534
int
 
5535
main ()
 
5536
{
 
5537
 
 
5538
  ;
 
5539
  return 0;
 
5540
}
 
5541
_ACEOF
 
5542
if ac_fn_c_try_link "$LINENO"; then :
 
5543
  supported=yes
 
5544
else
 
5545
  supported=no
 
5546
fi
 
5547
rm -f core conftest.err conftest.$ac_objext \
 
5548
    conftest$ac_exeext conftest.$ac_ext
 
5549
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5550
$as_echo "$supported" >&6; }
 
5551
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5552
 
 
5553
                if test "$supported" = "yes" ; then
 
5554
                        BASE_CFLAGS="$BASE_CFLAGS -Wunused"
 
5555
                        found="yes"
 
5556
                fi
 
5557
        fi
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
 
 
5565
xorg_testset_save_CFLAGS="$CFLAGS"
 
5566
 
 
5567
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5568
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5569
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5570
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5571
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5572
/* end confdefs.h.  */
 
5573
int i;
 
5574
_ACEOF
 
5575
if ac_fn_c_try_compile "$LINENO"; then :
 
5576
  xorg_testset_unknown_warning_option=yes
 
5577
else
 
5578
  xorg_testset_unknown_warning_option=no
 
5579
fi
 
5580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5581
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5582
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5583
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5584
fi
 
5585
 
 
5586
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5587
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5588
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5589
        fi
 
5590
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5591
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5592
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5593
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5594
/* end confdefs.h.  */
 
5595
int i;
 
5596
_ACEOF
 
5597
if ac_fn_c_try_compile "$LINENO"; then :
 
5598
  xorg_testset_unused_command_line_argument=yes
 
5599
else
 
5600
  xorg_testset_unused_command_line_argument=no
 
5601
fi
 
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5603
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5604
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5605
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5606
fi
 
5607
 
 
5608
found="no"
 
5609
 
 
5610
        if test $found = "no" ; then
 
5611
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5612
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5613
                fi
 
5614
 
 
5615
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5616
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5617
                fi
 
5618
 
 
5619
                CFLAGS="$CFLAGS -Wuninitialized"
 
5620
 
 
5621
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
 
5622
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
 
5623
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5624
/* end confdefs.h.  */
 
5625
int i;
 
5626
int
 
5627
main ()
 
5628
{
 
5629
 
 
5630
  ;
 
5631
  return 0;
 
5632
}
 
5633
_ACEOF
 
5634
if ac_fn_c_try_link "$LINENO"; then :
 
5635
  supported=yes
 
5636
else
 
5637
  supported=no
 
5638
fi
 
5639
rm -f core conftest.err conftest.$ac_objext \
 
5640
    conftest$ac_exeext conftest.$ac_ext
 
5641
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5642
$as_echo "$supported" >&6; }
 
5643
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5644
 
 
5645
                if test "$supported" = "yes" ; then
 
5646
                        BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
 
5647
                        found="yes"
 
5648
                fi
 
5649
        fi
 
5650
 
 
5651
 
 
5652
 
 
5653
 
 
5654
 
 
5655
 
 
5656
 
 
5657
xorg_testset_save_CFLAGS="$CFLAGS"
 
5658
 
 
5659
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5660
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5661
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5662
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5663
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5664
/* end confdefs.h.  */
 
5665
int i;
 
5666
_ACEOF
 
5667
if ac_fn_c_try_compile "$LINENO"; then :
 
5668
  xorg_testset_unknown_warning_option=yes
 
5669
else
 
5670
  xorg_testset_unknown_warning_option=no
 
5671
fi
 
5672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5673
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5674
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5675
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5676
fi
 
5677
 
 
5678
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5679
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5680
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5681
        fi
 
5682
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5683
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5684
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5685
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5686
/* end confdefs.h.  */
 
5687
int i;
 
5688
_ACEOF
 
5689
if ac_fn_c_try_compile "$LINENO"; then :
 
5690
  xorg_testset_unused_command_line_argument=yes
 
5691
else
 
5692
  xorg_testset_unused_command_line_argument=no
 
5693
fi
 
5694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5695
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5696
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5697
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5698
fi
 
5699
 
 
5700
found="no"
 
5701
 
 
5702
        if test $found = "no" ; then
 
5703
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5704
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5705
                fi
 
5706
 
 
5707
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5708
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5709
                fi
 
5710
 
 
5711
                CFLAGS="$CFLAGS -Wshadow"
 
5712
 
 
5713
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
 
5714
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
 
5715
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5716
/* end confdefs.h.  */
 
5717
int i;
 
5718
int
 
5719
main ()
 
5720
{
 
5721
 
 
5722
  ;
 
5723
  return 0;
 
5724
}
 
5725
_ACEOF
 
5726
if ac_fn_c_try_link "$LINENO"; then :
 
5727
  supported=yes
 
5728
else
 
5729
  supported=no
 
5730
fi
 
5731
rm -f core conftest.err conftest.$ac_objext \
 
5732
    conftest$ac_exeext conftest.$ac_ext
 
5733
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5734
$as_echo "$supported" >&6; }
 
5735
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5736
 
 
5737
                if test "$supported" = "yes" ; then
 
5738
                        BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
 
5739
                        found="yes"
 
5740
                fi
 
5741
        fi
 
5742
 
 
5743
 
 
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
xorg_testset_save_CFLAGS="$CFLAGS"
 
5750
 
 
5751
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5752
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5753
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5754
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5755
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5756
/* end confdefs.h.  */
 
5757
int i;
 
5758
_ACEOF
 
5759
if ac_fn_c_try_compile "$LINENO"; then :
 
5760
  xorg_testset_unknown_warning_option=yes
 
5761
else
 
5762
  xorg_testset_unknown_warning_option=no
 
5763
fi
 
5764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5765
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5766
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5767
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5768
fi
 
5769
 
 
5770
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5771
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5772
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5773
        fi
 
5774
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5775
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5776
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5777
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5778
/* end confdefs.h.  */
 
5779
int i;
 
5780
_ACEOF
 
5781
if ac_fn_c_try_compile "$LINENO"; then :
 
5782
  xorg_testset_unused_command_line_argument=yes
 
5783
else
 
5784
  xorg_testset_unused_command_line_argument=no
 
5785
fi
 
5786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5787
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5788
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5789
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5790
fi
 
5791
 
 
5792
found="no"
 
5793
 
 
5794
        if test $found = "no" ; then
 
5795
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5796
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5797
                fi
 
5798
 
 
5799
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5800
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5801
                fi
 
5802
 
 
5803
                CFLAGS="$CFLAGS -Wcast-qual"
 
5804
 
 
5805
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
 
5806
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
 
5807
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5808
/* end confdefs.h.  */
 
5809
int i;
 
5810
int
 
5811
main ()
 
5812
{
 
5813
 
 
5814
  ;
 
5815
  return 0;
 
5816
}
 
5817
_ACEOF
 
5818
if ac_fn_c_try_link "$LINENO"; then :
 
5819
  supported=yes
 
5820
else
 
5821
  supported=no
 
5822
fi
 
5823
rm -f core conftest.err conftest.$ac_objext \
 
5824
    conftest$ac_exeext conftest.$ac_ext
 
5825
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5826
$as_echo "$supported" >&6; }
 
5827
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5828
 
 
5829
                if test "$supported" = "yes" ; then
 
5830
                        BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
 
5831
                        found="yes"
 
5832
                fi
 
5833
        fi
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
 
 
5840
 
 
5841
xorg_testset_save_CFLAGS="$CFLAGS"
 
5842
 
 
5843
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5844
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5845
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5846
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5847
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5848
/* end confdefs.h.  */
 
5849
int i;
 
5850
_ACEOF
 
5851
if ac_fn_c_try_compile "$LINENO"; then :
 
5852
  xorg_testset_unknown_warning_option=yes
 
5853
else
 
5854
  xorg_testset_unknown_warning_option=no
 
5855
fi
 
5856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5857
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5858
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5859
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5860
fi
 
5861
 
 
5862
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5863
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5864
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5865
        fi
 
5866
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5867
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5868
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5869
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5870
/* end confdefs.h.  */
 
5871
int i;
 
5872
_ACEOF
 
5873
if ac_fn_c_try_compile "$LINENO"; then :
 
5874
  xorg_testset_unused_command_line_argument=yes
 
5875
else
 
5876
  xorg_testset_unused_command_line_argument=no
 
5877
fi
 
5878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5879
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5880
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5881
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5882
fi
 
5883
 
 
5884
found="no"
 
5885
 
 
5886
        if test $found = "no" ; then
 
5887
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5888
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5889
                fi
 
5890
 
 
5891
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5892
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5893
                fi
 
5894
 
 
5895
                CFLAGS="$CFLAGS -Wmissing-noreturn"
 
5896
 
 
5897
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
 
5898
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
 
5899
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5900
/* end confdefs.h.  */
 
5901
int i;
 
5902
int
 
5903
main ()
 
5904
{
 
5905
 
 
5906
  ;
 
5907
  return 0;
 
5908
}
 
5909
_ACEOF
 
5910
if ac_fn_c_try_link "$LINENO"; then :
 
5911
  supported=yes
 
5912
else
 
5913
  supported=no
 
5914
fi
 
5915
rm -f core conftest.err conftest.$ac_objext \
 
5916
    conftest$ac_exeext conftest.$ac_ext
 
5917
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5918
$as_echo "$supported" >&6; }
 
5919
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5920
 
 
5921
                if test "$supported" = "yes" ; then
 
5922
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
 
5923
                        found="yes"
 
5924
                fi
 
5925
        fi
 
5926
 
 
5927
 
 
5928
 
 
5929
 
 
5930
 
 
5931
 
 
5932
 
 
5933
xorg_testset_save_CFLAGS="$CFLAGS"
 
5934
 
 
5935
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
5936
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5937
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5938
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5939
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5940
/* end confdefs.h.  */
 
5941
int i;
 
5942
_ACEOF
 
5943
if ac_fn_c_try_compile "$LINENO"; then :
 
5944
  xorg_testset_unknown_warning_option=yes
 
5945
else
 
5946
  xorg_testset_unknown_warning_option=no
 
5947
fi
 
5948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5949
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
5950
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
5951
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5952
fi
 
5953
 
 
5954
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
5955
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5956
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5957
        fi
 
5958
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5959
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5960
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5961
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5962
/* end confdefs.h.  */
 
5963
int i;
 
5964
_ACEOF
 
5965
if ac_fn_c_try_compile "$LINENO"; then :
 
5966
  xorg_testset_unused_command_line_argument=yes
 
5967
else
 
5968
  xorg_testset_unused_command_line_argument=no
 
5969
fi
 
5970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5971
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
5972
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
5973
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5974
fi
 
5975
 
 
5976
found="no"
 
5977
 
 
5978
        if test $found = "no" ; then
 
5979
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
5980
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5981
                fi
 
5982
 
 
5983
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
5984
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5985
                fi
 
5986
 
 
5987
                CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
5988
 
 
5989
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
 
5990
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
 
5991
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5992
/* end confdefs.h.  */
 
5993
int i;
 
5994
int
 
5995
main ()
 
5996
{
 
5997
 
 
5998
  ;
 
5999
  return 0;
 
6000
}
 
6001
_ACEOF
 
6002
if ac_fn_c_try_link "$LINENO"; then :
 
6003
  supported=yes
 
6004
else
 
6005
  supported=no
 
6006
fi
 
6007
rm -f core conftest.err conftest.$ac_objext \
 
6008
    conftest$ac_exeext conftest.$ac_ext
 
6009
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6010
$as_echo "$supported" >&6; }
 
6011
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6012
 
 
6013
                if test "$supported" = "yes" ; then
 
6014
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
 
6015
                        found="yes"
 
6016
                fi
 
6017
        fi
 
6018
 
 
6019
 
 
6020
 
 
6021
 
 
6022
 
 
6023
 
 
6024
 
 
6025
xorg_testset_save_CFLAGS="$CFLAGS"
 
6026
 
 
6027
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6028
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6029
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6030
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6031
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6032
/* end confdefs.h.  */
 
6033
int i;
 
6034
_ACEOF
 
6035
if ac_fn_c_try_compile "$LINENO"; then :
 
6036
  xorg_testset_unknown_warning_option=yes
 
6037
else
 
6038
  xorg_testset_unknown_warning_option=no
 
6039
fi
 
6040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6041
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6042
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6043
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6044
fi
 
6045
 
 
6046
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6047
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6048
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6049
        fi
 
6050
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6051
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6052
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6053
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6054
/* end confdefs.h.  */
 
6055
int i;
 
6056
_ACEOF
 
6057
if ac_fn_c_try_compile "$LINENO"; then :
 
6058
  xorg_testset_unused_command_line_argument=yes
 
6059
else
 
6060
  xorg_testset_unused_command_line_argument=no
 
6061
fi
 
6062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6063
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6064
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6065
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6066
fi
 
6067
 
 
6068
found="no"
 
6069
 
 
6070
        if test $found = "no" ; then
 
6071
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6072
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6073
                fi
 
6074
 
 
6075
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6076
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6077
                fi
 
6078
 
 
6079
                CFLAGS="$CFLAGS -Wredundant-decls"
 
6080
 
 
6081
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
 
6082
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
 
6083
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6084
/* end confdefs.h.  */
 
6085
int i;
 
6086
int
 
6087
main ()
 
6088
{
 
6089
 
 
6090
  ;
 
6091
  return 0;
 
6092
}
 
6093
_ACEOF
 
6094
if ac_fn_c_try_link "$LINENO"; then :
 
6095
  supported=yes
 
6096
else
 
6097
  supported=no
 
6098
fi
 
6099
rm -f core conftest.err conftest.$ac_objext \
 
6100
    conftest$ac_exeext conftest.$ac_ext
 
6101
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6102
$as_echo "$supported" >&6; }
 
6103
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6104
 
 
6105
                if test "$supported" = "yes" ; then
 
6106
                        BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
 
6107
                        found="yes"
 
6108
                fi
 
6109
        fi
 
6110
 
 
6111
 
 
6112
 
 
6113
# These are currently disabled because they are noisy.  They will be enabled
 
6114
# in the future once the codebase is sufficiently modernized to silence
 
6115
# them.  For now, I don't want them to drown out the other warnings.
 
6116
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
 
6117
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
 
6118
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
 
6119
 
 
6120
# Turn some warnings into errors, so we don't accidently get successful builds
 
6121
# when there are problems that should be fixed.
 
6122
 
 
6123
if test "x$SELECTIVE_WERROR" = "xyes" ; then
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
xorg_testset_save_CFLAGS="$CFLAGS"
 
6130
 
 
6131
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6132
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6133
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6134
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6135
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6136
/* end confdefs.h.  */
 
6137
int i;
 
6138
_ACEOF
 
6139
if ac_fn_c_try_compile "$LINENO"; then :
 
6140
  xorg_testset_unknown_warning_option=yes
 
6141
else
 
6142
  xorg_testset_unknown_warning_option=no
 
6143
fi
 
6144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6145
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6146
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6147
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6148
fi
 
6149
 
 
6150
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6151
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6152
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6153
        fi
 
6154
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6155
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6156
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6157
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6158
/* end confdefs.h.  */
 
6159
int i;
 
6160
_ACEOF
 
6161
if ac_fn_c_try_compile "$LINENO"; then :
 
6162
  xorg_testset_unused_command_line_argument=yes
 
6163
else
 
6164
  xorg_testset_unused_command_line_argument=no
 
6165
fi
 
6166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6167
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6168
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6169
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6170
fi
 
6171
 
 
6172
found="no"
 
6173
 
 
6174
        if test $found = "no" ; then
 
6175
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6176
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6177
                fi
 
6178
 
 
6179
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6180
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6181
                fi
 
6182
 
 
6183
                CFLAGS="$CFLAGS -Werror=implicit"
 
6184
 
 
6185
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
 
6186
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
 
6187
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6188
/* end confdefs.h.  */
 
6189
int i;
 
6190
int
 
6191
main ()
 
6192
{
 
6193
 
 
6194
  ;
 
6195
  return 0;
 
6196
}
 
6197
_ACEOF
 
6198
if ac_fn_c_try_link "$LINENO"; then :
 
6199
  supported=yes
 
6200
else
 
6201
  supported=no
 
6202
fi
 
6203
rm -f core conftest.err conftest.$ac_objext \
 
6204
    conftest$ac_exeext conftest.$ac_ext
 
6205
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6206
$as_echo "$supported" >&6; }
 
6207
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6208
 
 
6209
                if test "$supported" = "yes" ; then
 
6210
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
 
6211
                        found="yes"
 
6212
                fi
 
6213
        fi
 
6214
 
 
6215
        if test $found = "no" ; then
 
6216
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6217
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6218
                fi
 
6219
 
 
6220
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6221
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6222
                fi
 
6223
 
 
6224
                CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
6225
 
 
6226
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
 
6227
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
 
6228
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6229
/* end confdefs.h.  */
 
6230
int i;
 
6231
int
 
6232
main ()
 
6233
{
 
6234
 
 
6235
  ;
 
6236
  return 0;
 
6237
}
 
6238
_ACEOF
 
6239
if ac_fn_c_try_link "$LINENO"; then :
 
6240
  supported=yes
 
6241
else
 
6242
  supported=no
 
6243
fi
 
6244
rm -f core conftest.err conftest.$ac_objext \
 
6245
    conftest$ac_exeext conftest.$ac_ext
 
6246
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6247
$as_echo "$supported" >&6; }
 
6248
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6249
 
 
6250
                if test "$supported" = "yes" ; then
 
6251
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
6252
                        found="yes"
 
6253
                fi
 
6254
        fi
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
xorg_testset_save_CFLAGS="$CFLAGS"
 
6263
 
 
6264
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6265
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6266
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6267
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6268
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6269
/* end confdefs.h.  */
 
6270
int i;
 
6271
_ACEOF
 
6272
if ac_fn_c_try_compile "$LINENO"; then :
 
6273
  xorg_testset_unknown_warning_option=yes
 
6274
else
 
6275
  xorg_testset_unknown_warning_option=no
 
6276
fi
 
6277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6278
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6279
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6280
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6281
fi
 
6282
 
 
6283
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6284
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6285
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6286
        fi
 
6287
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6288
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6289
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6290
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6291
/* end confdefs.h.  */
 
6292
int i;
 
6293
_ACEOF
 
6294
if ac_fn_c_try_compile "$LINENO"; then :
 
6295
  xorg_testset_unused_command_line_argument=yes
 
6296
else
 
6297
  xorg_testset_unused_command_line_argument=no
 
6298
fi
 
6299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6300
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6301
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6302
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6303
fi
 
6304
 
 
6305
found="no"
 
6306
 
 
6307
        if test $found = "no" ; then
 
6308
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6309
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6310
                fi
 
6311
 
 
6312
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6313
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6314
                fi
 
6315
 
 
6316
                CFLAGS="$CFLAGS -Werror=nonnull"
 
6317
 
 
6318
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
 
6319
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
 
6320
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6321
/* end confdefs.h.  */
 
6322
int i;
 
6323
int
 
6324
main ()
 
6325
{
 
6326
 
 
6327
  ;
 
6328
  return 0;
 
6329
}
 
6330
_ACEOF
 
6331
if ac_fn_c_try_link "$LINENO"; then :
 
6332
  supported=yes
 
6333
else
 
6334
  supported=no
 
6335
fi
 
6336
rm -f core conftest.err conftest.$ac_objext \
 
6337
    conftest$ac_exeext conftest.$ac_ext
 
6338
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6339
$as_echo "$supported" >&6; }
 
6340
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6341
 
 
6342
                if test "$supported" = "yes" ; then
 
6343
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
 
6344
                        found="yes"
 
6345
                fi
 
6346
        fi
 
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
6352
 
 
6353
 
 
6354
xorg_testset_save_CFLAGS="$CFLAGS"
 
6355
 
 
6356
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6357
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6358
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6359
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6360
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6361
/* end confdefs.h.  */
 
6362
int i;
 
6363
_ACEOF
 
6364
if ac_fn_c_try_compile "$LINENO"; then :
 
6365
  xorg_testset_unknown_warning_option=yes
 
6366
else
 
6367
  xorg_testset_unknown_warning_option=no
 
6368
fi
 
6369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6370
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6371
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6372
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6373
fi
 
6374
 
 
6375
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6376
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6377
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6378
        fi
 
6379
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6380
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6381
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6382
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6383
/* end confdefs.h.  */
 
6384
int i;
 
6385
_ACEOF
 
6386
if ac_fn_c_try_compile "$LINENO"; then :
 
6387
  xorg_testset_unused_command_line_argument=yes
 
6388
else
 
6389
  xorg_testset_unused_command_line_argument=no
 
6390
fi
 
6391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6392
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6393
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6394
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6395
fi
 
6396
 
 
6397
found="no"
 
6398
 
 
6399
        if test $found = "no" ; then
 
6400
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6401
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6402
                fi
 
6403
 
 
6404
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6405
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6406
                fi
 
6407
 
 
6408
                CFLAGS="$CFLAGS -Werror=init-self"
 
6409
 
 
6410
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
 
6411
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
 
6412
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6413
/* end confdefs.h.  */
 
6414
int i;
 
6415
int
 
6416
main ()
 
6417
{
 
6418
 
 
6419
  ;
 
6420
  return 0;
 
6421
}
 
6422
_ACEOF
 
6423
if ac_fn_c_try_link "$LINENO"; then :
 
6424
  supported=yes
 
6425
else
 
6426
  supported=no
 
6427
fi
 
6428
rm -f core conftest.err conftest.$ac_objext \
 
6429
    conftest$ac_exeext conftest.$ac_ext
 
6430
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6431
$as_echo "$supported" >&6; }
 
6432
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6433
 
 
6434
                if test "$supported" = "yes" ; then
 
6435
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
 
6436
                        found="yes"
 
6437
                fi
 
6438
        fi
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
xorg_testset_save_CFLAGS="$CFLAGS"
 
6447
 
 
6448
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6449
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6450
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6451
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6452
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6453
/* end confdefs.h.  */
 
6454
int i;
 
6455
_ACEOF
 
6456
if ac_fn_c_try_compile "$LINENO"; then :
 
6457
  xorg_testset_unknown_warning_option=yes
 
6458
else
 
6459
  xorg_testset_unknown_warning_option=no
 
6460
fi
 
6461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6462
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6463
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6464
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6465
fi
 
6466
 
 
6467
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6468
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6469
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6470
        fi
 
6471
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6472
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6473
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6474
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6475
/* end confdefs.h.  */
 
6476
int i;
 
6477
_ACEOF
 
6478
if ac_fn_c_try_compile "$LINENO"; then :
 
6479
  xorg_testset_unused_command_line_argument=yes
 
6480
else
 
6481
  xorg_testset_unused_command_line_argument=no
 
6482
fi
 
6483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6484
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6485
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6486
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6487
fi
 
6488
 
 
6489
found="no"
 
6490
 
 
6491
        if test $found = "no" ; then
 
6492
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6493
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6494
                fi
 
6495
 
 
6496
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6497
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6498
                fi
 
6499
 
 
6500
                CFLAGS="$CFLAGS -Werror=main"
 
6501
 
 
6502
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
 
6503
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
 
6504
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6505
/* end confdefs.h.  */
 
6506
int i;
 
6507
int
 
6508
main ()
 
6509
{
 
6510
 
 
6511
  ;
 
6512
  return 0;
 
6513
}
 
6514
_ACEOF
 
6515
if ac_fn_c_try_link "$LINENO"; then :
 
6516
  supported=yes
 
6517
else
 
6518
  supported=no
 
6519
fi
 
6520
rm -f core conftest.err conftest.$ac_objext \
 
6521
    conftest$ac_exeext conftest.$ac_ext
 
6522
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6523
$as_echo "$supported" >&6; }
 
6524
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6525
 
 
6526
                if test "$supported" = "yes" ; then
 
6527
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
 
6528
                        found="yes"
 
6529
                fi
 
6530
        fi
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
 
 
6537
 
 
6538
xorg_testset_save_CFLAGS="$CFLAGS"
 
6539
 
 
6540
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6541
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6542
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6543
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6544
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6545
/* end confdefs.h.  */
 
6546
int i;
 
6547
_ACEOF
 
6548
if ac_fn_c_try_compile "$LINENO"; then :
 
6549
  xorg_testset_unknown_warning_option=yes
 
6550
else
 
6551
  xorg_testset_unknown_warning_option=no
 
6552
fi
 
6553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6554
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6555
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6556
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6557
fi
 
6558
 
 
6559
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6560
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6561
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6562
        fi
 
6563
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6564
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6565
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6566
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6567
/* end confdefs.h.  */
 
6568
int i;
 
6569
_ACEOF
 
6570
if ac_fn_c_try_compile "$LINENO"; then :
 
6571
  xorg_testset_unused_command_line_argument=yes
 
6572
else
 
6573
  xorg_testset_unused_command_line_argument=no
 
6574
fi
 
6575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6576
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6577
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6578
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6579
fi
 
6580
 
 
6581
found="no"
 
6582
 
 
6583
        if test $found = "no" ; then
 
6584
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6585
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6586
                fi
 
6587
 
 
6588
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6589
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6590
                fi
 
6591
 
 
6592
                CFLAGS="$CFLAGS -Werror=missing-braces"
 
6593
 
 
6594
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
 
6595
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
 
6596
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6597
/* end confdefs.h.  */
 
6598
int i;
 
6599
int
 
6600
main ()
 
6601
{
 
6602
 
 
6603
  ;
 
6604
  return 0;
 
6605
}
 
6606
_ACEOF
 
6607
if ac_fn_c_try_link "$LINENO"; then :
 
6608
  supported=yes
 
6609
else
 
6610
  supported=no
 
6611
fi
 
6612
rm -f core conftest.err conftest.$ac_objext \
 
6613
    conftest$ac_exeext conftest.$ac_ext
 
6614
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6615
$as_echo "$supported" >&6; }
 
6616
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6617
 
 
6618
                if test "$supported" = "yes" ; then
 
6619
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
 
6620
                        found="yes"
 
6621
                fi
 
6622
        fi
 
6623
 
 
6624
 
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
xorg_testset_save_CFLAGS="$CFLAGS"
 
6631
 
 
6632
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6633
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6634
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6635
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6636
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6637
/* end confdefs.h.  */
 
6638
int i;
 
6639
_ACEOF
 
6640
if ac_fn_c_try_compile "$LINENO"; then :
 
6641
  xorg_testset_unknown_warning_option=yes
 
6642
else
 
6643
  xorg_testset_unknown_warning_option=no
 
6644
fi
 
6645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6646
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6647
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6648
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6649
fi
 
6650
 
 
6651
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6652
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6653
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6654
        fi
 
6655
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6656
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6657
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6658
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6659
/* end confdefs.h.  */
 
6660
int i;
 
6661
_ACEOF
 
6662
if ac_fn_c_try_compile "$LINENO"; then :
 
6663
  xorg_testset_unused_command_line_argument=yes
 
6664
else
 
6665
  xorg_testset_unused_command_line_argument=no
 
6666
fi
 
6667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6668
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6669
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6670
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6671
fi
 
6672
 
 
6673
found="no"
 
6674
 
 
6675
        if test $found = "no" ; then
 
6676
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6677
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6678
                fi
 
6679
 
 
6680
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6681
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6682
                fi
 
6683
 
 
6684
                CFLAGS="$CFLAGS -Werror=sequence-point"
 
6685
 
 
6686
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
 
6687
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
 
6688
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6689
/* end confdefs.h.  */
 
6690
int i;
 
6691
int
 
6692
main ()
 
6693
{
 
6694
 
 
6695
  ;
 
6696
  return 0;
 
6697
}
 
6698
_ACEOF
 
6699
if ac_fn_c_try_link "$LINENO"; then :
 
6700
  supported=yes
 
6701
else
 
6702
  supported=no
 
6703
fi
 
6704
rm -f core conftest.err conftest.$ac_objext \
 
6705
    conftest$ac_exeext conftest.$ac_ext
 
6706
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6707
$as_echo "$supported" >&6; }
 
6708
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6709
 
 
6710
                if test "$supported" = "yes" ; then
 
6711
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
 
6712
                        found="yes"
 
6713
                fi
 
6714
        fi
 
6715
 
 
6716
 
 
6717
 
 
6718
 
 
6719
 
 
6720
 
 
6721
 
 
6722
xorg_testset_save_CFLAGS="$CFLAGS"
 
6723
 
 
6724
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6725
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6726
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6727
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6728
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6729
/* end confdefs.h.  */
 
6730
int i;
 
6731
_ACEOF
 
6732
if ac_fn_c_try_compile "$LINENO"; then :
 
6733
  xorg_testset_unknown_warning_option=yes
 
6734
else
 
6735
  xorg_testset_unknown_warning_option=no
 
6736
fi
 
6737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6738
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6739
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6740
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6741
fi
 
6742
 
 
6743
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6744
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6745
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6746
        fi
 
6747
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6748
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6749
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6750
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6751
/* end confdefs.h.  */
 
6752
int i;
 
6753
_ACEOF
 
6754
if ac_fn_c_try_compile "$LINENO"; then :
 
6755
  xorg_testset_unused_command_line_argument=yes
 
6756
else
 
6757
  xorg_testset_unused_command_line_argument=no
 
6758
fi
 
6759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6760
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6761
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6762
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6763
fi
 
6764
 
 
6765
found="no"
 
6766
 
 
6767
        if test $found = "no" ; then
 
6768
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6769
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6770
                fi
 
6771
 
 
6772
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6773
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6774
                fi
 
6775
 
 
6776
                CFLAGS="$CFLAGS -Werror=return-type"
 
6777
 
 
6778
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
 
6779
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
 
6780
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6781
/* end confdefs.h.  */
 
6782
int i;
 
6783
int
 
6784
main ()
 
6785
{
 
6786
 
 
6787
  ;
 
6788
  return 0;
 
6789
}
 
6790
_ACEOF
 
6791
if ac_fn_c_try_link "$LINENO"; then :
 
6792
  supported=yes
 
6793
else
 
6794
  supported=no
 
6795
fi
 
6796
rm -f core conftest.err conftest.$ac_objext \
 
6797
    conftest$ac_exeext conftest.$ac_ext
 
6798
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6799
$as_echo "$supported" >&6; }
 
6800
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6801
 
 
6802
                if test "$supported" = "yes" ; then
 
6803
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
 
6804
                        found="yes"
 
6805
                fi
 
6806
        fi
 
6807
 
 
6808
        if test $found = "no" ; then
 
6809
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6810
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6811
                fi
 
6812
 
 
6813
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6814
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6815
                fi
 
6816
 
 
6817
                CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
6818
 
 
6819
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
 
6820
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
 
6821
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6822
/* end confdefs.h.  */
 
6823
int i;
 
6824
int
 
6825
main ()
 
6826
{
 
6827
 
 
6828
  ;
 
6829
  return 0;
 
6830
}
 
6831
_ACEOF
 
6832
if ac_fn_c_try_link "$LINENO"; then :
 
6833
  supported=yes
 
6834
else
 
6835
  supported=no
 
6836
fi
 
6837
rm -f core conftest.err conftest.$ac_objext \
 
6838
    conftest$ac_exeext conftest.$ac_ext
 
6839
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6840
$as_echo "$supported" >&6; }
 
6841
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6842
 
 
6843
                if test "$supported" = "yes" ; then
 
6844
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
6845
                        found="yes"
 
6846
                fi
 
6847
        fi
 
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
xorg_testset_save_CFLAGS="$CFLAGS"
 
6856
 
 
6857
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6858
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6859
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6860
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6861
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6862
/* end confdefs.h.  */
 
6863
int i;
 
6864
_ACEOF
 
6865
if ac_fn_c_try_compile "$LINENO"; then :
 
6866
  xorg_testset_unknown_warning_option=yes
 
6867
else
 
6868
  xorg_testset_unknown_warning_option=no
 
6869
fi
 
6870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6871
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6872
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6873
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6874
fi
 
6875
 
 
6876
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6877
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6878
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6879
        fi
 
6880
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6881
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6882
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6883
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6884
/* end confdefs.h.  */
 
6885
int i;
 
6886
_ACEOF
 
6887
if ac_fn_c_try_compile "$LINENO"; then :
 
6888
  xorg_testset_unused_command_line_argument=yes
 
6889
else
 
6890
  xorg_testset_unused_command_line_argument=no
 
6891
fi
 
6892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6893
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6894
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6895
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6896
fi
 
6897
 
 
6898
found="no"
 
6899
 
 
6900
        if test $found = "no" ; then
 
6901
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6902
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6903
                fi
 
6904
 
 
6905
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6906
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6907
                fi
 
6908
 
 
6909
                CFLAGS="$CFLAGS -Werror=trigraphs"
 
6910
 
 
6911
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
 
6912
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
 
6913
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6914
/* end confdefs.h.  */
 
6915
int i;
 
6916
int
 
6917
main ()
 
6918
{
 
6919
 
 
6920
  ;
 
6921
  return 0;
 
6922
}
 
6923
_ACEOF
 
6924
if ac_fn_c_try_link "$LINENO"; then :
 
6925
  supported=yes
 
6926
else
 
6927
  supported=no
 
6928
fi
 
6929
rm -f core conftest.err conftest.$ac_objext \
 
6930
    conftest$ac_exeext conftest.$ac_ext
 
6931
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6932
$as_echo "$supported" >&6; }
 
6933
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6934
 
 
6935
                if test "$supported" = "yes" ; then
 
6936
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
 
6937
                        found="yes"
 
6938
                fi
 
6939
        fi
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
xorg_testset_save_CFLAGS="$CFLAGS"
 
6948
 
 
6949
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
6950
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6951
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6952
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6953
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6954
/* end confdefs.h.  */
 
6955
int i;
 
6956
_ACEOF
 
6957
if ac_fn_c_try_compile "$LINENO"; then :
 
6958
  xorg_testset_unknown_warning_option=yes
 
6959
else
 
6960
  xorg_testset_unknown_warning_option=no
 
6961
fi
 
6962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6963
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
6964
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
6965
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6966
fi
 
6967
 
 
6968
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
6969
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6970
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6971
        fi
 
6972
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6973
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6974
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6975
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6976
/* end confdefs.h.  */
 
6977
int i;
 
6978
_ACEOF
 
6979
if ac_fn_c_try_compile "$LINENO"; then :
 
6980
  xorg_testset_unused_command_line_argument=yes
 
6981
else
 
6982
  xorg_testset_unused_command_line_argument=no
 
6983
fi
 
6984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6985
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
6986
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
6987
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6988
fi
 
6989
 
 
6990
found="no"
 
6991
 
 
6992
        if test $found = "no" ; then
 
6993
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
6994
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6995
                fi
 
6996
 
 
6997
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
6998
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6999
                fi
 
7000
 
 
7001
                CFLAGS="$CFLAGS -Werror=array-bounds"
 
7002
 
 
7003
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
 
7004
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
 
7005
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7006
/* end confdefs.h.  */
 
7007
int i;
 
7008
int
 
7009
main ()
 
7010
{
 
7011
 
 
7012
  ;
 
7013
  return 0;
 
7014
}
 
7015
_ACEOF
 
7016
if ac_fn_c_try_link "$LINENO"; then :
 
7017
  supported=yes
 
7018
else
 
7019
  supported=no
 
7020
fi
 
7021
rm -f core conftest.err conftest.$ac_objext \
 
7022
    conftest$ac_exeext conftest.$ac_ext
 
7023
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7024
$as_echo "$supported" >&6; }
 
7025
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7026
 
 
7027
                if test "$supported" = "yes" ; then
 
7028
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
 
7029
                        found="yes"
 
7030
                fi
 
7031
        fi
 
7032
 
 
7033
 
 
7034
 
 
7035
 
 
7036
 
 
7037
 
 
7038
 
 
7039
xorg_testset_save_CFLAGS="$CFLAGS"
 
7040
 
 
7041
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7042
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7043
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7044
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7045
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7046
/* end confdefs.h.  */
 
7047
int i;
 
7048
_ACEOF
 
7049
if ac_fn_c_try_compile "$LINENO"; then :
 
7050
  xorg_testset_unknown_warning_option=yes
 
7051
else
 
7052
  xorg_testset_unknown_warning_option=no
 
7053
fi
 
7054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7055
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7056
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7057
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7058
fi
 
7059
 
 
7060
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7061
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7062
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7063
        fi
 
7064
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7065
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7066
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7067
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7068
/* end confdefs.h.  */
 
7069
int i;
 
7070
_ACEOF
 
7071
if ac_fn_c_try_compile "$LINENO"; then :
 
7072
  xorg_testset_unused_command_line_argument=yes
 
7073
else
 
7074
  xorg_testset_unused_command_line_argument=no
 
7075
fi
 
7076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7077
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7078
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7079
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7080
fi
 
7081
 
 
7082
found="no"
 
7083
 
 
7084
        if test $found = "no" ; then
 
7085
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7086
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7087
                fi
 
7088
 
 
7089
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7090
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7091
                fi
 
7092
 
 
7093
                CFLAGS="$CFLAGS -Werror=write-strings"
 
7094
 
 
7095
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
 
7096
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
 
7097
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7098
/* end confdefs.h.  */
 
7099
int i;
 
7100
int
 
7101
main ()
 
7102
{
 
7103
 
 
7104
  ;
 
7105
  return 0;
 
7106
}
 
7107
_ACEOF
 
7108
if ac_fn_c_try_link "$LINENO"; then :
 
7109
  supported=yes
 
7110
else
 
7111
  supported=no
 
7112
fi
 
7113
rm -f core conftest.err conftest.$ac_objext \
 
7114
    conftest$ac_exeext conftest.$ac_ext
 
7115
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7116
$as_echo "$supported" >&6; }
 
7117
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7118
 
 
7119
                if test "$supported" = "yes" ; then
 
7120
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
 
7121
                        found="yes"
 
7122
                fi
 
7123
        fi
 
7124
 
 
7125
 
 
7126
 
 
7127
 
 
7128
 
 
7129
 
 
7130
 
 
7131
xorg_testset_save_CFLAGS="$CFLAGS"
 
7132
 
 
7133
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7134
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7135
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7136
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7137
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7138
/* end confdefs.h.  */
 
7139
int i;
 
7140
_ACEOF
 
7141
if ac_fn_c_try_compile "$LINENO"; then :
 
7142
  xorg_testset_unknown_warning_option=yes
 
7143
else
 
7144
  xorg_testset_unknown_warning_option=no
 
7145
fi
 
7146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7147
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7148
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7149
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7150
fi
 
7151
 
 
7152
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7153
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7154
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7155
        fi
 
7156
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7157
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7158
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7159
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7160
/* end confdefs.h.  */
 
7161
int i;
 
7162
_ACEOF
 
7163
if ac_fn_c_try_compile "$LINENO"; then :
 
7164
  xorg_testset_unused_command_line_argument=yes
 
7165
else
 
7166
  xorg_testset_unused_command_line_argument=no
 
7167
fi
 
7168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7169
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7170
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7171
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7172
fi
 
7173
 
 
7174
found="no"
 
7175
 
 
7176
        if test $found = "no" ; then
 
7177
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7178
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7179
                fi
 
7180
 
 
7181
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7182
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7183
                fi
 
7184
 
 
7185
                CFLAGS="$CFLAGS -Werror=address"
 
7186
 
 
7187
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
 
7188
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
 
7189
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7190
/* end confdefs.h.  */
 
7191
int i;
 
7192
int
 
7193
main ()
 
7194
{
 
7195
 
 
7196
  ;
 
7197
  return 0;
 
7198
}
 
7199
_ACEOF
 
7200
if ac_fn_c_try_link "$LINENO"; then :
 
7201
  supported=yes
 
7202
else
 
7203
  supported=no
 
7204
fi
 
7205
rm -f core conftest.err conftest.$ac_objext \
 
7206
    conftest$ac_exeext conftest.$ac_ext
 
7207
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7208
$as_echo "$supported" >&6; }
 
7209
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7210
 
 
7211
                if test "$supported" = "yes" ; then
 
7212
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
 
7213
                        found="yes"
 
7214
                fi
 
7215
        fi
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
xorg_testset_save_CFLAGS="$CFLAGS"
 
7224
 
 
7225
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7226
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7227
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7228
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7229
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7230
/* end confdefs.h.  */
 
7231
int i;
 
7232
_ACEOF
 
7233
if ac_fn_c_try_compile "$LINENO"; then :
 
7234
  xorg_testset_unknown_warning_option=yes
 
7235
else
 
7236
  xorg_testset_unknown_warning_option=no
 
7237
fi
 
7238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7239
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7240
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7241
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7242
fi
 
7243
 
 
7244
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7245
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7246
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7247
        fi
 
7248
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7249
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7250
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7251
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7252
/* end confdefs.h.  */
 
7253
int i;
 
7254
_ACEOF
 
7255
if ac_fn_c_try_compile "$LINENO"; then :
 
7256
  xorg_testset_unused_command_line_argument=yes
 
7257
else
 
7258
  xorg_testset_unused_command_line_argument=no
 
7259
fi
 
7260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7261
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7262
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7263
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7264
fi
 
7265
 
 
7266
found="no"
 
7267
 
 
7268
        if test $found = "no" ; then
 
7269
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7270
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7271
                fi
 
7272
 
 
7273
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7274
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7275
                fi
 
7276
 
 
7277
                CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
 
7278
 
 
7279
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
 
7280
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
 
7281
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7282
/* end confdefs.h.  */
 
7283
int i;
 
7284
int
 
7285
main ()
 
7286
{
 
7287
 
 
7288
  ;
 
7289
  return 0;
 
7290
}
 
7291
_ACEOF
 
7292
if ac_fn_c_try_link "$LINENO"; then :
 
7293
  supported=yes
 
7294
else
 
7295
  supported=no
 
7296
fi
 
7297
rm -f core conftest.err conftest.$ac_objext \
 
7298
    conftest$ac_exeext conftest.$ac_ext
 
7299
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7300
$as_echo "$supported" >&6; }
 
7301
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7302
 
 
7303
                if test "$supported" = "yes" ; then
 
7304
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
 
7305
                        found="yes"
 
7306
                fi
 
7307
        fi
 
7308
 
 
7309
        if test $found = "no" ; then
 
7310
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7311
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7312
                fi
 
7313
 
 
7314
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7315
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7316
                fi
 
7317
 
 
7318
                CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
7319
 
 
7320
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
 
7321
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
 
7322
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7323
/* end confdefs.h.  */
 
7324
int i;
 
7325
int
 
7326
main ()
 
7327
{
 
7328
 
 
7329
  ;
 
7330
  return 0;
 
7331
}
 
7332
_ACEOF
 
7333
if ac_fn_c_try_link "$LINENO"; then :
 
7334
  supported=yes
 
7335
else
 
7336
  supported=no
 
7337
fi
 
7338
rm -f core conftest.err conftest.$ac_objext \
 
7339
    conftest$ac_exeext conftest.$ac_ext
 
7340
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7341
$as_echo "$supported" >&6; }
 
7342
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7343
 
 
7344
                if test "$supported" = "yes" ; then
 
7345
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
7346
                        found="yes"
 
7347
                fi
 
7348
        fi
 
7349
 
 
7350
 
 
7351
 
 
7352
 
 
7353
 
 
7354
 
 
7355
 
 
7356
xorg_testset_save_CFLAGS="$CFLAGS"
 
7357
 
 
7358
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7359
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7360
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7361
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7362
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7363
/* end confdefs.h.  */
 
7364
int i;
 
7365
_ACEOF
 
7366
if ac_fn_c_try_compile "$LINENO"; then :
 
7367
  xorg_testset_unknown_warning_option=yes
 
7368
else
 
7369
  xorg_testset_unknown_warning_option=no
 
7370
fi
 
7371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7372
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7373
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7374
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7375
fi
 
7376
 
 
7377
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7378
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7379
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7380
        fi
 
7381
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7382
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7383
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7384
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7385
/* end confdefs.h.  */
 
7386
int i;
 
7387
_ACEOF
 
7388
if ac_fn_c_try_compile "$LINENO"; then :
 
7389
  xorg_testset_unused_command_line_argument=yes
 
7390
else
 
7391
  xorg_testset_unused_command_line_argument=no
 
7392
fi
 
7393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7394
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7395
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7396
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7397
fi
 
7398
 
 
7399
found="no"
 
7400
 
 
7401
        if test $found = "no" ; then
 
7402
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7403
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7404
                fi
 
7405
 
 
7406
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7407
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7408
                fi
 
7409
 
 
7410
                CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
 
7411
 
 
7412
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
 
7413
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
 
7414
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7415
/* end confdefs.h.  */
 
7416
int i;
 
7417
int
 
7418
main ()
 
7419
{
 
7420
 
 
7421
  ;
 
7422
  return 0;
 
7423
}
 
7424
_ACEOF
 
7425
if ac_fn_c_try_link "$LINENO"; then :
 
7426
  supported=yes
 
7427
else
 
7428
  supported=no
 
7429
fi
 
7430
rm -f core conftest.err conftest.$ac_objext \
 
7431
    conftest$ac_exeext conftest.$ac_ext
 
7432
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7433
$as_echo "$supported" >&6; }
 
7434
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7435
 
 
7436
                if test "$supported" = "yes" ; then
 
7437
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
 
7438
                        found="yes"
 
7439
                fi
 
7440
        fi
 
7441
 
 
7442
 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
 
7443
else
 
7444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
 
7445
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
 
7446
 
 
7447
 
 
7448
 
 
7449
 
 
7450
 
 
7451
xorg_testset_save_CFLAGS="$CFLAGS"
 
7452
 
 
7453
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7454
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7455
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7456
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7457
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7458
/* end confdefs.h.  */
 
7459
int i;
 
7460
_ACEOF
 
7461
if ac_fn_c_try_compile "$LINENO"; then :
 
7462
  xorg_testset_unknown_warning_option=yes
 
7463
else
 
7464
  xorg_testset_unknown_warning_option=no
 
7465
fi
 
7466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7467
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7468
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7469
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7470
fi
 
7471
 
 
7472
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7473
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7474
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7475
        fi
 
7476
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7477
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7478
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7479
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7480
/* end confdefs.h.  */
 
7481
int i;
 
7482
_ACEOF
 
7483
if ac_fn_c_try_compile "$LINENO"; then :
 
7484
  xorg_testset_unused_command_line_argument=yes
 
7485
else
 
7486
  xorg_testset_unused_command_line_argument=no
 
7487
fi
 
7488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7489
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7490
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7491
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7492
fi
 
7493
 
 
7494
found="no"
 
7495
 
 
7496
        if test $found = "no" ; then
 
7497
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7498
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7499
                fi
 
7500
 
 
7501
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7502
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7503
                fi
 
7504
 
 
7505
                CFLAGS="$CFLAGS -Wimplicit"
 
7506
 
 
7507
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
 
7508
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
 
7509
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7510
/* end confdefs.h.  */
 
7511
int i;
 
7512
int
 
7513
main ()
 
7514
{
 
7515
 
 
7516
  ;
 
7517
  return 0;
 
7518
}
 
7519
_ACEOF
 
7520
if ac_fn_c_try_link "$LINENO"; then :
 
7521
  supported=yes
 
7522
else
 
7523
  supported=no
 
7524
fi
 
7525
rm -f core conftest.err conftest.$ac_objext \
 
7526
    conftest$ac_exeext conftest.$ac_ext
 
7527
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7528
$as_echo "$supported" >&6; }
 
7529
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7530
 
 
7531
                if test "$supported" = "yes" ; then
 
7532
                        BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
 
7533
                        found="yes"
 
7534
                fi
 
7535
        fi
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
 
 
7543
xorg_testset_save_CFLAGS="$CFLAGS"
 
7544
 
 
7545
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7546
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7547
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7548
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7549
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7550
/* end confdefs.h.  */
 
7551
int i;
 
7552
_ACEOF
 
7553
if ac_fn_c_try_compile "$LINENO"; then :
 
7554
  xorg_testset_unknown_warning_option=yes
 
7555
else
 
7556
  xorg_testset_unknown_warning_option=no
 
7557
fi
 
7558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7559
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7560
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7561
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7562
fi
 
7563
 
 
7564
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7565
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7566
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7567
        fi
 
7568
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7569
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7570
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7571
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7572
/* end confdefs.h.  */
 
7573
int i;
 
7574
_ACEOF
 
7575
if ac_fn_c_try_compile "$LINENO"; then :
 
7576
  xorg_testset_unused_command_line_argument=yes
 
7577
else
 
7578
  xorg_testset_unused_command_line_argument=no
 
7579
fi
 
7580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7581
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7582
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7583
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7584
fi
 
7585
 
 
7586
found="no"
 
7587
 
 
7588
        if test $found = "no" ; then
 
7589
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7590
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7591
                fi
 
7592
 
 
7593
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7594
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7595
                fi
 
7596
 
 
7597
                CFLAGS="$CFLAGS -Wnonnull"
 
7598
 
 
7599
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
 
7600
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
 
7601
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7602
/* end confdefs.h.  */
 
7603
int i;
 
7604
int
 
7605
main ()
 
7606
{
 
7607
 
 
7608
  ;
 
7609
  return 0;
 
7610
}
 
7611
_ACEOF
 
7612
if ac_fn_c_try_link "$LINENO"; then :
 
7613
  supported=yes
 
7614
else
 
7615
  supported=no
 
7616
fi
 
7617
rm -f core conftest.err conftest.$ac_objext \
 
7618
    conftest$ac_exeext conftest.$ac_ext
 
7619
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7620
$as_echo "$supported" >&6; }
 
7621
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7622
 
 
7623
                if test "$supported" = "yes" ; then
 
7624
                        BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
 
7625
                        found="yes"
 
7626
                fi
 
7627
        fi
 
7628
 
 
7629
 
 
7630
 
 
7631
 
 
7632
 
 
7633
 
 
7634
 
 
7635
xorg_testset_save_CFLAGS="$CFLAGS"
 
7636
 
 
7637
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7638
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7639
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7640
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7641
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7642
/* end confdefs.h.  */
 
7643
int i;
 
7644
_ACEOF
 
7645
if ac_fn_c_try_compile "$LINENO"; then :
 
7646
  xorg_testset_unknown_warning_option=yes
 
7647
else
 
7648
  xorg_testset_unknown_warning_option=no
 
7649
fi
 
7650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7651
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7652
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7653
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7654
fi
 
7655
 
 
7656
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7657
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7658
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7659
        fi
 
7660
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7661
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7662
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7663
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7664
/* end confdefs.h.  */
 
7665
int i;
 
7666
_ACEOF
 
7667
if ac_fn_c_try_compile "$LINENO"; then :
 
7668
  xorg_testset_unused_command_line_argument=yes
 
7669
else
 
7670
  xorg_testset_unused_command_line_argument=no
 
7671
fi
 
7672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7673
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7674
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7675
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7676
fi
 
7677
 
 
7678
found="no"
 
7679
 
 
7680
        if test $found = "no" ; then
 
7681
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7682
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7683
                fi
 
7684
 
 
7685
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7686
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7687
                fi
 
7688
 
 
7689
                CFLAGS="$CFLAGS -Winit-self"
 
7690
 
 
7691
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
 
7692
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
 
7693
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7694
/* end confdefs.h.  */
 
7695
int i;
 
7696
int
 
7697
main ()
 
7698
{
 
7699
 
 
7700
  ;
 
7701
  return 0;
 
7702
}
 
7703
_ACEOF
 
7704
if ac_fn_c_try_link "$LINENO"; then :
 
7705
  supported=yes
 
7706
else
 
7707
  supported=no
 
7708
fi
 
7709
rm -f core conftest.err conftest.$ac_objext \
 
7710
    conftest$ac_exeext conftest.$ac_ext
 
7711
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7712
$as_echo "$supported" >&6; }
 
7713
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7714
 
 
7715
                if test "$supported" = "yes" ; then
 
7716
                        BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
 
7717
                        found="yes"
 
7718
                fi
 
7719
        fi
 
7720
 
 
7721
 
 
7722
 
 
7723
 
 
7724
 
 
7725
 
 
7726
 
 
7727
xorg_testset_save_CFLAGS="$CFLAGS"
 
7728
 
 
7729
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7730
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7731
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7732
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7733
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7734
/* end confdefs.h.  */
 
7735
int i;
 
7736
_ACEOF
 
7737
if ac_fn_c_try_compile "$LINENO"; then :
 
7738
  xorg_testset_unknown_warning_option=yes
 
7739
else
 
7740
  xorg_testset_unknown_warning_option=no
 
7741
fi
 
7742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7743
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7744
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7745
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7746
fi
 
7747
 
 
7748
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7749
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7750
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7751
        fi
 
7752
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7753
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7754
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7755
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7756
/* end confdefs.h.  */
 
7757
int i;
 
7758
_ACEOF
 
7759
if ac_fn_c_try_compile "$LINENO"; then :
 
7760
  xorg_testset_unused_command_line_argument=yes
 
7761
else
 
7762
  xorg_testset_unused_command_line_argument=no
 
7763
fi
 
7764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7765
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7766
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7767
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7768
fi
 
7769
 
 
7770
found="no"
 
7771
 
 
7772
        if test $found = "no" ; then
 
7773
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7774
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7775
                fi
 
7776
 
 
7777
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7778
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7779
                fi
 
7780
 
 
7781
                CFLAGS="$CFLAGS -Wmain"
 
7782
 
 
7783
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
 
7784
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
 
7785
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7786
/* end confdefs.h.  */
 
7787
int i;
 
7788
int
 
7789
main ()
 
7790
{
 
7791
 
 
7792
  ;
 
7793
  return 0;
 
7794
}
 
7795
_ACEOF
 
7796
if ac_fn_c_try_link "$LINENO"; then :
 
7797
  supported=yes
 
7798
else
 
7799
  supported=no
 
7800
fi
 
7801
rm -f core conftest.err conftest.$ac_objext \
 
7802
    conftest$ac_exeext conftest.$ac_ext
 
7803
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7804
$as_echo "$supported" >&6; }
 
7805
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7806
 
 
7807
                if test "$supported" = "yes" ; then
 
7808
                        BASE_CFLAGS="$BASE_CFLAGS -Wmain"
 
7809
                        found="yes"
 
7810
                fi
 
7811
        fi
 
7812
 
 
7813
 
 
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
xorg_testset_save_CFLAGS="$CFLAGS"
 
7820
 
 
7821
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7822
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7823
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7824
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7825
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7826
/* end confdefs.h.  */
 
7827
int i;
 
7828
_ACEOF
 
7829
if ac_fn_c_try_compile "$LINENO"; then :
 
7830
  xorg_testset_unknown_warning_option=yes
 
7831
else
 
7832
  xorg_testset_unknown_warning_option=no
 
7833
fi
 
7834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7835
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7836
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7837
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7838
fi
 
7839
 
 
7840
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7841
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7842
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7843
        fi
 
7844
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7845
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7846
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7847
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7848
/* end confdefs.h.  */
 
7849
int i;
 
7850
_ACEOF
 
7851
if ac_fn_c_try_compile "$LINENO"; then :
 
7852
  xorg_testset_unused_command_line_argument=yes
 
7853
else
 
7854
  xorg_testset_unused_command_line_argument=no
 
7855
fi
 
7856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7857
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7858
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7859
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7860
fi
 
7861
 
 
7862
found="no"
 
7863
 
 
7864
        if test $found = "no" ; then
 
7865
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7866
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7867
                fi
 
7868
 
 
7869
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7870
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7871
                fi
 
7872
 
 
7873
                CFLAGS="$CFLAGS -Wmissing-braces"
 
7874
 
 
7875
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
 
7876
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
 
7877
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7878
/* end confdefs.h.  */
 
7879
int i;
 
7880
int
 
7881
main ()
 
7882
{
 
7883
 
 
7884
  ;
 
7885
  return 0;
 
7886
}
 
7887
_ACEOF
 
7888
if ac_fn_c_try_link "$LINENO"; then :
 
7889
  supported=yes
 
7890
else
 
7891
  supported=no
 
7892
fi
 
7893
rm -f core conftest.err conftest.$ac_objext \
 
7894
    conftest$ac_exeext conftest.$ac_ext
 
7895
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7896
$as_echo "$supported" >&6; }
 
7897
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7898
 
 
7899
                if test "$supported" = "yes" ; then
 
7900
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
 
7901
                        found="yes"
 
7902
                fi
 
7903
        fi
 
7904
 
 
7905
 
 
7906
 
 
7907
 
 
7908
 
 
7909
 
 
7910
 
 
7911
xorg_testset_save_CFLAGS="$CFLAGS"
 
7912
 
 
7913
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
7914
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7915
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7916
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7917
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7918
/* end confdefs.h.  */
 
7919
int i;
 
7920
_ACEOF
 
7921
if ac_fn_c_try_compile "$LINENO"; then :
 
7922
  xorg_testset_unknown_warning_option=yes
 
7923
else
 
7924
  xorg_testset_unknown_warning_option=no
 
7925
fi
 
7926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7927
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
7928
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
7929
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7930
fi
 
7931
 
 
7932
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
7933
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7934
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7935
        fi
 
7936
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7937
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7938
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7939
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7940
/* end confdefs.h.  */
 
7941
int i;
 
7942
_ACEOF
 
7943
if ac_fn_c_try_compile "$LINENO"; then :
 
7944
  xorg_testset_unused_command_line_argument=yes
 
7945
else
 
7946
  xorg_testset_unused_command_line_argument=no
 
7947
fi
 
7948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7949
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
7950
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
7951
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7952
fi
 
7953
 
 
7954
found="no"
 
7955
 
 
7956
        if test $found = "no" ; then
 
7957
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
7958
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7959
                fi
 
7960
 
 
7961
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
7962
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7963
                fi
 
7964
 
 
7965
                CFLAGS="$CFLAGS -Wsequence-point"
 
7966
 
 
7967
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
 
7968
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
 
7969
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7970
/* end confdefs.h.  */
 
7971
int i;
 
7972
int
 
7973
main ()
 
7974
{
 
7975
 
 
7976
  ;
 
7977
  return 0;
 
7978
}
 
7979
_ACEOF
 
7980
if ac_fn_c_try_link "$LINENO"; then :
 
7981
  supported=yes
 
7982
else
 
7983
  supported=no
 
7984
fi
 
7985
rm -f core conftest.err conftest.$ac_objext \
 
7986
    conftest$ac_exeext conftest.$ac_ext
 
7987
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7988
$as_echo "$supported" >&6; }
 
7989
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7990
 
 
7991
                if test "$supported" = "yes" ; then
 
7992
                        BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
 
7993
                        found="yes"
 
7994
                fi
 
7995
        fi
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
xorg_testset_save_CFLAGS="$CFLAGS"
 
8004
 
 
8005
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8006
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8007
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8008
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8009
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8010
/* end confdefs.h.  */
 
8011
int i;
 
8012
_ACEOF
 
8013
if ac_fn_c_try_compile "$LINENO"; then :
 
8014
  xorg_testset_unknown_warning_option=yes
 
8015
else
 
8016
  xorg_testset_unknown_warning_option=no
 
8017
fi
 
8018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8019
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8020
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8021
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8022
fi
 
8023
 
 
8024
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8025
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8026
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8027
        fi
 
8028
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8029
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8030
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8031
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8032
/* end confdefs.h.  */
 
8033
int i;
 
8034
_ACEOF
 
8035
if ac_fn_c_try_compile "$LINENO"; then :
 
8036
  xorg_testset_unused_command_line_argument=yes
 
8037
else
 
8038
  xorg_testset_unused_command_line_argument=no
 
8039
fi
 
8040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8041
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8042
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8043
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8044
fi
 
8045
 
 
8046
found="no"
 
8047
 
 
8048
        if test $found = "no" ; then
 
8049
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8050
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8051
                fi
 
8052
 
 
8053
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8054
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8055
                fi
 
8056
 
 
8057
                CFLAGS="$CFLAGS -Wreturn-type"
 
8058
 
 
8059
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
 
8060
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
 
8061
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8062
/* end confdefs.h.  */
 
8063
int i;
 
8064
int
 
8065
main ()
 
8066
{
 
8067
 
 
8068
  ;
 
8069
  return 0;
 
8070
}
 
8071
_ACEOF
 
8072
if ac_fn_c_try_link "$LINENO"; then :
 
8073
  supported=yes
 
8074
else
 
8075
  supported=no
 
8076
fi
 
8077
rm -f core conftest.err conftest.$ac_objext \
 
8078
    conftest$ac_exeext conftest.$ac_ext
 
8079
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8080
$as_echo "$supported" >&6; }
 
8081
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8082
 
 
8083
                if test "$supported" = "yes" ; then
 
8084
                        BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
 
8085
                        found="yes"
 
8086
                fi
 
8087
        fi
 
8088
 
 
8089
 
 
8090
 
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
xorg_testset_save_CFLAGS="$CFLAGS"
 
8096
 
 
8097
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8098
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8099
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8100
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8101
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8102
/* end confdefs.h.  */
 
8103
int i;
 
8104
_ACEOF
 
8105
if ac_fn_c_try_compile "$LINENO"; then :
 
8106
  xorg_testset_unknown_warning_option=yes
 
8107
else
 
8108
  xorg_testset_unknown_warning_option=no
 
8109
fi
 
8110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8111
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8112
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8113
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8114
fi
 
8115
 
 
8116
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8117
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8118
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8119
        fi
 
8120
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8121
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8122
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8123
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8124
/* end confdefs.h.  */
 
8125
int i;
 
8126
_ACEOF
 
8127
if ac_fn_c_try_compile "$LINENO"; then :
 
8128
  xorg_testset_unused_command_line_argument=yes
 
8129
else
 
8130
  xorg_testset_unused_command_line_argument=no
 
8131
fi
 
8132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8133
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8134
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8135
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8136
fi
 
8137
 
 
8138
found="no"
 
8139
 
 
8140
        if test $found = "no" ; then
 
8141
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8142
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8143
                fi
 
8144
 
 
8145
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8146
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8147
                fi
 
8148
 
 
8149
                CFLAGS="$CFLAGS -Wtrigraphs"
 
8150
 
 
8151
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
 
8152
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
 
8153
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8154
/* end confdefs.h.  */
 
8155
int i;
 
8156
int
 
8157
main ()
 
8158
{
 
8159
 
 
8160
  ;
 
8161
  return 0;
 
8162
}
 
8163
_ACEOF
 
8164
if ac_fn_c_try_link "$LINENO"; then :
 
8165
  supported=yes
 
8166
else
 
8167
  supported=no
 
8168
fi
 
8169
rm -f core conftest.err conftest.$ac_objext \
 
8170
    conftest$ac_exeext conftest.$ac_ext
 
8171
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8172
$as_echo "$supported" >&6; }
 
8173
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8174
 
 
8175
                if test "$supported" = "yes" ; then
 
8176
                        BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
 
8177
                        found="yes"
 
8178
                fi
 
8179
        fi
 
8180
 
 
8181
 
 
8182
 
 
8183
 
 
8184
 
 
8185
 
 
8186
 
 
8187
xorg_testset_save_CFLAGS="$CFLAGS"
 
8188
 
 
8189
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8190
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8191
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8192
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8193
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8194
/* end confdefs.h.  */
 
8195
int i;
 
8196
_ACEOF
 
8197
if ac_fn_c_try_compile "$LINENO"; then :
 
8198
  xorg_testset_unknown_warning_option=yes
 
8199
else
 
8200
  xorg_testset_unknown_warning_option=no
 
8201
fi
 
8202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8203
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8204
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8205
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8206
fi
 
8207
 
 
8208
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8209
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8210
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8211
        fi
 
8212
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8213
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8214
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8215
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8216
/* end confdefs.h.  */
 
8217
int i;
 
8218
_ACEOF
 
8219
if ac_fn_c_try_compile "$LINENO"; then :
 
8220
  xorg_testset_unused_command_line_argument=yes
 
8221
else
 
8222
  xorg_testset_unused_command_line_argument=no
 
8223
fi
 
8224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8225
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8226
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8227
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8228
fi
 
8229
 
 
8230
found="no"
 
8231
 
 
8232
        if test $found = "no" ; then
 
8233
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8234
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8235
                fi
 
8236
 
 
8237
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8238
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8239
                fi
 
8240
 
 
8241
                CFLAGS="$CFLAGS -Warray-bounds"
 
8242
 
 
8243
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
 
8244
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
 
8245
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8246
/* end confdefs.h.  */
 
8247
int i;
 
8248
int
 
8249
main ()
 
8250
{
 
8251
 
 
8252
  ;
 
8253
  return 0;
 
8254
}
 
8255
_ACEOF
 
8256
if ac_fn_c_try_link "$LINENO"; then :
 
8257
  supported=yes
 
8258
else
 
8259
  supported=no
 
8260
fi
 
8261
rm -f core conftest.err conftest.$ac_objext \
 
8262
    conftest$ac_exeext conftest.$ac_ext
 
8263
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8264
$as_echo "$supported" >&6; }
 
8265
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8266
 
 
8267
                if test "$supported" = "yes" ; then
 
8268
                        BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
 
8269
                        found="yes"
 
8270
                fi
 
8271
        fi
 
8272
 
 
8273
 
 
8274
 
 
8275
 
 
8276
 
 
8277
 
 
8278
 
 
8279
xorg_testset_save_CFLAGS="$CFLAGS"
 
8280
 
 
8281
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8282
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8283
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8284
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8285
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8286
/* end confdefs.h.  */
 
8287
int i;
 
8288
_ACEOF
 
8289
if ac_fn_c_try_compile "$LINENO"; then :
 
8290
  xorg_testset_unknown_warning_option=yes
 
8291
else
 
8292
  xorg_testset_unknown_warning_option=no
 
8293
fi
 
8294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8295
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8296
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8297
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8298
fi
 
8299
 
 
8300
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8301
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8302
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8303
        fi
 
8304
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8305
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8306
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8307
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8308
/* end confdefs.h.  */
 
8309
int i;
 
8310
_ACEOF
 
8311
if ac_fn_c_try_compile "$LINENO"; then :
 
8312
  xorg_testset_unused_command_line_argument=yes
 
8313
else
 
8314
  xorg_testset_unused_command_line_argument=no
 
8315
fi
 
8316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8317
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8318
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8319
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8320
fi
 
8321
 
 
8322
found="no"
 
8323
 
 
8324
        if test $found = "no" ; then
 
8325
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8326
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8327
                fi
 
8328
 
 
8329
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8330
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8331
                fi
 
8332
 
 
8333
                CFLAGS="$CFLAGS -Wwrite-strings"
 
8334
 
 
8335
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
 
8336
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
 
8337
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8338
/* end confdefs.h.  */
 
8339
int i;
 
8340
int
 
8341
main ()
 
8342
{
 
8343
 
 
8344
  ;
 
8345
  return 0;
 
8346
}
 
8347
_ACEOF
 
8348
if ac_fn_c_try_link "$LINENO"; then :
 
8349
  supported=yes
 
8350
else
 
8351
  supported=no
 
8352
fi
 
8353
rm -f core conftest.err conftest.$ac_objext \
 
8354
    conftest$ac_exeext conftest.$ac_ext
 
8355
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8356
$as_echo "$supported" >&6; }
 
8357
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8358
 
 
8359
                if test "$supported" = "yes" ; then
 
8360
                        BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
 
8361
                        found="yes"
 
8362
                fi
 
8363
        fi
 
8364
 
 
8365
 
 
8366
 
 
8367
 
 
8368
 
 
8369
 
 
8370
 
 
8371
xorg_testset_save_CFLAGS="$CFLAGS"
 
8372
 
 
8373
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8374
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8375
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8376
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8377
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8378
/* end confdefs.h.  */
 
8379
int i;
 
8380
_ACEOF
 
8381
if ac_fn_c_try_compile "$LINENO"; then :
 
8382
  xorg_testset_unknown_warning_option=yes
 
8383
else
 
8384
  xorg_testset_unknown_warning_option=no
 
8385
fi
 
8386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8387
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8388
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8389
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8390
fi
 
8391
 
 
8392
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8393
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8394
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8395
        fi
 
8396
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8397
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8398
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8399
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8400
/* end confdefs.h.  */
 
8401
int i;
 
8402
_ACEOF
 
8403
if ac_fn_c_try_compile "$LINENO"; then :
 
8404
  xorg_testset_unused_command_line_argument=yes
 
8405
else
 
8406
  xorg_testset_unused_command_line_argument=no
 
8407
fi
 
8408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8409
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8410
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8411
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8412
fi
 
8413
 
 
8414
found="no"
 
8415
 
 
8416
        if test $found = "no" ; then
 
8417
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8418
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8419
                fi
 
8420
 
 
8421
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8422
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8423
                fi
 
8424
 
 
8425
                CFLAGS="$CFLAGS -Waddress"
 
8426
 
 
8427
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
 
8428
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
 
8429
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8430
/* end confdefs.h.  */
 
8431
int i;
 
8432
int
 
8433
main ()
 
8434
{
 
8435
 
 
8436
  ;
 
8437
  return 0;
 
8438
}
 
8439
_ACEOF
 
8440
if ac_fn_c_try_link "$LINENO"; then :
 
8441
  supported=yes
 
8442
else
 
8443
  supported=no
 
8444
fi
 
8445
rm -f core conftest.err conftest.$ac_objext \
 
8446
    conftest$ac_exeext conftest.$ac_ext
 
8447
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8448
$as_echo "$supported" >&6; }
 
8449
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8450
 
 
8451
                if test "$supported" = "yes" ; then
 
8452
                        BASE_CFLAGS="$BASE_CFLAGS -Waddress"
 
8453
                        found="yes"
 
8454
                fi
 
8455
        fi
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
 
 
8463
xorg_testset_save_CFLAGS="$CFLAGS"
 
8464
 
 
8465
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8466
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8467
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8468
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8469
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8470
/* end confdefs.h.  */
 
8471
int i;
 
8472
_ACEOF
 
8473
if ac_fn_c_try_compile "$LINENO"; then :
 
8474
  xorg_testset_unknown_warning_option=yes
 
8475
else
 
8476
  xorg_testset_unknown_warning_option=no
 
8477
fi
 
8478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8479
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8480
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8481
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8482
fi
 
8483
 
 
8484
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8485
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8486
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8487
        fi
 
8488
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8489
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8490
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8491
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8492
/* end confdefs.h.  */
 
8493
int i;
 
8494
_ACEOF
 
8495
if ac_fn_c_try_compile "$LINENO"; then :
 
8496
  xorg_testset_unused_command_line_argument=yes
 
8497
else
 
8498
  xorg_testset_unused_command_line_argument=no
 
8499
fi
 
8500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8501
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8502
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8503
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8504
fi
 
8505
 
 
8506
found="no"
 
8507
 
 
8508
        if test $found = "no" ; then
 
8509
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8510
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8511
                fi
 
8512
 
 
8513
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8514
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8515
                fi
 
8516
 
 
8517
                CFLAGS="$CFLAGS -Wint-to-pointer-cast"
 
8518
 
 
8519
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
 
8520
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
 
8521
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8522
/* end confdefs.h.  */
 
8523
int i;
 
8524
int
 
8525
main ()
 
8526
{
 
8527
 
 
8528
  ;
 
8529
  return 0;
 
8530
}
 
8531
_ACEOF
 
8532
if ac_fn_c_try_link "$LINENO"; then :
 
8533
  supported=yes
 
8534
else
 
8535
  supported=no
 
8536
fi
 
8537
rm -f core conftest.err conftest.$ac_objext \
 
8538
    conftest$ac_exeext conftest.$ac_ext
 
8539
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8540
$as_echo "$supported" >&6; }
 
8541
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8542
 
 
8543
                if test "$supported" = "yes" ; then
 
8544
                        BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
 
8545
                        found="yes"
 
8546
                fi
 
8547
        fi
 
8548
 
 
8549
 
 
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
xorg_testset_save_CFLAGS="$CFLAGS"
 
8556
 
 
8557
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8558
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8559
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8560
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8561
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8562
/* end confdefs.h.  */
 
8563
int i;
 
8564
_ACEOF
 
8565
if ac_fn_c_try_compile "$LINENO"; then :
 
8566
  xorg_testset_unknown_warning_option=yes
 
8567
else
 
8568
  xorg_testset_unknown_warning_option=no
 
8569
fi
 
8570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8571
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8572
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8573
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8574
fi
 
8575
 
 
8576
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8577
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8578
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8579
        fi
 
8580
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8581
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8582
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8583
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8584
/* end confdefs.h.  */
 
8585
int i;
 
8586
_ACEOF
 
8587
if ac_fn_c_try_compile "$LINENO"; then :
 
8588
  xorg_testset_unused_command_line_argument=yes
 
8589
else
 
8590
  xorg_testset_unused_command_line_argument=no
 
8591
fi
 
8592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8593
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8594
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8595
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8596
fi
 
8597
 
 
8598
found="no"
 
8599
 
 
8600
        if test $found = "no" ; then
 
8601
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8602
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8603
                fi
 
8604
 
 
8605
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8606
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8607
                fi
 
8608
 
 
8609
                CFLAGS="$CFLAGS -Wpointer-to-int-cast"
 
8610
 
 
8611
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
 
8612
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
 
8613
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8614
/* end confdefs.h.  */
 
8615
int i;
 
8616
int
 
8617
main ()
 
8618
{
 
8619
 
 
8620
  ;
 
8621
  return 0;
 
8622
}
 
8623
_ACEOF
 
8624
if ac_fn_c_try_link "$LINENO"; then :
 
8625
  supported=yes
 
8626
else
 
8627
  supported=no
 
8628
fi
 
8629
rm -f core conftest.err conftest.$ac_objext \
 
8630
    conftest$ac_exeext conftest.$ac_ext
 
8631
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8632
$as_echo "$supported" >&6; }
 
8633
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8634
 
 
8635
                if test "$supported" = "yes" ; then
 
8636
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
 
8637
                        found="yes"
 
8638
                fi
 
8639
        fi
 
8640
 
 
8641
 
 
8642
fi
 
8643
 
 
8644
 
 
8645
 
 
8646
 
 
8647
 
 
8648
 
 
8649
CWARNFLAGS="$BASE_CFLAGS"
4433
8650
if  test "x$GCC" = xyes ; then
4434
 
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4435
 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4436
 
-Wbad-function-cast -Wformat=2"
4437
 
    case `$CC -dumpversion` in
4438
 
    3.4.* | 4.*)
4439
 
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4440
 
        ;;
4441
 
    esac
4442
 
else
4443
 
    if test "x$SUNCC" = "xyes"; then
4444
 
        CWARNFLAGS="-v"
4445
 
    fi
 
8651
    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
4446
8652
fi
4447
8653
 
4448
8654
 
4449
8655
 
4450
 
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4451
 
 
4452
8656
 
4453
8657
 
4454
8658
 
4459
8663
  STRICT_COMPILE=no
4460
8664
fi
4461
8665
 
4462
 
if test "x$GCC" = xyes ; then
4463
 
    STRICT_CFLAGS="-pedantic -Werror"
4464
 
    # Add -Werror=attributes if supported (gcc 4.2 & later)
4465
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
 
8666
 
 
8667
STRICT_CFLAGS=""
 
8668
 
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
xorg_testset_save_CFLAGS="$CFLAGS"
 
8674
 
 
8675
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8676
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8677
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8678
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8679
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8680
/* end confdefs.h.  */
 
8681
int i;
 
8682
_ACEOF
 
8683
if ac_fn_c_try_compile "$LINENO"; then :
 
8684
  xorg_testset_unknown_warning_option=yes
 
8685
else
 
8686
  xorg_testset_unknown_warning_option=no
 
8687
fi
 
8688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8689
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8690
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8691
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8692
fi
 
8693
 
 
8694
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8695
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8696
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8697
        fi
 
8698
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8699
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8700
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8701
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8702
/* end confdefs.h.  */
 
8703
int i;
 
8704
_ACEOF
 
8705
if ac_fn_c_try_compile "$LINENO"; then :
 
8706
  xorg_testset_unused_command_line_argument=yes
 
8707
else
 
8708
  xorg_testset_unused_command_line_argument=no
 
8709
fi
 
8710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8711
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8712
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8713
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8714
fi
 
8715
 
 
8716
found="no"
 
8717
 
 
8718
        if test $found = "no" ; then
 
8719
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8720
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8721
                fi
 
8722
 
 
8723
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8724
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8725
                fi
 
8726
 
 
8727
                CFLAGS="$CFLAGS -pedantic"
 
8728
 
 
8729
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
 
8730
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
 
8731
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8732
/* end confdefs.h.  */
 
8733
int i;
 
8734
int
 
8735
main ()
 
8736
{
 
8737
 
 
8738
  ;
 
8739
  return 0;
 
8740
}
 
8741
_ACEOF
 
8742
if ac_fn_c_try_link "$LINENO"; then :
 
8743
  supported=yes
 
8744
else
 
8745
  supported=no
 
8746
fi
 
8747
rm -f core conftest.err conftest.$ac_objext \
 
8748
    conftest$ac_exeext conftest.$ac_ext
 
8749
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8750
$as_echo "$supported" >&6; }
 
8751
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8752
 
 
8753
                if test "$supported" = "yes" ; then
 
8754
                        STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
 
8755
                        found="yes"
 
8756
                fi
 
8757
        fi
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
 
 
8765
xorg_testset_save_CFLAGS="$CFLAGS"
 
8766
 
 
8767
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8768
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8769
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8770
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8771
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8772
/* end confdefs.h.  */
 
8773
int i;
 
8774
_ACEOF
 
8775
if ac_fn_c_try_compile "$LINENO"; then :
 
8776
  xorg_testset_unknown_warning_option=yes
 
8777
else
 
8778
  xorg_testset_unknown_warning_option=no
 
8779
fi
 
8780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8781
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8782
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8783
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8784
fi
 
8785
 
 
8786
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8787
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8788
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8789
        fi
 
8790
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8791
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8792
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8793
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8794
/* end confdefs.h.  */
 
8795
int i;
 
8796
_ACEOF
 
8797
if ac_fn_c_try_compile "$LINENO"; then :
 
8798
  xorg_testset_unused_command_line_argument=yes
 
8799
else
 
8800
  xorg_testset_unused_command_line_argument=no
 
8801
fi
 
8802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8803
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8804
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8805
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8806
fi
 
8807
 
 
8808
found="no"
 
8809
 
 
8810
        if test $found = "no" ; then
 
8811
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8812
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8813
                fi
 
8814
 
 
8815
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8816
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8817
                fi
 
8818
 
 
8819
                CFLAGS="$CFLAGS -Werror"
 
8820
 
 
8821
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
 
8822
$as_echo_n "checking if $CC supports -Werror... " >&6; }
 
8823
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8824
/* end confdefs.h.  */
 
8825
int i;
 
8826
int
 
8827
main ()
 
8828
{
 
8829
 
 
8830
  ;
 
8831
  return 0;
 
8832
}
 
8833
_ACEOF
 
8834
if ac_fn_c_try_link "$LINENO"; then :
 
8835
  supported=yes
 
8836
else
 
8837
  supported=no
 
8838
fi
 
8839
rm -f core conftest.err conftest.$ac_objext \
 
8840
    conftest$ac_exeext conftest.$ac_ext
 
8841
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8842
$as_echo "$supported" >&6; }
 
8843
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8844
 
 
8845
                if test "$supported" = "yes" ; then
 
8846
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
 
8847
                        found="yes"
 
8848
                fi
 
8849
        fi
 
8850
 
 
8851
        if test $found = "no" ; then
 
8852
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8853
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8854
                fi
 
8855
 
 
8856
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8857
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8858
                fi
 
8859
 
 
8860
                CFLAGS="$CFLAGS -errwarn"
 
8861
 
 
8862
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
 
8863
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
 
8864
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8865
/* end confdefs.h.  */
 
8866
int i;
 
8867
int
 
8868
main ()
 
8869
{
 
8870
 
 
8871
  ;
 
8872
  return 0;
 
8873
}
 
8874
_ACEOF
 
8875
if ac_fn_c_try_link "$LINENO"; then :
 
8876
  supported=yes
 
8877
else
 
8878
  supported=no
 
8879
fi
 
8880
rm -f core conftest.err conftest.$ac_objext \
 
8881
    conftest$ac_exeext conftest.$ac_ext
 
8882
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8883
$as_echo "$supported" >&6; }
 
8884
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8885
 
 
8886
                if test "$supported" = "yes" ; then
 
8887
                        STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
 
8888
                        found="yes"
 
8889
                fi
 
8890
        fi
 
8891
 
 
8892
 
 
8893
 
 
8894
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
 
8895
# activate it with -Werror, so we add it here explicitly.
 
8896
 
 
8897
 
 
8898
 
 
8899
 
 
8900
 
 
8901
xorg_testset_save_CFLAGS="$CFLAGS"
 
8902
 
 
8903
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
8904
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8905
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8906
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8907
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8908
/* end confdefs.h.  */
 
8909
int i;
 
8910
_ACEOF
 
8911
if ac_fn_c_try_compile "$LINENO"; then :
 
8912
  xorg_testset_unknown_warning_option=yes
 
8913
else
 
8914
  xorg_testset_unknown_warning_option=no
 
8915
fi
 
8916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8917
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
 
8918
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
 
8919
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8920
fi
 
8921
 
 
8922
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
 
8923
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8924
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8925
        fi
 
8926
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8927
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8928
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8929
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8930
/* end confdefs.h.  */
 
8931
int i;
 
8932
_ACEOF
 
8933
if ac_fn_c_try_compile "$LINENO"; then :
 
8934
  xorg_testset_unused_command_line_argument=yes
 
8935
else
 
8936
  xorg_testset_unused_command_line_argument=no
 
8937
fi
 
8938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8939
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
 
8940
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
 
8941
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8942
fi
 
8943
 
 
8944
found="no"
 
8945
 
 
8946
        if test $found = "no" ; then
 
8947
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
8948
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8949
                fi
 
8950
 
 
8951
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
8952
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8953
                fi
 
8954
 
 
8955
                CFLAGS="$CFLAGS -Werror=attributes"
 
8956
 
 
8957
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4466
8958
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4467
 
    save_CFLAGS="$CFLAGS"
4468
 
    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4469
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8959
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470
8960
/* end confdefs.h.  */
4471
 
return 0;
 
8961
int i;
 
8962
int
 
8963
main ()
 
8964
{
 
8965
 
 
8966
  ;
 
8967
  return 0;
 
8968
}
4472
8969
_ACEOF
4473
 
if ac_fn_c_try_compile "$LINENO"; then :
4474
 
  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4475
 
                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476
 
$as_echo "yes" >&6; }
 
8970
if ac_fn_c_try_link "$LINENO"; then :
 
8971
  supported=yes
4477
8972
else
4478
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479
 
$as_echo "no" >&6; }
4480
 
fi
4481
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
 
    CFLAGS="$save_CFLAGS"
4483
 
elif test "x$SUNCC" = "xyes"; then
4484
 
    STRICT_CFLAGS="-errwarn"
4485
 
elif test "x$INTELCC" = "xyes"; then
4486
 
    STRICT_CFLAGS="-Werror"
4487
 
fi
 
8973
  supported=no
 
8974
fi
 
8975
rm -f core conftest.err conftest.$ac_objext \
 
8976
    conftest$ac_exeext conftest.$ac_ext
 
8977
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8978
$as_echo "$supported" >&6; }
 
8979
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8980
 
 
8981
                if test "$supported" = "yes" ; then
 
8982
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
 
8983
                        found="yes"
 
8984
                fi
 
8985
        fi
 
8986
 
 
8987
 
 
8988
 
4488
8989
if test "x$STRICT_COMPILE" = "xyes"; then
 
8990
    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
4489
8991
    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4490
8992
fi
4491
8993
 
4493
8995
 
4494
8996
 
4495
8997
 
 
8998
 
4496
8999
cat >>confdefs.h <<_ACEOF
4497
9000
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4498
9001
_ACEOF
4632
9135
no)  AM_DEFAULT_VERBOSITY=1;;
4633
9136
*)   AM_DEFAULT_VERBOSITY=0;;
4634
9137
esac
 
9138
am_make=${MAKE-make}
 
9139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
9140
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
9141
if ${am_cv_make_support_nested_variables+:} false; then :
 
9142
  $as_echo_n "(cached) " >&6
 
9143
else
 
9144
  if $as_echo 'TRUE=$(BAR$(V))
 
9145
BAR0=false
 
9146
BAR1=true
 
9147
V=1
 
9148
am__doit:
 
9149
        @$(TRUE)
 
9150
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
9151
  am_cv_make_support_nested_variables=yes
 
9152
else
 
9153
  am_cv_make_support_nested_variables=no
 
9154
fi
 
9155
fi
 
9156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
9157
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
9158
if test $am_cv_make_support_nested_variables = yes; then
 
9159
    AM_V='$(V)'
 
9160
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
9161
else
 
9162
  AM_V=$AM_DEFAULT_VERBOSITY
 
9163
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
9164
fi
4635
9165
AM_BACKSLASH='\'
4636
9166
 
4637
9167
 
5544
10074
# report actual input values of CONFIG_FILES etc. instead of their
5545
10075
# values after options handling.
5546
10076
ac_log="
5547
 
This file was extended by xinput $as_me 1.5.99.1, which was
 
10077
This file was extended by xinput $as_me 1.6.0, which was
5548
10078
generated by GNU Autoconf 2.68.  Invocation command line was
5549
10079
 
5550
10080
  CONFIG_FILES    = $CONFIG_FILES
5610
10140
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5611
10141
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5612
10142
ac_cs_version="\\
5613
 
xinput config.status 1.5.99.1
 
10143
xinput config.status 1.6.0
5614
10144
configured by $0, generated by GNU Autoconf 2.68,
5615
10145
  with options \\"\$ac_cs_config\\"
5616
10146