Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.72 for rgb 1.1.1.
      4 #
      5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
      9 # Inc.
     10 #
     11 #
     12 # This configure script is free software; the Free Software Foundation
     13 # gives unlimited permission to copy, distribute and modify it.
     14 ## -------------------- ##
     15 ## M4sh Initialization. ##
     16 ## -------------------- ##
     17 
     18 # Be more Bourne compatible
     19 DUALCASE=1; export DUALCASE # for MKS sh
     20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     21 then :
     22   emulate sh
     23   NULLCMD=:
     24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   # is contrary to our usage.  Disable this feature.
     26   alias -g '${1+"$@"}'='"$@"'
     27   setopt NO_GLOB_SUBST
     28 else case e in #(
     29   e) case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac ;;
     35 esac
     36 fi
     37 
     38 
     39 
     40 # Reset variables that may have inherited troublesome values from
     41 # the environment.
     42 
     43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     45 # side effect of setting IFS to empty, thus disabling word splitting.)
     46 # Quoting is to prevent editors from complaining about space-tab.
     47 as_nl='
     48 '
     49 export as_nl
     50 IFS=" ""	$as_nl"
     51 
     52 PS1='$ '
     53 PS2='> '
     54 PS4='+ '
     55 
     56 # Ensure predictable behavior from utilities with locale-dependent output.
     57 LC_ALL=C
     58 export LC_ALL
     59 LANGUAGE=C
     60 export LANGUAGE
     61 
     62 # We cannot yet rely on "unset" to work, but we need these variables
     63 # to be unset--not just set to an empty or harmless value--now, to
     64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65 # also avoids known problems related to "unset" and subshell syntax
     66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68 do eval test \${$as_var+y} \
     69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70 done
     71 
     72 # Ensure that fds 0, 1, and 2 are open.
     73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76 
     77 # The user is always right.
     78 if ${PATH_SEPARATOR+false} :; then
     79   PATH_SEPARATOR=:
     80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82       PATH_SEPARATOR=';'
     83   }
     84 fi
     85 
     86 
     87 # Find who we are.  Look in the path if we contain no directory separator.
     88 as_myself=
     89 case $0 in #((
     90   *[\\/]* ) as_myself=$0 ;;
     91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92 for as_dir in $PATH
     93 do
     94   IFS=$as_save_IFS
     95   case $as_dir in #(((
     96     '') as_dir=./ ;;
     97     */) ;;
     98     *) as_dir=$as_dir/ ;;
     99   esac
    100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
    107 # in which case we are not to be found in the path.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 
    117 # Use a proper internal environment variable to ensure we don't fall
    118   # into an infinite loop, continuously re-executing ourselves.
    119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    120     _as_can_reexec=no; export _as_can_reexec;
    121     # We cannot yet assume a decent shell, so we have to provide a
    122 # neutralization value for shells without unset; and this also
    123 # works around shells that cannot unset nonexistent variables.
    124 # Preserve -v and -x to the replacement shell.
    125 BASH_ENV=/dev/null
    126 ENV=/dev/null
    127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    128 case $- in # ((((
    129   *v*x* | *x*v* ) as_opts=-vx ;;
    130   *v* ) as_opts=-v ;;
    131   *x* ) as_opts=-x ;;
    132   * ) as_opts= ;;
    133 esac
    134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    135 # Admittedly, this is quite paranoid, since all the known shells bail
    136 # out after a failed 'exec'.
    137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    138 exit 255
    139   fi
    140   # We don't want this to propagate to other subprocesses.
    141           { _as_can_reexec=; unset _as_can_reexec;}
    142 if test "x$CONFIG_SHELL" = x; then
    143   as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    144 then :
    145   emulate sh
    146   NULLCMD=:
    147   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    148   # is contrary to our usage.  Disable this feature.
    149   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    150   setopt NO_GLOB_SUBST
    151 else case e in #(
    152   e) case \`(set -o) 2>/dev/null\` in #(
    153   *posix*) :
    154     set -o posix ;; #(
    155   *) :
    156      ;;
    157 esac ;;
    158 esac
    159 fi
    160 "
    161   as_required="as_fn_return () { (exit \$1); }
    162 as_fn_success () { as_fn_return 0; }
    163 as_fn_failure () { as_fn_return 1; }
    164 as_fn_ret_success () { return 0; }
    165 as_fn_ret_failure () { return 1; }
    166 
    167 exitcode=0
    168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    173 then :
    174 
    175 else case e in #(
    176   e) exitcode=1; echo positional parameters were not saved. ;;
    177 esac
    178 fi
    179 test x\$exitcode = x0 || exit 1
    180 blah=\$(echo \$(echo blah))
    181 test x\"\$blah\" = xblah || exit 1
    182 test -x / || exit 1"
    183   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    184   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    185   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    186   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    187 test \$(( 1 + 1 )) = 2 || exit 1"
    188   if (eval "$as_required") 2>/dev/null
    189 then :
    190   as_have_required=yes
    191 else case e in #(
    192   e) as_have_required=no ;;
    193 esac
    194 fi
    195   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    196 then :
    197 
    198 else case e in #(
    199   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    200 as_found=false
    201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    202 do
    203   IFS=$as_save_IFS
    204   case $as_dir in #(((
    205     '') as_dir=./ ;;
    206     */) ;;
    207     *) as_dir=$as_dir/ ;;
    208   esac
    209   as_found=:
    210   case $as_dir in #(
    211 	 /*)
    212 	   for as_base in sh bash ksh sh5; do
    213 	     # Try only shells that exist, to save several forks.
    214 	     as_shell=$as_dir$as_base
    215 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    216 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    217 then :
    218   CONFIG_SHELL=$as_shell as_have_required=yes
    219 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    220 then :
    221   break 2
    222 fi
    223 fi
    224 	   done;;
    225        esac
    226   as_found=false
    227 done
    228 IFS=$as_save_IFS
    229 if $as_found
    230 then :
    231 
    232 else case e in #(
    233   e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    235 then :
    236   CONFIG_SHELL=$SHELL as_have_required=yes
    237 fi ;;
    238 esac
    239 fi
    240 
    241 
    242       if test "x$CONFIG_SHELL" != x
    243 then :
    244   export CONFIG_SHELL
    245              # We cannot yet assume a decent shell, so we have to provide a
    246 # neutralization value for shells without unset; and this also
    247 # works around shells that cannot unset nonexistent variables.
    248 # Preserve -v and -x to the replacement shell.
    249 BASH_ENV=/dev/null
    250 ENV=/dev/null
    251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    252 case $- in # ((((
    253   *v*x* | *x*v* ) as_opts=-vx ;;
    254   *v* ) as_opts=-v ;;
    255   *x* ) as_opts=-x ;;
    256   * ) as_opts= ;;
    257 esac
    258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    259 # Admittedly, this is quite paranoid, since all the known shells bail
    260 # out after a failed 'exec'.
    261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    262 exit 255
    263 fi
    264 
    265     if test x$as_have_required = xno
    266 then :
    267   printf "%s\n" "$0: This script requires a shell more modern than all"
    268   printf "%s\n" "$0: the shells that I found on your system."
    269   if test ${ZSH_VERSION+y} ; then
    270     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    271     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    272   else
    273     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
    274 $0: https://gitlab.freedesktop.org/xorg/app/rgb/-/issues
    275 $0: about your system, including any error possibly output
    276 $0: before this message. Then install a modern shell, or
    277 $0: manually run the script under such a shell if you do
    278 $0: have one."
    279   fi
    280   exit 1
    281 fi ;;
    282 esac
    283 fi
    284 fi
    285 SHELL=${CONFIG_SHELL-/bin/sh}
    286 export SHELL
    287 # Unset more variables known to interfere with behavior of common tools.
    288 CLICOLOR_FORCE= GREP_OPTIONS=
    289 unset CLICOLOR_FORCE GREP_OPTIONS
    290 
    291 ## --------------------- ##
    292 ## M4sh Shell Functions. ##
    293 ## --------------------- ##
    294 # as_fn_unset VAR
    295 # ---------------
    296 # Portably unset VAR.
    297 as_fn_unset ()
    298 {
    299   { eval $1=; unset $1;}
    300 }
    301 as_unset=as_fn_unset
    302 
    303 
    304 # as_fn_set_status STATUS
    305 # -----------------------
    306 # Set $? to STATUS, without forking.
    307 as_fn_set_status ()
    308 {
    309   return $1
    310 } # as_fn_set_status
    311 
    312 # as_fn_exit STATUS
    313 # -----------------
    314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    315 as_fn_exit ()
    316 {
    317   set +e
    318   as_fn_set_status $1
    319   exit $1
    320 } # as_fn_exit
    321 
    322 # as_fn_mkdir_p
    323 # -------------
    324 # Create "$as_dir" as a directory, including parents if necessary.
    325 as_fn_mkdir_p ()
    326 {
    327 
    328   case $as_dir in #(
    329   -*) as_dir=./$as_dir;;
    330   esac
    331   test -d "$as_dir" || eval $as_mkdir_p || {
    332     as_dirs=
    333     while :; do
    334       case $as_dir in #(
    335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336       *) as_qdir=$as_dir;;
    337       esac
    338       as_dirs="'$as_qdir' $as_dirs"
    339       as_dir=`$as_dirname -- "$as_dir" ||
    340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342 	 X"$as_dir" : 'X\(//\)$' \| \
    343 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344 printf "%s\n" X"$as_dir" |
    345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346 	    s//\1/
    347 	    q
    348 	  }
    349 	  /^X\(\/\/\)[^/].*/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)$/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\).*/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  s/.*/./; q'`
    362       test -d "$as_dir" && break
    363     done
    364     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366 
    367 
    368 } # as_fn_mkdir_p
    369 
    370 # as_fn_executable_p FILE
    371 # -----------------------
    372 # Test if FILE is an executable regular file.
    373 as_fn_executable_p ()
    374 {
    375   test -f "$1" && test -x "$1"
    376 } # as_fn_executable_p
    377 # as_fn_append VAR VALUE
    378 # ----------------------
    379 # Append the text in VALUE to the end of the definition contained in VAR. Take
    380 # advantage of any shell optimizations that allow amortized linear growth over
    381 # repeated appends, instead of the typical quadratic growth present in naive
    382 # implementations.
    383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    384 then :
    385   eval 'as_fn_append ()
    386   {
    387     eval $1+=\$2
    388   }'
    389 else case e in #(
    390   e) as_fn_append ()
    391   {
    392     eval $1=\$$1\$2
    393   } ;;
    394 esac
    395 fi # as_fn_append
    396 
    397 # as_fn_arith ARG...
    398 # ------------------
    399 # Perform arithmetic evaluation on the ARGs, and store the result in the
    400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    401 # must be portable across $(()) and expr.
    402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    403 then :
    404   eval 'as_fn_arith ()
    405   {
    406     as_val=$(( $* ))
    407   }'
    408 else case e in #(
    409   e) as_fn_arith ()
    410   {
    411     as_val=`expr "$@" || test $? -eq 1`
    412   } ;;
    413 esac
    414 fi # as_fn_arith
    415 
    416 
    417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    418 # ----------------------------------------
    419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    421 # script with STATUS, using 1 if that was 0.
    422 as_fn_error ()
    423 {
    424   as_status=$1; test $as_status -eq 0 && as_status=1
    425   if test "$4"; then
    426     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    427     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    428   fi
    429   printf "%s\n" "$as_me: error: $2" >&2
    430   as_fn_exit $as_status
    431 } # as_fn_error
    432 
    433 if expr a : '\(a\)' >/dev/null 2>&1 &&
    434    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    435   as_expr=expr
    436 else
    437   as_expr=false
    438 fi
    439 
    440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    441   as_basename=basename
    442 else
    443   as_basename=false
    444 fi
    445 
    446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    447   as_dirname=dirname
    448 else
    449   as_dirname=false
    450 fi
    451 
    452 as_me=`$as_basename -- "$0" ||
    453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    454 	 X"$0" : 'X\(//\)$' \| \
    455 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    456 printf "%s\n" X/"$0" |
    457     sed '/^.*\/\([^/][^/]*\)\/*$/{
    458 	    s//\1/
    459 	    q
    460 	  }
    461 	  /^X\/\(\/\/\)$/{
    462 	    s//\1/
    463 	    q
    464 	  }
    465 	  /^X\/\(\/\).*/{
    466 	    s//\1/
    467 	    q
    468 	  }
    469 	  s/.*/./; q'`
    470 
    471 # Avoid depending upon Character Ranges.
    472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    475 as_cr_digits='0123456789'
    476 as_cr_alnum=$as_cr_Letters$as_cr_digits
    477 
    478 
    479   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    480   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    481   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    482   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    483   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    484   sed -n '
    485     p
    486     /[$]LINENO/=
    487   ' <$as_myself |
    488     sed '
    489       t clear
    490       :clear
    491       s/[$]LINENO.*/&-/
    492       t lineno
    493       b
    494       :lineno
    495       N
    496       :loop
    497       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    498       t loop
    499       s/-\n.*//
    500     ' >$as_me.lineno &&
    501   chmod +x "$as_me.lineno" ||
    502     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    503 
    504   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    505   # already done that, so ensure we don't try to do so again and fall
    506   # in an infinite loop.  This has already happened in practice.
    507   _as_can_reexec=no; export _as_can_reexec
    508   # Don't try to exec as it changes $[0], causing all sort of problems
    509   # (the dirname of $[0] is not the place where we might find the
    510   # original and so on.  Autoconf is especially sensitive to this).
    511   . "./$as_me.lineno"
    512   # Exit status is that of the last command.
    513   exit
    514 }
    515 
    516 
    517 # Determine whether it's possible to make 'echo' print without a newline.
    518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    519 # for compatibility with existing Makefiles.
    520 ECHO_C= ECHO_N= ECHO_T=
    521 case `echo -n x` in #(((((
    522 -n*)
    523   case `echo 'xy\c'` in
    524   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    525   xy)  ECHO_C='\c';;
    526   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    527        ECHO_T='	';;
    528   esac;;
    529 *)
    530   ECHO_N='-n';;
    531 esac
    532 
    533 # For backward compatibility with old third-party macros, we provide
    534 # the shell variables $as_echo and $as_echo_n.  New code should use
    535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    536 as_echo='printf %s\n'
    537 as_echo_n='printf %s'
    538 
    539 rm -f conf$$ conf$$.exe conf$$.file
    540 if test -d conf$$.dir; then
    541   rm -f conf$$.dir/conf$$.file
    542 else
    543   rm -f conf$$.dir
    544   mkdir conf$$.dir 2>/dev/null
    545 fi
    546 if (echo >conf$$.file) 2>/dev/null; then
    547   if ln -s conf$$.file conf$$ 2>/dev/null; then
    548     as_ln_s='ln -s'
    549     # ... but there are two gotchas:
    550     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
    551     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
    552     # In both cases, we have to default to 'cp -pR'.
    553     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    554       as_ln_s='cp -pR'
    555   elif ln conf$$.file conf$$ 2>/dev/null; then
    556     as_ln_s=ln
    557   else
    558     as_ln_s='cp -pR'
    559   fi
    560 else
    561   as_ln_s='cp -pR'
    562 fi
    563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    564 rmdir conf$$.dir 2>/dev/null
    565 
    566 if mkdir -p . 2>/dev/null; then
    567   as_mkdir_p='mkdir -p "$as_dir"'
    568 else
    569   test -d ./-p && rmdir ./-p
    570   as_mkdir_p=false
    571 fi
    572 
    573 as_test_x='test -x'
    574 as_executable_p=as_fn_executable_p
    575 
    576 # Sed expression to map a string onto a valid CPP name.
    577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
    579 
    580 # Sed expression to map a string onto a valid variable name.
    581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
    583 
    584 
    585 test -n "$DJDIR" || exec 7<&0 </dev/null
    586 exec 6>&1
    587 
    588 # Name of the host.
    589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    590 # so uname gets run too.
    591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    592 
    593 #
    594 # Initializations.
    595 #
    596 ac_default_prefix=/usr/local
    597 ac_clean_files=
    598 ac_config_libobj_dir=.
    599 LIBOBJS=
    600 cross_compiling=no
    601 subdirs=
    602 MFLAGS=
    603 MAKEFLAGS=
    604 
    605 # Identity of this package.
    606 PACKAGE_NAME='rgb'
    607 PACKAGE_TARNAME='rgb'
    608 PACKAGE_VERSION='1.1.1'
    609 PACKAGE_STRING='rgb 1.1.1'
    610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/rgb/-/issues'
    611 PACKAGE_URL=''
    612 
    613 ac_unique_file="Makefile.am"
    614 # Factoring default headers for most tests.
    615 ac_includes_default="\
    616 #include <stddef.h>
    617 #ifdef HAVE_STDIO_H
    618 # include <stdio.h>
    619 #endif
    620 #ifdef HAVE_STDLIB_H
    621 # include <stdlib.h>
    622 #endif
    623 #ifdef HAVE_STRING_H
    624 # include <string.h>
    625 #endif
    626 #ifdef HAVE_INTTYPES_H
    627 # include <inttypes.h>
    628 #endif
    629 #ifdef HAVE_STDINT_H
    630 # include <stdint.h>
    631 #endif
    632 #ifdef HAVE_STRINGS_H
    633 # include <strings.h>
    634 #endif
    635 #ifdef HAVE_SYS_TYPES_H
    636 # include <sys/types.h>
    637 #endif
    638 #ifdef HAVE_SYS_STAT_H
    639 # include <sys/stat.h>
    640 #endif
    641 #ifdef HAVE_UNISTD_H
    642 # include <unistd.h>
    643 #endif"
    644 
    645 ac_header_c_list=
    646 ac_subst_vars='am__EXEEXT_FALSE
    647 am__EXEEXT_TRUE
    648 LTLIBOBJS
    649 LIBOBJS
    650 RGB_DB_FALSE
    651 RGB_DB_TRUE
    652 RGB_DB_FILES
    653 RGB_DB_TYPE
    654 XORG_LIBS
    655 XORG_CFLAGS
    656 db_dir
    657 db_file
    658 RGB_LIBS
    659 RGB_CFLAGS
    660 MAN_SUBSTS
    661 XORG_MAN_PAGE
    662 ADMIN_MAN_DIR
    663 DRIVER_MAN_DIR
    664 MISC_MAN_DIR
    665 FILE_MAN_DIR
    666 LIB_MAN_DIR
    667 APP_MAN_DIR
    668 ADMIN_MAN_SUFFIX
    669 DRIVER_MAN_SUFFIX
    670 MISC_MAN_SUFFIX
    671 FILE_MAN_SUFFIX
    672 LIB_MAN_SUFFIX
    673 APP_MAN_SUFFIX
    674 SED
    675 host_os
    676 host_vendor
    677 host_cpu
    678 host
    679 build_os
    680 build_vendor
    681 build_cpu
    682 build
    683 INSTALL_CMD
    684 PKG_CONFIG_LIBDIR
    685 PKG_CONFIG_PATH
    686 PKG_CONFIG
    687 CHANGELOG_CMD
    688 STRICT_CFLAGS
    689 CWARNFLAGS
    690 BASE_CFLAGS
    691 am__xargs_n
    692 am__rm_f_notfound
    693 AM_BACKSLASH
    694 AM_DEFAULT_VERBOSITY
    695 AM_DEFAULT_V
    696 AM_V
    697 CSCOPE
    698 ETAGS
    699 CTAGS
    700 am__fastdepCC_FALSE
    701 am__fastdepCC_TRUE
    702 CCDEPMODE
    703 am__nodep
    704 AMDEPBACKSLASH
    705 AMDEP_FALSE
    706 AMDEP_TRUE
    707 am__include
    708 DEPDIR
    709 am__untar
    710 am__tar
    711 AMTAR
    712 am__leading_dot
    713 SET_MAKE
    714 AWK
    715 mkdir_p
    716 MKDIR_P
    717 INSTALL_STRIP_PROGRAM
    718 STRIP
    719 install_sh
    720 MAKEINFO
    721 AUTOHEADER
    722 AUTOMAKE
    723 AUTOCONF
    724 ACLOCAL
    725 VERSION
    726 PACKAGE
    727 CYGPATH_W
    728 am__isrc
    729 INSTALL_DATA
    730 INSTALL_SCRIPT
    731 INSTALL_PROGRAM
    732 OBJEXT
    733 EXEEXT
    734 ac_ct_CC
    735 CPPFLAGS
    736 LDFLAGS
    737 CFLAGS
    738 CC
    739 target_alias
    740 host_alias
    741 build_alias
    742 LIBS
    743 ECHO_T
    744 ECHO_N
    745 ECHO_C
    746 DEFS
    747 mandir
    748 localedir
    749 libdir
    750 psdir
    751 pdfdir
    752 dvidir
    753 htmldir
    754 infodir
    755 docdir
    756 oldincludedir
    757 includedir
    758 runstatedir
    759 localstatedir
    760 sharedstatedir
    761 sysconfdir
    762 datadir
    763 datarootdir
    764 libexecdir
    765 sbindir
    766 bindir
    767 program_transform_name
    768 prefix
    769 exec_prefix
    770 PACKAGE_URL
    771 PACKAGE_BUGREPORT
    772 PACKAGE_STRING
    773 PACKAGE_VERSION
    774 PACKAGE_TARNAME
    775 PACKAGE_NAME
    776 PATH_SEPARATOR
    777 SHELL
    778 am__quote'
    779 ac_subst_files=''
    780 ac_user_opts='
    781 enable_option_checking
    782 enable_dependency_tracking
    783 enable_silent_rules
    784 enable_selective_werror
    785 enable_strict_compilation
    786 with_rgb_db_dir
    787 with_rgb_db_type
    788 with_rgb_db_library
    789 '
    790       ac_precious_vars='build_alias
    791 host_alias
    792 target_alias
    793 CC
    794 CFLAGS
    795 LDFLAGS
    796 LIBS
    797 CPPFLAGS
    798 PKG_CONFIG
    799 PKG_CONFIG_PATH
    800 PKG_CONFIG_LIBDIR
    801 RGB_CFLAGS
    802 RGB_LIBS
    803 XORG_CFLAGS
    804 XORG_LIBS'
    805 
    806 
    807 # Initialize some variables set by options.
    808 ac_init_help=
    809 ac_init_version=false
    810 ac_unrecognized_opts=
    811 ac_unrecognized_sep=
    812 # The variables have the same names as the options, with
    813 # dashes changed to underlines.
    814 cache_file=/dev/null
    815 exec_prefix=NONE
    816 no_create=
    817 no_recursion=
    818 prefix=NONE
    819 program_prefix=NONE
    820 program_suffix=NONE
    821 program_transform_name=s,x,x,
    822 silent=
    823 site=
    824 srcdir=
    825 verbose=
    826 x_includes=NONE
    827 x_libraries=NONE
    828 
    829 # Installation directory options.
    830 # These are left unexpanded so users can "make install exec_prefix=/foo"
    831 # and all the variables that are supposed to be based on exec_prefix
    832 # by default will actually change.
    833 # Use braces instead of parens because sh, perl, etc. also accept them.
    834 # (The list follows the same order as the GNU Coding Standards.)
    835 bindir='${exec_prefix}/bin'
    836 sbindir='${exec_prefix}/sbin'
    837 libexecdir='${exec_prefix}/libexec'
    838 datarootdir='${prefix}/share'
    839 datadir='${datarootdir}'
    840 sysconfdir='${prefix}/etc'
    841 sharedstatedir='${prefix}/com'
    842 localstatedir='${prefix}/var'
    843 runstatedir='${localstatedir}/run'
    844 includedir='${prefix}/include'
    845 oldincludedir='/usr/include'
    846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    847 infodir='${datarootdir}/info'
    848 htmldir='${docdir}'
    849 dvidir='${docdir}'
    850 pdfdir='${docdir}'
    851 psdir='${docdir}'
    852 libdir='${exec_prefix}/lib'
    853 localedir='${datarootdir}/locale'
    854 mandir='${datarootdir}/man'
    855 
    856 ac_prev=
    857 ac_dashdash=
    858 for ac_option
    859 do
    860   # If the previous option needs an argument, assign it.
    861   if test -n "$ac_prev"; then
    862     eval $ac_prev=\$ac_option
    863     ac_prev=
    864     continue
    865   fi
    866 
    867   case $ac_option in
    868   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    869   *=)   ac_optarg= ;;
    870   *)    ac_optarg=yes ;;
    871   esac
    872 
    873   case $ac_dashdash$ac_option in
    874   --)
    875     ac_dashdash=yes ;;
    876 
    877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    878     ac_prev=bindir ;;
    879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    880     bindir=$ac_optarg ;;
    881 
    882   -build | --build | --buil | --bui | --bu)
    883     ac_prev=build_alias ;;
    884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    885     build_alias=$ac_optarg ;;
    886 
    887   -cache-file | --cache-file | --cache-fil | --cache-fi \
    888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    889     ac_prev=cache_file ;;
    890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    892     cache_file=$ac_optarg ;;
    893 
    894   --config-cache | -C)
    895     cache_file=config.cache ;;
    896 
    897   -datadir | --datadir | --datadi | --datad)
    898     ac_prev=datadir ;;
    899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    900     datadir=$ac_optarg ;;
    901 
    902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    903   | --dataroo | --dataro | --datar)
    904     ac_prev=datarootdir ;;
    905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    907     datarootdir=$ac_optarg ;;
    908 
    909   -disable-* | --disable-*)
    910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    911     # Reject names that are not valid shell variable names.
    912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    913       as_fn_error $? "invalid feature name: '$ac_useropt'"
    914     ac_useropt_orig=$ac_useropt
    915     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    916     case $ac_user_opts in
    917       *"
    918 "enable_$ac_useropt"
    919 "*) ;;
    920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    921 	 ac_unrecognized_sep=', ';;
    922     esac
    923     eval enable_$ac_useropt=no ;;
    924 
    925   -docdir | --docdir | --docdi | --doc | --do)
    926     ac_prev=docdir ;;
    927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    928     docdir=$ac_optarg ;;
    929 
    930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    931     ac_prev=dvidir ;;
    932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    933     dvidir=$ac_optarg ;;
    934 
    935   -enable-* | --enable-*)
    936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    937     # Reject names that are not valid shell variable names.
    938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    939       as_fn_error $? "invalid feature name: '$ac_useropt'"
    940     ac_useropt_orig=$ac_useropt
    941     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    942     case $ac_user_opts in
    943       *"
    944 "enable_$ac_useropt"
    945 "*) ;;
    946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    947 	 ac_unrecognized_sep=', ';;
    948     esac
    949     eval enable_$ac_useropt=\$ac_optarg ;;
    950 
    951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    953   | --exec | --exe | --ex)
    954     ac_prev=exec_prefix ;;
    955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    957   | --exec=* | --exe=* | --ex=*)
    958     exec_prefix=$ac_optarg ;;
    959 
    960   -gas | --gas | --ga | --g)
    961     # Obsolete; use --with-gas.
    962     with_gas=yes ;;
    963 
    964   -help | --help | --hel | --he | -h)
    965     ac_init_help=long ;;
    966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    967     ac_init_help=recursive ;;
    968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    969     ac_init_help=short ;;
    970 
    971   -host | --host | --hos | --ho)
    972     ac_prev=host_alias ;;
    973   -host=* | --host=* | --hos=* | --ho=*)
    974     host_alias=$ac_optarg ;;
    975 
    976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    977     ac_prev=htmldir ;;
    978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    979   | --ht=*)
    980     htmldir=$ac_optarg ;;
    981 
    982   -includedir | --includedir | --includedi | --included | --include \
    983   | --includ | --inclu | --incl | --inc)
    984     ac_prev=includedir ;;
    985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    986   | --includ=* | --inclu=* | --incl=* | --inc=*)
    987     includedir=$ac_optarg ;;
    988 
    989   -infodir | --infodir | --infodi | --infod | --info | --inf)
    990     ac_prev=infodir ;;
    991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    992     infodir=$ac_optarg ;;
    993 
    994   -libdir | --libdir | --libdi | --libd)
    995     ac_prev=libdir ;;
    996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    997     libdir=$ac_optarg ;;
    998 
    999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1000   | --libexe | --libex | --libe)
   1001     ac_prev=libexecdir ;;
   1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1003   | --libexe=* | --libex=* | --libe=*)
   1004     libexecdir=$ac_optarg ;;
   1005 
   1006   -localedir | --localedir | --localedi | --localed | --locale)
   1007     ac_prev=localedir ;;
   1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1009     localedir=$ac_optarg ;;
   1010 
   1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1012   | --localstate | --localstat | --localsta | --localst | --locals)
   1013     ac_prev=localstatedir ;;
   1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1016     localstatedir=$ac_optarg ;;
   1017 
   1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1019     ac_prev=mandir ;;
   1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1021     mandir=$ac_optarg ;;
   1022 
   1023   -nfp | --nfp | --nf)
   1024     # Obsolete; use --without-fp.
   1025     with_fp=no ;;
   1026 
   1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1028   | --no-cr | --no-c | -n)
   1029     no_create=yes ;;
   1030 
   1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1033     no_recursion=yes ;;
   1034 
   1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1037   | --oldin | --oldi | --old | --ol | --o)
   1038     ac_prev=oldincludedir ;;
   1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1042     oldincludedir=$ac_optarg ;;
   1043 
   1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1045     ac_prev=prefix ;;
   1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1047     prefix=$ac_optarg ;;
   1048 
   1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1050   | --program-pre | --program-pr | --program-p)
   1051     ac_prev=program_prefix ;;
   1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1054     program_prefix=$ac_optarg ;;
   1055 
   1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1057   | --program-suf | --program-su | --program-s)
   1058     ac_prev=program_suffix ;;
   1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1061     program_suffix=$ac_optarg ;;
   1062 
   1063   -program-transform-name | --program-transform-name \
   1064   | --program-transform-nam | --program-transform-na \
   1065   | --program-transform-n | --program-transform- \
   1066   | --program-transform | --program-transfor \
   1067   | --program-transfo | --program-transf \
   1068   | --program-trans | --program-tran \
   1069   | --progr-tra | --program-tr | --program-t)
   1070     ac_prev=program_transform_name ;;
   1071   -program-transform-name=* | --program-transform-name=* \
   1072   | --program-transform-nam=* | --program-transform-na=* \
   1073   | --program-transform-n=* | --program-transform-=* \
   1074   | --program-transform=* | --program-transfor=* \
   1075   | --program-transfo=* | --program-transf=* \
   1076   | --program-trans=* | --program-tran=* \
   1077   | --progr-tra=* | --program-tr=* | --program-t=*)
   1078     program_transform_name=$ac_optarg ;;
   1079 
   1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1081     ac_prev=pdfdir ;;
   1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1083     pdfdir=$ac_optarg ;;
   1084 
   1085   -psdir | --psdir | --psdi | --psd | --ps)
   1086     ac_prev=psdir ;;
   1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1088     psdir=$ac_optarg ;;
   1089 
   1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1091   | -silent | --silent | --silen | --sile | --sil)
   1092     silent=yes ;;
   1093 
   1094   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1095   | --runstate | --runstat | --runsta | --runst | --runs \
   1096   | --run | --ru | --r)
   1097     ac_prev=runstatedir ;;
   1098   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1099   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1100   | --run=* | --ru=* | --r=*)
   1101     runstatedir=$ac_optarg ;;
   1102 
   1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1104     ac_prev=sbindir ;;
   1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1106   | --sbi=* | --sb=*)
   1107     sbindir=$ac_optarg ;;
   1108 
   1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1111   | --sharedst | --shareds | --shared | --share | --shar \
   1112   | --sha | --sh)
   1113     ac_prev=sharedstatedir ;;
   1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1117   | --sha=* | --sh=*)
   1118     sharedstatedir=$ac_optarg ;;
   1119 
   1120   -site | --site | --sit)
   1121     ac_prev=site ;;
   1122   -site=* | --site=* | --sit=*)
   1123     site=$ac_optarg ;;
   1124 
   1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1126     ac_prev=srcdir ;;
   1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1128     srcdir=$ac_optarg ;;
   1129 
   1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1131   | --syscon | --sysco | --sysc | --sys | --sy)
   1132     ac_prev=sysconfdir ;;
   1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1135     sysconfdir=$ac_optarg ;;
   1136 
   1137   -target | --target | --targe | --targ | --tar | --ta | --t)
   1138     ac_prev=target_alias ;;
   1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1140     target_alias=$ac_optarg ;;
   1141 
   1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1143     verbose=yes ;;
   1144 
   1145   -version | --version | --versio | --versi | --vers | -V)
   1146     ac_init_version=: ;;
   1147 
   1148   -with-* | --with-*)
   1149     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1150     # Reject names that are not valid shell variable names.
   1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1152       as_fn_error $? "invalid package name: '$ac_useropt'"
   1153     ac_useropt_orig=$ac_useropt
   1154     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1155     case $ac_user_opts in
   1156       *"
   1157 "with_$ac_useropt"
   1158 "*) ;;
   1159       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1160 	 ac_unrecognized_sep=', ';;
   1161     esac
   1162     eval with_$ac_useropt=\$ac_optarg ;;
   1163 
   1164   -without-* | --without-*)
   1165     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1166     # Reject names that are not valid shell variable names.
   1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1168       as_fn_error $? "invalid package name: '$ac_useropt'"
   1169     ac_useropt_orig=$ac_useropt
   1170     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1171     case $ac_user_opts in
   1172       *"
   1173 "with_$ac_useropt"
   1174 "*) ;;
   1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1176 	 ac_unrecognized_sep=', ';;
   1177     esac
   1178     eval with_$ac_useropt=no ;;
   1179 
   1180   --x)
   1181     # Obsolete; use --with-x.
   1182     with_x=yes ;;
   1183 
   1184   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1185   | --x-incl | --x-inc | --x-in | --x-i)
   1186     ac_prev=x_includes ;;
   1187   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1188   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1189     x_includes=$ac_optarg ;;
   1190 
   1191   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1192   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1193     ac_prev=x_libraries ;;
   1194   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1195   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1196     x_libraries=$ac_optarg ;;
   1197 
   1198   -*) as_fn_error $? "unrecognized option: '$ac_option'
   1199 Try '$0 --help' for more information"
   1200     ;;
   1201 
   1202   *=*)
   1203     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1204     # Reject names that are not valid shell variable names.
   1205     case $ac_envvar in #(
   1206       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1207       as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
   1208     esac
   1209     eval $ac_envvar=\$ac_optarg
   1210     export $ac_envvar ;;
   1211 
   1212   *)
   1213     # FIXME: should be removed in autoconf 3.0.
   1214     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1215     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1216       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1217     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1218     ;;
   1219 
   1220   esac
   1221 done
   1222 
   1223 if test -n "$ac_prev"; then
   1224   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1225   as_fn_error $? "missing argument to $ac_option"
   1226 fi
   1227 
   1228 if test -n "$ac_unrecognized_opts"; then
   1229   case $enable_option_checking in
   1230     no) ;;
   1231     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1232     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1233   esac
   1234 fi
   1235 
   1236 # Check all directory arguments for consistency.
   1237 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1238 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1239 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1240 		libdir localedir mandir runstatedir
   1241 do
   1242   eval ac_val=\$$ac_var
   1243   # Remove trailing slashes.
   1244   case $ac_val in
   1245     */ )
   1246       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1247       eval $ac_var=\$ac_val;;
   1248   esac
   1249   # Be sure to have absolute directory names.
   1250   case $ac_val in
   1251     [\\/$]* | ?:[\\/]* )  continue;;
   1252     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1253   esac
   1254   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1255 done
   1256 
   1257 # There might be people who depend on the old broken behavior: '$host'
   1258 # used to hold the argument of --host etc.
   1259 # FIXME: To remove some day.
   1260 build=$build_alias
   1261 host=$host_alias
   1262 target=$target_alias
   1263 
   1264 # FIXME: To remove some day.
   1265 if test "x$host_alias" != x; then
   1266   if test "x$build_alias" = x; then
   1267     cross_compiling=maybe
   1268   elif test "x$build_alias" != "x$host_alias"; then
   1269     cross_compiling=yes
   1270   fi
   1271 fi
   1272 
   1273 ac_tool_prefix=
   1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1275 
   1276 test "$silent" = yes && exec 6>/dev/null
   1277 
   1278 
   1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1280 ac_ls_di=`ls -di .` &&
   1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1282   as_fn_error $? "working directory cannot be determined"
   1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1284   as_fn_error $? "pwd does not report name of working directory"
   1285 
   1286 
   1287 # Find the source files, if location was not specified.
   1288 if test -z "$srcdir"; then
   1289   ac_srcdir_defaulted=yes
   1290   # Try the directory containing this script, then the parent directory.
   1291   ac_confdir=`$as_dirname -- "$as_myself" ||
   1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1293 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1294 	 X"$as_myself" : 'X\(//\)$' \| \
   1295 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1296 printf "%s\n" X"$as_myself" |
   1297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1298 	    s//\1/
   1299 	    q
   1300 	  }
   1301 	  /^X\(\/\/\)[^/].*/{
   1302 	    s//\1/
   1303 	    q
   1304 	  }
   1305 	  /^X\(\/\/\)$/{
   1306 	    s//\1/
   1307 	    q
   1308 	  }
   1309 	  /^X\(\/\).*/{
   1310 	    s//\1/
   1311 	    q
   1312 	  }
   1313 	  s/.*/./; q'`
   1314   srcdir=$ac_confdir
   1315   if test ! -r "$srcdir/$ac_unique_file"; then
   1316     srcdir=..
   1317   fi
   1318 else
   1319   ac_srcdir_defaulted=no
   1320 fi
   1321 if test ! -r "$srcdir/$ac_unique_file"; then
   1322   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1323   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1324 fi
   1325 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
   1326 ac_abs_confdir=`(
   1327 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1328 	pwd)`
   1329 # When building in place, set srcdir=.
   1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1331   srcdir=.
   1332 fi
   1333 # Remove unnecessary trailing slashes from srcdir.
   1334 # Double slashes in file names in object file debugging info
   1335 # mess up M-x gdb in Emacs.
   1336 case $srcdir in
   1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1338 esac
   1339 for ac_var in $ac_precious_vars; do
   1340   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1341   eval ac_env_${ac_var}_value=\$${ac_var}
   1342   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1343   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1344 done
   1345 
   1346 #
   1347 # Report the --help message.
   1348 #
   1349 if test "$ac_init_help" = "long"; then
   1350   # Omit some internal or obsolete options to make the list less imposing.
   1351   # This message is too long to be a string in the A/UX 3.1 sh.
   1352   cat <<_ACEOF
   1353 'configure' configures rgb 1.1.1 to adapt to many kinds of systems.
   1354 
   1355 Usage: $0 [OPTION]... [VAR=VALUE]...
   1356 
   1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1358 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1359 
   1360 Defaults for the options are specified in brackets.
   1361 
   1362 Configuration:
   1363   -h, --help              display this help and exit
   1364       --help=short        display options specific to this package
   1365       --help=recursive    display the short help of all the included packages
   1366   -V, --version           display version information and exit
   1367   -q, --quiet, --silent   do not print 'checking ...' messages
   1368       --cache-file=FILE   cache test results in FILE [disabled]
   1369   -C, --config-cache      alias for '--cache-file=config.cache'
   1370   -n, --no-create         do not create output files
   1371       --srcdir=DIR        find the sources in DIR [configure dir or '..']
   1372 
   1373 Installation directories:
   1374   --prefix=PREFIX         install architecture-independent files in PREFIX
   1375                           [$ac_default_prefix]
   1376   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1377                           [PREFIX]
   1378 
   1379 By default, 'make install' will install all the files in
   1380 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
   1381 an installation prefix other than '$ac_default_prefix' using '--prefix',
   1382 for instance '--prefix=\$HOME'.
   1383 
   1384 For better control, use the options below.
   1385 
   1386 Fine tuning of the installation directories:
   1387   --bindir=DIR            user executables [EPREFIX/bin]
   1388   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1389   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1390   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1391   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1392   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1393   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1394   --libdir=DIR            object code libraries [EPREFIX/lib]
   1395   --includedir=DIR        C header files [PREFIX/include]
   1396   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1397   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1398   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1399   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1400   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1401   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1402   --docdir=DIR            documentation root [DATAROOTDIR/doc/rgb]
   1403   --htmldir=DIR           html documentation [DOCDIR]
   1404   --dvidir=DIR            dvi documentation [DOCDIR]
   1405   --pdfdir=DIR            pdf documentation [DOCDIR]
   1406   --psdir=DIR             ps documentation [DOCDIR]
   1407 _ACEOF
   1408 
   1409   cat <<\_ACEOF
   1410 
   1411 Program names:
   1412   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1413   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1414   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1415 
   1416 System types:
   1417   --build=BUILD     configure for building on BUILD [guessed]
   1418   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1419 _ACEOF
   1420 fi
   1421 
   1422 if test -n "$ac_init_help"; then
   1423   case $ac_init_help in
   1424      short | recursive ) echo "Configuration of rgb 1.1.1:";;
   1425    esac
   1426   cat <<\_ACEOF
   1427 
   1428 Optional Features:
   1429   --disable-option-checking  ignore unrecognized --enable/--with options
   1430   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1431   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1432   --enable-dependency-tracking
   1433                           do not reject slow dependency extractors
   1434   --disable-dependency-tracking
   1435                           speeds up one-time build
   1436   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1437   --disable-silent-rules  verbose build output (undo: "make V=0")
   1438   --disable-selective-werror
   1439                           Turn off selective compiler errors. (default:
   1440                           enabled)
   1441   --enable-strict-compilation
   1442                           Enable all warnings from compiler and make them
   1443                           errors (default: disabled)
   1444 
   1445 Optional Packages:
   1446   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1447   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1448   --with-rgb-db-dir=<path>
   1449                           rgb database location (default is
   1450                           ${datadir}/X11/rgb)
   1451   --with-rgb-db-type=(text|dbm|ndbm)
   1452                           rgb database type (default is text)
   1453   --with-rgb-db-library=<library-name>
   1454                           rgb database library (default is to search for one)
   1455 
   1456 Some influential environment variables:
   1457   CC          C compiler command
   1458   CFLAGS      C compiler flags
   1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1460               nonstandard directory <lib dir>
   1461   LIBS        libraries to pass to the linker, e.g. -l<library>
   1462   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1463               you have headers in a nonstandard directory <include dir>
   1464   PKG_CONFIG  path to pkg-config utility
   1465   PKG_CONFIG_PATH
   1466               directories to add to pkg-config's search path
   1467   PKG_CONFIG_LIBDIR
   1468               path overriding pkg-config's built-in search path
   1469   RGB_CFLAGS  C compiler flags for RGB, overriding pkg-config
   1470   RGB_LIBS    linker flags for RGB, overriding pkg-config
   1471   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
   1472   XORG_LIBS   linker flags for XORG, overriding pkg-config
   1473 
   1474 Use these variables to override the choices made by 'configure' or to help
   1475 it to find libraries and programs with nonstandard names/locations.
   1476 
   1477 Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>.
   1478 _ACEOF
   1479 ac_status=$?
   1480 fi
   1481 
   1482 if test "$ac_init_help" = "recursive"; then
   1483   # If there are subdirs, report their specific --help.
   1484   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1485     test -d "$ac_dir" ||
   1486       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1487       continue
   1488     ac_builddir=.
   1489 
   1490 case "$ac_dir" in
   1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1492 *)
   1493   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1494   # A ".." for each directory in $ac_dir_suffix.
   1495   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1496   case $ac_top_builddir_sub in
   1497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1499   esac ;;
   1500 esac
   1501 ac_abs_top_builddir=$ac_pwd
   1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1503 # for backward compatibility:
   1504 ac_top_builddir=$ac_top_build_prefix
   1505 
   1506 case $srcdir in
   1507   .)  # We are building in place.
   1508     ac_srcdir=.
   1509     ac_top_srcdir=$ac_top_builddir_sub
   1510     ac_abs_top_srcdir=$ac_pwd ;;
   1511   [\\/]* | ?:[\\/]* )  # Absolute name.
   1512     ac_srcdir=$srcdir$ac_dir_suffix;
   1513     ac_top_srcdir=$srcdir
   1514     ac_abs_top_srcdir=$srcdir ;;
   1515   *) # Relative name.
   1516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1517     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1519 esac
   1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1521 
   1522     cd "$ac_dir" || { ac_status=$?; continue; }
   1523     # Check for configure.gnu first; this name is used for a wrapper for
   1524     # Metaconfig's "Configure" on case-insensitive file systems.
   1525     if test -f "$ac_srcdir/configure.gnu"; then
   1526       echo &&
   1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1528     elif test -f "$ac_srcdir/configure"; then
   1529       echo &&
   1530       $SHELL "$ac_srcdir/configure" --help=recursive
   1531     else
   1532       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1533     fi || ac_status=$?
   1534     cd "$ac_pwd" || { ac_status=$?; break; }
   1535   done
   1536 fi
   1537 
   1538 test -n "$ac_init_help" && exit $ac_status
   1539 if $ac_init_version; then
   1540   cat <<\_ACEOF
   1541 rgb configure 1.1.1
   1542 generated by GNU Autoconf 2.72
   1543 
   1544 Copyright (C) 2023 Free Software Foundation, Inc.
   1545 This configure script is free software; the Free Software Foundation
   1546 gives unlimited permission to copy, distribute and modify it.
   1547 _ACEOF
   1548   exit
   1549 fi
   1550 
   1551 ## ------------------------ ##
   1552 ## Autoconf initialization. ##
   1553 ## ------------------------ ##
   1554 
   1555 # ac_fn_c_try_compile LINENO
   1556 # --------------------------
   1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1558 ac_fn_c_try_compile ()
   1559 {
   1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1561   rm -f conftest.$ac_objext conftest.beam
   1562   if { { ac_try="$ac_compile"
   1563 case "(($ac_try" in
   1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1565   *) ac_try_echo=$ac_try;;
   1566 esac
   1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1568 printf "%s\n" "$ac_try_echo"; } >&5
   1569   (eval "$ac_compile") 2>conftest.err
   1570   ac_status=$?
   1571   if test -s conftest.err; then
   1572     grep -v '^ *+' conftest.err >conftest.er1
   1573     cat conftest.er1 >&5
   1574     mv -f conftest.er1 conftest.err
   1575   fi
   1576   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1577   test $ac_status = 0; } && {
   1578 	 test -z "$ac_c_werror_flag" ||
   1579 	 test ! -s conftest.err
   1580        } && test -s conftest.$ac_objext
   1581 then :
   1582   ac_retval=0
   1583 else case e in #(
   1584   e) printf "%s\n" "$as_me: failed program was:" >&5
   1585 sed 's/^/| /' conftest.$ac_ext >&5
   1586 
   1587 	ac_retval=1 ;;
   1588 esac
   1589 fi
   1590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1591   as_fn_set_status $ac_retval
   1592 
   1593 } # ac_fn_c_try_compile
   1594 
   1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1596 # -------------------------------------------------------
   1597 # Tests whether HEADER exists and can be compiled using the include files in
   1598 # INCLUDES, setting the cache variable VAR accordingly.
   1599 ac_fn_c_check_header_compile ()
   1600 {
   1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1603 printf %s "checking for $2... " >&6; }
   1604 if eval test \${$3+y}
   1605 then :
   1606   printf %s "(cached) " >&6
   1607 else case e in #(
   1608   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1609 /* end confdefs.h.  */
   1610 $4
   1611 #include <$2>
   1612 _ACEOF
   1613 if ac_fn_c_try_compile "$LINENO"
   1614 then :
   1615   eval "$3=yes"
   1616 else case e in #(
   1617   e) eval "$3=no" ;;
   1618 esac
   1619 fi
   1620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1621 esac
   1622 fi
   1623 eval ac_res=\$$3
   1624 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1625 printf "%s\n" "$ac_res" >&6; }
   1626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1627 
   1628 } # ac_fn_c_check_header_compile
   1629 
   1630 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1631 # ------------------------------------------------------------------
   1632 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1633 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1634 ac_fn_check_decl ()
   1635 {
   1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1637   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1639 printf %s "checking whether $as_decl_name is declared... " >&6; }
   1640 if eval test \${$3+y}
   1641 then :
   1642   printf %s "(cached) " >&6
   1643 else case e in #(
   1644   e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1645   eval ac_save_FLAGS=\$$6
   1646   as_fn_append $6 " $5"
   1647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1648 /* end confdefs.h.  */
   1649 $4
   1650 int
   1651 main (void)
   1652 {
   1653 #ifndef $as_decl_name
   1654 #ifdef __cplusplus
   1655   (void) $as_decl_use;
   1656 #else
   1657   (void) $as_decl_name;
   1658 #endif
   1659 #endif
   1660 
   1661   ;
   1662   return 0;
   1663 }
   1664 _ACEOF
   1665 if ac_fn_c_try_compile "$LINENO"
   1666 then :
   1667   eval "$3=yes"
   1668 else case e in #(
   1669   e) eval "$3=no" ;;
   1670 esac
   1671 fi
   1672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1673   eval $6=\$ac_save_FLAGS
   1674  ;;
   1675 esac
   1676 fi
   1677 eval ac_res=\$$3
   1678 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1679 printf "%s\n" "$ac_res" >&6; }
   1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1681 
   1682 } # ac_fn_check_decl
   1683 
   1684 # ac_fn_c_try_link LINENO
   1685 # -----------------------
   1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1687 ac_fn_c_try_link ()
   1688 {
   1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1690   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1691   if { { ac_try="$ac_link"
   1692 case "(($ac_try" in
   1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1694   *) ac_try_echo=$ac_try;;
   1695 esac
   1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1697 printf "%s\n" "$ac_try_echo"; } >&5
   1698   (eval "$ac_link") 2>conftest.err
   1699   ac_status=$?
   1700   if test -s conftest.err; then
   1701     grep -v '^ *+' conftest.err >conftest.er1
   1702     cat conftest.er1 >&5
   1703     mv -f conftest.er1 conftest.err
   1704   fi
   1705   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1706   test $ac_status = 0; } && {
   1707 	 test -z "$ac_c_werror_flag" ||
   1708 	 test ! -s conftest.err
   1709        } && test -s conftest$ac_exeext && {
   1710 	 test "$cross_compiling" = yes ||
   1711 	 test -x conftest$ac_exeext
   1712        }
   1713 then :
   1714   ac_retval=0
   1715 else case e in #(
   1716   e) printf "%s\n" "$as_me: failed program was:" >&5
   1717 sed 's/^/| /' conftest.$ac_ext >&5
   1718 
   1719 	ac_retval=1 ;;
   1720 esac
   1721 fi
   1722   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1723   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1724   # interfere with the next link command; also delete a directory that is
   1725   # left behind by Apple's compiler.  We do this before executing the actions.
   1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1728   as_fn_set_status $ac_retval
   1729 
   1730 } # ac_fn_c_try_link
   1731 
   1732 # ac_fn_c_check_func LINENO FUNC VAR
   1733 # ----------------------------------
   1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1735 ac_fn_c_check_func ()
   1736 {
   1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1739 printf %s "checking for $2... " >&6; }
   1740 if eval test \${$3+y}
   1741 then :
   1742   printf %s "(cached) " >&6
   1743 else case e in #(
   1744   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1745 /* end confdefs.h.  */
   1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1748 #define $2 innocuous_$2
   1749 
   1750 /* System header to define __stub macros and hopefully few prototypes,
   1751    which can conflict with char $2 (void); below.  */
   1752 
   1753 #include <limits.h>
   1754 #undef $2
   1755 
   1756 /* Override any GCC internal prototype to avoid an error.
   1757    Use char because int might match the return type of a GCC
   1758    builtin and then its argument prototype would still apply.  */
   1759 #ifdef __cplusplus
   1760 extern "C"
   1761 #endif
   1762 char $2 (void);
   1763 /* The GNU C library defines this for functions which it implements
   1764     to always fail with ENOSYS.  Some functions are actually named
   1765     something starting with __ and the normal name is an alias.  */
   1766 #if defined __stub_$2 || defined __stub___$2
   1767 choke me
   1768 #endif
   1769 
   1770 int
   1771 main (void)
   1772 {
   1773 return $2 ();
   1774   ;
   1775   return 0;
   1776 }
   1777 _ACEOF
   1778 if ac_fn_c_try_link "$LINENO"
   1779 then :
   1780   eval "$3=yes"
   1781 else case e in #(
   1782   e) eval "$3=no" ;;
   1783 esac
   1784 fi
   1785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1786     conftest$ac_exeext conftest.$ac_ext ;;
   1787 esac
   1788 fi
   1789 eval ac_res=\$$3
   1790 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1791 printf "%s\n" "$ac_res" >&6; }
   1792   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1793 
   1794 } # ac_fn_c_check_func
   1795 ac_configure_args_raw=
   1796 for ac_arg
   1797 do
   1798   case $ac_arg in
   1799   *\'*)
   1800     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1801   esac
   1802   as_fn_append ac_configure_args_raw " '$ac_arg'"
   1803 done
   1804 
   1805 case $ac_configure_args_raw in
   1806   *$as_nl*)
   1807     ac_safe_unquote= ;;
   1808   *)
   1809     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   1810     ac_unsafe_a="$ac_unsafe_z#~"
   1811     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   1812     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   1813 esac
   1814 
   1815 cat >config.log <<_ACEOF
   1816 This file contains any messages produced by compilers while
   1817 running configure, to aid debugging if configure makes a mistake.
   1818 
   1819 It was created by rgb $as_me 1.1.1, which was
   1820 generated by GNU Autoconf 2.72.  Invocation command line was
   1821 
   1822   $ $0$ac_configure_args_raw
   1823 
   1824 _ACEOF
   1825 exec 5>>config.log
   1826 {
   1827 cat <<_ASUNAME
   1828 ## --------- ##
   1829 ## Platform. ##
   1830 ## --------- ##
   1831 
   1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1837 
   1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1839 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1840 
   1841 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1842 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1844 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1845 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1846 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1847 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1848 
   1849 _ASUNAME
   1850 
   1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1852 for as_dir in $PATH
   1853 do
   1854   IFS=$as_save_IFS
   1855   case $as_dir in #(((
   1856     '') as_dir=./ ;;
   1857     */) ;;
   1858     *) as_dir=$as_dir/ ;;
   1859   esac
   1860     printf "%s\n" "PATH: $as_dir"
   1861   done
   1862 IFS=$as_save_IFS
   1863 
   1864 } >&5
   1865 
   1866 cat >&5 <<_ACEOF
   1867 
   1868 
   1869 ## ----------- ##
   1870 ## Core tests. ##
   1871 ## ----------- ##
   1872 
   1873 _ACEOF
   1874 
   1875 
   1876 # Keep a trace of the command line.
   1877 # Strip out --no-create and --no-recursion so they do not pile up.
   1878 # Strip out --silent because we don't want to record it for future runs.
   1879 # Also quote any args containing shell meta-characters.
   1880 # Make two passes to allow for proper duplicate-argument suppression.
   1881 ac_configure_args=
   1882 ac_configure_args0=
   1883 ac_configure_args1=
   1884 ac_must_keep_next=false
   1885 for ac_pass in 1 2
   1886 do
   1887   for ac_arg
   1888   do
   1889     case $ac_arg in
   1890     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1891     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1892     | -silent | --silent | --silen | --sile | --sil)
   1893       continue ;;
   1894     *\'*)
   1895       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1896     esac
   1897     case $ac_pass in
   1898     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1899     2)
   1900       as_fn_append ac_configure_args1 " '$ac_arg'"
   1901       if test $ac_must_keep_next = true; then
   1902 	ac_must_keep_next=false # Got value, back to normal.
   1903       else
   1904 	case $ac_arg in
   1905 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1906 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1907 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1908 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1909 	    case "$ac_configure_args0 " in
   1910 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1911 	    esac
   1912 	    ;;
   1913 	  -* ) ac_must_keep_next=true ;;
   1914 	esac
   1915       fi
   1916       as_fn_append ac_configure_args " '$ac_arg'"
   1917       ;;
   1918     esac
   1919   done
   1920 done
   1921 { ac_configure_args0=; unset ac_configure_args0;}
   1922 { ac_configure_args1=; unset ac_configure_args1;}
   1923 
   1924 # When interrupted or exit'd, cleanup temporary files, and complete
   1925 # config.log.  We remove comments because anyway the quotes in there
   1926 # would cause problems or look ugly.
   1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1929 trap 'exit_status=$?
   1930   # Sanitize IFS.
   1931   IFS=" ""	$as_nl"
   1932   # Save into config.log some information that might help in debugging.
   1933   {
   1934     echo
   1935 
   1936     printf "%s\n" "## ---------------- ##
   1937 ## Cache variables. ##
   1938 ## ---------------- ##"
   1939     echo
   1940     # The following way of writing the cache mishandles newlines in values,
   1941 (
   1942   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1943     eval ac_val=\$$ac_var
   1944     case $ac_val in #(
   1945     *${as_nl}*)
   1946       case $ac_var in #(
   1947       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   1948 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1949       esac
   1950       case $ac_var in #(
   1951       _ | IFS | as_nl) ;; #(
   1952       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1953       *) { eval $ac_var=; unset $ac_var;} ;;
   1954       esac ;;
   1955     esac
   1956   done
   1957   (set) 2>&1 |
   1958     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1959     *${as_nl}ac_space=\ *)
   1960       sed -n \
   1961 	"s/'\''/'\''\\\\'\'''\''/g;
   1962 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1963       ;; #(
   1964     *)
   1965       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1966       ;;
   1967     esac |
   1968     sort
   1969 )
   1970     echo
   1971 
   1972     printf "%s\n" "## ----------------- ##
   1973 ## Output variables. ##
   1974 ## ----------------- ##"
   1975     echo
   1976     for ac_var in $ac_subst_vars
   1977     do
   1978       eval ac_val=\$$ac_var
   1979       case $ac_val in
   1980       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1981       esac
   1982       printf "%s\n" "$ac_var='\''$ac_val'\''"
   1983     done | sort
   1984     echo
   1985 
   1986     if test -n "$ac_subst_files"; then
   1987       printf "%s\n" "## ------------------- ##
   1988 ## File substitutions. ##
   1989 ## ------------------- ##"
   1990       echo
   1991       for ac_var in $ac_subst_files
   1992       do
   1993 	eval ac_val=\$$ac_var
   1994 	case $ac_val in
   1995 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1996 	esac
   1997 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   1998       done | sort
   1999       echo
   2000     fi
   2001 
   2002     if test -s confdefs.h; then
   2003       printf "%s\n" "## ----------- ##
   2004 ## confdefs.h. ##
   2005 ## ----------- ##"
   2006       echo
   2007       cat confdefs.h
   2008       echo
   2009     fi
   2010     test "$ac_signal" != 0 &&
   2011       printf "%s\n" "$as_me: caught signal $ac_signal"
   2012     printf "%s\n" "$as_me: exit $exit_status"
   2013   } >&5
   2014   rm -f core *.core core.conftest.* &&
   2015     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2016     exit $exit_status
   2017 ' 0
   2018 for ac_signal in 1 2 13 15; do
   2019   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2020 done
   2021 ac_signal=0
   2022 
   2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2024 rm -f -r conftest* confdefs.h
   2025 
   2026 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2027 
   2028 # Predefined preprocessor variables.
   2029 
   2030 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2031 
   2032 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2033 
   2034 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2035 
   2036 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2037 
   2038 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2039 
   2040 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2041 
   2042 
   2043 # Let the site file select an alternate cache file if it wants to.
   2044 # Prefer an explicitly selected file to automatically selected ones.
   2045 if test -n "$CONFIG_SITE"; then
   2046   ac_site_files="$CONFIG_SITE"
   2047 elif test "x$prefix" != xNONE; then
   2048   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2049 else
   2050   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2051 fi
   2052 
   2053 for ac_site_file in $ac_site_files
   2054 do
   2055   case $ac_site_file in #(
   2056   */*) :
   2057      ;; #(
   2058   *) :
   2059     ac_site_file=./$ac_site_file ;;
   2060 esac
   2061   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2062     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2063 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2064     sed 's/^/| /' "$ac_site_file" >&5
   2065     . "$ac_site_file" \
   2066       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   2067 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   2068 as_fn_error $? "failed to load site script $ac_site_file
   2069 See 'config.log' for more details" "$LINENO" 5; }
   2070   fi
   2071 done
   2072 
   2073 if test -r "$cache_file"; then
   2074   # Some versions of bash will fail to source /dev/null (special files
   2075   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2076   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2077     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2078 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2079     case $cache_file in
   2080       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2081       *)                      . "./$cache_file";;
   2082     esac
   2083   fi
   2084 else
   2085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2086 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2087   >$cache_file
   2088 fi
   2089 
   2090 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2091 # Test code for whether the C compiler supports C89 (global declarations)
   2092 ac_c_conftest_c89_globals='
   2093 /* Does the compiler advertise C89 conformance?
   2094    Do not test the value of __STDC__, because some compilers set it to 0
   2095    while being otherwise adequately conformant. */
   2096 #if !defined __STDC__
   2097 # error "Compiler does not advertise C89 conformance"
   2098 #endif
   2099 
   2100 #include <stddef.h>
   2101 #include <stdarg.h>
   2102 struct stat;
   2103 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2104 struct buf { int x; };
   2105 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2106 static char *e (char **p, int i)
   2107 {
   2108   return p[i];
   2109 }
   2110 static char *f (char * (*g) (char **, int), char **p, ...)
   2111 {
   2112   char *s;
   2113   va_list v;
   2114   va_start (v,p);
   2115   s = g (p, va_arg (v,int));
   2116   va_end (v);
   2117   return s;
   2118 }
   2119 
   2120 /* C89 style stringification. */
   2121 #define noexpand_stringify(a) #a
   2122 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
   2123 
   2124 /* C89 style token pasting.  Exercises some of the corner cases that
   2125    e.g. old MSVC gets wrong, but not very hard. */
   2126 #define noexpand_concat(a,b) a##b
   2127 #define expand_concat(a,b) noexpand_concat(a,b)
   2128 extern int vA;
   2129 extern int vbee;
   2130 #define aye A
   2131 #define bee B
   2132 int *pvA = &expand_concat(v,aye);
   2133 int *pvbee = &noexpand_concat(v,bee);
   2134 
   2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2136    function prototypes and stuff, but not \xHH hex character constants.
   2137    These do not provoke an error unfortunately, instead are silently treated
   2138    as an "x".  The following induces an error, until -std is added to get
   2139    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2140    array size at least.  It is necessary to write \x00 == 0 to get something
   2141    that is true only with -std.  */
   2142 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2143 
   2144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2145    inside strings and character constants.  */
   2146 #define FOO(x) '\''x'\''
   2147 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2148 
   2149 int test (int i, double x);
   2150 struct s1 {int (*f) (int a);};
   2151 struct s2 {int (*f) (double a);};
   2152 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2153                int, int);'
   2154 
   2155 # Test code for whether the C compiler supports C89 (body of main).
   2156 ac_c_conftest_c89_main='
   2157 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2158 '
   2159 
   2160 # Test code for whether the C compiler supports C99 (global declarations)
   2161 ac_c_conftest_c99_globals='
   2162 /* Does the compiler advertise C99 conformance? */
   2163 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2164 # error "Compiler does not advertise C99 conformance"
   2165 #endif
   2166 
   2167 // See if C++-style comments work.
   2168 
   2169 #include <stdbool.h>
   2170 extern int puts (const char *);
   2171 extern int printf (const char *, ...);
   2172 extern int dprintf (int, const char *, ...);
   2173 extern void *malloc (size_t);
   2174 extern void free (void *);
   2175 
   2176 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2177 // dprintf is used instead of fprintf to avoid needing to declare
   2178 // FILE and stderr.
   2179 #define debug(...) dprintf (2, __VA_ARGS__)
   2180 #define showlist(...) puts (#__VA_ARGS__)
   2181 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2182 static void
   2183 test_varargs_macros (void)
   2184 {
   2185   int x = 1234;
   2186   int y = 5678;
   2187   debug ("Flag");
   2188   debug ("X = %d\n", x);
   2189   showlist (The first, second, and third items.);
   2190   report (x>y, "x is %d but y is %d", x, y);
   2191 }
   2192 
   2193 // Check long long types.
   2194 #define BIG64 18446744073709551615ull
   2195 #define BIG32 4294967295ul
   2196 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2197 #if !BIG_OK
   2198   #error "your preprocessor is broken"
   2199 #endif
   2200 #if BIG_OK
   2201 #else
   2202   #error "your preprocessor is broken"
   2203 #endif
   2204 static long long int bignum = -9223372036854775807LL;
   2205 static unsigned long long int ubignum = BIG64;
   2206 
   2207 struct incomplete_array
   2208 {
   2209   int datasize;
   2210   double data[];
   2211 };
   2212 
   2213 struct named_init {
   2214   int number;
   2215   const wchar_t *name;
   2216   double average;
   2217 };
   2218 
   2219 typedef const char *ccp;
   2220 
   2221 static inline int
   2222 test_restrict (ccp restrict text)
   2223 {
   2224   // Iterate through items via the restricted pointer.
   2225   // Also check for declarations in for loops.
   2226   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2227     continue;
   2228   return 0;
   2229 }
   2230 
   2231 // Check varargs and va_copy.
   2232 static bool
   2233 test_varargs (const char *format, ...)
   2234 {
   2235   va_list args;
   2236   va_start (args, format);
   2237   va_list args_copy;
   2238   va_copy (args_copy, args);
   2239 
   2240   const char *str = "";
   2241   int number = 0;
   2242   float fnumber = 0;
   2243 
   2244   while (*format)
   2245     {
   2246       switch (*format++)
   2247 	{
   2248 	case '\''s'\'': // string
   2249 	  str = va_arg (args_copy, const char *);
   2250 	  break;
   2251 	case '\''d'\'': // int
   2252 	  number = va_arg (args_copy, int);
   2253 	  break;
   2254 	case '\''f'\'': // float
   2255 	  fnumber = va_arg (args_copy, double);
   2256 	  break;
   2257 	default:
   2258 	  break;
   2259 	}
   2260     }
   2261   va_end (args_copy);
   2262   va_end (args);
   2263 
   2264   return *str && number && fnumber;
   2265 }
   2266 '
   2267 
   2268 # Test code for whether the C compiler supports C99 (body of main).
   2269 ac_c_conftest_c99_main='
   2270   // Check bool.
   2271   _Bool success = false;
   2272   success |= (argc != 0);
   2273 
   2274   // Check restrict.
   2275   if (test_restrict ("String literal") == 0)
   2276     success = true;
   2277   char *restrict newvar = "Another string";
   2278 
   2279   // Check varargs.
   2280   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2281   test_varargs_macros ();
   2282 
   2283   // Check flexible array members.
   2284   struct incomplete_array *ia =
   2285     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2286   ia->datasize = 10;
   2287   for (int i = 0; i < ia->datasize; ++i)
   2288     ia->data[i] = i * 1.234;
   2289   // Work around memory leak warnings.
   2290   free (ia);
   2291 
   2292   // Check named initializers.
   2293   struct named_init ni = {
   2294     .number = 34,
   2295     .name = L"Test wide string",
   2296     .average = 543.34343,
   2297   };
   2298 
   2299   ni.number = 58;
   2300 
   2301   int dynamic_array[ni.number];
   2302   dynamic_array[0] = argv[0][0];
   2303   dynamic_array[ni.number - 1] = 543;
   2304 
   2305   // work around unused variable warnings
   2306   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2307 	 || dynamic_array[ni.number - 1] != 543);
   2308 '
   2309 
   2310 # Test code for whether the C compiler supports C11 (global declarations)
   2311 ac_c_conftest_c11_globals='
   2312 /* Does the compiler advertise C11 conformance? */
   2313 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2314 # error "Compiler does not advertise C11 conformance"
   2315 #endif
   2316 
   2317 // Check _Alignas.
   2318 char _Alignas (double) aligned_as_double;
   2319 char _Alignas (0) no_special_alignment;
   2320 extern char aligned_as_int;
   2321 char _Alignas (0) _Alignas (int) aligned_as_int;
   2322 
   2323 // Check _Alignof.
   2324 enum
   2325 {
   2326   int_alignment = _Alignof (int),
   2327   int_array_alignment = _Alignof (int[100]),
   2328   char_alignment = _Alignof (char)
   2329 };
   2330 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2331 
   2332 // Check _Noreturn.
   2333 int _Noreturn does_not_return (void) { for (;;) continue; }
   2334 
   2335 // Check _Static_assert.
   2336 struct test_static_assert
   2337 {
   2338   int x;
   2339   _Static_assert (sizeof (int) <= sizeof (long int),
   2340                   "_Static_assert does not work in struct");
   2341   long int y;
   2342 };
   2343 
   2344 // Check UTF-8 literals.
   2345 #define u8 syntax error!
   2346 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2347 
   2348 // Check duplicate typedefs.
   2349 typedef long *long_ptr;
   2350 typedef long int *long_ptr;
   2351 typedef long_ptr long_ptr;
   2352 
   2353 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2354 struct anonymous
   2355 {
   2356   union {
   2357     struct { int i; int j; };
   2358     struct { int k; long int l; } w;
   2359   };
   2360   int m;
   2361 } v1;
   2362 '
   2363 
   2364 # Test code for whether the C compiler supports C11 (body of main).
   2365 ac_c_conftest_c11_main='
   2366   _Static_assert ((offsetof (struct anonymous, i)
   2367 		   == offsetof (struct anonymous, w.k)),
   2368 		  "Anonymous union alignment botch");
   2369   v1.i = 2;
   2370   v1.w.k = 5;
   2371   ok |= v1.i != 5;
   2372 '
   2373 
   2374 # Test code for whether the C compiler supports C11 (complete).
   2375 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2376 ${ac_c_conftest_c99_globals}
   2377 ${ac_c_conftest_c11_globals}
   2378 
   2379 int
   2380 main (int argc, char **argv)
   2381 {
   2382   int ok = 0;
   2383   ${ac_c_conftest_c89_main}
   2384   ${ac_c_conftest_c99_main}
   2385   ${ac_c_conftest_c11_main}
   2386   return ok;
   2387 }
   2388 "
   2389 
   2390 # Test code for whether the C compiler supports C99 (complete).
   2391 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2392 ${ac_c_conftest_c99_globals}
   2393 
   2394 int
   2395 main (int argc, char **argv)
   2396 {
   2397   int ok = 0;
   2398   ${ac_c_conftest_c89_main}
   2399   ${ac_c_conftest_c99_main}
   2400   return ok;
   2401 }
   2402 "
   2403 
   2404 # Test code for whether the C compiler supports C89 (complete).
   2405 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2406 
   2407 int
   2408 main (int argc, char **argv)
   2409 {
   2410   int ok = 0;
   2411   ${ac_c_conftest_c89_main}
   2412   return ok;
   2413 }
   2414 "
   2415 
   2416 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2417 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2418 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2419 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2420 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2421 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2422 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2423 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2424 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
   2425 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
   2426 
   2427 # Auxiliary files required by this configure script.
   2428 ac_aux_files="config.guess config.sub missing install-sh compile"
   2429 
   2430 # Locations in which to look for auxiliary files.
   2431 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2432 
   2433 # Search for a directory containing all of the required auxiliary files,
   2434 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2435 # If we don't find one directory that contains all the files we need,
   2436 # we report the set of missing files from the *first* directory in
   2437 # $ac_aux_dir_candidates and give up.
   2438 ac_missing_aux_files=""
   2439 ac_first_candidate=:
   2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2442 as_found=false
   2443 for as_dir in $ac_aux_dir_candidates
   2444 do
   2445   IFS=$as_save_IFS
   2446   case $as_dir in #(((
   2447     '') as_dir=./ ;;
   2448     */) ;;
   2449     *) as_dir=$as_dir/ ;;
   2450   esac
   2451   as_found=:
   2452 
   2453   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2454   ac_aux_dir_found=yes
   2455   ac_install_sh=
   2456   for ac_aux in $ac_aux_files
   2457   do
   2458     # As a special case, if "install-sh" is required, that requirement
   2459     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2460     # and $ac_install_sh is set appropriately for whichever one is found.
   2461     if test x"$ac_aux" = x"install-sh"
   2462     then
   2463       if test -f "${as_dir}install-sh"; then
   2464         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2465         ac_install_sh="${as_dir}install-sh -c"
   2466       elif test -f "${as_dir}install.sh"; then
   2467         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2468         ac_install_sh="${as_dir}install.sh -c"
   2469       elif test -f "${as_dir}shtool"; then
   2470         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2471         ac_install_sh="${as_dir}shtool install -c"
   2472       else
   2473         ac_aux_dir_found=no
   2474         if $ac_first_candidate; then
   2475           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2476         else
   2477           break
   2478         fi
   2479       fi
   2480     else
   2481       if test -f "${as_dir}${ac_aux}"; then
   2482         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2483       else
   2484         ac_aux_dir_found=no
   2485         if $ac_first_candidate; then
   2486           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2487         else
   2488           break
   2489         fi
   2490       fi
   2491     fi
   2492   done
   2493   if test "$ac_aux_dir_found" = yes; then
   2494     ac_aux_dir="$as_dir"
   2495     break
   2496   fi
   2497   ac_first_candidate=false
   2498 
   2499   as_found=false
   2500 done
   2501 IFS=$as_save_IFS
   2502 if $as_found
   2503 then :
   2504 
   2505 else case e in #(
   2506   e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
   2507 esac
   2508 fi
   2509 
   2510 
   2511 # These three variables are undocumented and unsupported,
   2512 # and are intended to be withdrawn in a future Autoconf release.
   2513 # They can cause serious problems if a builder's source tree is in a directory
   2514 # whose full name contains unusual characters.
   2515 if test -f "${ac_aux_dir}config.guess"; then
   2516   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2517 fi
   2518 if test -f "${ac_aux_dir}config.sub"; then
   2519   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2520 fi
   2521 if test -f "$ac_aux_dir/configure"; then
   2522   ac_configure="$SHELL ${ac_aux_dir}configure"
   2523 fi
   2524 
   2525 # Check that the precious variables saved in the cache have kept the same
   2526 # value.
   2527 ac_cache_corrupted=false
   2528 for ac_var in $ac_precious_vars; do
   2529   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2530   eval ac_new_set=\$ac_env_${ac_var}_set
   2531   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2532   eval ac_new_val=\$ac_env_${ac_var}_value
   2533   case $ac_old_set,$ac_new_set in
   2534     set,)
   2535       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
   2536 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
   2537       ac_cache_corrupted=: ;;
   2538     ,set)
   2539       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
   2540 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
   2541       ac_cache_corrupted=: ;;
   2542     ,);;
   2543     *)
   2544       if test "x$ac_old_val" != "x$ac_new_val"; then
   2545 	# differences in whitespace do not lead to failure.
   2546 	ac_old_val_w=`echo x $ac_old_val`
   2547 	ac_new_val_w=`echo x $ac_new_val`
   2548 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2549 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
   2550 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
   2551 	  ac_cache_corrupted=:
   2552 	else
   2553 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
   2554 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
   2555 	  eval $ac_var=\$ac_old_val
   2556 	fi
   2557 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
   2558 printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
   2559 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
   2560 printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
   2561       fi;;
   2562   esac
   2563   # Pass precious variables to config.status.
   2564   if test "$ac_new_set" = set; then
   2565     case $ac_new_val in
   2566     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2567     *) ac_arg=$ac_var=$ac_new_val ;;
   2568     esac
   2569     case " $ac_configure_args " in
   2570       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2571       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2572     esac
   2573   fi
   2574 done
   2575 if $ac_cache_corrupted; then
   2576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   2577 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   2578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2579 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2580   as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
   2581 	    and start over" "$LINENO" 5
   2582 fi
   2583 ## -------------------- ##
   2584 ## Main body of script. ##
   2585 ## -------------------- ##
   2586 
   2587 ac_ext=c
   2588 ac_cpp='$CPP $CPPFLAGS'
   2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2592 
   2593 
   2594 
   2595 ac_config_headers="$ac_config_headers config.h"
   2596 
   2597 
   2598 
   2599 
   2600 
   2601 
   2602 
   2603 
   2604 
   2605 
   2606 
   2607 
   2608 # Expand $ac_aux_dir to an absolute path.
   2609 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2610 
   2611 ac_ext=c
   2612 ac_cpp='$CPP $CPPFLAGS'
   2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2616 if test -n "$ac_tool_prefix"; then
   2617   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2620 printf %s "checking for $ac_word... " >&6; }
   2621 if test ${ac_cv_prog_CC+y}
   2622 then :
   2623   printf %s "(cached) " >&6
   2624 else case e in #(
   2625   e) if test -n "$CC"; then
   2626   ac_cv_prog_CC="$CC" # Let the user override the test.
   2627 else
   2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2629 for as_dir in $PATH
   2630 do
   2631   IFS=$as_save_IFS
   2632   case $as_dir in #(((
   2633     '') as_dir=./ ;;
   2634     */) ;;
   2635     *) as_dir=$as_dir/ ;;
   2636   esac
   2637     for ac_exec_ext in '' $ac_executable_extensions; do
   2638   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2639     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2640     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2641     break 2
   2642   fi
   2643 done
   2644   done
   2645 IFS=$as_save_IFS
   2646 
   2647 fi ;;
   2648 esac
   2649 fi
   2650 CC=$ac_cv_prog_CC
   2651 if test -n "$CC"; then
   2652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2653 printf "%s\n" "$CC" >&6; }
   2654 else
   2655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2656 printf "%s\n" "no" >&6; }
   2657 fi
   2658 
   2659 
   2660 fi
   2661 if test -z "$ac_cv_prog_CC"; then
   2662   ac_ct_CC=$CC
   2663   # Extract the first word of "gcc", so it can be a program name with args.
   2664 set dummy gcc; ac_word=$2
   2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2666 printf %s "checking for $ac_word... " >&6; }
   2667 if test ${ac_cv_prog_ac_ct_CC+y}
   2668 then :
   2669   printf %s "(cached) " >&6
   2670 else case e in #(
   2671   e) if test -n "$ac_ct_CC"; then
   2672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2673 else
   2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2675 for as_dir in $PATH
   2676 do
   2677   IFS=$as_save_IFS
   2678   case $as_dir in #(((
   2679     '') as_dir=./ ;;
   2680     */) ;;
   2681     *) as_dir=$as_dir/ ;;
   2682   esac
   2683     for ac_exec_ext in '' $ac_executable_extensions; do
   2684   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2685     ac_cv_prog_ac_ct_CC="gcc"
   2686     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2687     break 2
   2688   fi
   2689 done
   2690   done
   2691 IFS=$as_save_IFS
   2692 
   2693 fi ;;
   2694 esac
   2695 fi
   2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2697 if test -n "$ac_ct_CC"; then
   2698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2699 printf "%s\n" "$ac_ct_CC" >&6; }
   2700 else
   2701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2702 printf "%s\n" "no" >&6; }
   2703 fi
   2704 
   2705   if test "x$ac_ct_CC" = x; then
   2706     CC=""
   2707   else
   2708     case $cross_compiling:$ac_tool_warned in
   2709 yes:)
   2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2712 ac_tool_warned=yes ;;
   2713 esac
   2714     CC=$ac_ct_CC
   2715   fi
   2716 else
   2717   CC="$ac_cv_prog_CC"
   2718 fi
   2719 
   2720 if test -z "$CC"; then
   2721           if test -n "$ac_tool_prefix"; then
   2722     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2723 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2725 printf %s "checking for $ac_word... " >&6; }
   2726 if test ${ac_cv_prog_CC+y}
   2727 then :
   2728   printf %s "(cached) " >&6
   2729 else case e in #(
   2730   e) if test -n "$CC"; then
   2731   ac_cv_prog_CC="$CC" # Let the user override the test.
   2732 else
   2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2734 for as_dir in $PATH
   2735 do
   2736   IFS=$as_save_IFS
   2737   case $as_dir in #(((
   2738     '') as_dir=./ ;;
   2739     */) ;;
   2740     *) as_dir=$as_dir/ ;;
   2741   esac
   2742     for ac_exec_ext in '' $ac_executable_extensions; do
   2743   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2744     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2745     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2746     break 2
   2747   fi
   2748 done
   2749   done
   2750 IFS=$as_save_IFS
   2751 
   2752 fi ;;
   2753 esac
   2754 fi
   2755 CC=$ac_cv_prog_CC
   2756 if test -n "$CC"; then
   2757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2758 printf "%s\n" "$CC" >&6; }
   2759 else
   2760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2761 printf "%s\n" "no" >&6; }
   2762 fi
   2763 
   2764 
   2765   fi
   2766 fi
   2767 if test -z "$CC"; then
   2768   # Extract the first word of "cc", so it can be a program name with args.
   2769 set dummy cc; ac_word=$2
   2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2771 printf %s "checking for $ac_word... " >&6; }
   2772 if test ${ac_cv_prog_CC+y}
   2773 then :
   2774   printf %s "(cached) " >&6
   2775 else case e in #(
   2776   e) if test -n "$CC"; then
   2777   ac_cv_prog_CC="$CC" # Let the user override the test.
   2778 else
   2779   ac_prog_rejected=no
   2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2781 for as_dir in $PATH
   2782 do
   2783   IFS=$as_save_IFS
   2784   case $as_dir in #(((
   2785     '') as_dir=./ ;;
   2786     */) ;;
   2787     *) as_dir=$as_dir/ ;;
   2788   esac
   2789     for ac_exec_ext in '' $ac_executable_extensions; do
   2790   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2791     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2792        ac_prog_rejected=yes
   2793        continue
   2794      fi
   2795     ac_cv_prog_CC="cc"
   2796     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2797     break 2
   2798   fi
   2799 done
   2800   done
   2801 IFS=$as_save_IFS
   2802 
   2803 if test $ac_prog_rejected = yes; then
   2804   # We found a bogon in the path, so make sure we never use it.
   2805   set dummy $ac_cv_prog_CC
   2806   shift
   2807   if test $# != 0; then
   2808     # We chose a different compiler from the bogus one.
   2809     # However, it has the same basename, so the bogon will be chosen
   2810     # first if we set CC to just the basename; use the full file name.
   2811     shift
   2812     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   2813   fi
   2814 fi
   2815 fi ;;
   2816 esac
   2817 fi
   2818 CC=$ac_cv_prog_CC
   2819 if test -n "$CC"; then
   2820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2821 printf "%s\n" "$CC" >&6; }
   2822 else
   2823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2824 printf "%s\n" "no" >&6; }
   2825 fi
   2826 
   2827 
   2828 fi
   2829 if test -z "$CC"; then
   2830   if test -n "$ac_tool_prefix"; then
   2831   for ac_prog in cl.exe
   2832   do
   2833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2836 printf %s "checking for $ac_word... " >&6; }
   2837 if test ${ac_cv_prog_CC+y}
   2838 then :
   2839   printf %s "(cached) " >&6
   2840 else case e in #(
   2841   e) if test -n "$CC"; then
   2842   ac_cv_prog_CC="$CC" # Let the user override the test.
   2843 else
   2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2845 for as_dir in $PATH
   2846 do
   2847   IFS=$as_save_IFS
   2848   case $as_dir in #(((
   2849     '') as_dir=./ ;;
   2850     */) ;;
   2851     *) as_dir=$as_dir/ ;;
   2852   esac
   2853     for ac_exec_ext in '' $ac_executable_extensions; do
   2854   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2855     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2856     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2857     break 2
   2858   fi
   2859 done
   2860   done
   2861 IFS=$as_save_IFS
   2862 
   2863 fi ;;
   2864 esac
   2865 fi
   2866 CC=$ac_cv_prog_CC
   2867 if test -n "$CC"; then
   2868   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2869 printf "%s\n" "$CC" >&6; }
   2870 else
   2871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2872 printf "%s\n" "no" >&6; }
   2873 fi
   2874 
   2875 
   2876     test -n "$CC" && break
   2877   done
   2878 fi
   2879 if test -z "$CC"; then
   2880   ac_ct_CC=$CC
   2881   for ac_prog in cl.exe
   2882 do
   2883   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2884 set dummy $ac_prog; ac_word=$2
   2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2886 printf %s "checking for $ac_word... " >&6; }
   2887 if test ${ac_cv_prog_ac_ct_CC+y}
   2888 then :
   2889   printf %s "(cached) " >&6
   2890 else case e in #(
   2891   e) if test -n "$ac_ct_CC"; then
   2892   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2893 else
   2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2895 for as_dir in $PATH
   2896 do
   2897   IFS=$as_save_IFS
   2898   case $as_dir in #(((
   2899     '') as_dir=./ ;;
   2900     */) ;;
   2901     *) as_dir=$as_dir/ ;;
   2902   esac
   2903     for ac_exec_ext in '' $ac_executable_extensions; do
   2904   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2905     ac_cv_prog_ac_ct_CC="$ac_prog"
   2906     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2907     break 2
   2908   fi
   2909 done
   2910   done
   2911 IFS=$as_save_IFS
   2912 
   2913 fi ;;
   2914 esac
   2915 fi
   2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2917 if test -n "$ac_ct_CC"; then
   2918   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2919 printf "%s\n" "$ac_ct_CC" >&6; }
   2920 else
   2921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2922 printf "%s\n" "no" >&6; }
   2923 fi
   2924 
   2925 
   2926   test -n "$ac_ct_CC" && break
   2927 done
   2928 
   2929   if test "x$ac_ct_CC" = x; then
   2930     CC=""
   2931   else
   2932     case $cross_compiling:$ac_tool_warned in
   2933 yes:)
   2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2936 ac_tool_warned=yes ;;
   2937 esac
   2938     CC=$ac_ct_CC
   2939   fi
   2940 fi
   2941 
   2942 fi
   2943 if test -z "$CC"; then
   2944   if test -n "$ac_tool_prefix"; then
   2945   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   2946 set dummy ${ac_tool_prefix}clang; ac_word=$2
   2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2948 printf %s "checking for $ac_word... " >&6; }
   2949 if test ${ac_cv_prog_CC+y}
   2950 then :
   2951   printf %s "(cached) " >&6
   2952 else case e in #(
   2953   e) if test -n "$CC"; then
   2954   ac_cv_prog_CC="$CC" # Let the user override the test.
   2955 else
   2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2957 for as_dir in $PATH
   2958 do
   2959   IFS=$as_save_IFS
   2960   case $as_dir in #(((
   2961     '') as_dir=./ ;;
   2962     */) ;;
   2963     *) as_dir=$as_dir/ ;;
   2964   esac
   2965     for ac_exec_ext in '' $ac_executable_extensions; do
   2966   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2967     ac_cv_prog_CC="${ac_tool_prefix}clang"
   2968     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2969     break 2
   2970   fi
   2971 done
   2972   done
   2973 IFS=$as_save_IFS
   2974 
   2975 fi ;;
   2976 esac
   2977 fi
   2978 CC=$ac_cv_prog_CC
   2979 if test -n "$CC"; then
   2980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2981 printf "%s\n" "$CC" >&6; }
   2982 else
   2983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2984 printf "%s\n" "no" >&6; }
   2985 fi
   2986 
   2987 
   2988 fi
   2989 if test -z "$ac_cv_prog_CC"; then
   2990   ac_ct_CC=$CC
   2991   # Extract the first word of "clang", so it can be a program name with args.
   2992 set dummy clang; ac_word=$2
   2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2994 printf %s "checking for $ac_word... " >&6; }
   2995 if test ${ac_cv_prog_ac_ct_CC+y}
   2996 then :
   2997   printf %s "(cached) " >&6
   2998 else case e in #(
   2999   e) if test -n "$ac_ct_CC"; then
   3000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3001 else
   3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3003 for as_dir in $PATH
   3004 do
   3005   IFS=$as_save_IFS
   3006   case $as_dir in #(((
   3007     '') as_dir=./ ;;
   3008     */) ;;
   3009     *) as_dir=$as_dir/ ;;
   3010   esac
   3011     for ac_exec_ext in '' $ac_executable_extensions; do
   3012   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3013     ac_cv_prog_ac_ct_CC="clang"
   3014     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3015     break 2
   3016   fi
   3017 done
   3018   done
   3019 IFS=$as_save_IFS
   3020 
   3021 fi ;;
   3022 esac
   3023 fi
   3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3025 if test -n "$ac_ct_CC"; then
   3026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3027 printf "%s\n" "$ac_ct_CC" >&6; }
   3028 else
   3029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3030 printf "%s\n" "no" >&6; }
   3031 fi
   3032 
   3033   if test "x$ac_ct_CC" = x; then
   3034     CC=""
   3035   else
   3036     case $cross_compiling:$ac_tool_warned in
   3037 yes:)
   3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3040 ac_tool_warned=yes ;;
   3041 esac
   3042     CC=$ac_ct_CC
   3043   fi
   3044 else
   3045   CC="$ac_cv_prog_CC"
   3046 fi
   3047 
   3048 fi
   3049 
   3050 
   3051 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3053 as_fn_error $? "no acceptable C compiler found in \$PATH
   3054 See 'config.log' for more details" "$LINENO" 5; }
   3055 
   3056 # Provide some information about the compiler.
   3057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3058 set X $ac_compile
   3059 ac_compiler=$2
   3060 for ac_option in --version -v -V -qversion -version; do
   3061   { { ac_try="$ac_compiler $ac_option >&5"
   3062 case "(($ac_try" in
   3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3064   *) ac_try_echo=$ac_try;;
   3065 esac
   3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3067 printf "%s\n" "$ac_try_echo"; } >&5
   3068   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3069   ac_status=$?
   3070   if test -s conftest.err; then
   3071     sed '10a\
   3072 ... rest of stderr output deleted ...
   3073          10q' conftest.err >conftest.er1
   3074     cat conftest.er1 >&5
   3075   fi
   3076   rm -f conftest.er1 conftest.err
   3077   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3078   test $ac_status = 0; }
   3079 done
   3080 
   3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3082 /* end confdefs.h.  */
   3083 
   3084 int
   3085 main (void)
   3086 {
   3087 
   3088   ;
   3089   return 0;
   3090 }
   3091 _ACEOF
   3092 ac_clean_files_save=$ac_clean_files
   3093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3094 # Try to create an executable without -o first, disregard a.out.
   3095 # It will help us diagnose broken compilers, and finding out an intuition
   3096 # of exeext.
   3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3098 printf %s "checking whether the C compiler works... " >&6; }
   3099 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3100 
   3101 # The possible output files:
   3102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3103 
   3104 ac_rmfiles=
   3105 for ac_file in $ac_files
   3106 do
   3107   case $ac_file in
   3108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3109     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3110   esac
   3111 done
   3112 rm -f $ac_rmfiles
   3113 
   3114 if { { ac_try="$ac_link_default"
   3115 case "(($ac_try" in
   3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3117   *) ac_try_echo=$ac_try;;
   3118 esac
   3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3120 printf "%s\n" "$ac_try_echo"; } >&5
   3121   (eval "$ac_link_default") 2>&5
   3122   ac_status=$?
   3123   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3124   test $ac_status = 0; }
   3125 then :
   3126   # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
   3127 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
   3128 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3129 # so that the user can short-circuit this test for compilers unknown to
   3130 # Autoconf.
   3131 for ac_file in $ac_files ''
   3132 do
   3133   test -f "$ac_file" || continue
   3134   case $ac_file in
   3135     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3136 	;;
   3137     [ab].out )
   3138 	# We found the default executable, but exeext='' is most
   3139 	# certainly right.
   3140 	break;;
   3141     *.* )
   3142 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3143 	then :; else
   3144 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3145 	fi
   3146 	# We set ac_cv_exeext here because the later test for it is not
   3147 	# safe: cross compilers may not add the suffix if given an '-o'
   3148 	# argument, so we may need to know it at that point already.
   3149 	# Even if this section looks crufty: it has the advantage of
   3150 	# actually working.
   3151 	break;;
   3152     * )
   3153 	break;;
   3154   esac
   3155 done
   3156 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3157 
   3158 else case e in #(
   3159   e) ac_file='' ;;
   3160 esac
   3161 fi
   3162 if test -z "$ac_file"
   3163 then :
   3164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3165 printf "%s\n" "no" >&6; }
   3166 printf "%s\n" "$as_me: failed program was:" >&5
   3167 sed 's/^/| /' conftest.$ac_ext >&5
   3168 
   3169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3170 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3171 as_fn_error 77 "C compiler cannot create executables
   3172 See 'config.log' for more details" "$LINENO" 5; }
   3173 else case e in #(
   3174   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3175 printf "%s\n" "yes" >&6; } ;;
   3176 esac
   3177 fi
   3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3179 printf %s "checking for C compiler default output file name... " >&6; }
   3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3181 printf "%s\n" "$ac_file" >&6; }
   3182 ac_exeext=$ac_cv_exeext
   3183 
   3184 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3185 ac_clean_files=$ac_clean_files_save
   3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3187 printf %s "checking for suffix of executables... " >&6; }
   3188 if { { ac_try="$ac_link"
   3189 case "(($ac_try" in
   3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3191   *) ac_try_echo=$ac_try;;
   3192 esac
   3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3194 printf "%s\n" "$ac_try_echo"; } >&5
   3195   (eval "$ac_link") 2>&5
   3196   ac_status=$?
   3197   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3198   test $ac_status = 0; }
   3199 then :
   3200   # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
   3201 # catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
   3202 # work properly (i.e., refer to 'conftest.exe'), while it won't with
   3203 # 'rm'.
   3204 for ac_file in conftest.exe conftest conftest.*; do
   3205   test -f "$ac_file" || continue
   3206   case $ac_file in
   3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3208     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3209 	  break;;
   3210     * ) break;;
   3211   esac
   3212 done
   3213 else case e in #(
   3214   e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3215 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3217 See 'config.log' for more details" "$LINENO" 5; } ;;
   3218 esac
   3219 fi
   3220 rm -f conftest conftest$ac_cv_exeext
   3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3222 printf "%s\n" "$ac_cv_exeext" >&6; }
   3223 
   3224 rm -f conftest.$ac_ext
   3225 EXEEXT=$ac_cv_exeext
   3226 ac_exeext=$EXEEXT
   3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3228 /* end confdefs.h.  */
   3229 #include <stdio.h>
   3230 int
   3231 main (void)
   3232 {
   3233 FILE *f = fopen ("conftest.out", "w");
   3234  if (!f)
   3235   return 1;
   3236  return ferror (f) || fclose (f) != 0;
   3237 
   3238   ;
   3239   return 0;
   3240 }
   3241 _ACEOF
   3242 ac_clean_files="$ac_clean_files conftest.out"
   3243 # Check that the compiler produces executables we can run.  If not, either
   3244 # the compiler is broken, or we cross compile.
   3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3246 printf %s "checking whether we are cross compiling... " >&6; }
   3247 if test "$cross_compiling" != yes; then
   3248   { { ac_try="$ac_link"
   3249 case "(($ac_try" in
   3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3251   *) ac_try_echo=$ac_try;;
   3252 esac
   3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3254 printf "%s\n" "$ac_try_echo"; } >&5
   3255   (eval "$ac_link") 2>&5
   3256   ac_status=$?
   3257   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3258   test $ac_status = 0; }
   3259   if { ac_try='./conftest$ac_cv_exeext'
   3260   { { case "(($ac_try" in
   3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3262   *) ac_try_echo=$ac_try;;
   3263 esac
   3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3265 printf "%s\n" "$ac_try_echo"; } >&5
   3266   (eval "$ac_try") 2>&5
   3267   ac_status=$?
   3268   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3269   test $ac_status = 0; }; }; then
   3270     cross_compiling=no
   3271   else
   3272     if test "$cross_compiling" = maybe; then
   3273 	cross_compiling=yes
   3274     else
   3275 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3277 as_fn_error 77 "cannot run C compiled programs.
   3278 If you meant to cross compile, use '--host'.
   3279 See 'config.log' for more details" "$LINENO" 5; }
   3280     fi
   3281   fi
   3282 fi
   3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3284 printf "%s\n" "$cross_compiling" >&6; }
   3285 
   3286 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
   3287   conftest.o conftest.obj conftest.out
   3288 ac_clean_files=$ac_clean_files_save
   3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3290 printf %s "checking for suffix of object files... " >&6; }
   3291 if test ${ac_cv_objext+y}
   3292 then :
   3293   printf %s "(cached) " >&6
   3294 else case e in #(
   3295   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3296 /* end confdefs.h.  */
   3297 
   3298 int
   3299 main (void)
   3300 {
   3301 
   3302   ;
   3303   return 0;
   3304 }
   3305 _ACEOF
   3306 rm -f conftest.o conftest.obj
   3307 if { { ac_try="$ac_compile"
   3308 case "(($ac_try" in
   3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3310   *) ac_try_echo=$ac_try;;
   3311 esac
   3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3313 printf "%s\n" "$ac_try_echo"; } >&5
   3314   (eval "$ac_compile") 2>&5
   3315   ac_status=$?
   3316   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3317   test $ac_status = 0; }
   3318 then :
   3319   for ac_file in conftest.o conftest.obj conftest.*; do
   3320   test -f "$ac_file" || continue;
   3321   case $ac_file in
   3322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3323     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3324        break;;
   3325   esac
   3326 done
   3327 else case e in #(
   3328   e) printf "%s\n" "$as_me: failed program was:" >&5
   3329 sed 's/^/| /' conftest.$ac_ext >&5
   3330 
   3331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3332 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3333 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3334 See 'config.log' for more details" "$LINENO" 5; } ;;
   3335 esac
   3336 fi
   3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
   3338 esac
   3339 fi
   3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3341 printf "%s\n" "$ac_cv_objext" >&6; }
   3342 OBJEXT=$ac_cv_objext
   3343 ac_objext=$OBJEXT
   3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3345 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3346 if test ${ac_cv_c_compiler_gnu+y}
   3347 then :
   3348   printf %s "(cached) " >&6
   3349 else case e in #(
   3350   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3351 /* end confdefs.h.  */
   3352 
   3353 int
   3354 main (void)
   3355 {
   3356 #ifndef __GNUC__
   3357        choke me
   3358 #endif
   3359 
   3360   ;
   3361   return 0;
   3362 }
   3363 _ACEOF
   3364 if ac_fn_c_try_compile "$LINENO"
   3365 then :
   3366   ac_compiler_gnu=yes
   3367 else case e in #(
   3368   e) ac_compiler_gnu=no ;;
   3369 esac
   3370 fi
   3371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3373  ;;
   3374 esac
   3375 fi
   3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3377 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3379 
   3380 if test $ac_compiler_gnu = yes; then
   3381   GCC=yes
   3382 else
   3383   GCC=
   3384 fi
   3385 ac_test_CFLAGS=${CFLAGS+y}
   3386 ac_save_CFLAGS=$CFLAGS
   3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3388 printf %s "checking whether $CC accepts -g... " >&6; }
   3389 if test ${ac_cv_prog_cc_g+y}
   3390 then :
   3391   printf %s "(cached) " >&6
   3392 else case e in #(
   3393   e) ac_save_c_werror_flag=$ac_c_werror_flag
   3394    ac_c_werror_flag=yes
   3395    ac_cv_prog_cc_g=no
   3396    CFLAGS="-g"
   3397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3398 /* end confdefs.h.  */
   3399 
   3400 int
   3401 main (void)
   3402 {
   3403 
   3404   ;
   3405   return 0;
   3406 }
   3407 _ACEOF
   3408 if ac_fn_c_try_compile "$LINENO"
   3409 then :
   3410   ac_cv_prog_cc_g=yes
   3411 else case e in #(
   3412   e) CFLAGS=""
   3413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3414 /* end confdefs.h.  */
   3415 
   3416 int
   3417 main (void)
   3418 {
   3419 
   3420   ;
   3421   return 0;
   3422 }
   3423 _ACEOF
   3424 if ac_fn_c_try_compile "$LINENO"
   3425 then :
   3426 
   3427 else case e in #(
   3428   e) ac_c_werror_flag=$ac_save_c_werror_flag
   3429 	 CFLAGS="-g"
   3430 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3431 /* end confdefs.h.  */
   3432 
   3433 int
   3434 main (void)
   3435 {
   3436 
   3437   ;
   3438   return 0;
   3439 }
   3440 _ACEOF
   3441 if ac_fn_c_try_compile "$LINENO"
   3442 then :
   3443   ac_cv_prog_cc_g=yes
   3444 fi
   3445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3446 esac
   3447 fi
   3448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3449 esac
   3450 fi
   3451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3452    ac_c_werror_flag=$ac_save_c_werror_flag ;;
   3453 esac
   3454 fi
   3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3456 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3457 if test $ac_test_CFLAGS; then
   3458   CFLAGS=$ac_save_CFLAGS
   3459 elif test $ac_cv_prog_cc_g = yes; then
   3460   if test "$GCC" = yes; then
   3461     CFLAGS="-g -O2"
   3462   else
   3463     CFLAGS="-g"
   3464   fi
   3465 else
   3466   if test "$GCC" = yes; then
   3467     CFLAGS="-O2"
   3468   else
   3469     CFLAGS=
   3470   fi
   3471 fi
   3472 ac_prog_cc_stdc=no
   3473 if test x$ac_prog_cc_stdc = xno
   3474 then :
   3475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3476 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3477 if test ${ac_cv_prog_cc_c11+y}
   3478 then :
   3479   printf %s "(cached) " >&6
   3480 else case e in #(
   3481   e) ac_cv_prog_cc_c11=no
   3482 ac_save_CC=$CC
   3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3484 /* end confdefs.h.  */
   3485 $ac_c_conftest_c11_program
   3486 _ACEOF
   3487 for ac_arg in '' -std=gnu11
   3488 do
   3489   CC="$ac_save_CC $ac_arg"
   3490   if ac_fn_c_try_compile "$LINENO"
   3491 then :
   3492   ac_cv_prog_cc_c11=$ac_arg
   3493 fi
   3494 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3495   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3496 done
   3497 rm -f conftest.$ac_ext
   3498 CC=$ac_save_CC ;;
   3499 esac
   3500 fi
   3501 
   3502 if test "x$ac_cv_prog_cc_c11" = xno
   3503 then :
   3504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3505 printf "%s\n" "unsupported" >&6; }
   3506 else case e in #(
   3507   e) if test "x$ac_cv_prog_cc_c11" = x
   3508 then :
   3509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3510 printf "%s\n" "none needed" >&6; }
   3511 else case e in #(
   3512   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3513 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3514      CC="$CC $ac_cv_prog_cc_c11" ;;
   3515 esac
   3516 fi
   3517   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3518   ac_prog_cc_stdc=c11 ;;
   3519 esac
   3520 fi
   3521 fi
   3522 if test x$ac_prog_cc_stdc = xno
   3523 then :
   3524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3525 printf %s "checking for $CC option to enable C99 features... " >&6; }
   3526 if test ${ac_cv_prog_cc_c99+y}
   3527 then :
   3528   printf %s "(cached) " >&6
   3529 else case e in #(
   3530   e) ac_cv_prog_cc_c99=no
   3531 ac_save_CC=$CC
   3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3533 /* end confdefs.h.  */
   3534 $ac_c_conftest_c99_program
   3535 _ACEOF
   3536 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3537 do
   3538   CC="$ac_save_CC $ac_arg"
   3539   if ac_fn_c_try_compile "$LINENO"
   3540 then :
   3541   ac_cv_prog_cc_c99=$ac_arg
   3542 fi
   3543 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3544   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3545 done
   3546 rm -f conftest.$ac_ext
   3547 CC=$ac_save_CC ;;
   3548 esac
   3549 fi
   3550 
   3551 if test "x$ac_cv_prog_cc_c99" = xno
   3552 then :
   3553   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3554 printf "%s\n" "unsupported" >&6; }
   3555 else case e in #(
   3556   e) if test "x$ac_cv_prog_cc_c99" = x
   3557 then :
   3558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3559 printf "%s\n" "none needed" >&6; }
   3560 else case e in #(
   3561   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3562 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3563      CC="$CC $ac_cv_prog_cc_c99" ;;
   3564 esac
   3565 fi
   3566   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3567   ac_prog_cc_stdc=c99 ;;
   3568 esac
   3569 fi
   3570 fi
   3571 if test x$ac_prog_cc_stdc = xno
   3572 then :
   3573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3574 printf %s "checking for $CC option to enable C89 features... " >&6; }
   3575 if test ${ac_cv_prog_cc_c89+y}
   3576 then :
   3577   printf %s "(cached) " >&6
   3578 else case e in #(
   3579   e) ac_cv_prog_cc_c89=no
   3580 ac_save_CC=$CC
   3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3582 /* end confdefs.h.  */
   3583 $ac_c_conftest_c89_program
   3584 _ACEOF
   3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3586 do
   3587   CC="$ac_save_CC $ac_arg"
   3588   if ac_fn_c_try_compile "$LINENO"
   3589 then :
   3590   ac_cv_prog_cc_c89=$ac_arg
   3591 fi
   3592 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3593   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3594 done
   3595 rm -f conftest.$ac_ext
   3596 CC=$ac_save_CC ;;
   3597 esac
   3598 fi
   3599 
   3600 if test "x$ac_cv_prog_cc_c89" = xno
   3601 then :
   3602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3603 printf "%s\n" "unsupported" >&6; }
   3604 else case e in #(
   3605   e) if test "x$ac_cv_prog_cc_c89" = x
   3606 then :
   3607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3608 printf "%s\n" "none needed" >&6; }
   3609 else case e in #(
   3610   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3611 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3612      CC="$CC $ac_cv_prog_cc_c89" ;;
   3613 esac
   3614 fi
   3615   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3616   ac_prog_cc_stdc=c89 ;;
   3617 esac
   3618 fi
   3619 fi
   3620 
   3621 ac_ext=c
   3622 ac_cpp='$CPP $CPPFLAGS'
   3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3626 
   3627 
   3628   ac_ext=c
   3629 ac_cpp='$CPP $CPPFLAGS'
   3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3634 printf %s "checking whether $CC understands -c and -o together... " >&6; }
   3635 if test ${am_cv_prog_cc_c_o+y}
   3636 then :
   3637   printf %s "(cached) " >&6
   3638 else case e in #(
   3639   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3640 /* end confdefs.h.  */
   3641 
   3642 int
   3643 main (void)
   3644 {
   3645 
   3646   ;
   3647   return 0;
   3648 }
   3649 _ACEOF
   3650   # Make sure it works both with $CC and with simple cc.
   3651   # Following AC_PROG_CC_C_O, we do the test twice because some
   3652   # compilers refuse to overwrite an existing .o file with -o,
   3653   # though they will create one.
   3654   am_cv_prog_cc_c_o=yes
   3655   for am_i in 1 2; do
   3656     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3657    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3658    ac_status=$?
   3659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3660    (exit $ac_status); } \
   3661          && test -f conftest2.$ac_objext; then
   3662       : OK
   3663     else
   3664       am_cv_prog_cc_c_o=no
   3665       break
   3666     fi
   3667   done
   3668   # aligned with autoconf, so not including core; see bug#72225.
   3669   rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
   3670     conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
   3671     conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
   3672   unset am_i ;;
   3673 esac
   3674 fi
   3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3676 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
   3677 if test "$am_cv_prog_cc_c_o" != yes; then
   3678    # Losing compiler, so override with the script.
   3679    # FIXME: It is wrong to rewrite CC.
   3680    # But if we don't then we get into trouble of one sort or another.
   3681    # A longer-term fix would be to have automake use am__CC in this case,
   3682    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3683    CC="$am_aux_dir/compile $CC"
   3684 fi
   3685 ac_ext=c
   3686 ac_cpp='$CPP $CPPFLAGS'
   3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3690 
   3691 
   3692 
   3693 ac_header= ac_cache=
   3694 for ac_item in $ac_header_c_list
   3695 do
   3696   if test $ac_cache; then
   3697     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   3698     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   3699       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   3700     fi
   3701     ac_header= ac_cache=
   3702   elif test $ac_header; then
   3703     ac_cache=$ac_item
   3704   else
   3705     ac_header=$ac_item
   3706   fi
   3707 done
   3708 
   3709 
   3710 
   3711 
   3712 
   3713 
   3714 
   3715 
   3716 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   3717 then :
   3718 
   3719 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   3720 
   3721 fi
   3722 
   3723 
   3724 
   3725 
   3726 
   3727 
   3728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3729 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3730 if test ${ac_cv_safe_to_define___extensions__+y}
   3731 then :
   3732   printf %s "(cached) " >&6
   3733 else case e in #(
   3734   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3735 /* end confdefs.h.  */
   3736 
   3737 #         define __EXTENSIONS__ 1
   3738           $ac_includes_default
   3739 int
   3740 main (void)
   3741 {
   3742 
   3743   ;
   3744   return 0;
   3745 }
   3746 _ACEOF
   3747 if ac_fn_c_try_compile "$LINENO"
   3748 then :
   3749   ac_cv_safe_to_define___extensions__=yes
   3750 else case e in #(
   3751   e) ac_cv_safe_to_define___extensions__=no ;;
   3752 esac
   3753 fi
   3754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3755 esac
   3756 fi
   3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3758 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
   3759 
   3760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   3761 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   3762 if test ${ac_cv_should_define__xopen_source+y}
   3763 then :
   3764   printf %s "(cached) " >&6
   3765 else case e in #(
   3766   e) ac_cv_should_define__xopen_source=no
   3767     if test $ac_cv_header_wchar_h = yes
   3768 then :
   3769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3770 /* end confdefs.h.  */
   3771 
   3772           #include <wchar.h>
   3773           mbstate_t x;
   3774 int
   3775 main (void)
   3776 {
   3777 
   3778   ;
   3779   return 0;
   3780 }
   3781 _ACEOF
   3782 if ac_fn_c_try_compile "$LINENO"
   3783 then :
   3784 
   3785 else case e in #(
   3786   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3787 /* end confdefs.h.  */
   3788 
   3789             #define _XOPEN_SOURCE 500
   3790             #include <wchar.h>
   3791             mbstate_t x;
   3792 int
   3793 main (void)
   3794 {
   3795 
   3796   ;
   3797   return 0;
   3798 }
   3799 _ACEOF
   3800 if ac_fn_c_try_compile "$LINENO"
   3801 then :
   3802   ac_cv_should_define__xopen_source=yes
   3803 fi
   3804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3805 esac
   3806 fi
   3807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3808 fi ;;
   3809 esac
   3810 fi
   3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   3812 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
   3813 
   3814   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
   3815 
   3816   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   3817 
   3818   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
   3819 
   3820   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   3821 
   3822   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   3823 
   3824   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
   3825 
   3826   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3827 
   3828   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   3829 
   3830   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   3831 
   3832   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   3833 
   3834   printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
   3835 
   3836   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   3837 
   3838   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   3839 
   3840   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   3841 
   3842   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   3843 
   3844   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
   3845 
   3846   if test $ac_cv_header_minix_config_h = yes
   3847 then :
   3848   MINIX=yes
   3849     printf "%s\n" "#define _MINIX 1" >>confdefs.h
   3850 
   3851     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   3852 
   3853     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3854 
   3855 else case e in #(
   3856   e) MINIX= ;;
   3857 esac
   3858 fi
   3859   if test $ac_cv_safe_to_define___extensions__ = yes
   3860 then :
   3861   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
   3862 
   3863 fi
   3864   if test $ac_cv_should_define__xopen_source = yes
   3865 then :
   3866   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
   3867 
   3868 fi
   3869 
   3870 
   3871 # Initialize Automake
   3872 am__api_version='1.18'
   3873 
   3874 
   3875   # Find a good install program.  We prefer a C program (faster),
   3876 # so one script is as good as another.  But avoid the broken or
   3877 # incompatible versions:
   3878 # SysV /etc/install, /usr/sbin/install
   3879 # SunOS /usr/etc/install
   3880 # IRIX /sbin/install
   3881 # AIX /bin/install
   3882 # AmigaOS /C/install, which installs bootblocks on floppy discs
   3883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   3884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   3885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   3886 # OS/2's system install, which has a completely different semantic
   3887 # ./install, which can be erroneously created by make from ./install.sh.
   3888 # Reject install programs that cannot install multiple files.
   3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   3890 printf %s "checking for a BSD-compatible install... " >&6; }
   3891 if test -z "$INSTALL"; then
   3892 if test ${ac_cv_path_install+y}
   3893 then :
   3894   printf %s "(cached) " >&6
   3895 else case e in #(
   3896   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3897 for as_dir in $PATH
   3898 do
   3899   IFS=$as_save_IFS
   3900   case $as_dir in #(((
   3901     '') as_dir=./ ;;
   3902     */) ;;
   3903     *) as_dir=$as_dir/ ;;
   3904   esac
   3905     # Account for fact that we put trailing slashes in our PATH walk.
   3906 case $as_dir in #((
   3907   ./ | /[cC]/* | \
   3908   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3909   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   3910   /usr/ucb/* ) ;;
   3911   *)
   3912     # OSF1 and SCO ODT 3.0 have their own names for install.
   3913     # Don't use installbsd from OSF since it installs stuff as root
   3914     # by default.
   3915     for ac_prog in ginstall scoinst install; do
   3916       for ac_exec_ext in '' $ac_executable_extensions; do
   3917 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   3918 	  if test $ac_prog = install &&
   3919 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3920 	    # AIX install.  It has an incompatible calling convention.
   3921 	    :
   3922 	  elif test $ac_prog = install &&
   3923 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3924 	    # program-specific install script used by HP pwplus--don't use.
   3925 	    :
   3926 	  else
   3927 	    rm -rf conftest.one conftest.two conftest.dir
   3928 	    echo one > conftest.one
   3929 	    echo two > conftest.two
   3930 	    mkdir conftest.dir
   3931 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   3932 	      test -s conftest.one && test -s conftest.two &&
   3933 	      test -s conftest.dir/conftest.one &&
   3934 	      test -s conftest.dir/conftest.two
   3935 	    then
   3936 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   3937 	      break 3
   3938 	    fi
   3939 	  fi
   3940 	fi
   3941       done
   3942     done
   3943     ;;
   3944 esac
   3945 
   3946   done
   3947 IFS=$as_save_IFS
   3948 
   3949 rm -rf conftest.one conftest.two conftest.dir
   3950  ;;
   3951 esac
   3952 fi
   3953   if test ${ac_cv_path_install+y}; then
   3954     INSTALL=$ac_cv_path_install
   3955   else
   3956     # As a last resort, use the slow shell script.  Don't cache a
   3957     # value for INSTALL within a source directory, because that will
   3958     # break other packages using the cache if that directory is
   3959     # removed, or if the value is a relative name.
   3960     INSTALL=$ac_install_sh
   3961   fi
   3962 fi
   3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3964 printf "%s\n" "$INSTALL" >&6; }
   3965 
   3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3967 # It thinks the first close brace ends the variable substitution.
   3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3969 
   3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3971 
   3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3973 
   3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
   3975 printf %s "checking whether sleep supports fractional seconds... " >&6; }
   3976 if test ${am_cv_sleep_fractional_seconds+y}
   3977 then :
   3978   printf %s "(cached) " >&6
   3979 else case e in #(
   3980   e) if sleep 0.001 2>/dev/null
   3981 then :
   3982   am_cv_sleep_fractional_seconds=yes
   3983 else case e in #(
   3984   e) am_cv_sleep_fractional_seconds=no ;;
   3985 esac
   3986 fi
   3987  ;;
   3988 esac
   3989 fi
   3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
   3991 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
   3992 
   3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
   3994 printf %s "checking filesystem timestamp resolution... " >&6; }
   3995 if test ${am_cv_filesystem_timestamp_resolution+y}
   3996 then :
   3997   printf %s "(cached) " >&6
   3998 else case e in #(
   3999   e) # Default to the worst case.
   4000 am_cv_filesystem_timestamp_resolution=2
   4001 
   4002 # Only try to go finer than 1 sec if sleep can do it.
   4003 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
   4004 # - 1 sec is not much of a win compared to 2 sec, and
   4005 # - it takes 2 seconds to perform the test whether 1 sec works.
   4006 #
   4007 # Instead, just use the default 2s on platforms that have 1s resolution,
   4008 # accept the extra 1s delay when using $sleep in the Automake tests, in
   4009 # exchange for not incurring the 2s delay for running the test for all
   4010 # packages.
   4011 #
   4012 am_try_resolutions=
   4013 if test "$am_cv_sleep_fractional_seconds" = yes; then
   4014   # Even a millisecond often causes a bunch of false positives,
   4015   # so just try a hundredth of a second. The time saved between .001 and
   4016   # .01 is not terribly consequential.
   4017   am_try_resolutions="0.01 0.1 $am_try_resolutions"
   4018 fi
   4019 
   4020 # In order to catch current-generation FAT out, we must *modify* files
   4021 # that already exist; the *creation* timestamp is finer.  Use names
   4022 # that make ls -t sort them differently when they have equal
   4023 # timestamps than when they have distinct timestamps, keeping
   4024 # in mind that ls -t prints the *newest* file first.
   4025 rm -f conftest.ts?
   4026 : > conftest.ts1
   4027 : > conftest.ts2
   4028 : > conftest.ts3
   4029 
   4030 # Make sure ls -t actually works.  Do 'set' in a subshell so we don't
   4031 # clobber the current shell's arguments. (Outer-level square brackets
   4032 # are removed by m4; they're present so that m4 does not expand
   4033 # <dollar><star>; be careful, easy to get confused.)
   4034 if (
   4035      set X `ls -t conftest.ts[12]` &&
   4036      {
   4037        test "$*" != "X conftest.ts1 conftest.ts2" ||
   4038        test "$*" != "X conftest.ts2 conftest.ts1";
   4039      }
   4040 ); then :; else
   4041   # If neither matched, then we have a broken ls.  This can happen
   4042   # if, for instance, CONFIG_SHELL is bash and it inherits a
   4043   # broken ls alias from the environment.  This has actually
   4044   # happened.  Such a system could not be considered "sane".
   4045   printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
   4046   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   4047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   4048 as_fn_error $? "ls -t produces unexpected output.
   4049 Make sure there is not a broken ls alias in your environment.
   4050 See 'config.log' for more details" "$LINENO" 5; }
   4051 fi
   4052 
   4053 for am_try_res in $am_try_resolutions; do
   4054   # Any one fine-grained sleep might happen to cross the boundary
   4055   # between two values of a coarser actual resolution, but if we do
   4056   # two fine-grained sleeps in a row, at least one of them will fall
   4057   # entirely within a coarse interval.
   4058   echo alpha > conftest.ts1
   4059   sleep $am_try_res
   4060   echo beta > conftest.ts2
   4061   sleep $am_try_res
   4062   echo gamma > conftest.ts3
   4063 
   4064   # We assume that 'ls -t' will make use of high-resolution
   4065   # timestamps if the operating system supports them at all.
   4066   if (set X `ls -t conftest.ts?` &&
   4067       test "$2" = conftest.ts3 &&
   4068       test "$3" = conftest.ts2 &&
   4069       test "$4" = conftest.ts1); then
   4070     #
   4071     # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
   4072     # because we don't need to test make.
   4073     make_ok=true
   4074     if test $am_try_res != 1; then
   4075       # But if we've succeeded so far with a subsecond resolution, we
   4076       # have one more thing to check: make. It can happen that
   4077       # everything else supports the subsecond mtimes, but make doesn't;
   4078       # notably on macOS, which ships make 3.81 from 2006 (the last one
   4079       # released under GPLv2). https://bugs.gnu.org/68808
   4080       #
   4081       # We test $MAKE if it is defined in the environment, else "make".
   4082       # It might get overridden later, but our hope is that in practice
   4083       # it does not matter: it is the system "make" which is (by far)
   4084       # the most likely to be broken, whereas if the user overrides it,
   4085       # probably they did so with a better, or at least not worse, make.
   4086       # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
   4087       #
   4088       # Create a Makefile (real tab character here):
   4089       rm -f conftest.mk
   4090       echo 'conftest.ts1: conftest.ts2' >conftest.mk
   4091       echo '	touch conftest.ts2' >>conftest.mk
   4092       #
   4093       # Now, running
   4094       #   touch conftest.ts1; touch conftest.ts2; make
   4095       # should touch ts1 because ts2 is newer. This could happen by luck,
   4096       # but most often, it will fail if make's support is insufficient. So
   4097       # test for several consecutive successes.
   4098       #
   4099       # (We reuse conftest.ts[12] because we still want to modify existing
   4100       # files, not create new ones, per above.)
   4101       n=0
   4102       make=${MAKE-make}
   4103       until test $n -eq 3; do
   4104         echo one > conftest.ts1
   4105         sleep $am_try_res
   4106         echo two > conftest.ts2 # ts2 should now be newer than ts1
   4107         if $make -f conftest.mk | grep 'up to date' >/dev/null; then
   4108           make_ok=false
   4109           break # out of $n loop
   4110         fi
   4111         n=`expr $n + 1`
   4112       done
   4113     fi
   4114     #
   4115     if $make_ok; then
   4116       # Everything we know to check worked out, so call this resolution good.
   4117       am_cv_filesystem_timestamp_resolution=$am_try_res
   4118       break # out of $am_try_res loop
   4119     fi
   4120     # Otherwise, we'll go on to check the next resolution.
   4121   fi
   4122 done
   4123 rm -f conftest.ts?
   4124 # (end _am_filesystem_timestamp_resolution)
   4125  ;;
   4126 esac
   4127 fi
   4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
   4129 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
   4130 
   4131 # This check should not be cached, as it may vary across builds of
   4132 # different projects.
   4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   4134 printf %s "checking whether build environment is sane... " >&6; }
   4135 # Reject unsafe characters in $srcdir or the absolute working directory
   4136 # name.  Accept space and tab only in the latter.
   4137 am_lf='
   4138 '
   4139 case `pwd` in
   4140   *[\\\"\#\$\&\'\`$am_lf]*)
   4141     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4142 printf "%s\n" "no" >&6; }
   4143     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   4144 esac
   4145 case $srcdir in
   4146   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   4147     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4148 printf "%s\n" "no" >&6; }
   4149     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   4150 esac
   4151 
   4152 # Do 'set' in a subshell so we don't clobber the current shell's
   4153 # arguments.  Must try -L first in case configure is actually a
   4154 # symlink; some systems play weird games with the mod time of symlinks
   4155 # (eg FreeBSD returns the mod time of the symlink's containing
   4156 # directory).
   4157 am_build_env_is_sane=no
   4158 am_has_slept=no
   4159 rm -f conftest.file
   4160 for am_try in 1 2; do
   4161   echo "timestamp, slept: $am_has_slept" > conftest.file
   4162   if (
   4163     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   4164     if test "$*" = "X"; then
   4165       # -L didn't work.
   4166       set X `ls -t "$srcdir/configure" conftest.file`
   4167     fi
   4168     test "$2" = conftest.file
   4169   ); then
   4170     am_build_env_is_sane=yes
   4171     break
   4172   fi
   4173   # Just in case.
   4174   sleep "$am_cv_filesystem_timestamp_resolution"
   4175   am_has_slept=yes
   4176 done
   4177 
   4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
   4179 printf "%s\n" "$am_build_env_is_sane" >&6; }
   4180 if test "$am_build_env_is_sane" = no; then
   4181   as_fn_error $? "newly created file is older than distributed files!
   4182 Check your system clock" "$LINENO" 5
   4183 fi
   4184 
   4185 # If we didn't sleep, we still need to ensure time stamps of config.status and
   4186 # generated files are strictly newer.
   4187 am_sleep_pid=
   4188 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
   4189 then :
   4190 
   4191 else case e in #(
   4192   e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
   4193   am_sleep_pid=$!
   4194  ;;
   4195 esac
   4196 fi
   4197 
   4198 rm -f conftest.file
   4199 
   4200 test "$program_prefix" != NONE &&
   4201   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   4202 # Use a double $ so make ignores it.
   4203 test "$program_suffix" != NONE &&
   4204   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   4205 # Double any \ or $.
   4206 # By default was 's,x,x', remove it if useless.
   4207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   4208 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
   4209 
   4210 
   4211   if test x"${MISSING+set}" != xset; then
   4212   MISSING="\${SHELL} '$am_aux_dir/missing'"
   4213 fi
   4214 # Use eval to expand $SHELL
   4215 if eval "$MISSING --is-lightweight"; then
   4216   am_missing_run="$MISSING "
   4217 else
   4218   am_missing_run=
   4219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   4220 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   4221 fi
   4222 
   4223 if test x"${install_sh+set}" != xset; then
   4224   case $am_aux_dir in
   4225   *\ * | *\	*)
   4226     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4227   *)
   4228     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4229   esac
   4230 fi
   4231 
   4232 # Installed binaries are usually stripped using 'strip' when the user
   4233 # run "make install-strip".  However 'strip' might not be the right
   4234 # tool to use in cross-compilation environments, therefore Automake
   4235 # will honor the 'STRIP' environment variable to overrule this program.
   4236 if test "$cross_compiling" != no; then
   4237   if test -n "$ac_tool_prefix"; then
   4238   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4239 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4241 printf %s "checking for $ac_word... " >&6; }
   4242 if test ${ac_cv_prog_STRIP+y}
   4243 then :
   4244   printf %s "(cached) " >&6
   4245 else case e in #(
   4246   e) if test -n "$STRIP"; then
   4247   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4248 else
   4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4250 for as_dir in $PATH
   4251 do
   4252   IFS=$as_save_IFS
   4253   case $as_dir in #(((
   4254     '') as_dir=./ ;;
   4255     */) ;;
   4256     *) as_dir=$as_dir/ ;;
   4257   esac
   4258     for ac_exec_ext in '' $ac_executable_extensions; do
   4259   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4260     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4261     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4262     break 2
   4263   fi
   4264 done
   4265   done
   4266 IFS=$as_save_IFS
   4267 
   4268 fi ;;
   4269 esac
   4270 fi
   4271 STRIP=$ac_cv_prog_STRIP
   4272 if test -n "$STRIP"; then
   4273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4274 printf "%s\n" "$STRIP" >&6; }
   4275 else
   4276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4277 printf "%s\n" "no" >&6; }
   4278 fi
   4279 
   4280 
   4281 fi
   4282 if test -z "$ac_cv_prog_STRIP"; then
   4283   ac_ct_STRIP=$STRIP
   4284   # Extract the first word of "strip", so it can be a program name with args.
   4285 set dummy strip; ac_word=$2
   4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4287 printf %s "checking for $ac_word... " >&6; }
   4288 if test ${ac_cv_prog_ac_ct_STRIP+y}
   4289 then :
   4290   printf %s "(cached) " >&6
   4291 else case e in #(
   4292   e) if test -n "$ac_ct_STRIP"; then
   4293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4294 else
   4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4296 for as_dir in $PATH
   4297 do
   4298   IFS=$as_save_IFS
   4299   case $as_dir in #(((
   4300     '') as_dir=./ ;;
   4301     */) ;;
   4302     *) as_dir=$as_dir/ ;;
   4303   esac
   4304     for ac_exec_ext in '' $ac_executable_extensions; do
   4305   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4306     ac_cv_prog_ac_ct_STRIP="strip"
   4307     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4308     break 2
   4309   fi
   4310 done
   4311   done
   4312 IFS=$as_save_IFS
   4313 
   4314 fi ;;
   4315 esac
   4316 fi
   4317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4318 if test -n "$ac_ct_STRIP"; then
   4319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4320 printf "%s\n" "$ac_ct_STRIP" >&6; }
   4321 else
   4322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4323 printf "%s\n" "no" >&6; }
   4324 fi
   4325 
   4326   if test "x$ac_ct_STRIP" = x; then
   4327     STRIP=":"
   4328   else
   4329     case $cross_compiling:$ac_tool_warned in
   4330 yes:)
   4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4333 ac_tool_warned=yes ;;
   4334 esac
   4335     STRIP=$ac_ct_STRIP
   4336   fi
   4337 else
   4338   STRIP="$ac_cv_prog_STRIP"
   4339 fi
   4340 
   4341 fi
   4342 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4343 
   4344 
   4345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
   4346 printf %s "checking for a race-free mkdir -p... " >&6; }
   4347 if test -z "$MKDIR_P"; then
   4348   if test ${ac_cv_path_mkdir+y}
   4349 then :
   4350   printf %s "(cached) " >&6
   4351 else case e in #(
   4352   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4353 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   4354 do
   4355   IFS=$as_save_IFS
   4356   case $as_dir in #(((
   4357     '') as_dir=./ ;;
   4358     */) ;;
   4359     *) as_dir=$as_dir/ ;;
   4360   esac
   4361     for ac_prog in mkdir gmkdir; do
   4362 	 for ac_exec_ext in '' $ac_executable_extensions; do
   4363 	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
   4364 	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
   4365 	     'mkdir ('*'coreutils) '* | \
   4366 	     *'BusyBox '* | \
   4367 	     'mkdir (fileutils) '4.1*)
   4368 	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
   4369 	       break 3;;
   4370 	   esac
   4371 	 done
   4372        done
   4373   done
   4374 IFS=$as_save_IFS
   4375  ;;
   4376 esac
   4377 fi
   4378 
   4379   test -d ./--version && rmdir ./--version
   4380   if test ${ac_cv_path_mkdir+y}; then
   4381     MKDIR_P="$ac_cv_path_mkdir -p"
   4382   else
   4383     # As a last resort, use plain mkdir -p,
   4384     # in the hope it doesn't have the bugs of ancient mkdir.
   4385     MKDIR_P='mkdir -p'
   4386   fi
   4387 fi
   4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   4389 printf "%s\n" "$MKDIR_P" >&6; }
   4390 
   4391 for ac_prog in gawk mawk nawk awk
   4392 do
   4393   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4394 set dummy $ac_prog; ac_word=$2
   4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4396 printf %s "checking for $ac_word... " >&6; }
   4397 if test ${ac_cv_prog_AWK+y}
   4398 then :
   4399   printf %s "(cached) " >&6
   4400 else case e in #(
   4401   e) if test -n "$AWK"; then
   4402   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   4403 else
   4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4405 for as_dir in $PATH
   4406 do
   4407   IFS=$as_save_IFS
   4408   case $as_dir in #(((
   4409     '') as_dir=./ ;;
   4410     */) ;;
   4411     *) as_dir=$as_dir/ ;;
   4412   esac
   4413     for ac_exec_ext in '' $ac_executable_extensions; do
   4414   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4415     ac_cv_prog_AWK="$ac_prog"
   4416     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4417     break 2
   4418   fi
   4419 done
   4420   done
   4421 IFS=$as_save_IFS
   4422 
   4423 fi ;;
   4424 esac
   4425 fi
   4426 AWK=$ac_cv_prog_AWK
   4427 if test -n "$AWK"; then
   4428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   4429 printf "%s\n" "$AWK" >&6; }
   4430 else
   4431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4432 printf "%s\n" "no" >&6; }
   4433 fi
   4434 
   4435 
   4436   test -n "$AWK" && break
   4437 done
   4438 
   4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4440 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4441 set x ${MAKE-make}
   4442 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4443 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
   4444 then :
   4445   printf %s "(cached) " >&6
   4446 else case e in #(
   4447   e) cat >conftest.make <<\_ACEOF
   4448 SHELL = /bin/sh
   4449 all:
   4450 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4451 _ACEOF
   4452 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4453 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4454   *@@@%%%=?*=@@@%%%*)
   4455     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4456   *)
   4457     eval ac_cv_prog_make_${ac_make}_set=no;;
   4458 esac
   4459 rm -f conftest.make ;;
   4460 esac
   4461 fi
   4462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4464 printf "%s\n" "yes" >&6; }
   4465   SET_MAKE=
   4466 else
   4467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4468 printf "%s\n" "no" >&6; }
   4469   SET_MAKE="MAKE=${MAKE-make}"
   4470 fi
   4471 
   4472 rm -rf .tst 2>/dev/null
   4473 mkdir .tst 2>/dev/null
   4474 if test -d .tst; then
   4475   am__leading_dot=.
   4476 else
   4477   am__leading_dot=_
   4478 fi
   4479 rmdir .tst 2>/dev/null
   4480 
   4481 DEPDIR="${am__leading_dot}deps"
   4482 
   4483 ac_config_commands="$ac_config_commands depfiles"
   4484 
   4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
   4486 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
   4487 cat > confinc.mk << 'END'
   4488 am__doit:
   4489 	@echo this is the am__doit target >confinc.out
   4490 .PHONY: am__doit
   4491 END
   4492 am__include="#"
   4493 am__quote=
   4494 # BSD make does it like this.
   4495 echo '.include "confinc.mk" # ignored' > confmf.BSD
   4496 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
   4497 echo 'include confinc.mk # ignored' > confmf.GNU
   4498 _am_result=no
   4499 for s in GNU BSD; do
   4500   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   4501    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   4502    ac_status=$?
   4503    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4504    (exit $ac_status); }
   4505   case $?:`cat confinc.out 2>/dev/null` in #(
   4506   '0:this is the am__doit target') :
   4507     case $s in #(
   4508   BSD) :
   4509     am__include='.include' am__quote='"' ;; #(
   4510   *) :
   4511     am__include='include' am__quote='' ;;
   4512 esac ;; #(
   4513   *) :
   4514      ;;
   4515 esac
   4516   if test "$am__include" != "#"; then
   4517     _am_result="yes ($s style)"
   4518     break
   4519   fi
   4520 done
   4521 rm -f confinc.* confmf.*
   4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
   4523 printf "%s\n" "${_am_result}" >&6; }
   4524 
   4525 # Check whether --enable-dependency-tracking was given.
   4526 if test ${enable_dependency_tracking+y}
   4527 then :
   4528   enableval=$enable_dependency_tracking;
   4529 fi
   4530 
   4531 if test "x$enable_dependency_tracking" != xno; then
   4532   am_depcomp="$ac_aux_dir/depcomp"
   4533   AMDEPBACKSLASH='\'
   4534   am__nodep='_no'
   4535 fi
   4536  if test "x$enable_dependency_tracking" != xno; then
   4537   AMDEP_TRUE=
   4538   AMDEP_FALSE='#'
   4539 else
   4540   AMDEP_TRUE='#'
   4541   AMDEP_FALSE=
   4542 fi
   4543 
   4544 
   4545 AM_DEFAULT_VERBOSITY=1
   4546 # Check whether --enable-silent-rules was given.
   4547 if test ${enable_silent_rules+y}
   4548 then :
   4549   enableval=$enable_silent_rules;
   4550 fi
   4551 
   4552 am_make=${MAKE-make}
   4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   4554 printf %s "checking whether $am_make supports nested variables... " >&6; }
   4555 if test ${am_cv_make_support_nested_variables+y}
   4556 then :
   4557   printf %s "(cached) " >&6
   4558 else case e in #(
   4559   e) if printf "%s\n" 'TRUE=$(BAR$(V))
   4560 BAR0=false
   4561 BAR1=true
   4562 V=1
   4563 am__doit:
   4564 	@$(TRUE)
   4565 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   4566   am_cv_make_support_nested_variables=yes
   4567 else
   4568   am_cv_make_support_nested_variables=no
   4569 fi ;;
   4570 esac
   4571 fi
   4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   4573 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
   4574 AM_BACKSLASH='\'
   4575 
   4576 am__rm_f_notfound=
   4577 if (rm -f && rm -fr && rm -rf) 2>/dev/null
   4578 then :
   4579 
   4580 else case e in #(
   4581   e) am__rm_f_notfound='""' ;;
   4582 esac
   4583 fi
   4584 
   4585 
   4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
   4587 printf %s "checking xargs -n works... " >&6; }
   4588 if test ${am_cv_xargs_n_works+y}
   4589 then :
   4590   printf %s "(cached) " >&6
   4591 else case e in #(
   4592   e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
   4593 3"
   4594 then :
   4595   am_cv_xargs_n_works=yes
   4596 else case e in #(
   4597   e) am_cv_xargs_n_works=no ;;
   4598 esac
   4599 fi ;;
   4600 esac
   4601 fi
   4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
   4603 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
   4604 if test "$am_cv_xargs_n_works" = yes
   4605 then :
   4606   am__xargs_n='xargs -n'
   4607 else case e in #(
   4608   e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
   4609  ;;
   4610 esac
   4611 fi
   4612 
   4613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   4614   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   4615   # is not polluted with repeated "-I."
   4616   am__isrc=' -I$(srcdir)'
   4617   # test to see if srcdir already configured
   4618   if test -f $srcdir/config.status; then
   4619     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   4620   fi
   4621 fi
   4622 
   4623 # test whether we have cygpath
   4624 if test -z "$CYGPATH_W"; then
   4625   if (cygpath --version) >/dev/null 2>/dev/null; then
   4626     CYGPATH_W='cygpath -w'
   4627   else
   4628     CYGPATH_W=echo
   4629   fi
   4630 fi
   4631 
   4632 
   4633 # Define the identity of the package.
   4634  PACKAGE='rgb'
   4635  VERSION='1.1.1'
   4636 
   4637 
   4638 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
   4639 
   4640 
   4641 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
   4642 
   4643 # Some tools Automake needs.
   4644 
   4645 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   4646 
   4647 
   4648 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   4649 
   4650 
   4651 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   4652 
   4653 
   4654 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   4655 
   4656 
   4657 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   4658 
   4659 # For better backward compatibility.  To be removed once Automake 1.9.x
   4660 # dies out for good.  For more background, see:
   4661 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   4662 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   4663 mkdir_p='$(MKDIR_P)'
   4664 
   4665 # We need awk for the "check" target (and possibly the TAP driver).  The
   4666 # system "awk" is bad on some platforms.
   4667 # Always define AMTAR for backward compatibility.  Yes, it's still used
   4668 # in the wild :-(  We should find a proper way to deprecate it ...
   4669 AMTAR='$${TAR-tar}'
   4670 
   4671 
   4672 # We'll loop over all known methods to create a tar archive until one works.
   4673 _am_tools='gnutar plaintar pax cpio none'
   4674 
   4675 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
   4676       # There is notably a 21 bits limit for the UID and the GID.  In fact,
   4677       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
   4678       # and bug#13588).
   4679       am_max_uid=2097151 # 2^21 - 1
   4680       am_max_gid=$am_max_uid
   4681       # The $UID and $GID variables are not portable, so we need to resort
   4682       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
   4683       # below are definitely unexpected, so allow the users to see them
   4684       # (that is, avoid stderr redirection).
   4685       am_uid=`id -u || echo unknown`
   4686       am_gid=`id -g || echo unknown`
   4687       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
   4688 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
   4689       if test x$am_uid = xunknown; then
   4690         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
   4691 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
   4692       elif test $am_uid -le $am_max_uid; then
   4693         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4694 printf "%s\n" "yes" >&6; }
   4695       else
   4696         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4697 printf "%s\n" "no" >&6; }
   4698         _am_tools=none
   4699       fi
   4700       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
   4701 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
   4702       if test x$gm_gid = xunknown; then
   4703         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
   4704 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
   4705       elif test $am_gid -le $am_max_gid; then
   4706         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4707 printf "%s\n" "yes" >&6; }
   4708       else
   4709         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4710 printf "%s\n" "no" >&6; }
   4711         _am_tools=none
   4712       fi
   4713 
   4714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
   4715 printf %s "checking how to create a ustar tar archive... " >&6; }
   4716 
   4717   # Go ahead even if we have the value already cached.  We do so because we
   4718   # need to set the values for the 'am__tar' and 'am__untar' variables.
   4719   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
   4720 
   4721   for _am_tool in $_am_tools; do
   4722     case $_am_tool in
   4723     gnutar)
   4724       for _am_tar in tar gnutar gtar; do
   4725         { echo "$as_me:$LINENO: $_am_tar --version" >&5
   4726    ($_am_tar --version) >&5 2>&5
   4727    ac_status=$?
   4728    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4729    (exit $ac_status); } && break
   4730       done
   4731       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
   4732       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
   4733       am__untar="$_am_tar -xf -"
   4734       ;;
   4735     plaintar)
   4736       # Must skip GNU tar: if it does not support --format= it doesn't create
   4737       # ustar tarball either.
   4738       (tar --version) >/dev/null 2>&1 && continue
   4739       am__tar='tar chf - "$$tardir"'
   4740       am__tar_='tar chf - "$tardir"'
   4741       am__untar='tar xf -'
   4742       ;;
   4743     pax)
   4744       am__tar='pax -L -x ustar -w "$$tardir"'
   4745       am__tar_='pax -L -x ustar -w "$tardir"'
   4746       am__untar='pax -r'
   4747       ;;
   4748     cpio)
   4749       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
   4750       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
   4751       am__untar='cpio -i -H ustar -d'
   4752       ;;
   4753     none)
   4754       am__tar=false
   4755       am__tar_=false
   4756       am__untar=false
   4757       ;;
   4758     esac
   4759 
   4760     # If the value was cached, stop now.  We just wanted to have am__tar
   4761     # and am__untar set.
   4762     test -n "${am_cv_prog_tar_ustar}" && break
   4763 
   4764     # tar/untar a dummy directory, and stop if the command works.
   4765     rm -rf conftest.dir
   4766     mkdir conftest.dir
   4767     echo GrepMe > conftest.dir/file
   4768     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
   4769    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
   4770    ac_status=$?
   4771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4772    (exit $ac_status); }
   4773     rm -rf conftest.dir
   4774     if test -s conftest.tar; then
   4775       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
   4776    ($am__untar <conftest.tar) >&5 2>&5
   4777    ac_status=$?
   4778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4779    (exit $ac_status); }
   4780       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
   4781    (cat conftest.dir/file) >&5 2>&5
   4782    ac_status=$?
   4783    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4784    (exit $ac_status); }
   4785       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
   4786     fi
   4787   done
   4788   rm -rf conftest.dir
   4789 
   4790   if test ${am_cv_prog_tar_ustar+y}
   4791 then :
   4792   printf %s "(cached) " >&6
   4793 else case e in #(
   4794   e) am_cv_prog_tar_ustar=$_am_tool ;;
   4795 esac
   4796 fi
   4797 
   4798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
   4799 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
   4800 
   4801 
   4802 
   4803 
   4804 
   4805 depcc="$CC"   am_compiler_list=
   4806 
   4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4808 printf %s "checking dependency style of $depcc... " >&6; }
   4809 if test ${am_cv_CC_dependencies_compiler_type+y}
   4810 then :
   4811   printf %s "(cached) " >&6
   4812 else case e in #(
   4813   e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4814   # We make a subdir and do the tests there.  Otherwise we can end up
   4815   # making bogus files that we don't know about and never remove.  For
   4816   # instance it was reported that on HP-UX the gcc test will end up
   4817   # making a dummy file named 'D' -- because '-MD' means "put the output
   4818   # in D".
   4819   rm -rf conftest.dir
   4820   mkdir conftest.dir
   4821   # Copy depcomp to subdir because otherwise we won't find it if we're
   4822   # using a relative directory.
   4823   cp "$am_depcomp" conftest.dir
   4824   cd conftest.dir
   4825   # We will build objects and dependencies in a subdirectory because
   4826   # it helps to detect inapplicable dependency modes.  For instance
   4827   # both Tru64's cc and ICC support -MD to output dependencies as a
   4828   # side effect of compilation, but ICC will put the dependencies in
   4829   # the current directory while Tru64 will put them in the object
   4830   # directory.
   4831   mkdir sub
   4832 
   4833   am_cv_CC_dependencies_compiler_type=none
   4834   if test "$am_compiler_list" = ""; then
   4835      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4836   fi
   4837   am__universal=false
   4838   case " $depcc " in #(
   4839      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4840      esac
   4841 
   4842   for depmode in $am_compiler_list; do
   4843     # Setup a source with many dependencies, because some compilers
   4844     # like to wrap large dependency lists on column 80 (with \), and
   4845     # we should not choose a depcomp mode which is confused by this.
   4846     #
   4847     # We need to recreate these files for each test, as the compiler may
   4848     # overwrite some of them when testing with obscure command lines.
   4849     # This happens at least with the AIX C compiler.
   4850     : > sub/conftest.c
   4851     for i in 1 2 3 4 5 6; do
   4852       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4853       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4854       # Solaris 10 /bin/sh.
   4855       echo '/* dummy */' > sub/conftst$i.h
   4856     done
   4857     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4858 
   4859     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4860     # mode.  It turns out that the SunPro C++ compiler does not properly
   4861     # handle '-M -o', and we need to detect this.  Also, some Intel
   4862     # versions had trouble with output in subdirs.
   4863     am__obj=sub/conftest.${OBJEXT-o}
   4864     am__minus_obj="-o $am__obj"
   4865     case $depmode in
   4866     gcc)
   4867       # This depmode causes a compiler race in universal mode.
   4868       test "$am__universal" = false || continue
   4869       ;;
   4870     nosideeffect)
   4871       # After this tag, mechanisms are not by side-effect, so they'll
   4872       # only be used when explicitly requested.
   4873       if test "x$enable_dependency_tracking" = xyes; then
   4874 	continue
   4875       else
   4876 	break
   4877       fi
   4878       ;;
   4879     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4880       # This compiler won't grok '-c -o', but also, the minuso test has
   4881       # not run yet.  These depmodes are late enough in the game, and
   4882       # so weak that their functioning should not be impacted.
   4883       am__obj=conftest.${OBJEXT-o}
   4884       am__minus_obj=
   4885       ;;
   4886     none) break ;;
   4887     esac
   4888     if depmode=$depmode \
   4889        source=sub/conftest.c object=$am__obj \
   4890        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4891        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4892          >/dev/null 2>conftest.err &&
   4893        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4894        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4895        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4896        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4897       # icc doesn't choke on unknown options, it will just issue warnings
   4898       # or remarks (even with -Werror).  So we grep stderr for any message
   4899       # that says an option was ignored or not supported.
   4900       # When given -MP, icc 7.0 and 7.1 complain thus:
   4901       #   icc: Command line warning: ignoring option '-M'; no argument required
   4902       # The diagnosis changed in icc 8.0:
   4903       #   icc: Command line remark: option '-MP' not supported
   4904       if (grep 'ignoring option' conftest.err ||
   4905           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4906         am_cv_CC_dependencies_compiler_type=$depmode
   4907         break
   4908       fi
   4909     fi
   4910   done
   4911 
   4912   cd ..
   4913   rm -rf conftest.dir
   4914 else
   4915   am_cv_CC_dependencies_compiler_type=none
   4916 fi
   4917  ;;
   4918 esac
   4919 fi
   4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4921 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
   4922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4923 
   4924  if
   4925   test "x$enable_dependency_tracking" != xno \
   4926   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4927   am__fastdepCC_TRUE=
   4928   am__fastdepCC_FALSE='#'
   4929 else
   4930   am__fastdepCC_TRUE='#'
   4931   am__fastdepCC_FALSE=
   4932 fi
   4933 
   4934 
   4935 # Variables for tags utilities; see am/tags.am
   4936 if test -z "$CTAGS"; then
   4937   CTAGS=ctags
   4938 fi
   4939 
   4940 if test -z "$ETAGS"; then
   4941   ETAGS=etags
   4942 fi
   4943 
   4944 if test -z "$CSCOPE"; then
   4945   CSCOPE=cscope
   4946 fi
   4947 
   4948 
   4949 
   4950 
   4951 
   4952 
   4953 
   4954 
   4955 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
   4956 
   4957 
   4958 
   4959 
   4960 
   4961 
   4962 
   4963 
   4964 
   4965 
   4966 
   4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   4968 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   4969 if test ${ac_cv_c_undeclared_builtin_options+y}
   4970 then :
   4971   printf %s "(cached) " >&6
   4972 else case e in #(
   4973   e) ac_save_CFLAGS=$CFLAGS
   4974    ac_cv_c_undeclared_builtin_options='cannot detect'
   4975    for ac_arg in '' -fno-builtin; do
   4976      CFLAGS="$ac_save_CFLAGS $ac_arg"
   4977      # This test program should *not* compile successfully.
   4978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4979 /* end confdefs.h.  */
   4980 
   4981 int
   4982 main (void)
   4983 {
   4984 (void) strchr;
   4985   ;
   4986   return 0;
   4987 }
   4988 _ACEOF
   4989 if ac_fn_c_try_compile "$LINENO"
   4990 then :
   4991 
   4992 else case e in #(
   4993   e) # This test program should compile successfully.
   4994         # No library function is consistently available on
   4995         # freestanding implementations, so test against a dummy
   4996         # declaration.  Include always-available headers on the
   4997         # off chance that they somehow elicit warnings.
   4998         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4999 /* end confdefs.h.  */
   5000 #include <float.h>
   5001 #include <limits.h>
   5002 #include <stdarg.h>
   5003 #include <stddef.h>
   5004 extern void ac_decl (int, char *);
   5005 
   5006 int
   5007 main (void)
   5008 {
   5009 (void) ac_decl (0, (char *) 0);
   5010   (void) ac_decl;
   5011 
   5012   ;
   5013   return 0;
   5014 }
   5015 _ACEOF
   5016 if ac_fn_c_try_compile "$LINENO"
   5017 then :
   5018   if test x"$ac_arg" = x
   5019 then :
   5020   ac_cv_c_undeclared_builtin_options='none needed'
   5021 else case e in #(
   5022   e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
   5023 esac
   5024 fi
   5025           break
   5026 fi
   5027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5028 esac
   5029 fi
   5030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5031     done
   5032     CFLAGS=$ac_save_CFLAGS
   5033    ;;
   5034 esac
   5035 fi
   5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   5037 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   5038   case $ac_cv_c_undeclared_builtin_options in #(
   5039   'cannot detect') :
   5040     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   5041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   5042 as_fn_error $? "cannot make $CC report undeclared builtins
   5043 See 'config.log' for more details" "$LINENO" 5; } ;; #(
   5044   'none needed') :
   5045     ac_c_undeclared_builtin_options='' ;; #(
   5046   *) :
   5047     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   5048 esac
   5049 
   5050 
   5051 
   5052 
   5053 
   5054 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   5055 if test "x$ac_cv_have_decl___clang__" = xyes
   5056 then :
   5057   CLANGCC="yes"
   5058 else case e in #(
   5059   e) CLANGCC="no" ;;
   5060 esac
   5061 fi
   5062 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   5063 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
   5064 then :
   5065   INTELCC="yes"
   5066 else case e in #(
   5067   e) INTELCC="no" ;;
   5068 esac
   5069 fi
   5070 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   5071 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
   5072 then :
   5073   SUNCC="yes"
   5074 else case e in #(
   5075   e) SUNCC="no" ;;
   5076 esac
   5077 fi
   5078 
   5079 
   5080 
   5081 
   5082 
   5083 
   5084 
   5085 
   5086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   5087 	if test -n "$ac_tool_prefix"; then
   5088   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   5089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5091 printf %s "checking for $ac_word... " >&6; }
   5092 if test ${ac_cv_path_PKG_CONFIG+y}
   5093 then :
   5094   printf %s "(cached) " >&6
   5095 else case e in #(
   5096   e) case $PKG_CONFIG in
   5097   [\\/]* | ?:[\\/]*)
   5098   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   5099   ;;
   5100   *)
   5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5102 for as_dir in $PATH
   5103 do
   5104   IFS=$as_save_IFS
   5105   case $as_dir in #(((
   5106     '') as_dir=./ ;;
   5107     */) ;;
   5108     *) as_dir=$as_dir/ ;;
   5109   esac
   5110     for ac_exec_ext in '' $ac_executable_extensions; do
   5111   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5112     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   5113     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5114     break 2
   5115   fi
   5116 done
   5117   done
   5118 IFS=$as_save_IFS
   5119 
   5120   ;;
   5121 esac ;;
   5122 esac
   5123 fi
   5124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   5125 if test -n "$PKG_CONFIG"; then
   5126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   5127 printf "%s\n" "$PKG_CONFIG" >&6; }
   5128 else
   5129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5130 printf "%s\n" "no" >&6; }
   5131 fi
   5132 
   5133 
   5134 fi
   5135 if test -z "$ac_cv_path_PKG_CONFIG"; then
   5136   ac_pt_PKG_CONFIG=$PKG_CONFIG
   5137   # Extract the first word of "pkg-config", so it can be a program name with args.
   5138 set dummy pkg-config; ac_word=$2
   5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5140 printf %s "checking for $ac_word... " >&6; }
   5141 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   5142 then :
   5143   printf %s "(cached) " >&6
   5144 else case e in #(
   5145   e) case $ac_pt_PKG_CONFIG in
   5146   [\\/]* | ?:[\\/]*)
   5147   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   5148   ;;
   5149   *)
   5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5151 for as_dir in $PATH
   5152 do
   5153   IFS=$as_save_IFS
   5154   case $as_dir in #(((
   5155     '') as_dir=./ ;;
   5156     */) ;;
   5157     *) as_dir=$as_dir/ ;;
   5158   esac
   5159     for ac_exec_ext in '' $ac_executable_extensions; do
   5160   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5161     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   5162     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5163     break 2
   5164   fi
   5165 done
   5166   done
   5167 IFS=$as_save_IFS
   5168 
   5169   ;;
   5170 esac ;;
   5171 esac
   5172 fi
   5173 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   5174 if test -n "$ac_pt_PKG_CONFIG"; then
   5175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   5176 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   5177 else
   5178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5179 printf "%s\n" "no" >&6; }
   5180 fi
   5181 
   5182   if test "x$ac_pt_PKG_CONFIG" = x; then
   5183     PKG_CONFIG=""
   5184   else
   5185     case $cross_compiling:$ac_tool_warned in
   5186 yes:)
   5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5189 ac_tool_warned=yes ;;
   5190 esac
   5191     PKG_CONFIG=$ac_pt_PKG_CONFIG
   5192   fi
   5193 else
   5194   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   5195 fi
   5196 
   5197 fi
   5198 if test -n "$PKG_CONFIG"; then
   5199 	_pkg_min_version=0.9.0
   5200 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   5201 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   5202 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   5203 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5204 printf "%s\n" "yes" >&6; }
   5205 	else
   5206 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5207 printf "%s\n" "no" >&6; }
   5208 		PKG_CONFIG=""
   5209 	fi
   5210 fi
   5211 
   5212 
   5213   # Make sure we can run config.sub.
   5214 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   5215   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   5216 
   5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   5218 printf %s "checking build system type... " >&6; }
   5219 if test ${ac_cv_build+y}
   5220 then :
   5221   printf %s "(cached) " >&6
   5222 else case e in #(
   5223   e) ac_build_alias=$build_alias
   5224 test "x$ac_build_alias" = x &&
   5225   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   5226 test "x$ac_build_alias" = x &&
   5227   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   5228 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   5229   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   5230  ;;
   5231 esac
   5232 fi
   5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   5234 printf "%s\n" "$ac_cv_build" >&6; }
   5235 case $ac_cv_build in
   5236 *-*-*) ;;
   5237 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   5238 esac
   5239 build=$ac_cv_build
   5240 ac_save_IFS=$IFS; IFS='-'
   5241 set x $ac_cv_build
   5242 shift
   5243 build_cpu=$1
   5244 build_vendor=$2
   5245 shift; shift
   5246 # Remember, the first character of IFS is used to create $*,
   5247 # except with old shells:
   5248 build_os=$*
   5249 IFS=$ac_save_IFS
   5250 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   5251 
   5252 
   5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   5254 printf %s "checking host system type... " >&6; }
   5255 if test ${ac_cv_host+y}
   5256 then :
   5257   printf %s "(cached) " >&6
   5258 else case e in #(
   5259   e) if test "x$host_alias" = x; then
   5260   ac_cv_host=$ac_cv_build
   5261 else
   5262   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   5263     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   5264 fi
   5265  ;;
   5266 esac
   5267 fi
   5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   5269 printf "%s\n" "$ac_cv_host" >&6; }
   5270 case $ac_cv_host in
   5271 *-*-*) ;;
   5272 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   5273 esac
   5274 host=$ac_cv_host
   5275 ac_save_IFS=$IFS; IFS='-'
   5276 set x $ac_cv_host
   5277 shift
   5278 host_cpu=$1
   5279 host_vendor=$2
   5280 shift; shift
   5281 # Remember, the first character of IFS is used to create $*,
   5282 # except with old shells:
   5283 host_os=$*
   5284 IFS=$ac_save_IFS
   5285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   5286 
   5287 
   5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   5289 printf %s "checking for a sed that does not truncate output... " >&6; }
   5290 if test ${ac_cv_path_SED+y}
   5291 then :
   5292   printf %s "(cached) " >&6
   5293 else case e in #(
   5294   e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   5295      for ac_i in 1 2 3 4 5 6 7; do
   5296        ac_script="$ac_script$as_nl$ac_script"
   5297      done
   5298      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   5299      { ac_script=; unset ac_script;}
   5300      if test -z "$SED"; then
   5301   ac_path_SED_found=false
   5302   # Loop through the user's path and test for each of PROGNAME-LIST
   5303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5304 for as_dir in $PATH
   5305 do
   5306   IFS=$as_save_IFS
   5307   case $as_dir in #(((
   5308     '') as_dir=./ ;;
   5309     */) ;;
   5310     *) as_dir=$as_dir/ ;;
   5311   esac
   5312     for ac_prog in sed gsed
   5313    do
   5314     for ac_exec_ext in '' $ac_executable_extensions; do
   5315       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   5316       as_fn_executable_p "$ac_path_SED" || continue
   5317 # Check for GNU ac_path_SED and select it if it is found.
   5318   # Check for GNU $ac_path_SED
   5319 case `"$ac_path_SED" --version 2>&1` in #(
   5320 *GNU*)
   5321   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   5322 #(
   5323 *)
   5324   ac_count=0
   5325   printf %s 0123456789 >"conftest.in"
   5326   while :
   5327   do
   5328     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5329     mv "conftest.tmp" "conftest.in"
   5330     cp "conftest.in" "conftest.nl"
   5331     printf "%s\n" '' >> "conftest.nl"
   5332     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5334     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5335     if test $ac_count -gt ${ac_path_SED_max-0}; then
   5336       # Best one so far, save it but keep looking for a better one
   5337       ac_cv_path_SED="$ac_path_SED"
   5338       ac_path_SED_max=$ac_count
   5339     fi
   5340     # 10*(2^10) chars as input seems more than enough
   5341     test $ac_count -gt 10 && break
   5342   done
   5343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5344 esac
   5345 
   5346       $ac_path_SED_found && break 3
   5347     done
   5348   done
   5349   done
   5350 IFS=$as_save_IFS
   5351   if test -z "$ac_cv_path_SED"; then
   5352     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   5353   fi
   5354 else
   5355   ac_cv_path_SED=$SED
   5356 fi
   5357  ;;
   5358 esac
   5359 fi
   5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   5361 printf "%s\n" "$ac_cv_path_SED" >&6; }
   5362  SED="$ac_cv_path_SED"
   5363   rm -f conftest.sed
   5364 
   5365 
   5366 
   5367 
   5368 
   5369 
   5370 # Check whether --enable-selective-werror was given.
   5371 if test ${enable_selective_werror+y}
   5372 then :
   5373   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
   5374 else case e in #(
   5375   e) SELECTIVE_WERROR=yes ;;
   5376 esac
   5377 fi
   5378 
   5379 
   5380 
   5381 
   5382 
   5383 # -v is too short to test reliably with XORG_TESTSET_CFLAG
   5384 if test "x$SUNCC" = "xyes"; then
   5385     BASE_CFLAGS="-v"
   5386 else
   5387     BASE_CFLAGS=""
   5388 fi
   5389 
   5390 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
   5391 
   5392 
   5393 
   5394 
   5395 
   5396 
   5397 
   5398 
   5399 
   5400 
   5401 
   5402 
   5403 
   5404 xorg_testset_save_CFLAGS="$CFLAGS"
   5405 
   5406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5407 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5408 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5410 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5411 then :
   5412   printf %s "(cached) " >&6
   5413 else case e in #(
   5414   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5415 /* end confdefs.h.  */
   5416 int i;
   5417 _ACEOF
   5418 if ac_fn_c_try_compile "$LINENO"
   5419 then :
   5420   xorg_cv_cc_flag_unknown_warning_option=yes
   5421 else case e in #(
   5422   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   5423 esac
   5424 fi
   5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5426 esac
   5427 fi
   5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5430 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5431 	CFLAGS="$xorg_testset_save_CFLAGS"
   5432 fi
   5433 
   5434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5435 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5436 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5437 	fi
   5438 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5439 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5442 then :
   5443   printf %s "(cached) " >&6
   5444 else case e in #(
   5445   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5446 /* end confdefs.h.  */
   5447 int i;
   5448 _ACEOF
   5449 if ac_fn_c_try_compile "$LINENO"
   5450 then :
   5451   xorg_cv_cc_flag_unused_command_line_argument=yes
   5452 else case e in #(
   5453   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   5454 esac
   5455 fi
   5456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5457 esac
   5458 fi
   5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5461 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5462 	CFLAGS="$xorg_testset_save_CFLAGS"
   5463 fi
   5464 
   5465 found="no"
   5466 
   5467 	if test $found = "no" ; then
   5468 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5469 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5470 		fi
   5471 
   5472 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5473 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5474 		fi
   5475 
   5476 		CFLAGS="$CFLAGS -Wall"
   5477 
   5478 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
   5479 printf %s "checking if $CC supports -Wall... " >&6; }
   5480 		cacheid=xorg_cv_cc_flag__Wall
   5481 		if eval test \${$cacheid+y}
   5482 then :
   5483   printf %s "(cached) " >&6
   5484 else case e in #(
   5485   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5486 /* end confdefs.h.  */
   5487 int i;
   5488 int
   5489 main (void)
   5490 {
   5491 
   5492   ;
   5493   return 0;
   5494 }
   5495 _ACEOF
   5496 if ac_fn_c_try_link "$LINENO"
   5497 then :
   5498   eval $cacheid=yes
   5499 else case e in #(
   5500   e) eval $cacheid=no ;;
   5501 esac
   5502 fi
   5503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5504     conftest$ac_exeext conftest.$ac_ext ;;
   5505 esac
   5506 fi
   5507 
   5508 
   5509 		CFLAGS="$xorg_testset_save_CFLAGS"
   5510 
   5511 		eval supported=\$$cacheid
   5512 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5513 printf "%s\n" "$supported" >&6; }
   5514 		if test "$supported" = "yes" ; then
   5515 			BASE_CFLAGS="$BASE_CFLAGS -Wall"
   5516 			found="yes"
   5517 		fi
   5518 	fi
   5519 
   5520 
   5521 
   5522 
   5523 
   5524 
   5525 
   5526 
   5527 
   5528 
   5529 
   5530 
   5531 
   5532 
   5533 
   5534 xorg_testset_save_CFLAGS="$CFLAGS"
   5535 
   5536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5537 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5538 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5539 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5540 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5541 then :
   5542   printf %s "(cached) " >&6
   5543 else case e in #(
   5544   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5545 /* end confdefs.h.  */
   5546 int i;
   5547 _ACEOF
   5548 if ac_fn_c_try_compile "$LINENO"
   5549 then :
   5550   xorg_cv_cc_flag_unknown_warning_option=yes
   5551 else case e in #(
   5552   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   5553 esac
   5554 fi
   5555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5556 esac
   5557 fi
   5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5559 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5560 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5561 	CFLAGS="$xorg_testset_save_CFLAGS"
   5562 fi
   5563 
   5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5565 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5566 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5567 	fi
   5568 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5569 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5572 then :
   5573   printf %s "(cached) " >&6
   5574 else case e in #(
   5575   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5576 /* end confdefs.h.  */
   5577 int i;
   5578 _ACEOF
   5579 if ac_fn_c_try_compile "$LINENO"
   5580 then :
   5581   xorg_cv_cc_flag_unused_command_line_argument=yes
   5582 else case e in #(
   5583   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   5584 esac
   5585 fi
   5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5587 esac
   5588 fi
   5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5591 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5592 	CFLAGS="$xorg_testset_save_CFLAGS"
   5593 fi
   5594 
   5595 found="no"
   5596 
   5597 	if test $found = "no" ; then
   5598 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5599 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5600 		fi
   5601 
   5602 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5603 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5604 		fi
   5605 
   5606 		CFLAGS="$CFLAGS -Wpointer-arith"
   5607 
   5608 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
   5609 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
   5610 		cacheid=xorg_cv_cc_flag__Wpointer_arith
   5611 		if eval test \${$cacheid+y}
   5612 then :
   5613   printf %s "(cached) " >&6
   5614 else case e in #(
   5615   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5616 /* end confdefs.h.  */
   5617 int i;
   5618 int
   5619 main (void)
   5620 {
   5621 
   5622   ;
   5623   return 0;
   5624 }
   5625 _ACEOF
   5626 if ac_fn_c_try_link "$LINENO"
   5627 then :
   5628   eval $cacheid=yes
   5629 else case e in #(
   5630   e) eval $cacheid=no ;;
   5631 esac
   5632 fi
   5633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5634     conftest$ac_exeext conftest.$ac_ext ;;
   5635 esac
   5636 fi
   5637 
   5638 
   5639 		CFLAGS="$xorg_testset_save_CFLAGS"
   5640 
   5641 		eval supported=\$$cacheid
   5642 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5643 printf "%s\n" "$supported" >&6; }
   5644 		if test "$supported" = "yes" ; then
   5645 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
   5646 			found="yes"
   5647 		fi
   5648 	fi
   5649 
   5650 
   5651 
   5652 
   5653 
   5654 
   5655 
   5656 
   5657 
   5658 
   5659 
   5660 
   5661 
   5662 
   5663 
   5664 xorg_testset_save_CFLAGS="$CFLAGS"
   5665 
   5666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5667 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5668 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5671 then :
   5672   printf %s "(cached) " >&6
   5673 else case e in #(
   5674   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5675 /* end confdefs.h.  */
   5676 int i;
   5677 _ACEOF
   5678 if ac_fn_c_try_compile "$LINENO"
   5679 then :
   5680   xorg_cv_cc_flag_unknown_warning_option=yes
   5681 else case e in #(
   5682   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   5683 esac
   5684 fi
   5685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5686 esac
   5687 fi
   5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5689 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5690 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5691 	CFLAGS="$xorg_testset_save_CFLAGS"
   5692 fi
   5693 
   5694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5695 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5696 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5697 	fi
   5698 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5699 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5702 then :
   5703   printf %s "(cached) " >&6
   5704 else case e in #(
   5705   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5706 /* end confdefs.h.  */
   5707 int i;
   5708 _ACEOF
   5709 if ac_fn_c_try_compile "$LINENO"
   5710 then :
   5711   xorg_cv_cc_flag_unused_command_line_argument=yes
   5712 else case e in #(
   5713   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   5714 esac
   5715 fi
   5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5717 esac
   5718 fi
   5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5721 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5722 	CFLAGS="$xorg_testset_save_CFLAGS"
   5723 fi
   5724 
   5725 found="no"
   5726 
   5727 	if test $found = "no" ; then
   5728 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5729 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5730 		fi
   5731 
   5732 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5733 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5734 		fi
   5735 
   5736 		CFLAGS="$CFLAGS -Wmissing-declarations"
   5737 
   5738 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
   5739 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
   5740 		cacheid=xorg_cv_cc_flag__Wmissing_declarations
   5741 		if eval test \${$cacheid+y}
   5742 then :
   5743   printf %s "(cached) " >&6
   5744 else case e in #(
   5745   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5746 /* end confdefs.h.  */
   5747 int i;
   5748 int
   5749 main (void)
   5750 {
   5751 
   5752   ;
   5753   return 0;
   5754 }
   5755 _ACEOF
   5756 if ac_fn_c_try_link "$LINENO"
   5757 then :
   5758   eval $cacheid=yes
   5759 else case e in #(
   5760   e) eval $cacheid=no ;;
   5761 esac
   5762 fi
   5763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5764     conftest$ac_exeext conftest.$ac_ext ;;
   5765 esac
   5766 fi
   5767 
   5768 
   5769 		CFLAGS="$xorg_testset_save_CFLAGS"
   5770 
   5771 		eval supported=\$$cacheid
   5772 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5773 printf "%s\n" "$supported" >&6; }
   5774 		if test "$supported" = "yes" ; then
   5775 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
   5776 			found="yes"
   5777 		fi
   5778 	fi
   5779 
   5780 
   5781 
   5782 
   5783 
   5784 
   5785 
   5786 
   5787 
   5788 
   5789 
   5790 
   5791 
   5792 
   5793 
   5794 xorg_testset_save_CFLAGS="$CFLAGS"
   5795 
   5796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5797 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5798 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5799 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5800 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5801 then :
   5802   printf %s "(cached) " >&6
   5803 else case e in #(
   5804   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5805 /* end confdefs.h.  */
   5806 int i;
   5807 _ACEOF
   5808 if ac_fn_c_try_compile "$LINENO"
   5809 then :
   5810   xorg_cv_cc_flag_unknown_warning_option=yes
   5811 else case e in #(
   5812   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   5813 esac
   5814 fi
   5815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5816 esac
   5817 fi
   5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5820 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5821 	CFLAGS="$xorg_testset_save_CFLAGS"
   5822 fi
   5823 
   5824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5825 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5826 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5827 	fi
   5828 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5829 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5832 then :
   5833   printf %s "(cached) " >&6
   5834 else case e in #(
   5835   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5836 /* end confdefs.h.  */
   5837 int i;
   5838 _ACEOF
   5839 if ac_fn_c_try_compile "$LINENO"
   5840 then :
   5841   xorg_cv_cc_flag_unused_command_line_argument=yes
   5842 else case e in #(
   5843   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   5844 esac
   5845 fi
   5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5847 esac
   5848 fi
   5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5850 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5851 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5852 	CFLAGS="$xorg_testset_save_CFLAGS"
   5853 fi
   5854 
   5855 found="no"
   5856 
   5857 	if test $found = "no" ; then
   5858 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5859 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5860 		fi
   5861 
   5862 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5863 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5864 		fi
   5865 
   5866 		CFLAGS="$CFLAGS -Wformat=2"
   5867 
   5868 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
   5869 printf %s "checking if $CC supports -Wformat=2... " >&6; }
   5870 		cacheid=xorg_cv_cc_flag__Wformat_2
   5871 		if eval test \${$cacheid+y}
   5872 then :
   5873   printf %s "(cached) " >&6
   5874 else case e in #(
   5875   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5876 /* end confdefs.h.  */
   5877 int i;
   5878 int
   5879 main (void)
   5880 {
   5881 
   5882   ;
   5883   return 0;
   5884 }
   5885 _ACEOF
   5886 if ac_fn_c_try_link "$LINENO"
   5887 then :
   5888   eval $cacheid=yes
   5889 else case e in #(
   5890   e) eval $cacheid=no ;;
   5891 esac
   5892 fi
   5893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5894     conftest$ac_exeext conftest.$ac_ext ;;
   5895 esac
   5896 fi
   5897 
   5898 
   5899 		CFLAGS="$xorg_testset_save_CFLAGS"
   5900 
   5901 		eval supported=\$$cacheid
   5902 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5903 printf "%s\n" "$supported" >&6; }
   5904 		if test "$supported" = "yes" ; then
   5905 			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
   5906 			found="yes"
   5907 		fi
   5908 	fi
   5909 
   5910 	if test $found = "no" ; then
   5911 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5912 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5913 		fi
   5914 
   5915 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5916 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5917 		fi
   5918 
   5919 		CFLAGS="$CFLAGS -Wformat"
   5920 
   5921 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
   5922 printf %s "checking if $CC supports -Wformat... " >&6; }
   5923 		cacheid=xorg_cv_cc_flag__Wformat
   5924 		if eval test \${$cacheid+y}
   5925 then :
   5926   printf %s "(cached) " >&6
   5927 else case e in #(
   5928   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5929 /* end confdefs.h.  */
   5930 int i;
   5931 int
   5932 main (void)
   5933 {
   5934 
   5935   ;
   5936   return 0;
   5937 }
   5938 _ACEOF
   5939 if ac_fn_c_try_link "$LINENO"
   5940 then :
   5941   eval $cacheid=yes
   5942 else case e in #(
   5943   e) eval $cacheid=no ;;
   5944 esac
   5945 fi
   5946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5947     conftest$ac_exeext conftest.$ac_ext ;;
   5948 esac
   5949 fi
   5950 
   5951 
   5952 		CFLAGS="$xorg_testset_save_CFLAGS"
   5953 
   5954 		eval supported=\$$cacheid
   5955 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5956 printf "%s\n" "$supported" >&6; }
   5957 		if test "$supported" = "yes" ; then
   5958 			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
   5959 			found="yes"
   5960 		fi
   5961 	fi
   5962 
   5963 
   5964 
   5965 
   5966 
   5967 
   5968 
   5969 
   5970 
   5971 
   5972 
   5973 
   5974 
   5975 
   5976 
   5977 
   5978 
   5979 xorg_testset_save_CFLAGS="$CFLAGS"
   5980 
   5981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5982 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5983 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5986 then :
   5987   printf %s "(cached) " >&6
   5988 else case e in #(
   5989   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5990 /* end confdefs.h.  */
   5991 int i;
   5992 _ACEOF
   5993 if ac_fn_c_try_compile "$LINENO"
   5994 then :
   5995   xorg_cv_cc_flag_unknown_warning_option=yes
   5996 else case e in #(
   5997   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   5998 esac
   5999 fi
   6000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6001 esac
   6002 fi
   6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6005 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6006 	CFLAGS="$xorg_testset_save_CFLAGS"
   6007 fi
   6008 
   6009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6010 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6011 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6012 	fi
   6013 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6014 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6017 then :
   6018   printf %s "(cached) " >&6
   6019 else case e in #(
   6020   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6021 /* end confdefs.h.  */
   6022 int i;
   6023 _ACEOF
   6024 if ac_fn_c_try_compile "$LINENO"
   6025 then :
   6026   xorg_cv_cc_flag_unused_command_line_argument=yes
   6027 else case e in #(
   6028   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6029 esac
   6030 fi
   6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6032 esac
   6033 fi
   6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6036 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6037 	CFLAGS="$xorg_testset_save_CFLAGS"
   6038 fi
   6039 
   6040 found="no"
   6041 
   6042 	if test $found = "no" ; then
   6043 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6044 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6045 		fi
   6046 
   6047 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6048 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6049 		fi
   6050 
   6051 		CFLAGS="$CFLAGS -Wstrict-prototypes"
   6052 
   6053 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
   6054 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
   6055 		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
   6056 		if eval test \${$cacheid+y}
   6057 then :
   6058   printf %s "(cached) " >&6
   6059 else case e in #(
   6060   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6061 /* end confdefs.h.  */
   6062 int i;
   6063 int
   6064 main (void)
   6065 {
   6066 
   6067   ;
   6068   return 0;
   6069 }
   6070 _ACEOF
   6071 if ac_fn_c_try_link "$LINENO"
   6072 then :
   6073   eval $cacheid=yes
   6074 else case e in #(
   6075   e) eval $cacheid=no ;;
   6076 esac
   6077 fi
   6078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6079     conftest$ac_exeext conftest.$ac_ext ;;
   6080 esac
   6081 fi
   6082 
   6083 
   6084 		CFLAGS="$xorg_testset_save_CFLAGS"
   6085 
   6086 		eval supported=\$$cacheid
   6087 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6088 printf "%s\n" "$supported" >&6; }
   6089 		if test "$supported" = "yes" ; then
   6090 			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
   6091 			found="yes"
   6092 		fi
   6093 	fi
   6094 
   6095 
   6096 
   6097 
   6098 
   6099 
   6100 
   6101 
   6102 
   6103 
   6104 
   6105 
   6106 
   6107 
   6108 
   6109 xorg_testset_save_CFLAGS="$CFLAGS"
   6110 
   6111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6112 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6113 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6116 then :
   6117   printf %s "(cached) " >&6
   6118 else case e in #(
   6119   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6120 /* end confdefs.h.  */
   6121 int i;
   6122 _ACEOF
   6123 if ac_fn_c_try_compile "$LINENO"
   6124 then :
   6125   xorg_cv_cc_flag_unknown_warning_option=yes
   6126 else case e in #(
   6127   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6128 esac
   6129 fi
   6130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6131 esac
   6132 fi
   6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6135 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6136 	CFLAGS="$xorg_testset_save_CFLAGS"
   6137 fi
   6138 
   6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6140 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6141 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6142 	fi
   6143 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6144 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6147 then :
   6148   printf %s "(cached) " >&6
   6149 else case e in #(
   6150   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6151 /* end confdefs.h.  */
   6152 int i;
   6153 _ACEOF
   6154 if ac_fn_c_try_compile "$LINENO"
   6155 then :
   6156   xorg_cv_cc_flag_unused_command_line_argument=yes
   6157 else case e in #(
   6158   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6159 esac
   6160 fi
   6161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6162 esac
   6163 fi
   6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6166 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6167 	CFLAGS="$xorg_testset_save_CFLAGS"
   6168 fi
   6169 
   6170 found="no"
   6171 
   6172 	if test $found = "no" ; then
   6173 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6174 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6175 		fi
   6176 
   6177 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6178 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6179 		fi
   6180 
   6181 		CFLAGS="$CFLAGS -Wmissing-prototypes"
   6182 
   6183 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
   6184 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
   6185 		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
   6186 		if eval test \${$cacheid+y}
   6187 then :
   6188   printf %s "(cached) " >&6
   6189 else case e in #(
   6190   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6191 /* end confdefs.h.  */
   6192 int i;
   6193 int
   6194 main (void)
   6195 {
   6196 
   6197   ;
   6198   return 0;
   6199 }
   6200 _ACEOF
   6201 if ac_fn_c_try_link "$LINENO"
   6202 then :
   6203   eval $cacheid=yes
   6204 else case e in #(
   6205   e) eval $cacheid=no ;;
   6206 esac
   6207 fi
   6208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6209     conftest$ac_exeext conftest.$ac_ext ;;
   6210 esac
   6211 fi
   6212 
   6213 
   6214 		CFLAGS="$xorg_testset_save_CFLAGS"
   6215 
   6216 		eval supported=\$$cacheid
   6217 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6218 printf "%s\n" "$supported" >&6; }
   6219 		if test "$supported" = "yes" ; then
   6220 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
   6221 			found="yes"
   6222 		fi
   6223 	fi
   6224 
   6225 
   6226 
   6227 
   6228 
   6229 
   6230 
   6231 
   6232 
   6233 
   6234 
   6235 
   6236 
   6237 
   6238 
   6239 xorg_testset_save_CFLAGS="$CFLAGS"
   6240 
   6241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6242 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6243 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6246 then :
   6247   printf %s "(cached) " >&6
   6248 else case e in #(
   6249   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6250 /* end confdefs.h.  */
   6251 int i;
   6252 _ACEOF
   6253 if ac_fn_c_try_compile "$LINENO"
   6254 then :
   6255   xorg_cv_cc_flag_unknown_warning_option=yes
   6256 else case e in #(
   6257   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6258 esac
   6259 fi
   6260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6261 esac
   6262 fi
   6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6265 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6266 	CFLAGS="$xorg_testset_save_CFLAGS"
   6267 fi
   6268 
   6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6270 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6271 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6272 	fi
   6273 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6274 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6277 then :
   6278   printf %s "(cached) " >&6
   6279 else case e in #(
   6280   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6281 /* end confdefs.h.  */
   6282 int i;
   6283 _ACEOF
   6284 if ac_fn_c_try_compile "$LINENO"
   6285 then :
   6286   xorg_cv_cc_flag_unused_command_line_argument=yes
   6287 else case e in #(
   6288   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6289 esac
   6290 fi
   6291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6292 esac
   6293 fi
   6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6296 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6297 	CFLAGS="$xorg_testset_save_CFLAGS"
   6298 fi
   6299 
   6300 found="no"
   6301 
   6302 	if test $found = "no" ; then
   6303 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6304 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6305 		fi
   6306 
   6307 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6308 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6309 		fi
   6310 
   6311 		CFLAGS="$CFLAGS -Wnested-externs"
   6312 
   6313 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
   6314 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
   6315 		cacheid=xorg_cv_cc_flag__Wnested_externs
   6316 		if eval test \${$cacheid+y}
   6317 then :
   6318   printf %s "(cached) " >&6
   6319 else case e in #(
   6320   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6321 /* end confdefs.h.  */
   6322 int i;
   6323 int
   6324 main (void)
   6325 {
   6326 
   6327   ;
   6328   return 0;
   6329 }
   6330 _ACEOF
   6331 if ac_fn_c_try_link "$LINENO"
   6332 then :
   6333   eval $cacheid=yes
   6334 else case e in #(
   6335   e) eval $cacheid=no ;;
   6336 esac
   6337 fi
   6338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6339     conftest$ac_exeext conftest.$ac_ext ;;
   6340 esac
   6341 fi
   6342 
   6343 
   6344 		CFLAGS="$xorg_testset_save_CFLAGS"
   6345 
   6346 		eval supported=\$$cacheid
   6347 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6348 printf "%s\n" "$supported" >&6; }
   6349 		if test "$supported" = "yes" ; then
   6350 			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
   6351 			found="yes"
   6352 		fi
   6353 	fi
   6354 
   6355 
   6356 
   6357 
   6358 
   6359 
   6360 
   6361 
   6362 
   6363 
   6364 
   6365 
   6366 
   6367 
   6368 
   6369 xorg_testset_save_CFLAGS="$CFLAGS"
   6370 
   6371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6372 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6373 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6376 then :
   6377   printf %s "(cached) " >&6
   6378 else case e in #(
   6379   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6380 /* end confdefs.h.  */
   6381 int i;
   6382 _ACEOF
   6383 if ac_fn_c_try_compile "$LINENO"
   6384 then :
   6385   xorg_cv_cc_flag_unknown_warning_option=yes
   6386 else case e in #(
   6387   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6388 esac
   6389 fi
   6390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6391 esac
   6392 fi
   6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6395 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6396 	CFLAGS="$xorg_testset_save_CFLAGS"
   6397 fi
   6398 
   6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6400 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6401 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6402 	fi
   6403 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6404 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6407 then :
   6408   printf %s "(cached) " >&6
   6409 else case e in #(
   6410   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6411 /* end confdefs.h.  */
   6412 int i;
   6413 _ACEOF
   6414 if ac_fn_c_try_compile "$LINENO"
   6415 then :
   6416   xorg_cv_cc_flag_unused_command_line_argument=yes
   6417 else case e in #(
   6418   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6419 esac
   6420 fi
   6421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6422 esac
   6423 fi
   6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6426 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6427 	CFLAGS="$xorg_testset_save_CFLAGS"
   6428 fi
   6429 
   6430 found="no"
   6431 
   6432 	if test $found = "no" ; then
   6433 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6434 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6435 		fi
   6436 
   6437 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6438 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6439 		fi
   6440 
   6441 		CFLAGS="$CFLAGS -Wbad-function-cast"
   6442 
   6443 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
   6444 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
   6445 		cacheid=xorg_cv_cc_flag__Wbad_function_cast
   6446 		if eval test \${$cacheid+y}
   6447 then :
   6448   printf %s "(cached) " >&6
   6449 else case e in #(
   6450   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6451 /* end confdefs.h.  */
   6452 int i;
   6453 int
   6454 main (void)
   6455 {
   6456 
   6457   ;
   6458   return 0;
   6459 }
   6460 _ACEOF
   6461 if ac_fn_c_try_link "$LINENO"
   6462 then :
   6463   eval $cacheid=yes
   6464 else case e in #(
   6465   e) eval $cacheid=no ;;
   6466 esac
   6467 fi
   6468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6469     conftest$ac_exeext conftest.$ac_ext ;;
   6470 esac
   6471 fi
   6472 
   6473 
   6474 		CFLAGS="$xorg_testset_save_CFLAGS"
   6475 
   6476 		eval supported=\$$cacheid
   6477 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6478 printf "%s\n" "$supported" >&6; }
   6479 		if test "$supported" = "yes" ; then
   6480 			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
   6481 			found="yes"
   6482 		fi
   6483 	fi
   6484 
   6485 
   6486 
   6487 
   6488 
   6489 
   6490 
   6491 
   6492 
   6493 
   6494 
   6495 
   6496 
   6497 
   6498 
   6499 xorg_testset_save_CFLAGS="$CFLAGS"
   6500 
   6501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6502 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6503 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6506 then :
   6507   printf %s "(cached) " >&6
   6508 else case e in #(
   6509   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6510 /* end confdefs.h.  */
   6511 int i;
   6512 _ACEOF
   6513 if ac_fn_c_try_compile "$LINENO"
   6514 then :
   6515   xorg_cv_cc_flag_unknown_warning_option=yes
   6516 else case e in #(
   6517   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6518 esac
   6519 fi
   6520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6521 esac
   6522 fi
   6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6525 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6526 	CFLAGS="$xorg_testset_save_CFLAGS"
   6527 fi
   6528 
   6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6530 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6531 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6532 	fi
   6533 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6534 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6537 then :
   6538   printf %s "(cached) " >&6
   6539 else case e in #(
   6540   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6541 /* end confdefs.h.  */
   6542 int i;
   6543 _ACEOF
   6544 if ac_fn_c_try_compile "$LINENO"
   6545 then :
   6546   xorg_cv_cc_flag_unused_command_line_argument=yes
   6547 else case e in #(
   6548   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6549 esac
   6550 fi
   6551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6552 esac
   6553 fi
   6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6556 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6557 	CFLAGS="$xorg_testset_save_CFLAGS"
   6558 fi
   6559 
   6560 found="no"
   6561 
   6562 	if test $found = "no" ; then
   6563 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6564 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6565 		fi
   6566 
   6567 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6568 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6569 		fi
   6570 
   6571 		CFLAGS="$CFLAGS -Wold-style-definition"
   6572 
   6573 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
   6574 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
   6575 		cacheid=xorg_cv_cc_flag__Wold_style_definition
   6576 		if eval test \${$cacheid+y}
   6577 then :
   6578   printf %s "(cached) " >&6
   6579 else case e in #(
   6580   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6581 /* end confdefs.h.  */
   6582 int i;
   6583 int
   6584 main (void)
   6585 {
   6586 
   6587   ;
   6588   return 0;
   6589 }
   6590 _ACEOF
   6591 if ac_fn_c_try_link "$LINENO"
   6592 then :
   6593   eval $cacheid=yes
   6594 else case e in #(
   6595   e) eval $cacheid=no ;;
   6596 esac
   6597 fi
   6598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6599     conftest$ac_exeext conftest.$ac_ext ;;
   6600 esac
   6601 fi
   6602 
   6603 
   6604 		CFLAGS="$xorg_testset_save_CFLAGS"
   6605 
   6606 		eval supported=\$$cacheid
   6607 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6608 printf "%s\n" "$supported" >&6; }
   6609 		if test "$supported" = "yes" ; then
   6610 			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
   6611 			found="yes"
   6612 		fi
   6613 	fi
   6614 
   6615 	if test $found = "no" ; then
   6616 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6617 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6618 		fi
   6619 
   6620 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6621 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6622 		fi
   6623 
   6624 		CFLAGS="$CFLAGS -fd"
   6625 
   6626 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
   6627 printf %s "checking if $CC supports -fd... " >&6; }
   6628 		cacheid=xorg_cv_cc_flag__fd
   6629 		if eval test \${$cacheid+y}
   6630 then :
   6631   printf %s "(cached) " >&6
   6632 else case e in #(
   6633   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6634 /* end confdefs.h.  */
   6635 int i;
   6636 int
   6637 main (void)
   6638 {
   6639 
   6640   ;
   6641   return 0;
   6642 }
   6643 _ACEOF
   6644 if ac_fn_c_try_link "$LINENO"
   6645 then :
   6646   eval $cacheid=yes
   6647 else case e in #(
   6648   e) eval $cacheid=no ;;
   6649 esac
   6650 fi
   6651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6652     conftest$ac_exeext conftest.$ac_ext ;;
   6653 esac
   6654 fi
   6655 
   6656 
   6657 		CFLAGS="$xorg_testset_save_CFLAGS"
   6658 
   6659 		eval supported=\$$cacheid
   6660 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6661 printf "%s\n" "$supported" >&6; }
   6662 		if test "$supported" = "yes" ; then
   6663 			BASE_CFLAGS="$BASE_CFLAGS -fd"
   6664 			found="yes"
   6665 		fi
   6666 	fi
   6667 
   6668 
   6669 
   6670 
   6671 
   6672 # This chunk adds additional warnings that could catch undesired effects.
   6673 
   6674 
   6675 
   6676 
   6677 
   6678 
   6679 
   6680 
   6681 
   6682 
   6683 
   6684 
   6685 
   6686 xorg_testset_save_CFLAGS="$CFLAGS"
   6687 
   6688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6689 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6690 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6691 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6692 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6693 then :
   6694   printf %s "(cached) " >&6
   6695 else case e in #(
   6696   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6697 /* end confdefs.h.  */
   6698 int i;
   6699 _ACEOF
   6700 if ac_fn_c_try_compile "$LINENO"
   6701 then :
   6702   xorg_cv_cc_flag_unknown_warning_option=yes
   6703 else case e in #(
   6704   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6705 esac
   6706 fi
   6707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6708 esac
   6709 fi
   6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6712 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6713 	CFLAGS="$xorg_testset_save_CFLAGS"
   6714 fi
   6715 
   6716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6717 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6718 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6719 	fi
   6720 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6721 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6724 then :
   6725   printf %s "(cached) " >&6
   6726 else case e in #(
   6727   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6728 /* end confdefs.h.  */
   6729 int i;
   6730 _ACEOF
   6731 if ac_fn_c_try_compile "$LINENO"
   6732 then :
   6733   xorg_cv_cc_flag_unused_command_line_argument=yes
   6734 else case e in #(
   6735   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6736 esac
   6737 fi
   6738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6739 esac
   6740 fi
   6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6742 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6743 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6744 	CFLAGS="$xorg_testset_save_CFLAGS"
   6745 fi
   6746 
   6747 found="no"
   6748 
   6749 	if test $found = "no" ; then
   6750 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6751 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6752 		fi
   6753 
   6754 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6755 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6756 		fi
   6757 
   6758 		CFLAGS="$CFLAGS -Wunused"
   6759 
   6760 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
   6761 printf %s "checking if $CC supports -Wunused... " >&6; }
   6762 		cacheid=xorg_cv_cc_flag__Wunused
   6763 		if eval test \${$cacheid+y}
   6764 then :
   6765   printf %s "(cached) " >&6
   6766 else case e in #(
   6767   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6768 /* end confdefs.h.  */
   6769 int i;
   6770 int
   6771 main (void)
   6772 {
   6773 
   6774   ;
   6775   return 0;
   6776 }
   6777 _ACEOF
   6778 if ac_fn_c_try_link "$LINENO"
   6779 then :
   6780   eval $cacheid=yes
   6781 else case e in #(
   6782   e) eval $cacheid=no ;;
   6783 esac
   6784 fi
   6785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6786     conftest$ac_exeext conftest.$ac_ext ;;
   6787 esac
   6788 fi
   6789 
   6790 
   6791 		CFLAGS="$xorg_testset_save_CFLAGS"
   6792 
   6793 		eval supported=\$$cacheid
   6794 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6795 printf "%s\n" "$supported" >&6; }
   6796 		if test "$supported" = "yes" ; then
   6797 			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
   6798 			found="yes"
   6799 		fi
   6800 	fi
   6801 
   6802 
   6803 
   6804 
   6805 
   6806 
   6807 
   6808 
   6809 
   6810 
   6811 
   6812 
   6813 
   6814 
   6815 
   6816 xorg_testset_save_CFLAGS="$CFLAGS"
   6817 
   6818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6819 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6820 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6823 then :
   6824   printf %s "(cached) " >&6
   6825 else case e in #(
   6826   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6827 /* end confdefs.h.  */
   6828 int i;
   6829 _ACEOF
   6830 if ac_fn_c_try_compile "$LINENO"
   6831 then :
   6832   xorg_cv_cc_flag_unknown_warning_option=yes
   6833 else case e in #(
   6834   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6835 esac
   6836 fi
   6837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6838 esac
   6839 fi
   6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6842 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6843 	CFLAGS="$xorg_testset_save_CFLAGS"
   6844 fi
   6845 
   6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6847 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6848 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6849 	fi
   6850 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6851 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6854 then :
   6855   printf %s "(cached) " >&6
   6856 else case e in #(
   6857   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6858 /* end confdefs.h.  */
   6859 int i;
   6860 _ACEOF
   6861 if ac_fn_c_try_compile "$LINENO"
   6862 then :
   6863   xorg_cv_cc_flag_unused_command_line_argument=yes
   6864 else case e in #(
   6865   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6866 esac
   6867 fi
   6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6869 esac
   6870 fi
   6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6873 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6874 	CFLAGS="$xorg_testset_save_CFLAGS"
   6875 fi
   6876 
   6877 found="no"
   6878 
   6879 	if test $found = "no" ; then
   6880 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6881 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6882 		fi
   6883 
   6884 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6885 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6886 		fi
   6887 
   6888 		CFLAGS="$CFLAGS -Wuninitialized"
   6889 
   6890 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
   6891 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
   6892 		cacheid=xorg_cv_cc_flag__Wuninitialized
   6893 		if eval test \${$cacheid+y}
   6894 then :
   6895   printf %s "(cached) " >&6
   6896 else case e in #(
   6897   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6898 /* end confdefs.h.  */
   6899 int i;
   6900 int
   6901 main (void)
   6902 {
   6903 
   6904   ;
   6905   return 0;
   6906 }
   6907 _ACEOF
   6908 if ac_fn_c_try_link "$LINENO"
   6909 then :
   6910   eval $cacheid=yes
   6911 else case e in #(
   6912   e) eval $cacheid=no ;;
   6913 esac
   6914 fi
   6915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6916     conftest$ac_exeext conftest.$ac_ext ;;
   6917 esac
   6918 fi
   6919 
   6920 
   6921 		CFLAGS="$xorg_testset_save_CFLAGS"
   6922 
   6923 		eval supported=\$$cacheid
   6924 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6925 printf "%s\n" "$supported" >&6; }
   6926 		if test "$supported" = "yes" ; then
   6927 			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
   6928 			found="yes"
   6929 		fi
   6930 	fi
   6931 
   6932 
   6933 
   6934 
   6935 
   6936 
   6937 
   6938 
   6939 
   6940 
   6941 
   6942 
   6943 
   6944 
   6945 
   6946 xorg_testset_save_CFLAGS="$CFLAGS"
   6947 
   6948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6949 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6950 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6952 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6953 then :
   6954   printf %s "(cached) " >&6
   6955 else case e in #(
   6956   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6957 /* end confdefs.h.  */
   6958 int i;
   6959 _ACEOF
   6960 if ac_fn_c_try_compile "$LINENO"
   6961 then :
   6962   xorg_cv_cc_flag_unknown_warning_option=yes
   6963 else case e in #(
   6964   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   6965 esac
   6966 fi
   6967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6968 esac
   6969 fi
   6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6972 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6973 	CFLAGS="$xorg_testset_save_CFLAGS"
   6974 fi
   6975 
   6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6977 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6978 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6979 	fi
   6980 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6981 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6984 then :
   6985   printf %s "(cached) " >&6
   6986 else case e in #(
   6987   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6988 /* end confdefs.h.  */
   6989 int i;
   6990 _ACEOF
   6991 if ac_fn_c_try_compile "$LINENO"
   6992 then :
   6993   xorg_cv_cc_flag_unused_command_line_argument=yes
   6994 else case e in #(
   6995   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   6996 esac
   6997 fi
   6998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6999 esac
   7000 fi
   7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7003 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7004 	CFLAGS="$xorg_testset_save_CFLAGS"
   7005 fi
   7006 
   7007 found="no"
   7008 
   7009 	if test $found = "no" ; then
   7010 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7011 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7012 		fi
   7013 
   7014 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7015 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7016 		fi
   7017 
   7018 		CFLAGS="$CFLAGS -Wshadow"
   7019 
   7020 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
   7021 printf %s "checking if $CC supports -Wshadow... " >&6; }
   7022 		cacheid=xorg_cv_cc_flag__Wshadow
   7023 		if eval test \${$cacheid+y}
   7024 then :
   7025   printf %s "(cached) " >&6
   7026 else case e in #(
   7027   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7028 /* end confdefs.h.  */
   7029 int i;
   7030 int
   7031 main (void)
   7032 {
   7033 
   7034   ;
   7035   return 0;
   7036 }
   7037 _ACEOF
   7038 if ac_fn_c_try_link "$LINENO"
   7039 then :
   7040   eval $cacheid=yes
   7041 else case e in #(
   7042   e) eval $cacheid=no ;;
   7043 esac
   7044 fi
   7045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7046     conftest$ac_exeext conftest.$ac_ext ;;
   7047 esac
   7048 fi
   7049 
   7050 
   7051 		CFLAGS="$xorg_testset_save_CFLAGS"
   7052 
   7053 		eval supported=\$$cacheid
   7054 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7055 printf "%s\n" "$supported" >&6; }
   7056 		if test "$supported" = "yes" ; then
   7057 			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
   7058 			found="yes"
   7059 		fi
   7060 	fi
   7061 
   7062 
   7063 
   7064 
   7065 
   7066 
   7067 
   7068 
   7069 
   7070 
   7071 
   7072 
   7073 
   7074 
   7075 
   7076 xorg_testset_save_CFLAGS="$CFLAGS"
   7077 
   7078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7079 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7080 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7083 then :
   7084   printf %s "(cached) " >&6
   7085 else case e in #(
   7086   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7087 /* end confdefs.h.  */
   7088 int i;
   7089 _ACEOF
   7090 if ac_fn_c_try_compile "$LINENO"
   7091 then :
   7092   xorg_cv_cc_flag_unknown_warning_option=yes
   7093 else case e in #(
   7094   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7095 esac
   7096 fi
   7097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7098 esac
   7099 fi
   7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7102 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7103 	CFLAGS="$xorg_testset_save_CFLAGS"
   7104 fi
   7105 
   7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7107 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7108 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7109 	fi
   7110 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7111 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7114 then :
   7115   printf %s "(cached) " >&6
   7116 else case e in #(
   7117   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7118 /* end confdefs.h.  */
   7119 int i;
   7120 _ACEOF
   7121 if ac_fn_c_try_compile "$LINENO"
   7122 then :
   7123   xorg_cv_cc_flag_unused_command_line_argument=yes
   7124 else case e in #(
   7125   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7126 esac
   7127 fi
   7128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7129 esac
   7130 fi
   7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7133 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7134 	CFLAGS="$xorg_testset_save_CFLAGS"
   7135 fi
   7136 
   7137 found="no"
   7138 
   7139 	if test $found = "no" ; then
   7140 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7141 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7142 		fi
   7143 
   7144 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7145 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7146 		fi
   7147 
   7148 		CFLAGS="$CFLAGS -Wmissing-noreturn"
   7149 
   7150 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
   7151 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
   7152 		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
   7153 		if eval test \${$cacheid+y}
   7154 then :
   7155   printf %s "(cached) " >&6
   7156 else case e in #(
   7157   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7158 /* end confdefs.h.  */
   7159 int i;
   7160 int
   7161 main (void)
   7162 {
   7163 
   7164   ;
   7165   return 0;
   7166 }
   7167 _ACEOF
   7168 if ac_fn_c_try_link "$LINENO"
   7169 then :
   7170   eval $cacheid=yes
   7171 else case e in #(
   7172   e) eval $cacheid=no ;;
   7173 esac
   7174 fi
   7175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7176     conftest$ac_exeext conftest.$ac_ext ;;
   7177 esac
   7178 fi
   7179 
   7180 
   7181 		CFLAGS="$xorg_testset_save_CFLAGS"
   7182 
   7183 		eval supported=\$$cacheid
   7184 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7185 printf "%s\n" "$supported" >&6; }
   7186 		if test "$supported" = "yes" ; then
   7187 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
   7188 			found="yes"
   7189 		fi
   7190 	fi
   7191 
   7192 
   7193 
   7194 
   7195 
   7196 
   7197 
   7198 
   7199 
   7200 
   7201 
   7202 
   7203 
   7204 
   7205 
   7206 xorg_testset_save_CFLAGS="$CFLAGS"
   7207 
   7208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7209 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7210 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7213 then :
   7214   printf %s "(cached) " >&6
   7215 else case e in #(
   7216   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7217 /* end confdefs.h.  */
   7218 int i;
   7219 _ACEOF
   7220 if ac_fn_c_try_compile "$LINENO"
   7221 then :
   7222   xorg_cv_cc_flag_unknown_warning_option=yes
   7223 else case e in #(
   7224   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7225 esac
   7226 fi
   7227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7228 esac
   7229 fi
   7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7232 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7233 	CFLAGS="$xorg_testset_save_CFLAGS"
   7234 fi
   7235 
   7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7237 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7238 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7239 	fi
   7240 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7241 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7244 then :
   7245   printf %s "(cached) " >&6
   7246 else case e in #(
   7247   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7248 /* end confdefs.h.  */
   7249 int i;
   7250 _ACEOF
   7251 if ac_fn_c_try_compile "$LINENO"
   7252 then :
   7253   xorg_cv_cc_flag_unused_command_line_argument=yes
   7254 else case e in #(
   7255   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7256 esac
   7257 fi
   7258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7259 esac
   7260 fi
   7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7263 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7264 	CFLAGS="$xorg_testset_save_CFLAGS"
   7265 fi
   7266 
   7267 found="no"
   7268 
   7269 	if test $found = "no" ; then
   7270 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7271 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7272 		fi
   7273 
   7274 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7275 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7276 		fi
   7277 
   7278 		CFLAGS="$CFLAGS -Wmissing-format-attribute"
   7279 
   7280 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
   7281 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
   7282 		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
   7283 		if eval test \${$cacheid+y}
   7284 then :
   7285   printf %s "(cached) " >&6
   7286 else case e in #(
   7287   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7288 /* end confdefs.h.  */
   7289 int i;
   7290 int
   7291 main (void)
   7292 {
   7293 
   7294   ;
   7295   return 0;
   7296 }
   7297 _ACEOF
   7298 if ac_fn_c_try_link "$LINENO"
   7299 then :
   7300   eval $cacheid=yes
   7301 else case e in #(
   7302   e) eval $cacheid=no ;;
   7303 esac
   7304 fi
   7305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7306     conftest$ac_exeext conftest.$ac_ext ;;
   7307 esac
   7308 fi
   7309 
   7310 
   7311 		CFLAGS="$xorg_testset_save_CFLAGS"
   7312 
   7313 		eval supported=\$$cacheid
   7314 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7315 printf "%s\n" "$supported" >&6; }
   7316 		if test "$supported" = "yes" ; then
   7317 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
   7318 			found="yes"
   7319 		fi
   7320 	fi
   7321 
   7322 
   7323 
   7324 
   7325 
   7326 
   7327 
   7328 
   7329 
   7330 
   7331 
   7332 
   7333 
   7334 
   7335 
   7336 xorg_testset_save_CFLAGS="$CFLAGS"
   7337 
   7338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7339 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7340 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7342 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7343 then :
   7344   printf %s "(cached) " >&6
   7345 else case e in #(
   7346   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7347 /* end confdefs.h.  */
   7348 int i;
   7349 _ACEOF
   7350 if ac_fn_c_try_compile "$LINENO"
   7351 then :
   7352   xorg_cv_cc_flag_unknown_warning_option=yes
   7353 else case e in #(
   7354   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7355 esac
   7356 fi
   7357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7358 esac
   7359 fi
   7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7362 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7363 	CFLAGS="$xorg_testset_save_CFLAGS"
   7364 fi
   7365 
   7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7367 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7368 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7369 	fi
   7370 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7371 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7374 then :
   7375   printf %s "(cached) " >&6
   7376 else case e in #(
   7377   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7378 /* end confdefs.h.  */
   7379 int i;
   7380 _ACEOF
   7381 if ac_fn_c_try_compile "$LINENO"
   7382 then :
   7383   xorg_cv_cc_flag_unused_command_line_argument=yes
   7384 else case e in #(
   7385   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7386 esac
   7387 fi
   7388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7389 esac
   7390 fi
   7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7393 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7394 	CFLAGS="$xorg_testset_save_CFLAGS"
   7395 fi
   7396 
   7397 found="no"
   7398 
   7399 	if test $found = "no" ; then
   7400 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7401 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7402 		fi
   7403 
   7404 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7405 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7406 		fi
   7407 
   7408 		CFLAGS="$CFLAGS -Wredundant-decls"
   7409 
   7410 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
   7411 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
   7412 		cacheid=xorg_cv_cc_flag__Wredundant_decls
   7413 		if eval test \${$cacheid+y}
   7414 then :
   7415   printf %s "(cached) " >&6
   7416 else case e in #(
   7417   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7418 /* end confdefs.h.  */
   7419 int i;
   7420 int
   7421 main (void)
   7422 {
   7423 
   7424   ;
   7425   return 0;
   7426 }
   7427 _ACEOF
   7428 if ac_fn_c_try_link "$LINENO"
   7429 then :
   7430   eval $cacheid=yes
   7431 else case e in #(
   7432   e) eval $cacheid=no ;;
   7433 esac
   7434 fi
   7435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7436     conftest$ac_exeext conftest.$ac_ext ;;
   7437 esac
   7438 fi
   7439 
   7440 
   7441 		CFLAGS="$xorg_testset_save_CFLAGS"
   7442 
   7443 		eval supported=\$$cacheid
   7444 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7445 printf "%s\n" "$supported" >&6; }
   7446 		if test "$supported" = "yes" ; then
   7447 			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
   7448 			found="yes"
   7449 		fi
   7450 	fi
   7451 
   7452 
   7453 
   7454 
   7455 
   7456 
   7457 
   7458 
   7459 
   7460 
   7461 
   7462 
   7463 
   7464 
   7465 
   7466 xorg_testset_save_CFLAGS="$CFLAGS"
   7467 
   7468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7469 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7470 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7473 then :
   7474   printf %s "(cached) " >&6
   7475 else case e in #(
   7476   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7477 /* end confdefs.h.  */
   7478 int i;
   7479 _ACEOF
   7480 if ac_fn_c_try_compile "$LINENO"
   7481 then :
   7482   xorg_cv_cc_flag_unknown_warning_option=yes
   7483 else case e in #(
   7484   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7485 esac
   7486 fi
   7487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7488 esac
   7489 fi
   7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7492 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7493 	CFLAGS="$xorg_testset_save_CFLAGS"
   7494 fi
   7495 
   7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7497 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7498 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7499 	fi
   7500 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7501 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7504 then :
   7505   printf %s "(cached) " >&6
   7506 else case e in #(
   7507   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7508 /* end confdefs.h.  */
   7509 int i;
   7510 _ACEOF
   7511 if ac_fn_c_try_compile "$LINENO"
   7512 then :
   7513   xorg_cv_cc_flag_unused_command_line_argument=yes
   7514 else case e in #(
   7515   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7516 esac
   7517 fi
   7518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7519 esac
   7520 fi
   7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7523 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7524 	CFLAGS="$xorg_testset_save_CFLAGS"
   7525 fi
   7526 
   7527 found="no"
   7528 
   7529 	if test $found = "no" ; then
   7530 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7531 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7532 		fi
   7533 
   7534 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7535 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7536 		fi
   7537 
   7538 		CFLAGS="$CFLAGS -Wlogical-op"
   7539 
   7540 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
   7541 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
   7542 		cacheid=xorg_cv_cc_flag__Wlogical_op
   7543 		if eval test \${$cacheid+y}
   7544 then :
   7545   printf %s "(cached) " >&6
   7546 else case e in #(
   7547   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7548 /* end confdefs.h.  */
   7549 int i;
   7550 int
   7551 main (void)
   7552 {
   7553 
   7554   ;
   7555   return 0;
   7556 }
   7557 _ACEOF
   7558 if ac_fn_c_try_link "$LINENO"
   7559 then :
   7560   eval $cacheid=yes
   7561 else case e in #(
   7562   e) eval $cacheid=no ;;
   7563 esac
   7564 fi
   7565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7566     conftest$ac_exeext conftest.$ac_ext ;;
   7567 esac
   7568 fi
   7569 
   7570 
   7571 		CFLAGS="$xorg_testset_save_CFLAGS"
   7572 
   7573 		eval supported=\$$cacheid
   7574 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7575 printf "%s\n" "$supported" >&6; }
   7576 		if test "$supported" = "yes" ; then
   7577 			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
   7578 			found="yes"
   7579 		fi
   7580 	fi
   7581 
   7582 
   7583 
   7584 # These are currently disabled because they are noisy.  They will be enabled
   7585 # in the future once the codebase is sufficiently modernized to silence
   7586 # them.  For now, I don't want them to drown out the other warnings.
   7587 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
   7588 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
   7589 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
   7590 
   7591 # Turn some warnings into errors, so we don't accidentally get successful builds
   7592 # when there are problems that should be fixed.
   7593 
   7594 if test "x$SELECTIVE_WERROR" = "xyes" ; then
   7595 
   7596 
   7597 
   7598 
   7599 
   7600 
   7601 
   7602 
   7603 
   7604 
   7605 
   7606 
   7607 
   7608 xorg_testset_save_CFLAGS="$CFLAGS"
   7609 
   7610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7611 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7612 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7615 then :
   7616   printf %s "(cached) " >&6
   7617 else case e in #(
   7618   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7619 /* end confdefs.h.  */
   7620 int i;
   7621 _ACEOF
   7622 if ac_fn_c_try_compile "$LINENO"
   7623 then :
   7624   xorg_cv_cc_flag_unknown_warning_option=yes
   7625 else case e in #(
   7626   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7627 esac
   7628 fi
   7629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7630 esac
   7631 fi
   7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7634 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7635 	CFLAGS="$xorg_testset_save_CFLAGS"
   7636 fi
   7637 
   7638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7639 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7640 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7641 	fi
   7642 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7643 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7646 then :
   7647   printf %s "(cached) " >&6
   7648 else case e in #(
   7649   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7650 /* end confdefs.h.  */
   7651 int i;
   7652 _ACEOF
   7653 if ac_fn_c_try_compile "$LINENO"
   7654 then :
   7655   xorg_cv_cc_flag_unused_command_line_argument=yes
   7656 else case e in #(
   7657   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7658 esac
   7659 fi
   7660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7661 esac
   7662 fi
   7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7664 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7665 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7666 	CFLAGS="$xorg_testset_save_CFLAGS"
   7667 fi
   7668 
   7669 found="no"
   7670 
   7671 	if test $found = "no" ; then
   7672 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7673 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7674 		fi
   7675 
   7676 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7677 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7678 		fi
   7679 
   7680 		CFLAGS="$CFLAGS -Werror=implicit"
   7681 
   7682 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
   7683 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
   7684 		cacheid=xorg_cv_cc_flag__Werror_implicit
   7685 		if eval test \${$cacheid+y}
   7686 then :
   7687   printf %s "(cached) " >&6
   7688 else case e in #(
   7689   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7690 /* end confdefs.h.  */
   7691 int i;
   7692 int
   7693 main (void)
   7694 {
   7695 
   7696   ;
   7697   return 0;
   7698 }
   7699 _ACEOF
   7700 if ac_fn_c_try_link "$LINENO"
   7701 then :
   7702   eval $cacheid=yes
   7703 else case e in #(
   7704   e) eval $cacheid=no ;;
   7705 esac
   7706 fi
   7707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7708     conftest$ac_exeext conftest.$ac_ext ;;
   7709 esac
   7710 fi
   7711 
   7712 
   7713 		CFLAGS="$xorg_testset_save_CFLAGS"
   7714 
   7715 		eval supported=\$$cacheid
   7716 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7717 printf "%s\n" "$supported" >&6; }
   7718 		if test "$supported" = "yes" ; then
   7719 			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
   7720 			found="yes"
   7721 		fi
   7722 	fi
   7723 
   7724 	if test $found = "no" ; then
   7725 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7726 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7727 		fi
   7728 
   7729 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7730 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7731 		fi
   7732 
   7733 		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   7734 
   7735 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
   7736 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
   7737 		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
   7738 		if eval test \${$cacheid+y}
   7739 then :
   7740   printf %s "(cached) " >&6
   7741 else case e in #(
   7742   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7743 /* end confdefs.h.  */
   7744 int i;
   7745 int
   7746 main (void)
   7747 {
   7748 
   7749   ;
   7750   return 0;
   7751 }
   7752 _ACEOF
   7753 if ac_fn_c_try_link "$LINENO"
   7754 then :
   7755   eval $cacheid=yes
   7756 else case e in #(
   7757   e) eval $cacheid=no ;;
   7758 esac
   7759 fi
   7760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7761     conftest$ac_exeext conftest.$ac_ext ;;
   7762 esac
   7763 fi
   7764 
   7765 
   7766 		CFLAGS="$xorg_testset_save_CFLAGS"
   7767 
   7768 		eval supported=\$$cacheid
   7769 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7770 printf "%s\n" "$supported" >&6; }
   7771 		if test "$supported" = "yes" ; then
   7772 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   7773 			found="yes"
   7774 		fi
   7775 	fi
   7776 
   7777 
   7778 
   7779 
   7780 
   7781 
   7782 
   7783 
   7784 
   7785 
   7786 
   7787 
   7788 
   7789 
   7790 
   7791 xorg_testset_save_CFLAGS="$CFLAGS"
   7792 
   7793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7794 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7795 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7798 then :
   7799   printf %s "(cached) " >&6
   7800 else case e in #(
   7801   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7802 /* end confdefs.h.  */
   7803 int i;
   7804 _ACEOF
   7805 if ac_fn_c_try_compile "$LINENO"
   7806 then :
   7807   xorg_cv_cc_flag_unknown_warning_option=yes
   7808 else case e in #(
   7809   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7810 esac
   7811 fi
   7812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7813 esac
   7814 fi
   7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7817 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7818 	CFLAGS="$xorg_testset_save_CFLAGS"
   7819 fi
   7820 
   7821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7822 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7823 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7824 	fi
   7825 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7826 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7829 then :
   7830   printf %s "(cached) " >&6
   7831 else case e in #(
   7832   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7833 /* end confdefs.h.  */
   7834 int i;
   7835 _ACEOF
   7836 if ac_fn_c_try_compile "$LINENO"
   7837 then :
   7838   xorg_cv_cc_flag_unused_command_line_argument=yes
   7839 else case e in #(
   7840   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7841 esac
   7842 fi
   7843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7844 esac
   7845 fi
   7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7848 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7849 	CFLAGS="$xorg_testset_save_CFLAGS"
   7850 fi
   7851 
   7852 found="no"
   7853 
   7854 	if test $found = "no" ; then
   7855 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7856 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7857 		fi
   7858 
   7859 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7860 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7861 		fi
   7862 
   7863 		CFLAGS="$CFLAGS -Werror=nonnull"
   7864 
   7865 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
   7866 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
   7867 		cacheid=xorg_cv_cc_flag__Werror_nonnull
   7868 		if eval test \${$cacheid+y}
   7869 then :
   7870   printf %s "(cached) " >&6
   7871 else case e in #(
   7872   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7873 /* end confdefs.h.  */
   7874 int i;
   7875 int
   7876 main (void)
   7877 {
   7878 
   7879   ;
   7880   return 0;
   7881 }
   7882 _ACEOF
   7883 if ac_fn_c_try_link "$LINENO"
   7884 then :
   7885   eval $cacheid=yes
   7886 else case e in #(
   7887   e) eval $cacheid=no ;;
   7888 esac
   7889 fi
   7890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7891     conftest$ac_exeext conftest.$ac_ext ;;
   7892 esac
   7893 fi
   7894 
   7895 
   7896 		CFLAGS="$xorg_testset_save_CFLAGS"
   7897 
   7898 		eval supported=\$$cacheid
   7899 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7900 printf "%s\n" "$supported" >&6; }
   7901 		if test "$supported" = "yes" ; then
   7902 			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
   7903 			found="yes"
   7904 		fi
   7905 	fi
   7906 
   7907 
   7908 
   7909 
   7910 
   7911 
   7912 
   7913 
   7914 
   7915 
   7916 
   7917 
   7918 
   7919 
   7920 
   7921 xorg_testset_save_CFLAGS="$CFLAGS"
   7922 
   7923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7924 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7925 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7927 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7928 then :
   7929   printf %s "(cached) " >&6
   7930 else case e in #(
   7931   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7932 /* end confdefs.h.  */
   7933 int i;
   7934 _ACEOF
   7935 if ac_fn_c_try_compile "$LINENO"
   7936 then :
   7937   xorg_cv_cc_flag_unknown_warning_option=yes
   7938 else case e in #(
   7939   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   7940 esac
   7941 fi
   7942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7943 esac
   7944 fi
   7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7946 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7947 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7948 	CFLAGS="$xorg_testset_save_CFLAGS"
   7949 fi
   7950 
   7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7952 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7953 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7954 	fi
   7955 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7956 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7959 then :
   7960   printf %s "(cached) " >&6
   7961 else case e in #(
   7962   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7963 /* end confdefs.h.  */
   7964 int i;
   7965 _ACEOF
   7966 if ac_fn_c_try_compile "$LINENO"
   7967 then :
   7968   xorg_cv_cc_flag_unused_command_line_argument=yes
   7969 else case e in #(
   7970   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   7971 esac
   7972 fi
   7973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7974 esac
   7975 fi
   7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7978 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7979 	CFLAGS="$xorg_testset_save_CFLAGS"
   7980 fi
   7981 
   7982 found="no"
   7983 
   7984 	if test $found = "no" ; then
   7985 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7986 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7987 		fi
   7988 
   7989 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7990 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7991 		fi
   7992 
   7993 		CFLAGS="$CFLAGS -Werror=init-self"
   7994 
   7995 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
   7996 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
   7997 		cacheid=xorg_cv_cc_flag__Werror_init_self
   7998 		if eval test \${$cacheid+y}
   7999 then :
   8000   printf %s "(cached) " >&6
   8001 else case e in #(
   8002   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8003 /* end confdefs.h.  */
   8004 int i;
   8005 int
   8006 main (void)
   8007 {
   8008 
   8009   ;
   8010   return 0;
   8011 }
   8012 _ACEOF
   8013 if ac_fn_c_try_link "$LINENO"
   8014 then :
   8015   eval $cacheid=yes
   8016 else case e in #(
   8017   e) eval $cacheid=no ;;
   8018 esac
   8019 fi
   8020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8021     conftest$ac_exeext conftest.$ac_ext ;;
   8022 esac
   8023 fi
   8024 
   8025 
   8026 		CFLAGS="$xorg_testset_save_CFLAGS"
   8027 
   8028 		eval supported=\$$cacheid
   8029 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8030 printf "%s\n" "$supported" >&6; }
   8031 		if test "$supported" = "yes" ; then
   8032 			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
   8033 			found="yes"
   8034 		fi
   8035 	fi
   8036 
   8037 
   8038 
   8039 
   8040 
   8041 
   8042 
   8043 
   8044 
   8045 
   8046 
   8047 
   8048 
   8049 
   8050 
   8051 xorg_testset_save_CFLAGS="$CFLAGS"
   8052 
   8053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8054 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8055 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8057 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8058 then :
   8059   printf %s "(cached) " >&6
   8060 else case e in #(
   8061   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8062 /* end confdefs.h.  */
   8063 int i;
   8064 _ACEOF
   8065 if ac_fn_c_try_compile "$LINENO"
   8066 then :
   8067   xorg_cv_cc_flag_unknown_warning_option=yes
   8068 else case e in #(
   8069   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8070 esac
   8071 fi
   8072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8073 esac
   8074 fi
   8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8077 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8078 	CFLAGS="$xorg_testset_save_CFLAGS"
   8079 fi
   8080 
   8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8082 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8083 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8084 	fi
   8085 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8086 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8089 then :
   8090   printf %s "(cached) " >&6
   8091 else case e in #(
   8092   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8093 /* end confdefs.h.  */
   8094 int i;
   8095 _ACEOF
   8096 if ac_fn_c_try_compile "$LINENO"
   8097 then :
   8098   xorg_cv_cc_flag_unused_command_line_argument=yes
   8099 else case e in #(
   8100   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8101 esac
   8102 fi
   8103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8104 esac
   8105 fi
   8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8108 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8109 	CFLAGS="$xorg_testset_save_CFLAGS"
   8110 fi
   8111 
   8112 found="no"
   8113 
   8114 	if test $found = "no" ; then
   8115 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8116 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8117 		fi
   8118 
   8119 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8120 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8121 		fi
   8122 
   8123 		CFLAGS="$CFLAGS -Werror=main"
   8124 
   8125 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
   8126 printf %s "checking if $CC supports -Werror=main... " >&6; }
   8127 		cacheid=xorg_cv_cc_flag__Werror_main
   8128 		if eval test \${$cacheid+y}
   8129 then :
   8130   printf %s "(cached) " >&6
   8131 else case e in #(
   8132   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8133 /* end confdefs.h.  */
   8134 int i;
   8135 int
   8136 main (void)
   8137 {
   8138 
   8139   ;
   8140   return 0;
   8141 }
   8142 _ACEOF
   8143 if ac_fn_c_try_link "$LINENO"
   8144 then :
   8145   eval $cacheid=yes
   8146 else case e in #(
   8147   e) eval $cacheid=no ;;
   8148 esac
   8149 fi
   8150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8151     conftest$ac_exeext conftest.$ac_ext ;;
   8152 esac
   8153 fi
   8154 
   8155 
   8156 		CFLAGS="$xorg_testset_save_CFLAGS"
   8157 
   8158 		eval supported=\$$cacheid
   8159 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8160 printf "%s\n" "$supported" >&6; }
   8161 		if test "$supported" = "yes" ; then
   8162 			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
   8163 			found="yes"
   8164 		fi
   8165 	fi
   8166 
   8167 
   8168 
   8169 
   8170 
   8171 
   8172 
   8173 
   8174 
   8175 
   8176 
   8177 
   8178 
   8179 
   8180 
   8181 xorg_testset_save_CFLAGS="$CFLAGS"
   8182 
   8183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8184 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8185 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8188 then :
   8189   printf %s "(cached) " >&6
   8190 else case e in #(
   8191   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8192 /* end confdefs.h.  */
   8193 int i;
   8194 _ACEOF
   8195 if ac_fn_c_try_compile "$LINENO"
   8196 then :
   8197   xorg_cv_cc_flag_unknown_warning_option=yes
   8198 else case e in #(
   8199   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8200 esac
   8201 fi
   8202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8203 esac
   8204 fi
   8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8207 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8208 	CFLAGS="$xorg_testset_save_CFLAGS"
   8209 fi
   8210 
   8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8212 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8213 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8214 	fi
   8215 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8216 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8219 then :
   8220   printf %s "(cached) " >&6
   8221 else case e in #(
   8222   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8223 /* end confdefs.h.  */
   8224 int i;
   8225 _ACEOF
   8226 if ac_fn_c_try_compile "$LINENO"
   8227 then :
   8228   xorg_cv_cc_flag_unused_command_line_argument=yes
   8229 else case e in #(
   8230   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8231 esac
   8232 fi
   8233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8234 esac
   8235 fi
   8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8238 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8239 	CFLAGS="$xorg_testset_save_CFLAGS"
   8240 fi
   8241 
   8242 found="no"
   8243 
   8244 	if test $found = "no" ; then
   8245 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8246 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8247 		fi
   8248 
   8249 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8250 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8251 		fi
   8252 
   8253 		CFLAGS="$CFLAGS -Werror=missing-braces"
   8254 
   8255 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
   8256 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
   8257 		cacheid=xorg_cv_cc_flag__Werror_missing_braces
   8258 		if eval test \${$cacheid+y}
   8259 then :
   8260   printf %s "(cached) " >&6
   8261 else case e in #(
   8262   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8263 /* end confdefs.h.  */
   8264 int i;
   8265 int
   8266 main (void)
   8267 {
   8268 
   8269   ;
   8270   return 0;
   8271 }
   8272 _ACEOF
   8273 if ac_fn_c_try_link "$LINENO"
   8274 then :
   8275   eval $cacheid=yes
   8276 else case e in #(
   8277   e) eval $cacheid=no ;;
   8278 esac
   8279 fi
   8280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8281     conftest$ac_exeext conftest.$ac_ext ;;
   8282 esac
   8283 fi
   8284 
   8285 
   8286 		CFLAGS="$xorg_testset_save_CFLAGS"
   8287 
   8288 		eval supported=\$$cacheid
   8289 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8290 printf "%s\n" "$supported" >&6; }
   8291 		if test "$supported" = "yes" ; then
   8292 			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
   8293 			found="yes"
   8294 		fi
   8295 	fi
   8296 
   8297 
   8298 
   8299 
   8300 
   8301 
   8302 
   8303 
   8304 
   8305 
   8306 
   8307 
   8308 
   8309 
   8310 
   8311 xorg_testset_save_CFLAGS="$CFLAGS"
   8312 
   8313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8314 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8315 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8318 then :
   8319   printf %s "(cached) " >&6
   8320 else case e in #(
   8321   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8322 /* end confdefs.h.  */
   8323 int i;
   8324 _ACEOF
   8325 if ac_fn_c_try_compile "$LINENO"
   8326 then :
   8327   xorg_cv_cc_flag_unknown_warning_option=yes
   8328 else case e in #(
   8329   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8330 esac
   8331 fi
   8332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8333 esac
   8334 fi
   8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8337 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8338 	CFLAGS="$xorg_testset_save_CFLAGS"
   8339 fi
   8340 
   8341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8342 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8343 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8344 	fi
   8345 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8346 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8349 then :
   8350   printf %s "(cached) " >&6
   8351 else case e in #(
   8352   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8353 /* end confdefs.h.  */
   8354 int i;
   8355 _ACEOF
   8356 if ac_fn_c_try_compile "$LINENO"
   8357 then :
   8358   xorg_cv_cc_flag_unused_command_line_argument=yes
   8359 else case e in #(
   8360   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8361 esac
   8362 fi
   8363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8364 esac
   8365 fi
   8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8368 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8369 	CFLAGS="$xorg_testset_save_CFLAGS"
   8370 fi
   8371 
   8372 found="no"
   8373 
   8374 	if test $found = "no" ; then
   8375 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8376 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8377 		fi
   8378 
   8379 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8380 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8381 		fi
   8382 
   8383 		CFLAGS="$CFLAGS -Werror=sequence-point"
   8384 
   8385 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
   8386 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
   8387 		cacheid=xorg_cv_cc_flag__Werror_sequence_point
   8388 		if eval test \${$cacheid+y}
   8389 then :
   8390   printf %s "(cached) " >&6
   8391 else case e in #(
   8392   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8393 /* end confdefs.h.  */
   8394 int i;
   8395 int
   8396 main (void)
   8397 {
   8398 
   8399   ;
   8400   return 0;
   8401 }
   8402 _ACEOF
   8403 if ac_fn_c_try_link "$LINENO"
   8404 then :
   8405   eval $cacheid=yes
   8406 else case e in #(
   8407   e) eval $cacheid=no ;;
   8408 esac
   8409 fi
   8410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8411     conftest$ac_exeext conftest.$ac_ext ;;
   8412 esac
   8413 fi
   8414 
   8415 
   8416 		CFLAGS="$xorg_testset_save_CFLAGS"
   8417 
   8418 		eval supported=\$$cacheid
   8419 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8420 printf "%s\n" "$supported" >&6; }
   8421 		if test "$supported" = "yes" ; then
   8422 			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
   8423 			found="yes"
   8424 		fi
   8425 	fi
   8426 
   8427 
   8428 
   8429 
   8430 
   8431 
   8432 
   8433 
   8434 
   8435 
   8436 
   8437 
   8438 
   8439 
   8440 
   8441 xorg_testset_save_CFLAGS="$CFLAGS"
   8442 
   8443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8444 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8445 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8448 then :
   8449   printf %s "(cached) " >&6
   8450 else case e in #(
   8451   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8452 /* end confdefs.h.  */
   8453 int i;
   8454 _ACEOF
   8455 if ac_fn_c_try_compile "$LINENO"
   8456 then :
   8457   xorg_cv_cc_flag_unknown_warning_option=yes
   8458 else case e in #(
   8459   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8460 esac
   8461 fi
   8462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8463 esac
   8464 fi
   8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8467 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8468 	CFLAGS="$xorg_testset_save_CFLAGS"
   8469 fi
   8470 
   8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8472 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8473 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8474 	fi
   8475 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8476 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8479 then :
   8480   printf %s "(cached) " >&6
   8481 else case e in #(
   8482   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8483 /* end confdefs.h.  */
   8484 int i;
   8485 _ACEOF
   8486 if ac_fn_c_try_compile "$LINENO"
   8487 then :
   8488   xorg_cv_cc_flag_unused_command_line_argument=yes
   8489 else case e in #(
   8490   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8491 esac
   8492 fi
   8493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8494 esac
   8495 fi
   8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8497 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8498 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8499 	CFLAGS="$xorg_testset_save_CFLAGS"
   8500 fi
   8501 
   8502 found="no"
   8503 
   8504 	if test $found = "no" ; then
   8505 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8506 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8507 		fi
   8508 
   8509 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8510 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8511 		fi
   8512 
   8513 		CFLAGS="$CFLAGS -Werror=return-type"
   8514 
   8515 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
   8516 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
   8517 		cacheid=xorg_cv_cc_flag__Werror_return_type
   8518 		if eval test \${$cacheid+y}
   8519 then :
   8520   printf %s "(cached) " >&6
   8521 else case e in #(
   8522   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8523 /* end confdefs.h.  */
   8524 int i;
   8525 int
   8526 main (void)
   8527 {
   8528 
   8529   ;
   8530   return 0;
   8531 }
   8532 _ACEOF
   8533 if ac_fn_c_try_link "$LINENO"
   8534 then :
   8535   eval $cacheid=yes
   8536 else case e in #(
   8537   e) eval $cacheid=no ;;
   8538 esac
   8539 fi
   8540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8541     conftest$ac_exeext conftest.$ac_ext ;;
   8542 esac
   8543 fi
   8544 
   8545 
   8546 		CFLAGS="$xorg_testset_save_CFLAGS"
   8547 
   8548 		eval supported=\$$cacheid
   8549 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8550 printf "%s\n" "$supported" >&6; }
   8551 		if test "$supported" = "yes" ; then
   8552 			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
   8553 			found="yes"
   8554 		fi
   8555 	fi
   8556 
   8557 	if test $found = "no" ; then
   8558 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8559 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8560 		fi
   8561 
   8562 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8563 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8564 		fi
   8565 
   8566 		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   8567 
   8568 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
   8569 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
   8570 		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
   8571 		if eval test \${$cacheid+y}
   8572 then :
   8573   printf %s "(cached) " >&6
   8574 else case e in #(
   8575   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8576 /* end confdefs.h.  */
   8577 int i;
   8578 int
   8579 main (void)
   8580 {
   8581 
   8582   ;
   8583   return 0;
   8584 }
   8585 _ACEOF
   8586 if ac_fn_c_try_link "$LINENO"
   8587 then :
   8588   eval $cacheid=yes
   8589 else case e in #(
   8590   e) eval $cacheid=no ;;
   8591 esac
   8592 fi
   8593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8594     conftest$ac_exeext conftest.$ac_ext ;;
   8595 esac
   8596 fi
   8597 
   8598 
   8599 		CFLAGS="$xorg_testset_save_CFLAGS"
   8600 
   8601 		eval supported=\$$cacheid
   8602 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8603 printf "%s\n" "$supported" >&6; }
   8604 		if test "$supported" = "yes" ; then
   8605 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   8606 			found="yes"
   8607 		fi
   8608 	fi
   8609 
   8610 
   8611 
   8612 
   8613 
   8614 
   8615 
   8616 
   8617 
   8618 
   8619 
   8620 
   8621 
   8622 
   8623 
   8624 xorg_testset_save_CFLAGS="$CFLAGS"
   8625 
   8626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8627 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8628 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8631 then :
   8632   printf %s "(cached) " >&6
   8633 else case e in #(
   8634   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8635 /* end confdefs.h.  */
   8636 int i;
   8637 _ACEOF
   8638 if ac_fn_c_try_compile "$LINENO"
   8639 then :
   8640   xorg_cv_cc_flag_unknown_warning_option=yes
   8641 else case e in #(
   8642   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8643 esac
   8644 fi
   8645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8646 esac
   8647 fi
   8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8650 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8651 	CFLAGS="$xorg_testset_save_CFLAGS"
   8652 fi
   8653 
   8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8655 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8656 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8657 	fi
   8658 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8659 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8662 then :
   8663   printf %s "(cached) " >&6
   8664 else case e in #(
   8665   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8666 /* end confdefs.h.  */
   8667 int i;
   8668 _ACEOF
   8669 if ac_fn_c_try_compile "$LINENO"
   8670 then :
   8671   xorg_cv_cc_flag_unused_command_line_argument=yes
   8672 else case e in #(
   8673   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8674 esac
   8675 fi
   8676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8677 esac
   8678 fi
   8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8681 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8682 	CFLAGS="$xorg_testset_save_CFLAGS"
   8683 fi
   8684 
   8685 found="no"
   8686 
   8687 	if test $found = "no" ; then
   8688 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8689 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8690 		fi
   8691 
   8692 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8693 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8694 		fi
   8695 
   8696 		CFLAGS="$CFLAGS -Werror=trigraphs"
   8697 
   8698 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
   8699 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
   8700 		cacheid=xorg_cv_cc_flag__Werror_trigraphs
   8701 		if eval test \${$cacheid+y}
   8702 then :
   8703   printf %s "(cached) " >&6
   8704 else case e in #(
   8705   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8706 /* end confdefs.h.  */
   8707 int i;
   8708 int
   8709 main (void)
   8710 {
   8711 
   8712   ;
   8713   return 0;
   8714 }
   8715 _ACEOF
   8716 if ac_fn_c_try_link "$LINENO"
   8717 then :
   8718   eval $cacheid=yes
   8719 else case e in #(
   8720   e) eval $cacheid=no ;;
   8721 esac
   8722 fi
   8723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8724     conftest$ac_exeext conftest.$ac_ext ;;
   8725 esac
   8726 fi
   8727 
   8728 
   8729 		CFLAGS="$xorg_testset_save_CFLAGS"
   8730 
   8731 		eval supported=\$$cacheid
   8732 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8733 printf "%s\n" "$supported" >&6; }
   8734 		if test "$supported" = "yes" ; then
   8735 			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
   8736 			found="yes"
   8737 		fi
   8738 	fi
   8739 
   8740 
   8741 
   8742 
   8743 
   8744 
   8745 
   8746 
   8747 
   8748 
   8749 
   8750 
   8751 
   8752 
   8753 
   8754 xorg_testset_save_CFLAGS="$CFLAGS"
   8755 
   8756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8757 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8758 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8761 then :
   8762   printf %s "(cached) " >&6
   8763 else case e in #(
   8764   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8765 /* end confdefs.h.  */
   8766 int i;
   8767 _ACEOF
   8768 if ac_fn_c_try_compile "$LINENO"
   8769 then :
   8770   xorg_cv_cc_flag_unknown_warning_option=yes
   8771 else case e in #(
   8772   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8773 esac
   8774 fi
   8775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8776 esac
   8777 fi
   8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8780 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8781 	CFLAGS="$xorg_testset_save_CFLAGS"
   8782 fi
   8783 
   8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8785 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8786 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8787 	fi
   8788 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8789 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8792 then :
   8793   printf %s "(cached) " >&6
   8794 else case e in #(
   8795   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8796 /* end confdefs.h.  */
   8797 int i;
   8798 _ACEOF
   8799 if ac_fn_c_try_compile "$LINENO"
   8800 then :
   8801   xorg_cv_cc_flag_unused_command_line_argument=yes
   8802 else case e in #(
   8803   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8804 esac
   8805 fi
   8806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8807 esac
   8808 fi
   8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8811 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8812 	CFLAGS="$xorg_testset_save_CFLAGS"
   8813 fi
   8814 
   8815 found="no"
   8816 
   8817 	if test $found = "no" ; then
   8818 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8819 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8820 		fi
   8821 
   8822 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8823 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8824 		fi
   8825 
   8826 		CFLAGS="$CFLAGS -Werror=array-bounds"
   8827 
   8828 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
   8829 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
   8830 		cacheid=xorg_cv_cc_flag__Werror_array_bounds
   8831 		if eval test \${$cacheid+y}
   8832 then :
   8833   printf %s "(cached) " >&6
   8834 else case e in #(
   8835   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8836 /* end confdefs.h.  */
   8837 int i;
   8838 int
   8839 main (void)
   8840 {
   8841 
   8842   ;
   8843   return 0;
   8844 }
   8845 _ACEOF
   8846 if ac_fn_c_try_link "$LINENO"
   8847 then :
   8848   eval $cacheid=yes
   8849 else case e in #(
   8850   e) eval $cacheid=no ;;
   8851 esac
   8852 fi
   8853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8854     conftest$ac_exeext conftest.$ac_ext ;;
   8855 esac
   8856 fi
   8857 
   8858 
   8859 		CFLAGS="$xorg_testset_save_CFLAGS"
   8860 
   8861 		eval supported=\$$cacheid
   8862 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8863 printf "%s\n" "$supported" >&6; }
   8864 		if test "$supported" = "yes" ; then
   8865 			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
   8866 			found="yes"
   8867 		fi
   8868 	fi
   8869 
   8870 
   8871 
   8872 
   8873 
   8874 
   8875 
   8876 
   8877 
   8878 
   8879 
   8880 
   8881 
   8882 
   8883 
   8884 xorg_testset_save_CFLAGS="$CFLAGS"
   8885 
   8886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8887 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8888 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8890 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8891 then :
   8892   printf %s "(cached) " >&6
   8893 else case e in #(
   8894   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8895 /* end confdefs.h.  */
   8896 int i;
   8897 _ACEOF
   8898 if ac_fn_c_try_compile "$LINENO"
   8899 then :
   8900   xorg_cv_cc_flag_unknown_warning_option=yes
   8901 else case e in #(
   8902   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   8903 esac
   8904 fi
   8905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8906 esac
   8907 fi
   8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8910 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8911 	CFLAGS="$xorg_testset_save_CFLAGS"
   8912 fi
   8913 
   8914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8915 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8916 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8917 	fi
   8918 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8919 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8922 then :
   8923   printf %s "(cached) " >&6
   8924 else case e in #(
   8925   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8926 /* end confdefs.h.  */
   8927 int i;
   8928 _ACEOF
   8929 if ac_fn_c_try_compile "$LINENO"
   8930 then :
   8931   xorg_cv_cc_flag_unused_command_line_argument=yes
   8932 else case e in #(
   8933   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   8934 esac
   8935 fi
   8936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   8937 esac
   8938 fi
   8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8941 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8942 	CFLAGS="$xorg_testset_save_CFLAGS"
   8943 fi
   8944 
   8945 found="no"
   8946 
   8947 	if test $found = "no" ; then
   8948 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8949 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8950 		fi
   8951 
   8952 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8953 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8954 		fi
   8955 
   8956 		CFLAGS="$CFLAGS -Werror=write-strings"
   8957 
   8958 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
   8959 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
   8960 		cacheid=xorg_cv_cc_flag__Werror_write_strings
   8961 		if eval test \${$cacheid+y}
   8962 then :
   8963   printf %s "(cached) " >&6
   8964 else case e in #(
   8965   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8966 /* end confdefs.h.  */
   8967 int i;
   8968 int
   8969 main (void)
   8970 {
   8971 
   8972   ;
   8973   return 0;
   8974 }
   8975 _ACEOF
   8976 if ac_fn_c_try_link "$LINENO"
   8977 then :
   8978   eval $cacheid=yes
   8979 else case e in #(
   8980   e) eval $cacheid=no ;;
   8981 esac
   8982 fi
   8983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8984     conftest$ac_exeext conftest.$ac_ext ;;
   8985 esac
   8986 fi
   8987 
   8988 
   8989 		CFLAGS="$xorg_testset_save_CFLAGS"
   8990 
   8991 		eval supported=\$$cacheid
   8992 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8993 printf "%s\n" "$supported" >&6; }
   8994 		if test "$supported" = "yes" ; then
   8995 			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
   8996 			found="yes"
   8997 		fi
   8998 	fi
   8999 
   9000 
   9001 
   9002 
   9003 
   9004 
   9005 
   9006 
   9007 
   9008 
   9009 
   9010 
   9011 
   9012 
   9013 
   9014 xorg_testset_save_CFLAGS="$CFLAGS"
   9015 
   9016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9017 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9018 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9021 then :
   9022   printf %s "(cached) " >&6
   9023 else case e in #(
   9024   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9025 /* end confdefs.h.  */
   9026 int i;
   9027 _ACEOF
   9028 if ac_fn_c_try_compile "$LINENO"
   9029 then :
   9030   xorg_cv_cc_flag_unknown_warning_option=yes
   9031 else case e in #(
   9032   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9033 esac
   9034 fi
   9035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9036 esac
   9037 fi
   9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9039 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9040 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9041 	CFLAGS="$xorg_testset_save_CFLAGS"
   9042 fi
   9043 
   9044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9045 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9046 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9047 	fi
   9048 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9049 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9052 then :
   9053   printf %s "(cached) " >&6
   9054 else case e in #(
   9055   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9056 /* end confdefs.h.  */
   9057 int i;
   9058 _ACEOF
   9059 if ac_fn_c_try_compile "$LINENO"
   9060 then :
   9061   xorg_cv_cc_flag_unused_command_line_argument=yes
   9062 else case e in #(
   9063   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9064 esac
   9065 fi
   9066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9067 esac
   9068 fi
   9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9071 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9072 	CFLAGS="$xorg_testset_save_CFLAGS"
   9073 fi
   9074 
   9075 found="no"
   9076 
   9077 	if test $found = "no" ; then
   9078 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9079 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9080 		fi
   9081 
   9082 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9083 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9084 		fi
   9085 
   9086 		CFLAGS="$CFLAGS -Werror=address"
   9087 
   9088 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
   9089 printf %s "checking if $CC supports -Werror=address... " >&6; }
   9090 		cacheid=xorg_cv_cc_flag__Werror_address
   9091 		if eval test \${$cacheid+y}
   9092 then :
   9093   printf %s "(cached) " >&6
   9094 else case e in #(
   9095   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9096 /* end confdefs.h.  */
   9097 int i;
   9098 int
   9099 main (void)
   9100 {
   9101 
   9102   ;
   9103   return 0;
   9104 }
   9105 _ACEOF
   9106 if ac_fn_c_try_link "$LINENO"
   9107 then :
   9108   eval $cacheid=yes
   9109 else case e in #(
   9110   e) eval $cacheid=no ;;
   9111 esac
   9112 fi
   9113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9114     conftest$ac_exeext conftest.$ac_ext ;;
   9115 esac
   9116 fi
   9117 
   9118 
   9119 		CFLAGS="$xorg_testset_save_CFLAGS"
   9120 
   9121 		eval supported=\$$cacheid
   9122 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9123 printf "%s\n" "$supported" >&6; }
   9124 		if test "$supported" = "yes" ; then
   9125 			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
   9126 			found="yes"
   9127 		fi
   9128 	fi
   9129 
   9130 
   9131 
   9132 
   9133 
   9134 
   9135 
   9136 
   9137 
   9138 
   9139 
   9140 
   9141 
   9142 
   9143 
   9144 xorg_testset_save_CFLAGS="$CFLAGS"
   9145 
   9146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9147 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9148 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9150 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9151 then :
   9152   printf %s "(cached) " >&6
   9153 else case e in #(
   9154   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9155 /* end confdefs.h.  */
   9156 int i;
   9157 _ACEOF
   9158 if ac_fn_c_try_compile "$LINENO"
   9159 then :
   9160   xorg_cv_cc_flag_unknown_warning_option=yes
   9161 else case e in #(
   9162   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9163 esac
   9164 fi
   9165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9166 esac
   9167 fi
   9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9170 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9171 	CFLAGS="$xorg_testset_save_CFLAGS"
   9172 fi
   9173 
   9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9175 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9176 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9177 	fi
   9178 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9179 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9182 then :
   9183   printf %s "(cached) " >&6
   9184 else case e in #(
   9185   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9186 /* end confdefs.h.  */
   9187 int i;
   9188 _ACEOF
   9189 if ac_fn_c_try_compile "$LINENO"
   9190 then :
   9191   xorg_cv_cc_flag_unused_command_line_argument=yes
   9192 else case e in #(
   9193   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9194 esac
   9195 fi
   9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9197 esac
   9198 fi
   9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9201 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9202 	CFLAGS="$xorg_testset_save_CFLAGS"
   9203 fi
   9204 
   9205 found="no"
   9206 
   9207 	if test $found = "no" ; then
   9208 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9209 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9210 		fi
   9211 
   9212 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9213 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9214 		fi
   9215 
   9216 		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
   9217 
   9218 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
   9219 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
   9220 		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
   9221 		if eval test \${$cacheid+y}
   9222 then :
   9223   printf %s "(cached) " >&6
   9224 else case e in #(
   9225   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9226 /* end confdefs.h.  */
   9227 int i;
   9228 int
   9229 main (void)
   9230 {
   9231 
   9232   ;
   9233   return 0;
   9234 }
   9235 _ACEOF
   9236 if ac_fn_c_try_link "$LINENO"
   9237 then :
   9238   eval $cacheid=yes
   9239 else case e in #(
   9240   e) eval $cacheid=no ;;
   9241 esac
   9242 fi
   9243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9244     conftest$ac_exeext conftest.$ac_ext ;;
   9245 esac
   9246 fi
   9247 
   9248 
   9249 		CFLAGS="$xorg_testset_save_CFLAGS"
   9250 
   9251 		eval supported=\$$cacheid
   9252 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9253 printf "%s\n" "$supported" >&6; }
   9254 		if test "$supported" = "yes" ; then
   9255 			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
   9256 			found="yes"
   9257 		fi
   9258 	fi
   9259 
   9260 	if test $found = "no" ; then
   9261 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9262 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9263 		fi
   9264 
   9265 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9266 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9267 		fi
   9268 
   9269 		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   9270 
   9271 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
   9272 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
   9273 		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
   9274 		if eval test \${$cacheid+y}
   9275 then :
   9276   printf %s "(cached) " >&6
   9277 else case e in #(
   9278   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9279 /* end confdefs.h.  */
   9280 int i;
   9281 int
   9282 main (void)
   9283 {
   9284 
   9285   ;
   9286   return 0;
   9287 }
   9288 _ACEOF
   9289 if ac_fn_c_try_link "$LINENO"
   9290 then :
   9291   eval $cacheid=yes
   9292 else case e in #(
   9293   e) eval $cacheid=no ;;
   9294 esac
   9295 fi
   9296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9297     conftest$ac_exeext conftest.$ac_ext ;;
   9298 esac
   9299 fi
   9300 
   9301 
   9302 		CFLAGS="$xorg_testset_save_CFLAGS"
   9303 
   9304 		eval supported=\$$cacheid
   9305 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9306 printf "%s\n" "$supported" >&6; }
   9307 		if test "$supported" = "yes" ; then
   9308 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   9309 			found="yes"
   9310 		fi
   9311 	fi
   9312 
   9313 
   9314 
   9315 
   9316 
   9317 
   9318 
   9319 
   9320 
   9321 
   9322 
   9323 
   9324 
   9325 
   9326 
   9327 xorg_testset_save_CFLAGS="$CFLAGS"
   9328 
   9329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9330 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9331 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9334 then :
   9335   printf %s "(cached) " >&6
   9336 else case e in #(
   9337   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9338 /* end confdefs.h.  */
   9339 int i;
   9340 _ACEOF
   9341 if ac_fn_c_try_compile "$LINENO"
   9342 then :
   9343   xorg_cv_cc_flag_unknown_warning_option=yes
   9344 else case e in #(
   9345   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9346 esac
   9347 fi
   9348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9349 esac
   9350 fi
   9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9352 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9353 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9354 	CFLAGS="$xorg_testset_save_CFLAGS"
   9355 fi
   9356 
   9357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9358 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9359 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9360 	fi
   9361 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9362 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9365 then :
   9366   printf %s "(cached) " >&6
   9367 else case e in #(
   9368   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9369 /* end confdefs.h.  */
   9370 int i;
   9371 _ACEOF
   9372 if ac_fn_c_try_compile "$LINENO"
   9373 then :
   9374   xorg_cv_cc_flag_unused_command_line_argument=yes
   9375 else case e in #(
   9376   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9377 esac
   9378 fi
   9379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9380 esac
   9381 fi
   9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9384 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9385 	CFLAGS="$xorg_testset_save_CFLAGS"
   9386 fi
   9387 
   9388 found="no"
   9389 
   9390 	if test $found = "no" ; then
   9391 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9392 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9393 		fi
   9394 
   9395 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9396 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9397 		fi
   9398 
   9399 		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
   9400 
   9401 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
   9402 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
   9403 		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
   9404 		if eval test \${$cacheid+y}
   9405 then :
   9406   printf %s "(cached) " >&6
   9407 else case e in #(
   9408   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9409 /* end confdefs.h.  */
   9410 int i;
   9411 int
   9412 main (void)
   9413 {
   9414 
   9415   ;
   9416   return 0;
   9417 }
   9418 _ACEOF
   9419 if ac_fn_c_try_link "$LINENO"
   9420 then :
   9421   eval $cacheid=yes
   9422 else case e in #(
   9423   e) eval $cacheid=no ;;
   9424 esac
   9425 fi
   9426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9427     conftest$ac_exeext conftest.$ac_ext ;;
   9428 esac
   9429 fi
   9430 
   9431 
   9432 		CFLAGS="$xorg_testset_save_CFLAGS"
   9433 
   9434 		eval supported=\$$cacheid
   9435 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9436 printf "%s\n" "$supported" >&6; }
   9437 		if test "$supported" = "yes" ; then
   9438 			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
   9439 			found="yes"
   9440 		fi
   9441 	fi
   9442 
   9443  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
   9444 else
   9445 { printf "%s\n" "$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
   9446 printf "%s\n" "$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;}
   9447 
   9448 
   9449 
   9450 
   9451 
   9452 
   9453 
   9454 
   9455 
   9456 
   9457 
   9458 
   9459 
   9460 xorg_testset_save_CFLAGS="$CFLAGS"
   9461 
   9462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9463 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9464 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9466 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9467 then :
   9468   printf %s "(cached) " >&6
   9469 else case e in #(
   9470   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9471 /* end confdefs.h.  */
   9472 int i;
   9473 _ACEOF
   9474 if ac_fn_c_try_compile "$LINENO"
   9475 then :
   9476   xorg_cv_cc_flag_unknown_warning_option=yes
   9477 else case e in #(
   9478   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9479 esac
   9480 fi
   9481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9482 esac
   9483 fi
   9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9486 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9487 	CFLAGS="$xorg_testset_save_CFLAGS"
   9488 fi
   9489 
   9490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9491 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9492 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9493 	fi
   9494 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9495 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9498 then :
   9499   printf %s "(cached) " >&6
   9500 else case e in #(
   9501   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9502 /* end confdefs.h.  */
   9503 int i;
   9504 _ACEOF
   9505 if ac_fn_c_try_compile "$LINENO"
   9506 then :
   9507   xorg_cv_cc_flag_unused_command_line_argument=yes
   9508 else case e in #(
   9509   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9510 esac
   9511 fi
   9512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9513 esac
   9514 fi
   9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9517 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9518 	CFLAGS="$xorg_testset_save_CFLAGS"
   9519 fi
   9520 
   9521 found="no"
   9522 
   9523 	if test $found = "no" ; then
   9524 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9525 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9526 		fi
   9527 
   9528 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9529 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9530 		fi
   9531 
   9532 		CFLAGS="$CFLAGS -Wimplicit"
   9533 
   9534 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
   9535 printf %s "checking if $CC supports -Wimplicit... " >&6; }
   9536 		cacheid=xorg_cv_cc_flag__Wimplicit
   9537 		if eval test \${$cacheid+y}
   9538 then :
   9539   printf %s "(cached) " >&6
   9540 else case e in #(
   9541   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9542 /* end confdefs.h.  */
   9543 int i;
   9544 int
   9545 main (void)
   9546 {
   9547 
   9548   ;
   9549   return 0;
   9550 }
   9551 _ACEOF
   9552 if ac_fn_c_try_link "$LINENO"
   9553 then :
   9554   eval $cacheid=yes
   9555 else case e in #(
   9556   e) eval $cacheid=no ;;
   9557 esac
   9558 fi
   9559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9560     conftest$ac_exeext conftest.$ac_ext ;;
   9561 esac
   9562 fi
   9563 
   9564 
   9565 		CFLAGS="$xorg_testset_save_CFLAGS"
   9566 
   9567 		eval supported=\$$cacheid
   9568 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9569 printf "%s\n" "$supported" >&6; }
   9570 		if test "$supported" = "yes" ; then
   9571 			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
   9572 			found="yes"
   9573 		fi
   9574 	fi
   9575 
   9576 
   9577 
   9578 
   9579 
   9580 
   9581 
   9582 
   9583 
   9584 
   9585 
   9586 
   9587 
   9588 
   9589 
   9590 xorg_testset_save_CFLAGS="$CFLAGS"
   9591 
   9592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9593 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9594 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9597 then :
   9598   printf %s "(cached) " >&6
   9599 else case e in #(
   9600   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9601 /* end confdefs.h.  */
   9602 int i;
   9603 _ACEOF
   9604 if ac_fn_c_try_compile "$LINENO"
   9605 then :
   9606   xorg_cv_cc_flag_unknown_warning_option=yes
   9607 else case e in #(
   9608   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9609 esac
   9610 fi
   9611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9612 esac
   9613 fi
   9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9615 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9616 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9617 	CFLAGS="$xorg_testset_save_CFLAGS"
   9618 fi
   9619 
   9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9621 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9622 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9623 	fi
   9624 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9625 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9626 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9627 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9628 then :
   9629   printf %s "(cached) " >&6
   9630 else case e in #(
   9631   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9632 /* end confdefs.h.  */
   9633 int i;
   9634 _ACEOF
   9635 if ac_fn_c_try_compile "$LINENO"
   9636 then :
   9637   xorg_cv_cc_flag_unused_command_line_argument=yes
   9638 else case e in #(
   9639   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9640 esac
   9641 fi
   9642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9643 esac
   9644 fi
   9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9647 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9648 	CFLAGS="$xorg_testset_save_CFLAGS"
   9649 fi
   9650 
   9651 found="no"
   9652 
   9653 	if test $found = "no" ; then
   9654 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9655 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9656 		fi
   9657 
   9658 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9659 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9660 		fi
   9661 
   9662 		CFLAGS="$CFLAGS -Wnonnull"
   9663 
   9664 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
   9665 printf %s "checking if $CC supports -Wnonnull... " >&6; }
   9666 		cacheid=xorg_cv_cc_flag__Wnonnull
   9667 		if eval test \${$cacheid+y}
   9668 then :
   9669   printf %s "(cached) " >&6
   9670 else case e in #(
   9671   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9672 /* end confdefs.h.  */
   9673 int i;
   9674 int
   9675 main (void)
   9676 {
   9677 
   9678   ;
   9679   return 0;
   9680 }
   9681 _ACEOF
   9682 if ac_fn_c_try_link "$LINENO"
   9683 then :
   9684   eval $cacheid=yes
   9685 else case e in #(
   9686   e) eval $cacheid=no ;;
   9687 esac
   9688 fi
   9689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9690     conftest$ac_exeext conftest.$ac_ext ;;
   9691 esac
   9692 fi
   9693 
   9694 
   9695 		CFLAGS="$xorg_testset_save_CFLAGS"
   9696 
   9697 		eval supported=\$$cacheid
   9698 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9699 printf "%s\n" "$supported" >&6; }
   9700 		if test "$supported" = "yes" ; then
   9701 			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
   9702 			found="yes"
   9703 		fi
   9704 	fi
   9705 
   9706 
   9707 
   9708 
   9709 
   9710 
   9711 
   9712 
   9713 
   9714 
   9715 
   9716 
   9717 
   9718 
   9719 
   9720 xorg_testset_save_CFLAGS="$CFLAGS"
   9721 
   9722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9723 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9724 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9725 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9726 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9727 then :
   9728   printf %s "(cached) " >&6
   9729 else case e in #(
   9730   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9731 /* end confdefs.h.  */
   9732 int i;
   9733 _ACEOF
   9734 if ac_fn_c_try_compile "$LINENO"
   9735 then :
   9736   xorg_cv_cc_flag_unknown_warning_option=yes
   9737 else case e in #(
   9738   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9739 esac
   9740 fi
   9741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9742 esac
   9743 fi
   9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9745 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9746 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9747 	CFLAGS="$xorg_testset_save_CFLAGS"
   9748 fi
   9749 
   9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9751 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9752 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9753 	fi
   9754 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9755 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9756 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9757 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9758 then :
   9759   printf %s "(cached) " >&6
   9760 else case e in #(
   9761   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9762 /* end confdefs.h.  */
   9763 int i;
   9764 _ACEOF
   9765 if ac_fn_c_try_compile "$LINENO"
   9766 then :
   9767   xorg_cv_cc_flag_unused_command_line_argument=yes
   9768 else case e in #(
   9769   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9770 esac
   9771 fi
   9772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9773 esac
   9774 fi
   9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9777 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9778 	CFLAGS="$xorg_testset_save_CFLAGS"
   9779 fi
   9780 
   9781 found="no"
   9782 
   9783 	if test $found = "no" ; then
   9784 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9785 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9786 		fi
   9787 
   9788 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9789 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9790 		fi
   9791 
   9792 		CFLAGS="$CFLAGS -Winit-self"
   9793 
   9794 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
   9795 printf %s "checking if $CC supports -Winit-self... " >&6; }
   9796 		cacheid=xorg_cv_cc_flag__Winit_self
   9797 		if eval test \${$cacheid+y}
   9798 then :
   9799   printf %s "(cached) " >&6
   9800 else case e in #(
   9801   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9802 /* end confdefs.h.  */
   9803 int i;
   9804 int
   9805 main (void)
   9806 {
   9807 
   9808   ;
   9809   return 0;
   9810 }
   9811 _ACEOF
   9812 if ac_fn_c_try_link "$LINENO"
   9813 then :
   9814   eval $cacheid=yes
   9815 else case e in #(
   9816   e) eval $cacheid=no ;;
   9817 esac
   9818 fi
   9819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9820     conftest$ac_exeext conftest.$ac_ext ;;
   9821 esac
   9822 fi
   9823 
   9824 
   9825 		CFLAGS="$xorg_testset_save_CFLAGS"
   9826 
   9827 		eval supported=\$$cacheid
   9828 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9829 printf "%s\n" "$supported" >&6; }
   9830 		if test "$supported" = "yes" ; then
   9831 			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
   9832 			found="yes"
   9833 		fi
   9834 	fi
   9835 
   9836 
   9837 
   9838 
   9839 
   9840 
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 
   9848 
   9849 
   9850 xorg_testset_save_CFLAGS="$CFLAGS"
   9851 
   9852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9853 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9854 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9856 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9857 then :
   9858   printf %s "(cached) " >&6
   9859 else case e in #(
   9860   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9861 /* end confdefs.h.  */
   9862 int i;
   9863 _ACEOF
   9864 if ac_fn_c_try_compile "$LINENO"
   9865 then :
   9866   xorg_cv_cc_flag_unknown_warning_option=yes
   9867 else case e in #(
   9868   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9869 esac
   9870 fi
   9871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9872 esac
   9873 fi
   9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9876 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9877 	CFLAGS="$xorg_testset_save_CFLAGS"
   9878 fi
   9879 
   9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9881 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9882 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9883 	fi
   9884 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9885 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9888 then :
   9889   printf %s "(cached) " >&6
   9890 else case e in #(
   9891   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9892 /* end confdefs.h.  */
   9893 int i;
   9894 _ACEOF
   9895 if ac_fn_c_try_compile "$LINENO"
   9896 then :
   9897   xorg_cv_cc_flag_unused_command_line_argument=yes
   9898 else case e in #(
   9899   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   9900 esac
   9901 fi
   9902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9903 esac
   9904 fi
   9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9907 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9908 	CFLAGS="$xorg_testset_save_CFLAGS"
   9909 fi
   9910 
   9911 found="no"
   9912 
   9913 	if test $found = "no" ; then
   9914 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9915 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9916 		fi
   9917 
   9918 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9919 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9920 		fi
   9921 
   9922 		CFLAGS="$CFLAGS -Wmain"
   9923 
   9924 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
   9925 printf %s "checking if $CC supports -Wmain... " >&6; }
   9926 		cacheid=xorg_cv_cc_flag__Wmain
   9927 		if eval test \${$cacheid+y}
   9928 then :
   9929   printf %s "(cached) " >&6
   9930 else case e in #(
   9931   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9932 /* end confdefs.h.  */
   9933 int i;
   9934 int
   9935 main (void)
   9936 {
   9937 
   9938   ;
   9939   return 0;
   9940 }
   9941 _ACEOF
   9942 if ac_fn_c_try_link "$LINENO"
   9943 then :
   9944   eval $cacheid=yes
   9945 else case e in #(
   9946   e) eval $cacheid=no ;;
   9947 esac
   9948 fi
   9949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9950     conftest$ac_exeext conftest.$ac_ext ;;
   9951 esac
   9952 fi
   9953 
   9954 
   9955 		CFLAGS="$xorg_testset_save_CFLAGS"
   9956 
   9957 		eval supported=\$$cacheid
   9958 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9959 printf "%s\n" "$supported" >&6; }
   9960 		if test "$supported" = "yes" ; then
   9961 			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
   9962 			found="yes"
   9963 		fi
   9964 	fi
   9965 
   9966 
   9967 
   9968 
   9969 
   9970 
   9971 
   9972 
   9973 
   9974 
   9975 
   9976 
   9977 
   9978 
   9979 
   9980 xorg_testset_save_CFLAGS="$CFLAGS"
   9981 
   9982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9983 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9984 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9985 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9986 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9987 then :
   9988   printf %s "(cached) " >&6
   9989 else case e in #(
   9990   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9991 /* end confdefs.h.  */
   9992 int i;
   9993 _ACEOF
   9994 if ac_fn_c_try_compile "$LINENO"
   9995 then :
   9996   xorg_cv_cc_flag_unknown_warning_option=yes
   9997 else case e in #(
   9998   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   9999 esac
   10000 fi
   10001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10002 esac
   10003 fi
   10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10006 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10007 	CFLAGS="$xorg_testset_save_CFLAGS"
   10008 fi
   10009 
   10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10011 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10012 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10013 	fi
   10014 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10015 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10018 then :
   10019   printf %s "(cached) " >&6
   10020 else case e in #(
   10021   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10022 /* end confdefs.h.  */
   10023 int i;
   10024 _ACEOF
   10025 if ac_fn_c_try_compile "$LINENO"
   10026 then :
   10027   xorg_cv_cc_flag_unused_command_line_argument=yes
   10028 else case e in #(
   10029   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10030 esac
   10031 fi
   10032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10033 esac
   10034 fi
   10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10036 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10037 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10038 	CFLAGS="$xorg_testset_save_CFLAGS"
   10039 fi
   10040 
   10041 found="no"
   10042 
   10043 	if test $found = "no" ; then
   10044 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10045 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10046 		fi
   10047 
   10048 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10049 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10050 		fi
   10051 
   10052 		CFLAGS="$CFLAGS -Wmissing-braces"
   10053 
   10054 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
   10055 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
   10056 		cacheid=xorg_cv_cc_flag__Wmissing_braces
   10057 		if eval test \${$cacheid+y}
   10058 then :
   10059   printf %s "(cached) " >&6
   10060 else case e in #(
   10061   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10062 /* end confdefs.h.  */
   10063 int i;
   10064 int
   10065 main (void)
   10066 {
   10067 
   10068   ;
   10069   return 0;
   10070 }
   10071 _ACEOF
   10072 if ac_fn_c_try_link "$LINENO"
   10073 then :
   10074   eval $cacheid=yes
   10075 else case e in #(
   10076   e) eval $cacheid=no ;;
   10077 esac
   10078 fi
   10079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10080     conftest$ac_exeext conftest.$ac_ext ;;
   10081 esac
   10082 fi
   10083 
   10084 
   10085 		CFLAGS="$xorg_testset_save_CFLAGS"
   10086 
   10087 		eval supported=\$$cacheid
   10088 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10089 printf "%s\n" "$supported" >&6; }
   10090 		if test "$supported" = "yes" ; then
   10091 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
   10092 			found="yes"
   10093 		fi
   10094 	fi
   10095 
   10096 
   10097 
   10098 
   10099 
   10100 
   10101 
   10102 
   10103 
   10104 
   10105 
   10106 
   10107 
   10108 
   10109 
   10110 xorg_testset_save_CFLAGS="$CFLAGS"
   10111 
   10112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10113 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10114 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10116 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10117 then :
   10118   printf %s "(cached) " >&6
   10119 else case e in #(
   10120   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10121 /* end confdefs.h.  */
   10122 int i;
   10123 _ACEOF
   10124 if ac_fn_c_try_compile "$LINENO"
   10125 then :
   10126   xorg_cv_cc_flag_unknown_warning_option=yes
   10127 else case e in #(
   10128   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10129 esac
   10130 fi
   10131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10132 esac
   10133 fi
   10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10136 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10137 	CFLAGS="$xorg_testset_save_CFLAGS"
   10138 fi
   10139 
   10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10141 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10142 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10143 	fi
   10144 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10145 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10148 then :
   10149   printf %s "(cached) " >&6
   10150 else case e in #(
   10151   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10152 /* end confdefs.h.  */
   10153 int i;
   10154 _ACEOF
   10155 if ac_fn_c_try_compile "$LINENO"
   10156 then :
   10157   xorg_cv_cc_flag_unused_command_line_argument=yes
   10158 else case e in #(
   10159   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10160 esac
   10161 fi
   10162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10163 esac
   10164 fi
   10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10167 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10168 	CFLAGS="$xorg_testset_save_CFLAGS"
   10169 fi
   10170 
   10171 found="no"
   10172 
   10173 	if test $found = "no" ; then
   10174 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10175 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10176 		fi
   10177 
   10178 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10179 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10180 		fi
   10181 
   10182 		CFLAGS="$CFLAGS -Wsequence-point"
   10183 
   10184 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
   10185 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
   10186 		cacheid=xorg_cv_cc_flag__Wsequence_point
   10187 		if eval test \${$cacheid+y}
   10188 then :
   10189   printf %s "(cached) " >&6
   10190 else case e in #(
   10191   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10192 /* end confdefs.h.  */
   10193 int i;
   10194 int
   10195 main (void)
   10196 {
   10197 
   10198   ;
   10199   return 0;
   10200 }
   10201 _ACEOF
   10202 if ac_fn_c_try_link "$LINENO"
   10203 then :
   10204   eval $cacheid=yes
   10205 else case e in #(
   10206   e) eval $cacheid=no ;;
   10207 esac
   10208 fi
   10209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10210     conftest$ac_exeext conftest.$ac_ext ;;
   10211 esac
   10212 fi
   10213 
   10214 
   10215 		CFLAGS="$xorg_testset_save_CFLAGS"
   10216 
   10217 		eval supported=\$$cacheid
   10218 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10219 printf "%s\n" "$supported" >&6; }
   10220 		if test "$supported" = "yes" ; then
   10221 			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
   10222 			found="yes"
   10223 		fi
   10224 	fi
   10225 
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 xorg_testset_save_CFLAGS="$CFLAGS"
   10241 
   10242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10243 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10244 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10245 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10246 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10247 then :
   10248   printf %s "(cached) " >&6
   10249 else case e in #(
   10250   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10251 /* end confdefs.h.  */
   10252 int i;
   10253 _ACEOF
   10254 if ac_fn_c_try_compile "$LINENO"
   10255 then :
   10256   xorg_cv_cc_flag_unknown_warning_option=yes
   10257 else case e in #(
   10258   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10259 esac
   10260 fi
   10261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10262 esac
   10263 fi
   10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10266 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10267 	CFLAGS="$xorg_testset_save_CFLAGS"
   10268 fi
   10269 
   10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10271 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10272 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10273 	fi
   10274 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10275 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10278 then :
   10279   printf %s "(cached) " >&6
   10280 else case e in #(
   10281   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10282 /* end confdefs.h.  */
   10283 int i;
   10284 _ACEOF
   10285 if ac_fn_c_try_compile "$LINENO"
   10286 then :
   10287   xorg_cv_cc_flag_unused_command_line_argument=yes
   10288 else case e in #(
   10289   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10290 esac
   10291 fi
   10292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10293 esac
   10294 fi
   10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10297 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10298 	CFLAGS="$xorg_testset_save_CFLAGS"
   10299 fi
   10300 
   10301 found="no"
   10302 
   10303 	if test $found = "no" ; then
   10304 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10305 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10306 		fi
   10307 
   10308 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10309 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10310 		fi
   10311 
   10312 		CFLAGS="$CFLAGS -Wreturn-type"
   10313 
   10314 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
   10315 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
   10316 		cacheid=xorg_cv_cc_flag__Wreturn_type
   10317 		if eval test \${$cacheid+y}
   10318 then :
   10319   printf %s "(cached) " >&6
   10320 else case e in #(
   10321   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10322 /* end confdefs.h.  */
   10323 int i;
   10324 int
   10325 main (void)
   10326 {
   10327 
   10328   ;
   10329   return 0;
   10330 }
   10331 _ACEOF
   10332 if ac_fn_c_try_link "$LINENO"
   10333 then :
   10334   eval $cacheid=yes
   10335 else case e in #(
   10336   e) eval $cacheid=no ;;
   10337 esac
   10338 fi
   10339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10340     conftest$ac_exeext conftest.$ac_ext ;;
   10341 esac
   10342 fi
   10343 
   10344 
   10345 		CFLAGS="$xorg_testset_save_CFLAGS"
   10346 
   10347 		eval supported=\$$cacheid
   10348 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10349 printf "%s\n" "$supported" >&6; }
   10350 		if test "$supported" = "yes" ; then
   10351 			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
   10352 			found="yes"
   10353 		fi
   10354 	fi
   10355 
   10356 
   10357 
   10358 
   10359 
   10360 
   10361 
   10362 
   10363 
   10364 
   10365 
   10366 
   10367 
   10368 
   10369 
   10370 xorg_testset_save_CFLAGS="$CFLAGS"
   10371 
   10372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10373 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10374 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10377 then :
   10378   printf %s "(cached) " >&6
   10379 else case e in #(
   10380   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10381 /* end confdefs.h.  */
   10382 int i;
   10383 _ACEOF
   10384 if ac_fn_c_try_compile "$LINENO"
   10385 then :
   10386   xorg_cv_cc_flag_unknown_warning_option=yes
   10387 else case e in #(
   10388   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10389 esac
   10390 fi
   10391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10392 esac
   10393 fi
   10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10396 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10397 	CFLAGS="$xorg_testset_save_CFLAGS"
   10398 fi
   10399 
   10400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10401 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10402 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10403 	fi
   10404 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10405 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10408 then :
   10409   printf %s "(cached) " >&6
   10410 else case e in #(
   10411   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10412 /* end confdefs.h.  */
   10413 int i;
   10414 _ACEOF
   10415 if ac_fn_c_try_compile "$LINENO"
   10416 then :
   10417   xorg_cv_cc_flag_unused_command_line_argument=yes
   10418 else case e in #(
   10419   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10420 esac
   10421 fi
   10422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10423 esac
   10424 fi
   10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10427 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10428 	CFLAGS="$xorg_testset_save_CFLAGS"
   10429 fi
   10430 
   10431 found="no"
   10432 
   10433 	if test $found = "no" ; then
   10434 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10435 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10436 		fi
   10437 
   10438 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10439 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10440 		fi
   10441 
   10442 		CFLAGS="$CFLAGS -Wtrigraphs"
   10443 
   10444 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
   10445 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
   10446 		cacheid=xorg_cv_cc_flag__Wtrigraphs
   10447 		if eval test \${$cacheid+y}
   10448 then :
   10449   printf %s "(cached) " >&6
   10450 else case e in #(
   10451   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10452 /* end confdefs.h.  */
   10453 int i;
   10454 int
   10455 main (void)
   10456 {
   10457 
   10458   ;
   10459   return 0;
   10460 }
   10461 _ACEOF
   10462 if ac_fn_c_try_link "$LINENO"
   10463 then :
   10464   eval $cacheid=yes
   10465 else case e in #(
   10466   e) eval $cacheid=no ;;
   10467 esac
   10468 fi
   10469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10470     conftest$ac_exeext conftest.$ac_ext ;;
   10471 esac
   10472 fi
   10473 
   10474 
   10475 		CFLAGS="$xorg_testset_save_CFLAGS"
   10476 
   10477 		eval supported=\$$cacheid
   10478 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10479 printf "%s\n" "$supported" >&6; }
   10480 		if test "$supported" = "yes" ; then
   10481 			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
   10482 			found="yes"
   10483 		fi
   10484 	fi
   10485 
   10486 
   10487 
   10488 
   10489 
   10490 
   10491 
   10492 
   10493 
   10494 
   10495 
   10496 
   10497 
   10498 
   10499 
   10500 xorg_testset_save_CFLAGS="$CFLAGS"
   10501 
   10502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10503 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10504 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10507 then :
   10508   printf %s "(cached) " >&6
   10509 else case e in #(
   10510   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10511 /* end confdefs.h.  */
   10512 int i;
   10513 _ACEOF
   10514 if ac_fn_c_try_compile "$LINENO"
   10515 then :
   10516   xorg_cv_cc_flag_unknown_warning_option=yes
   10517 else case e in #(
   10518   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10519 esac
   10520 fi
   10521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10522 esac
   10523 fi
   10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10526 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10527 	CFLAGS="$xorg_testset_save_CFLAGS"
   10528 fi
   10529 
   10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10531 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10532 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10533 	fi
   10534 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10535 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10538 then :
   10539   printf %s "(cached) " >&6
   10540 else case e in #(
   10541   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10542 /* end confdefs.h.  */
   10543 int i;
   10544 _ACEOF
   10545 if ac_fn_c_try_compile "$LINENO"
   10546 then :
   10547   xorg_cv_cc_flag_unused_command_line_argument=yes
   10548 else case e in #(
   10549   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10550 esac
   10551 fi
   10552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10553 esac
   10554 fi
   10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10557 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10558 	CFLAGS="$xorg_testset_save_CFLAGS"
   10559 fi
   10560 
   10561 found="no"
   10562 
   10563 	if test $found = "no" ; then
   10564 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10565 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10566 		fi
   10567 
   10568 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10569 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10570 		fi
   10571 
   10572 		CFLAGS="$CFLAGS -Warray-bounds"
   10573 
   10574 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
   10575 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
   10576 		cacheid=xorg_cv_cc_flag__Warray_bounds
   10577 		if eval test \${$cacheid+y}
   10578 then :
   10579   printf %s "(cached) " >&6
   10580 else case e in #(
   10581   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10582 /* end confdefs.h.  */
   10583 int i;
   10584 int
   10585 main (void)
   10586 {
   10587 
   10588   ;
   10589   return 0;
   10590 }
   10591 _ACEOF
   10592 if ac_fn_c_try_link "$LINENO"
   10593 then :
   10594   eval $cacheid=yes
   10595 else case e in #(
   10596   e) eval $cacheid=no ;;
   10597 esac
   10598 fi
   10599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10600     conftest$ac_exeext conftest.$ac_ext ;;
   10601 esac
   10602 fi
   10603 
   10604 
   10605 		CFLAGS="$xorg_testset_save_CFLAGS"
   10606 
   10607 		eval supported=\$$cacheid
   10608 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10609 printf "%s\n" "$supported" >&6; }
   10610 		if test "$supported" = "yes" ; then
   10611 			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
   10612 			found="yes"
   10613 		fi
   10614 	fi
   10615 
   10616 
   10617 
   10618 
   10619 
   10620 
   10621 
   10622 
   10623 
   10624 
   10625 
   10626 
   10627 
   10628 
   10629 
   10630 xorg_testset_save_CFLAGS="$CFLAGS"
   10631 
   10632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10633 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10634 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10637 then :
   10638   printf %s "(cached) " >&6
   10639 else case e in #(
   10640   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10641 /* end confdefs.h.  */
   10642 int i;
   10643 _ACEOF
   10644 if ac_fn_c_try_compile "$LINENO"
   10645 then :
   10646   xorg_cv_cc_flag_unknown_warning_option=yes
   10647 else case e in #(
   10648   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10649 esac
   10650 fi
   10651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10652 esac
   10653 fi
   10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10656 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10657 	CFLAGS="$xorg_testset_save_CFLAGS"
   10658 fi
   10659 
   10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10661 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10662 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10663 	fi
   10664 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10665 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10668 then :
   10669   printf %s "(cached) " >&6
   10670 else case e in #(
   10671   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10672 /* end confdefs.h.  */
   10673 int i;
   10674 _ACEOF
   10675 if ac_fn_c_try_compile "$LINENO"
   10676 then :
   10677   xorg_cv_cc_flag_unused_command_line_argument=yes
   10678 else case e in #(
   10679   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10680 esac
   10681 fi
   10682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10683 esac
   10684 fi
   10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10687 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10688 	CFLAGS="$xorg_testset_save_CFLAGS"
   10689 fi
   10690 
   10691 found="no"
   10692 
   10693 	if test $found = "no" ; then
   10694 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10695 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10696 		fi
   10697 
   10698 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10699 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10700 		fi
   10701 
   10702 		CFLAGS="$CFLAGS -Wwrite-strings"
   10703 
   10704 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
   10705 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
   10706 		cacheid=xorg_cv_cc_flag__Wwrite_strings
   10707 		if eval test \${$cacheid+y}
   10708 then :
   10709   printf %s "(cached) " >&6
   10710 else case e in #(
   10711   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10712 /* end confdefs.h.  */
   10713 int i;
   10714 int
   10715 main (void)
   10716 {
   10717 
   10718   ;
   10719   return 0;
   10720 }
   10721 _ACEOF
   10722 if ac_fn_c_try_link "$LINENO"
   10723 then :
   10724   eval $cacheid=yes
   10725 else case e in #(
   10726   e) eval $cacheid=no ;;
   10727 esac
   10728 fi
   10729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10730     conftest$ac_exeext conftest.$ac_ext ;;
   10731 esac
   10732 fi
   10733 
   10734 
   10735 		CFLAGS="$xorg_testset_save_CFLAGS"
   10736 
   10737 		eval supported=\$$cacheid
   10738 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10739 printf "%s\n" "$supported" >&6; }
   10740 		if test "$supported" = "yes" ; then
   10741 			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
   10742 			found="yes"
   10743 		fi
   10744 	fi
   10745 
   10746 
   10747 
   10748 
   10749 
   10750 
   10751 
   10752 
   10753 
   10754 
   10755 
   10756 
   10757 
   10758 
   10759 
   10760 xorg_testset_save_CFLAGS="$CFLAGS"
   10761 
   10762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10763 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10764 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10766 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10767 then :
   10768   printf %s "(cached) " >&6
   10769 else case e in #(
   10770   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10771 /* end confdefs.h.  */
   10772 int i;
   10773 _ACEOF
   10774 if ac_fn_c_try_compile "$LINENO"
   10775 then :
   10776   xorg_cv_cc_flag_unknown_warning_option=yes
   10777 else case e in #(
   10778   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10779 esac
   10780 fi
   10781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10782 esac
   10783 fi
   10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10785 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10786 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10787 	CFLAGS="$xorg_testset_save_CFLAGS"
   10788 fi
   10789 
   10790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10791 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10792 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10793 	fi
   10794 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10795 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10796 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10797 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10798 then :
   10799   printf %s "(cached) " >&6
   10800 else case e in #(
   10801   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10802 /* end confdefs.h.  */
   10803 int i;
   10804 _ACEOF
   10805 if ac_fn_c_try_compile "$LINENO"
   10806 then :
   10807   xorg_cv_cc_flag_unused_command_line_argument=yes
   10808 else case e in #(
   10809   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10810 esac
   10811 fi
   10812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10813 esac
   10814 fi
   10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10817 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10818 	CFLAGS="$xorg_testset_save_CFLAGS"
   10819 fi
   10820 
   10821 found="no"
   10822 
   10823 	if test $found = "no" ; then
   10824 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10825 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10826 		fi
   10827 
   10828 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10829 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10830 		fi
   10831 
   10832 		CFLAGS="$CFLAGS -Waddress"
   10833 
   10834 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
   10835 printf %s "checking if $CC supports -Waddress... " >&6; }
   10836 		cacheid=xorg_cv_cc_flag__Waddress
   10837 		if eval test \${$cacheid+y}
   10838 then :
   10839   printf %s "(cached) " >&6
   10840 else case e in #(
   10841   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10842 /* end confdefs.h.  */
   10843 int i;
   10844 int
   10845 main (void)
   10846 {
   10847 
   10848   ;
   10849   return 0;
   10850 }
   10851 _ACEOF
   10852 if ac_fn_c_try_link "$LINENO"
   10853 then :
   10854   eval $cacheid=yes
   10855 else case e in #(
   10856   e) eval $cacheid=no ;;
   10857 esac
   10858 fi
   10859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10860     conftest$ac_exeext conftest.$ac_ext ;;
   10861 esac
   10862 fi
   10863 
   10864 
   10865 		CFLAGS="$xorg_testset_save_CFLAGS"
   10866 
   10867 		eval supported=\$$cacheid
   10868 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10869 printf "%s\n" "$supported" >&6; }
   10870 		if test "$supported" = "yes" ; then
   10871 			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
   10872 			found="yes"
   10873 		fi
   10874 	fi
   10875 
   10876 
   10877 
   10878 
   10879 
   10880 
   10881 
   10882 
   10883 
   10884 
   10885 
   10886 
   10887 
   10888 
   10889 
   10890 xorg_testset_save_CFLAGS="$CFLAGS"
   10891 
   10892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10893 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10894 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10897 then :
   10898   printf %s "(cached) " >&6
   10899 else case e in #(
   10900   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10901 /* end confdefs.h.  */
   10902 int i;
   10903 _ACEOF
   10904 if ac_fn_c_try_compile "$LINENO"
   10905 then :
   10906   xorg_cv_cc_flag_unknown_warning_option=yes
   10907 else case e in #(
   10908   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   10909 esac
   10910 fi
   10911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10912 esac
   10913 fi
   10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10915 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10916 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10917 	CFLAGS="$xorg_testset_save_CFLAGS"
   10918 fi
   10919 
   10920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10921 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10922 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10923 	fi
   10924 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10925 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10926 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10927 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10928 then :
   10929   printf %s "(cached) " >&6
   10930 else case e in #(
   10931   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10932 /* end confdefs.h.  */
   10933 int i;
   10934 _ACEOF
   10935 if ac_fn_c_try_compile "$LINENO"
   10936 then :
   10937   xorg_cv_cc_flag_unused_command_line_argument=yes
   10938 else case e in #(
   10939   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   10940 esac
   10941 fi
   10942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10943 esac
   10944 fi
   10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10946 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10947 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10948 	CFLAGS="$xorg_testset_save_CFLAGS"
   10949 fi
   10950 
   10951 found="no"
   10952 
   10953 	if test $found = "no" ; then
   10954 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10955 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10956 		fi
   10957 
   10958 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10959 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10960 		fi
   10961 
   10962 		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
   10963 
   10964 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
   10965 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
   10966 		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
   10967 		if eval test \${$cacheid+y}
   10968 then :
   10969   printf %s "(cached) " >&6
   10970 else case e in #(
   10971   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10972 /* end confdefs.h.  */
   10973 int i;
   10974 int
   10975 main (void)
   10976 {
   10977 
   10978   ;
   10979   return 0;
   10980 }
   10981 _ACEOF
   10982 if ac_fn_c_try_link "$LINENO"
   10983 then :
   10984   eval $cacheid=yes
   10985 else case e in #(
   10986   e) eval $cacheid=no ;;
   10987 esac
   10988 fi
   10989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10990     conftest$ac_exeext conftest.$ac_ext ;;
   10991 esac
   10992 fi
   10993 
   10994 
   10995 		CFLAGS="$xorg_testset_save_CFLAGS"
   10996 
   10997 		eval supported=\$$cacheid
   10998 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10999 printf "%s\n" "$supported" >&6; }
   11000 		if test "$supported" = "yes" ; then
   11001 			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
   11002 			found="yes"
   11003 		fi
   11004 	fi
   11005 
   11006 
   11007 
   11008 
   11009 
   11010 
   11011 
   11012 
   11013 
   11014 
   11015 
   11016 
   11017 
   11018 
   11019 
   11020 xorg_testset_save_CFLAGS="$CFLAGS"
   11021 
   11022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   11023 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11024 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   11025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   11026 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   11027 then :
   11028   printf %s "(cached) " >&6
   11029 else case e in #(
   11030   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11031 /* end confdefs.h.  */
   11032 int i;
   11033 _ACEOF
   11034 if ac_fn_c_try_compile "$LINENO"
   11035 then :
   11036   xorg_cv_cc_flag_unknown_warning_option=yes
   11037 else case e in #(
   11038   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   11039 esac
   11040 fi
   11041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11042 esac
   11043 fi
   11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   11045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   11046 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   11047 	CFLAGS="$xorg_testset_save_CFLAGS"
   11048 fi
   11049 
   11050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   11051 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11052 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11053 	fi
   11054 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11055 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   11056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   11057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   11058 then :
   11059   printf %s "(cached) " >&6
   11060 else case e in #(
   11061   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11062 /* end confdefs.h.  */
   11063 int i;
   11064 _ACEOF
   11065 if ac_fn_c_try_compile "$LINENO"
   11066 then :
   11067   xorg_cv_cc_flag_unused_command_line_argument=yes
   11068 else case e in #(
   11069   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   11070 esac
   11071 fi
   11072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11073 esac
   11074 fi
   11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   11076 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   11077 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   11078 	CFLAGS="$xorg_testset_save_CFLAGS"
   11079 fi
   11080 
   11081 found="no"
   11082 
   11083 	if test $found = "no" ; then
   11084 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11085 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11086 		fi
   11087 
   11088 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11089 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11090 		fi
   11091 
   11092 		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
   11093 
   11094 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
   11095 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
   11096 		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
   11097 		if eval test \${$cacheid+y}
   11098 then :
   11099   printf %s "(cached) " >&6
   11100 else case e in #(
   11101   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11102 /* end confdefs.h.  */
   11103 int i;
   11104 int
   11105 main (void)
   11106 {
   11107 
   11108   ;
   11109   return 0;
   11110 }
   11111 _ACEOF
   11112 if ac_fn_c_try_link "$LINENO"
   11113 then :
   11114   eval $cacheid=yes
   11115 else case e in #(
   11116   e) eval $cacheid=no ;;
   11117 esac
   11118 fi
   11119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11120     conftest$ac_exeext conftest.$ac_ext ;;
   11121 esac
   11122 fi
   11123 
   11124 
   11125 		CFLAGS="$xorg_testset_save_CFLAGS"
   11126 
   11127 		eval supported=\$$cacheid
   11128 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11129 printf "%s\n" "$supported" >&6; }
   11130 		if test "$supported" = "yes" ; then
   11131 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
   11132 			found="yes"
   11133 		fi
   11134 	fi
   11135 
   11136 
   11137 fi
   11138 
   11139 
   11140 
   11141 
   11142 
   11143 
   11144 
   11145 		CWARNFLAGS="$BASE_CFLAGS"
   11146 		if  test "x$GCC" = xyes ; then
   11147 		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
   11148 		fi
   11149 
   11150 
   11151 
   11152 
   11153 
   11154 
   11155 
   11156 
   11157 # Check whether --enable-strict-compilation was given.
   11158 if test ${enable_strict_compilation+y}
   11159 then :
   11160   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
   11161 else case e in #(
   11162   e) STRICT_COMPILE=no ;;
   11163 esac
   11164 fi
   11165 
   11166 
   11167 
   11168 
   11169 
   11170 
   11171 STRICT_CFLAGS=""
   11172 
   11173 
   11174 
   11175 
   11176 
   11177 
   11178 
   11179 
   11180 
   11181 
   11182 
   11183 
   11184 
   11185 xorg_testset_save_CFLAGS="$CFLAGS"
   11186 
   11187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   11188 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11189 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   11190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   11191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   11192 then :
   11193   printf %s "(cached) " >&6
   11194 else case e in #(
   11195   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11196 /* end confdefs.h.  */
   11197 int i;
   11198 _ACEOF
   11199 if ac_fn_c_try_compile "$LINENO"
   11200 then :
   11201   xorg_cv_cc_flag_unknown_warning_option=yes
   11202 else case e in #(
   11203   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   11204 esac
   11205 fi
   11206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11207 esac
   11208 fi
   11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   11210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   11211 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   11212 	CFLAGS="$xorg_testset_save_CFLAGS"
   11213 fi
   11214 
   11215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   11216 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11217 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11218 	fi
   11219 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11220 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   11221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   11222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   11223 then :
   11224   printf %s "(cached) " >&6
   11225 else case e in #(
   11226   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11227 /* end confdefs.h.  */
   11228 int i;
   11229 _ACEOF
   11230 if ac_fn_c_try_compile "$LINENO"
   11231 then :
   11232   xorg_cv_cc_flag_unused_command_line_argument=yes
   11233 else case e in #(
   11234   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   11235 esac
   11236 fi
   11237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11238 esac
   11239 fi
   11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   11241 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   11242 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   11243 	CFLAGS="$xorg_testset_save_CFLAGS"
   11244 fi
   11245 
   11246 found="no"
   11247 
   11248 	if test $found = "no" ; then
   11249 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11250 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11251 		fi
   11252 
   11253 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11254 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11255 		fi
   11256 
   11257 		CFLAGS="$CFLAGS -pedantic"
   11258 
   11259 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
   11260 printf %s "checking if $CC supports -pedantic... " >&6; }
   11261 		cacheid=xorg_cv_cc_flag__pedantic
   11262 		if eval test \${$cacheid+y}
   11263 then :
   11264   printf %s "(cached) " >&6
   11265 else case e in #(
   11266   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11267 /* end confdefs.h.  */
   11268 int i;
   11269 int
   11270 main (void)
   11271 {
   11272 
   11273   ;
   11274   return 0;
   11275 }
   11276 _ACEOF
   11277 if ac_fn_c_try_link "$LINENO"
   11278 then :
   11279   eval $cacheid=yes
   11280 else case e in #(
   11281   e) eval $cacheid=no ;;
   11282 esac
   11283 fi
   11284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11285     conftest$ac_exeext conftest.$ac_ext ;;
   11286 esac
   11287 fi
   11288 
   11289 
   11290 		CFLAGS="$xorg_testset_save_CFLAGS"
   11291 
   11292 		eval supported=\$$cacheid
   11293 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11294 printf "%s\n" "$supported" >&6; }
   11295 		if test "$supported" = "yes" ; then
   11296 			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
   11297 			found="yes"
   11298 		fi
   11299 	fi
   11300 
   11301 
   11302 
   11303 
   11304 
   11305 
   11306 
   11307 
   11308 
   11309 
   11310 
   11311 
   11312 
   11313 
   11314 
   11315 xorg_testset_save_CFLAGS="$CFLAGS"
   11316 
   11317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   11318 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11319 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   11320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   11321 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   11322 then :
   11323   printf %s "(cached) " >&6
   11324 else case e in #(
   11325   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11326 /* end confdefs.h.  */
   11327 int i;
   11328 _ACEOF
   11329 if ac_fn_c_try_compile "$LINENO"
   11330 then :
   11331   xorg_cv_cc_flag_unknown_warning_option=yes
   11332 else case e in #(
   11333   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   11334 esac
   11335 fi
   11336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11337 esac
   11338 fi
   11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   11340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   11341 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   11342 	CFLAGS="$xorg_testset_save_CFLAGS"
   11343 fi
   11344 
   11345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   11346 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11347 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11348 	fi
   11349 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11350 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   11351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   11352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   11353 then :
   11354   printf %s "(cached) " >&6
   11355 else case e in #(
   11356   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11357 /* end confdefs.h.  */
   11358 int i;
   11359 _ACEOF
   11360 if ac_fn_c_try_compile "$LINENO"
   11361 then :
   11362   xorg_cv_cc_flag_unused_command_line_argument=yes
   11363 else case e in #(
   11364   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   11365 esac
   11366 fi
   11367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11368 esac
   11369 fi
   11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   11371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   11372 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   11373 	CFLAGS="$xorg_testset_save_CFLAGS"
   11374 fi
   11375 
   11376 found="no"
   11377 
   11378 	if test $found = "no" ; then
   11379 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11380 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11381 		fi
   11382 
   11383 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11384 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11385 		fi
   11386 
   11387 		CFLAGS="$CFLAGS -Werror"
   11388 
   11389 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
   11390 printf %s "checking if $CC supports -Werror... " >&6; }
   11391 		cacheid=xorg_cv_cc_flag__Werror
   11392 		if eval test \${$cacheid+y}
   11393 then :
   11394   printf %s "(cached) " >&6
   11395 else case e in #(
   11396   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11397 /* end confdefs.h.  */
   11398 int i;
   11399 int
   11400 main (void)
   11401 {
   11402 
   11403   ;
   11404   return 0;
   11405 }
   11406 _ACEOF
   11407 if ac_fn_c_try_link "$LINENO"
   11408 then :
   11409   eval $cacheid=yes
   11410 else case e in #(
   11411   e) eval $cacheid=no ;;
   11412 esac
   11413 fi
   11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11415     conftest$ac_exeext conftest.$ac_ext ;;
   11416 esac
   11417 fi
   11418 
   11419 
   11420 		CFLAGS="$xorg_testset_save_CFLAGS"
   11421 
   11422 		eval supported=\$$cacheid
   11423 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11424 printf "%s\n" "$supported" >&6; }
   11425 		if test "$supported" = "yes" ; then
   11426 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
   11427 			found="yes"
   11428 		fi
   11429 	fi
   11430 
   11431 	if test $found = "no" ; then
   11432 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11433 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11434 		fi
   11435 
   11436 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11437 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11438 		fi
   11439 
   11440 		CFLAGS="$CFLAGS -errwarn"
   11441 
   11442 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
   11443 printf %s "checking if $CC supports -errwarn... " >&6; }
   11444 		cacheid=xorg_cv_cc_flag__errwarn
   11445 		if eval test \${$cacheid+y}
   11446 then :
   11447   printf %s "(cached) " >&6
   11448 else case e in #(
   11449   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11450 /* end confdefs.h.  */
   11451 int i;
   11452 int
   11453 main (void)
   11454 {
   11455 
   11456   ;
   11457   return 0;
   11458 }
   11459 _ACEOF
   11460 if ac_fn_c_try_link "$LINENO"
   11461 then :
   11462   eval $cacheid=yes
   11463 else case e in #(
   11464   e) eval $cacheid=no ;;
   11465 esac
   11466 fi
   11467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11468     conftest$ac_exeext conftest.$ac_ext ;;
   11469 esac
   11470 fi
   11471 
   11472 
   11473 		CFLAGS="$xorg_testset_save_CFLAGS"
   11474 
   11475 		eval supported=\$$cacheid
   11476 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11477 printf "%s\n" "$supported" >&6; }
   11478 		if test "$supported" = "yes" ; then
   11479 			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
   11480 			found="yes"
   11481 		fi
   11482 	fi
   11483 
   11484 
   11485 
   11486 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
   11487 # activate it with -Werror, so we add it here explicitly.
   11488 
   11489 
   11490 
   11491 
   11492 
   11493 
   11494 
   11495 
   11496 
   11497 
   11498 
   11499 
   11500 
   11501 xorg_testset_save_CFLAGS="$CFLAGS"
   11502 
   11503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   11504 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11505 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   11506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   11507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   11508 then :
   11509   printf %s "(cached) " >&6
   11510 else case e in #(
   11511   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11512 /* end confdefs.h.  */
   11513 int i;
   11514 _ACEOF
   11515 if ac_fn_c_try_compile "$LINENO"
   11516 then :
   11517   xorg_cv_cc_flag_unknown_warning_option=yes
   11518 else case e in #(
   11519   e) xorg_cv_cc_flag_unknown_warning_option=no ;;
   11520 esac
   11521 fi
   11522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11523 esac
   11524 fi
   11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   11526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   11527 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   11528 	CFLAGS="$xorg_testset_save_CFLAGS"
   11529 fi
   11530 
   11531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   11532 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11533 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11534 	fi
   11535 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11536 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   11537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   11538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   11539 then :
   11540   printf %s "(cached) " >&6
   11541 else case e in #(
   11542   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11543 /* end confdefs.h.  */
   11544 int i;
   11545 _ACEOF
   11546 if ac_fn_c_try_compile "$LINENO"
   11547 then :
   11548   xorg_cv_cc_flag_unused_command_line_argument=yes
   11549 else case e in #(
   11550   e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
   11551 esac
   11552 fi
   11553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   11554 esac
   11555 fi
   11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   11557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   11558 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   11559 	CFLAGS="$xorg_testset_save_CFLAGS"
   11560 fi
   11561 
   11562 found="no"
   11563 
   11564 	if test $found = "no" ; then
   11565 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11566 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11567 		fi
   11568 
   11569 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11570 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11571 		fi
   11572 
   11573 		CFLAGS="$CFLAGS -Werror=attributes"
   11574 
   11575 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
   11576 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
   11577 		cacheid=xorg_cv_cc_flag__Werror_attributes
   11578 		if eval test \${$cacheid+y}
   11579 then :
   11580   printf %s "(cached) " >&6
   11581 else case e in #(
   11582   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11583 /* end confdefs.h.  */
   11584 int i;
   11585 int
   11586 main (void)
   11587 {
   11588 
   11589   ;
   11590   return 0;
   11591 }
   11592 _ACEOF
   11593 if ac_fn_c_try_link "$LINENO"
   11594 then :
   11595   eval $cacheid=yes
   11596 else case e in #(
   11597   e) eval $cacheid=no ;;
   11598 esac
   11599 fi
   11600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11601     conftest$ac_exeext conftest.$ac_ext ;;
   11602 esac
   11603 fi
   11604 
   11605 
   11606 		CFLAGS="$xorg_testset_save_CFLAGS"
   11607 
   11608 		eval supported=\$$cacheid
   11609 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11610 printf "%s\n" "$supported" >&6; }
   11611 		if test "$supported" = "yes" ; then
   11612 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
   11613 			found="yes"
   11614 		fi
   11615 	fi
   11616 
   11617 
   11618 
   11619 if test "x$STRICT_COMPILE" = "xyes"; then
   11620     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
   11621     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
   11622 fi
   11623 
   11624 
   11625 
   11626 
   11627 
   11628 
   11629 
   11630 
   11631 cat >>confdefs.h <<_ACEOF
   11632 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
   11633 _ACEOF
   11634 
   11635 	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
   11636 	if test "x$PVM" = "x"; then
   11637 		PVM="0"
   11638 	fi
   11639 
   11640 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
   11641 
   11642 	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
   11643 	if test "x$PVP" = "x"; then
   11644 		PVP="0"
   11645 	fi
   11646 
   11647 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
   11648 
   11649 
   11650 
   11651 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
   11652 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
   11653 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
   11654 touch \$(top_srcdir)/ChangeLog; \
   11655 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
   11656 
   11657 
   11658 
   11659 
   11660 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
   11661 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
   11662 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
   11663 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
   11664 touch \$(top_srcdir)/INSTALL; \
   11665 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
   11666 
   11667 
   11668 
   11669 
   11670 
   11671 
   11672 case $host_os in
   11673     solaris*)
   11674         # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
   11675         # check for a man page file found in later versions that use
   11676         # traditional section numbers instead
   11677         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
   11678 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
   11679 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
   11680 then :
   11681   printf %s "(cached) " >&6
   11682 else case e in #(
   11683   e) test "$cross_compiling" = yes &&
   11684   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   11685 if test -r "/usr/share/man/man7/attributes.7"; then
   11686   ac_cv_file__usr_share_man_man7_attributes_7=yes
   11687 else
   11688   ac_cv_file__usr_share_man_man7_attributes_7=no
   11689 fi ;;
   11690 esac
   11691 fi
   11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
   11693 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
   11694 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
   11695 then :
   11696   SYSV_MAN_SECTIONS=false
   11697 else case e in #(
   11698   e) SYSV_MAN_SECTIONS=true ;;
   11699 esac
   11700 fi
   11701 
   11702         ;;
   11703     *) SYSV_MAN_SECTIONS=false ;;
   11704 esac
   11705 
   11706 if test x$APP_MAN_SUFFIX = x    ; then
   11707     APP_MAN_SUFFIX=1
   11708 fi
   11709 if test x$APP_MAN_DIR = x    ; then
   11710     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
   11711 fi
   11712 
   11713 if test x$LIB_MAN_SUFFIX = x    ; then
   11714     LIB_MAN_SUFFIX=3
   11715 fi
   11716 if test x$LIB_MAN_DIR = x    ; then
   11717     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
   11718 fi
   11719 
   11720 if test x$FILE_MAN_SUFFIX = x    ; then
   11721     case $SYSV_MAN_SECTIONS in
   11722 	true)				FILE_MAN_SUFFIX=4  ;;
   11723 	*)				FILE_MAN_SUFFIX=5  ;;
   11724     esac
   11725 fi
   11726 if test x$FILE_MAN_DIR = x    ; then
   11727     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
   11728 fi
   11729 
   11730 if test x$MISC_MAN_SUFFIX = x    ; then
   11731     case $SYSV_MAN_SECTIONS in
   11732 	true)				MISC_MAN_SUFFIX=5  ;;
   11733 	*)				MISC_MAN_SUFFIX=7  ;;
   11734     esac
   11735 fi
   11736 if test x$MISC_MAN_DIR = x    ; then
   11737     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
   11738 fi
   11739 
   11740 if test x$DRIVER_MAN_SUFFIX = x    ; then
   11741     case $SYSV_MAN_SECTIONS in
   11742 	true)				DRIVER_MAN_SUFFIX=7  ;;
   11743 	*)				DRIVER_MAN_SUFFIX=4  ;;
   11744     esac
   11745 fi
   11746 if test x$DRIVER_MAN_DIR = x    ; then
   11747     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
   11748 fi
   11749 
   11750 if test x$ADMIN_MAN_SUFFIX = x    ; then
   11751     case $SYSV_MAN_SECTIONS in
   11752 	true)				ADMIN_MAN_SUFFIX=1m ;;
   11753 	*)				ADMIN_MAN_SUFFIX=8  ;;
   11754     esac
   11755 fi
   11756 if test x$ADMIN_MAN_DIR = x    ; then
   11757     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
   11758 fi
   11759 
   11760 
   11761 
   11762 
   11763 
   11764 
   11765 
   11766 
   11767 
   11768 
   11769 
   11770 
   11771 
   11772 
   11773 
   11774 XORG_MAN_PAGE="X Version 11"
   11775 
   11776 MAN_SUBSTS="\
   11777 	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   11778 	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   11779 	-e 's|__xservername__|Xorg|g' \
   11780 	-e 's|__xconfigfile__|xorg.conf|g' \
   11781 	-e 's|__projectroot__|\$(prefix)|g' \
   11782 	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
   11783 	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
   11784 	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
   11785 	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
   11786 	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
   11787 	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
   11788 	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
   11789 
   11790 
   11791 
   11792 
   11793 AM_DEFAULT_VERBOSITY=0
   11794 
   11795 
   11796 
   11797 
   11798 
   11799 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
   11800 if test "x$ac_cv_func_asprintf" = xyes
   11801 then :
   11802   printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
   11803 
   11804 fi
   11805 
   11806 
   11807 
   11808 pkg_failed=no
   11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
   11810 printf %s "checking for RGB... " >&6; }
   11811 
   11812 if test -n "$RGB_CFLAGS"; then
   11813     pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
   11814  elif test -n "$PKG_CONFIG"; then
   11815     if test -n "$PKG_CONFIG" && \
   11816     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
   11817   ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
   11818   ac_status=$?
   11819   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11820   test $ac_status = 0; }; then
   11821   pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
   11822 		      test "x$?" != "x0" && pkg_failed=yes
   11823 else
   11824   pkg_failed=yes
   11825 fi
   11826  else
   11827     pkg_failed=untried
   11828 fi
   11829 if test -n "$RGB_LIBS"; then
   11830     pkg_cv_RGB_LIBS="$RGB_LIBS"
   11831  elif test -n "$PKG_CONFIG"; then
   11832     if test -n "$PKG_CONFIG" && \
   11833     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
   11834   ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
   11835   ac_status=$?
   11836   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11837   test $ac_status = 0; }; then
   11838   pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
   11839 		      test "x$?" != "x0" && pkg_failed=yes
   11840 else
   11841   pkg_failed=yes
   11842 fi
   11843  else
   11844     pkg_failed=untried
   11845 fi
   11846 
   11847 
   11848 
   11849 if test $pkg_failed = yes; then
   11850    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11851 printf "%s\n" "no" >&6; }
   11852 
   11853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   11854         _pkg_short_errors_supported=yes
   11855 else
   11856         _pkg_short_errors_supported=no
   11857 fi
   11858         if test $_pkg_short_errors_supported = yes; then
   11859 	        RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
   11860         else
   11861 	        RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
   11862         fi
   11863 	# Put the nasty error message in config.log where it belongs
   11864 	echo "$RGB_PKG_ERRORS" >&5
   11865 
   11866 	as_fn_error $? "Package requirements (xproto) were not met:
   11867 
   11868 $RGB_PKG_ERRORS
   11869 
   11870 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   11871 installed software in a non-standard prefix.
   11872 
   11873 Alternatively, you may set the environment variables RGB_CFLAGS
   11874 and RGB_LIBS to avoid the need to call pkg-config.
   11875 See the pkg-config man page for more details." "$LINENO" 5
   11876 elif test $pkg_failed = untried; then
   11877      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11878 printf "%s\n" "no" >&6; }
   11879 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   11880 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   11881 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   11882 is in your PATH or set the PKG_CONFIG environment variable to the full
   11883 path to pkg-config.
   11884 
   11885 Alternatively, you may set the environment variables RGB_CFLAGS
   11886 and RGB_LIBS to avoid the need to call pkg-config.
   11887 See the pkg-config man page for more details.
   11888 
   11889 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   11890 See 'config.log' for more details" "$LINENO" 5; }
   11891 else
   11892 	RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
   11893 	RGB_LIBS=$pkg_cv_RGB_LIBS
   11894         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11895 printf "%s\n" "yes" >&6; }
   11896 
   11897 fi
   11898 
   11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
   11900 printf %s "checking for rgb database location... " >&6; }
   11901 
   11902 # Check whether --with-rgb-db-dir was given.
   11903 if test ${with_rgb_db_dir+y}
   11904 then :
   11905   withval=$with_rgb_db_dir; db_path=$withval
   11906 else case e in #(
   11907   e) db_path=${datadir}/X11/rgb ;;
   11908 esac
   11909 fi
   11910 
   11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
   11912 printf "%s\n" "$db_path" >&6; }
   11913 db_file=`basename $db_path`
   11914 db_dir=`dirname $db_path`
   11915 
   11916 
   11917 
   11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
   11919 printf %s "checking for rgb database format... " >&6; }
   11920 
   11921 # Check whether --with-rgb-db-type was given.
   11922 if test ${with_rgb_db_type+y}
   11923 then :
   11924   withval=$with_rgb_db_type; db_type=$withval
   11925 else case e in #(
   11926   e) db_type="text" ;;
   11927 esac
   11928 fi
   11929 
   11930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
   11931 printf "%s\n" "$db_type" >&6; }
   11932 
   11933 RGB_DB_TYPE=$db_type
   11934 
   11935 
   11936 # Check whether --with-rgb-db-library was given.
   11937 if test ${with_rgb_db_library+y}
   11938 then :
   11939   withval=$with_rgb_db_library; db_lib=$withval
   11940 else case e in #(
   11941   e) db_lib="auto" ;;
   11942 esac
   11943 fi
   11944 
   11945 
   11946 case $db_type in
   11947 	text)
   11948 		RGB_DB_FILES=""
   11949 
   11950 printf "%s\n" "#define USE_RGB_TXT 1" >>confdefs.h
   11951 
   11952 		;;
   11953 	dbm)
   11954 		if test "x$db_lib" = "xauto"
   11955 then :
   11956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
   11957 printf %s "checking for library containing dbminit... " >&6; }
   11958 if test ${ac_cv_search_dbminit+y}
   11959 then :
   11960   printf %s "(cached) " >&6
   11961 else case e in #(
   11962   e) ac_func_search_save_LIBS=$LIBS
   11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11964 /* end confdefs.h.  */
   11965 
   11966 /* Override any GCC internal prototype to avoid an error.
   11967    Use char because int might match the return type of a GCC
   11968    builtin and then its argument prototype would still apply.
   11969    The 'extern "C"' is for builds by C++ compilers;
   11970    although this is not generally supported in C code supporting it here
   11971    has little cost and some practical benefit (sr 110532).  */
   11972 #ifdef __cplusplus
   11973 extern "C"
   11974 #endif
   11975 char dbminit (void);
   11976 int
   11977 main (void)
   11978 {
   11979 return dbminit ();
   11980   ;
   11981   return 0;
   11982 }
   11983 _ACEOF
   11984 for ac_lib in '' db dbm nsl
   11985 do
   11986   if test -z "$ac_lib"; then
   11987     ac_res="none required"
   11988   else
   11989     ac_res=-l$ac_lib
   11990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11991   fi
   11992   if ac_fn_c_try_link "$LINENO"
   11993 then :
   11994   ac_cv_search_dbminit=$ac_res
   11995 fi
   11996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11997     conftest$ac_exeext
   11998   if test ${ac_cv_search_dbminit+y}
   11999 then :
   12000   break
   12001 fi
   12002 done
   12003 if test ${ac_cv_search_dbminit+y}
   12004 then :
   12005 
   12006 else case e in #(
   12007   e) ac_cv_search_dbminit=no ;;
   12008 esac
   12009 fi
   12010 rm conftest.$ac_ext
   12011 LIBS=$ac_func_search_save_LIBS ;;
   12012 esac
   12013 fi
   12014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
   12015 printf "%s\n" "$ac_cv_search_dbminit" >&6; }
   12016 ac_res=$ac_cv_search_dbminit
   12017 if test "$ac_res" != no
   12018 then :
   12019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12020 
   12021 else case e in #(
   12022   e) as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5 ;;
   12023 esac
   12024 fi
   12025 
   12026 else case e in #(
   12027   e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbminit" | sed "$as_sed_sh"`
   12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$db_lib" >&5
   12029 printf %s "checking for dbminit in -l$db_lib... " >&6; }
   12030 if eval test \${$as_ac_Lib+y}
   12031 then :
   12032   printf %s "(cached) " >&6
   12033 else case e in #(
   12034   e) ac_check_lib_save_LIBS=$LIBS
   12035 LIBS="-l$db_lib  $LIBS"
   12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12037 /* end confdefs.h.  */
   12038 
   12039 /* Override any GCC internal prototype to avoid an error.
   12040    Use char because int might match the return type of a GCC
   12041    builtin and then its argument prototype would still apply.
   12042    The 'extern "C"' is for builds by C++ compilers;
   12043    although this is not generally supported in C code supporting it here
   12044    has little cost and some practical benefit (sr 110532).  */
   12045 #ifdef __cplusplus
   12046 extern "C"
   12047 #endif
   12048 char dbminit (void);
   12049 int
   12050 main (void)
   12051 {
   12052 return dbminit ();
   12053   ;
   12054   return 0;
   12055 }
   12056 _ACEOF
   12057 if ac_fn_c_try_link "$LINENO"
   12058 then :
   12059   eval "$as_ac_Lib=yes"
   12060 else case e in #(
   12061   e) eval "$as_ac_Lib=no" ;;
   12062 esac
   12063 fi
   12064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12065     conftest$ac_exeext conftest.$ac_ext
   12066 LIBS=$ac_check_lib_save_LIBS ;;
   12067 esac
   12068 fi
   12069 eval ac_res=\$$as_ac_Lib
   12070 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   12071 printf "%s\n" "$ac_res" >&6; }
   12072 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
   12073 then :
   12074   cat >>confdefs.h <<_ACEOF
   12075 #define `printf "%s\n" "HAVE_LIB$db_lib" | sed "$as_sed_cpp"` 1
   12076 _ACEOF
   12077 
   12078   LIBS="-l$db_lib $LIBS"
   12079 
   12080 else case e in #(
   12081   e) as_fn_error $? "dbm requested but dbminit() not found when linking with -l$db_lib" "$LINENO" 5 ;;
   12082 esac
   12083 fi
   12084  ;;
   12085 esac
   12086 fi
   12087 		ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
   12088 if test "x$ac_cv_header_dbm_h" = xyes
   12089 then :
   12090   DBM_HEADER='<dbm.h>'
   12091 else case e in #(
   12092   e) ac_fn_c_check_header_compile "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
   12093 if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes
   12094 then :
   12095   DBM_HEADER='<rpcsvc/dbm.h>'
   12096 else case e in #(
   12097   e) as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5 ;;
   12098 esac
   12099 fi
   12100  ;;
   12101 esac
   12102 fi
   12103 
   12104 
   12105 pkg_failed=no
   12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
   12107 printf %s "checking for XORG... " >&6; }
   12108 
   12109 if test -n "$XORG_CFLAGS"; then
   12110     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
   12111  elif test -n "$PKG_CONFIG"; then
   12112     if test -n "$PKG_CONFIG" && \
   12113     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
   12114   ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
   12115   ac_status=$?
   12116   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12117   test $ac_status = 0; }; then
   12118   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
   12119 		      test "x$?" != "x0" && pkg_failed=yes
   12120 else
   12121   pkg_failed=yes
   12122 fi
   12123  else
   12124     pkg_failed=untried
   12125 fi
   12126 if test -n "$XORG_LIBS"; then
   12127     pkg_cv_XORG_LIBS="$XORG_LIBS"
   12128  elif test -n "$PKG_CONFIG"; then
   12129     if test -n "$PKG_CONFIG" && \
   12130     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
   12131   ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
   12132   ac_status=$?
   12133   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12134   test $ac_status = 0; }; then
   12135   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
   12136 		      test "x$?" != "x0" && pkg_failed=yes
   12137 else
   12138   pkg_failed=yes
   12139 fi
   12140  else
   12141     pkg_failed=untried
   12142 fi
   12143 
   12144 
   12145 
   12146 if test $pkg_failed = yes; then
   12147    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12148 printf "%s\n" "no" >&6; }
   12149 
   12150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   12151         _pkg_short_errors_supported=yes
   12152 else
   12153         _pkg_short_errors_supported=no
   12154 fi
   12155         if test $_pkg_short_errors_supported = yes; then
   12156 	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1`
   12157         else
   12158 	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1`
   12159         fi
   12160 	# Put the nasty error message in config.log where it belongs
   12161 	echo "$XORG_PKG_ERRORS" >&5
   12162 
   12163 	as_fn_error $? "Package requirements (xorg-server) were not met:
   12164 
   12165 $XORG_PKG_ERRORS
   12166 
   12167 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   12168 installed software in a non-standard prefix.
   12169 
   12170 Alternatively, you may set the environment variables XORG_CFLAGS
   12171 and XORG_LIBS to avoid the need to call pkg-config.
   12172 See the pkg-config man page for more details." "$LINENO" 5
   12173 elif test $pkg_failed = untried; then
   12174      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12175 printf "%s\n" "no" >&6; }
   12176 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   12177 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   12178 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   12179 is in your PATH or set the PKG_CONFIG environment variable to the full
   12180 path to pkg-config.
   12181 
   12182 Alternatively, you may set the environment variables XORG_CFLAGS
   12183 and XORG_LIBS to avoid the need to call pkg-config.
   12184 See the pkg-config man page for more details.
   12185 
   12186 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   12187 See 'config.log' for more details" "$LINENO" 5; }
   12188 else
   12189 	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
   12190 	XORG_LIBS=$pkg_cv_XORG_LIBS
   12191         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12192 printf "%s\n" "yes" >&6; }
   12193 
   12194 fi
   12195 		RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
   12196 		RGB_DB_FILES='$(db_file).dir $(db_file).pag'
   12197 		;;
   12198 	ndbm)
   12199 		# Find a dbm or ndbm implementation
   12200 		if test "x$db_lib" = "xauto"
   12201 then :
   12202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
   12203 printf %s "checking for library containing dbm_open... " >&6; }
   12204 if test ${ac_cv_search_dbm_open+y}
   12205 then :
   12206   printf %s "(cached) " >&6
   12207 else case e in #(
   12208   e) ac_func_search_save_LIBS=$LIBS
   12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12210 /* end confdefs.h.  */
   12211 
   12212 /* Override any GCC internal prototype to avoid an error.
   12213    Use char because int might match the return type of a GCC
   12214    builtin and then its argument prototype would still apply.
   12215    The 'extern "C"' is for builds by C++ compilers;
   12216    although this is not generally supported in C code supporting it here
   12217    has little cost and some practical benefit (sr 110532).  */
   12218 #ifdef __cplusplus
   12219 extern "C"
   12220 #endif
   12221 char dbm_open (void);
   12222 int
   12223 main (void)
   12224 {
   12225 return dbm_open ();
   12226   ;
   12227   return 0;
   12228 }
   12229 _ACEOF
   12230 for ac_lib in '' db ndbm dbm
   12231 do
   12232   if test -z "$ac_lib"; then
   12233     ac_res="none required"
   12234   else
   12235     ac_res=-l$ac_lib
   12236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12237   fi
   12238   if ac_fn_c_try_link "$LINENO"
   12239 then :
   12240   ac_cv_search_dbm_open=$ac_res
   12241 fi
   12242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12243     conftest$ac_exeext
   12244   if test ${ac_cv_search_dbm_open+y}
   12245 then :
   12246   break
   12247 fi
   12248 done
   12249 if test ${ac_cv_search_dbm_open+y}
   12250 then :
   12251 
   12252 else case e in #(
   12253   e) ac_cv_search_dbm_open=no ;;
   12254 esac
   12255 fi
   12256 rm conftest.$ac_ext
   12257 LIBS=$ac_func_search_save_LIBS ;;
   12258 esac
   12259 fi
   12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
   12261 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
   12262 ac_res=$ac_cv_search_dbm_open
   12263 if test "$ac_res" != no
   12264 then :
   12265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12266 
   12267 else case e in #(
   12268   e) as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5 ;;
   12269 esac
   12270 fi
   12271 
   12272 else case e in #(
   12273   e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbm_open" | sed "$as_sed_sh"`
   12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$db_lib" >&5
   12275 printf %s "checking for dbm_open in -l$db_lib... " >&6; }
   12276 if eval test \${$as_ac_Lib+y}
   12277 then :
   12278   printf %s "(cached) " >&6
   12279 else case e in #(
   12280   e) ac_check_lib_save_LIBS=$LIBS
   12281 LIBS="-l$db_lib  $LIBS"
   12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12283 /* end confdefs.h.  */
   12284 
   12285 /* Override any GCC internal prototype to avoid an error.
   12286    Use char because int might match the return type of a GCC
   12287    builtin and then its argument prototype would still apply.
   12288    The 'extern "C"' is for builds by C++ compilers;
   12289    although this is not generally supported in C code supporting it here
   12290    has little cost and some practical benefit (sr 110532).  */
   12291 #ifdef __cplusplus
   12292 extern "C"
   12293 #endif
   12294 char dbm_open (void);
   12295 int
   12296 main (void)
   12297 {
   12298 return dbm_open ();
   12299   ;
   12300   return 0;
   12301 }
   12302 _ACEOF
   12303 if ac_fn_c_try_link "$LINENO"
   12304 then :
   12305   eval "$as_ac_Lib=yes"
   12306 else case e in #(
   12307   e) eval "$as_ac_Lib=no" ;;
   12308 esac
   12309 fi
   12310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12311     conftest$ac_exeext conftest.$ac_ext
   12312 LIBS=$ac_check_lib_save_LIBS ;;
   12313 esac
   12314 fi
   12315 eval ac_res=\$$as_ac_Lib
   12316 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   12317 printf "%s\n" "$ac_res" >&6; }
   12318 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
   12319 then :
   12320   cat >>confdefs.h <<_ACEOF
   12321 #define `printf "%s\n" "HAVE_LIB$db_lib" | sed "$as_sed_cpp"` 1
   12322 _ACEOF
   12323 
   12324   LIBS="-l$db_lib $LIBS"
   12325 
   12326 else case e in #(
   12327   e) as_fn_error $? "ndbm requested but dbm_open() not found when linking with -l$db_lib" "$LINENO" 5 ;;
   12328 esac
   12329 fi
   12330  ;;
   12331 esac
   12332 fi
   12333 
   12334 printf "%s\n" "#define NDBM 1" >>confdefs.h
   12335 
   12336 		DBM_HEADER='<ndbm.h>'
   12337 
   12338 pkg_failed=no
   12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
   12340 printf %s "checking for XORG... " >&6; }
   12341 
   12342 if test -n "$XORG_CFLAGS"; then
   12343     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
   12344  elif test -n "$PKG_CONFIG"; then
   12345     if test -n "$PKG_CONFIG" && \
   12346     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
   12347   ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
   12348   ac_status=$?
   12349   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12350   test $ac_status = 0; }; then
   12351   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
   12352 		      test "x$?" != "x0" && pkg_failed=yes
   12353 else
   12354   pkg_failed=yes
   12355 fi
   12356  else
   12357     pkg_failed=untried
   12358 fi
   12359 if test -n "$XORG_LIBS"; then
   12360     pkg_cv_XORG_LIBS="$XORG_LIBS"
   12361  elif test -n "$PKG_CONFIG"; then
   12362     if test -n "$PKG_CONFIG" && \
   12363     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
   12364   ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
   12365   ac_status=$?
   12366   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12367   test $ac_status = 0; }; then
   12368   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
   12369 		      test "x$?" != "x0" && pkg_failed=yes
   12370 else
   12371   pkg_failed=yes
   12372 fi
   12373  else
   12374     pkg_failed=untried
   12375 fi
   12376 
   12377 
   12378 
   12379 if test $pkg_failed = yes; then
   12380    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12381 printf "%s\n" "no" >&6; }
   12382 
   12383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   12384         _pkg_short_errors_supported=yes
   12385 else
   12386         _pkg_short_errors_supported=no
   12387 fi
   12388         if test $_pkg_short_errors_supported = yes; then
   12389 	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1`
   12390         else
   12391 	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1`
   12392         fi
   12393 	# Put the nasty error message in config.log where it belongs
   12394 	echo "$XORG_PKG_ERRORS" >&5
   12395 
   12396 	as_fn_error $? "Package requirements (xorg-server) were not met:
   12397 
   12398 $XORG_PKG_ERRORS
   12399 
   12400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   12401 installed software in a non-standard prefix.
   12402 
   12403 Alternatively, you may set the environment variables XORG_CFLAGS
   12404 and XORG_LIBS to avoid the need to call pkg-config.
   12405 See the pkg-config man page for more details." "$LINENO" 5
   12406 elif test $pkg_failed = untried; then
   12407      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12408 printf "%s\n" "no" >&6; }
   12409 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   12410 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   12411 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   12412 is in your PATH or set the PKG_CONFIG environment variable to the full
   12413 path to pkg-config.
   12414 
   12415 Alternatively, you may set the environment variables XORG_CFLAGS
   12416 and XORG_LIBS to avoid the need to call pkg-config.
   12417 See the pkg-config man page for more details.
   12418 
   12419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   12420 See 'config.log' for more details" "$LINENO" 5; }
   12421 else
   12422 	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
   12423 	XORG_LIBS=$pkg_cv_XORG_LIBS
   12424         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12425 printf "%s\n" "yes" >&6; }
   12426 
   12427 fi
   12428 		RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
   12429 		RGB_DB_FILES='$(db_file).dir $(db_file).pag'
   12430 		;;
   12431 esac
   12432 if test x$DBM_HEADER != x ; then
   12433 
   12434 printf "%s\n" "#define DBM_HEADER $DBM_HEADER" >>confdefs.h
   12435 
   12436 fi
   12437 
   12438 
   12439  if test x$db_type != xtext; then
   12440   RGB_DB_TRUE=
   12441   RGB_DB_FALSE='#'
   12442 else
   12443   RGB_DB_TRUE='#'
   12444   RGB_DB_FALSE=
   12445 fi
   12446 
   12447 
   12448 ac_config_files="$ac_config_files Makefile man/Makefile"
   12449 
   12450 
   12451 cat >confcache <<\_ACEOF
   12452 # This file is a shell script that caches the results of configure
   12453 # tests run on this system so they can be shared between configure
   12454 # scripts and configure runs, see configure's option --config-cache.
   12455 # It is not useful on other systems.  If it contains results you don't
   12456 # want to keep, you may remove or edit it.
   12457 #
   12458 # config.status only pays attention to the cache file if you give it
   12459 # the --recheck option to rerun configure.
   12460 #
   12461 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
   12462 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
   12463 # following values.
   12464 
   12465 _ACEOF
   12466 
   12467 # The following way of writing the cache mishandles newlines in values,
   12468 # but we know of no workaround that is simple, portable, and efficient.
   12469 # So, we kill variables containing newlines.
   12470 # Ultrix sh set writes to stderr and can't be redirected directly,
   12471 # and sets the high bit in the cache file unless we assign to the vars.
   12472 (
   12473   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   12474     eval ac_val=\$$ac_var
   12475     case $ac_val in #(
   12476     *${as_nl}*)
   12477       case $ac_var in #(
   12478       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   12479 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   12480       esac
   12481       case $ac_var in #(
   12482       _ | IFS | as_nl) ;; #(
   12483       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   12484       *) { eval $ac_var=; unset $ac_var;} ;;
   12485       esac ;;
   12486     esac
   12487   done
   12488 
   12489   (set) 2>&1 |
   12490     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   12491     *${as_nl}ac_space=\ *)
   12492       # 'set' does not quote correctly, so add quotes: double-quote
   12493       # substitution turns \\\\ into \\, and sed turns \\ into \.
   12494       sed -n \
   12495 	"s/'/'\\\\''/g;
   12496 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   12497       ;; #(
   12498     *)
   12499       # 'set' quotes correctly as required by POSIX, so do not add quotes.
   12500       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   12501       ;;
   12502     esac |
   12503     sort
   12504 ) |
   12505   sed '
   12506      /^ac_cv_env_/b end
   12507      t clear
   12508      :clear
   12509      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   12510      t end
   12511      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   12512      :end' >>confcache
   12513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   12514   if test -w "$cache_file"; then
   12515     if test "x$cache_file" != "x/dev/null"; then
   12516       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   12517 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   12518       if test ! -f "$cache_file" || test -h "$cache_file"; then
   12519 	cat confcache >"$cache_file"
   12520       else
   12521         case $cache_file in #(
   12522         */* | ?:*)
   12523 	  mv -f confcache "$cache_file"$$ &&
   12524 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   12525         *)
   12526 	  mv -f confcache "$cache_file" ;;
   12527 	esac
   12528       fi
   12529     fi
   12530   else
   12531     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   12532 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   12533   fi
   12534 fi
   12535 rm -f confcache
   12536 
   12537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   12538 # Let make expand exec_prefix.
   12539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12540 
   12541 DEFS=-DHAVE_CONFIG_H
   12542 
   12543 ac_libobjs=
   12544 ac_ltlibobjs=
   12545 U=
   12546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   12547   # 1. Remove the extension, and $U if already installed.
   12548   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   12549   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   12550   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   12551   #    will be set to the directory where LIBOBJS objects are built.
   12552   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   12553   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   12554 done
   12555 LIBOBJS=$ac_libobjs
   12556 
   12557 LTLIBOBJS=$ac_ltlibobjs
   12558 
   12559 
   12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   12561 printf %s "checking that generated files are newer than configure... " >&6; }
   12562    if test -n "$am_sleep_pid"; then
   12563      # Hide warnings about reused PIDs.
   12564      wait $am_sleep_pid 2>/dev/null
   12565    fi
   12566    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
   12567 printf "%s\n" "done" >&6; }
   12568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   12569   as_fn_error $? "conditional \"AMDEP\" was never defined.
   12570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   12571 fi
   12572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   12573   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   12574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   12575 fi
   12576 case $enable_silent_rules in # (((
   12577   yes) AM_DEFAULT_VERBOSITY=0;;
   12578    no) AM_DEFAULT_VERBOSITY=1;;
   12579 esac
   12580 if test $am_cv_make_support_nested_variables = yes; then
   12581     AM_V='$(V)'
   12582   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   12583 else
   12584   AM_V=$AM_DEFAULT_VERBOSITY
   12585   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   12586 fi
   12587 
   12588  if test -n "$EXEEXT"; then
   12589   am__EXEEXT_TRUE=
   12590   am__EXEEXT_FALSE='#'
   12591 else
   12592   am__EXEEXT_TRUE='#'
   12593   am__EXEEXT_FALSE=
   12594 fi
   12595 
   12596 if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
   12597   as_fn_error $? "conditional \"RGB_DB\" was never defined.
   12598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   12599 fi
   12600 
   12601 : "${CONFIG_STATUS=./config.status}"
   12602 ac_write_fail=0
   12603 ac_clean_files_save=$ac_clean_files
   12604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   12606 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   12607 as_write_fail=0
   12608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   12609 #! $SHELL
   12610 # Generated by $as_me.
   12611 # Run this file to recreate the current configuration.
   12612 # Compiler output produced by configure, useful for debugging
   12613 # configure, is in config.log if it exists.
   12614 
   12615 debug=false
   12616 ac_cs_recheck=false
   12617 ac_cs_silent=false
   12618 
   12619 SHELL=\${CONFIG_SHELL-$SHELL}
   12620 export SHELL
   12621 _ASEOF
   12622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   12623 ## -------------------- ##
   12624 ## M4sh Initialization. ##
   12625 ## -------------------- ##
   12626 
   12627 # Be more Bourne compatible
   12628 DUALCASE=1; export DUALCASE # for MKS sh
   12629 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   12630 then :
   12631   emulate sh
   12632   NULLCMD=:
   12633   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   12634   # is contrary to our usage.  Disable this feature.
   12635   alias -g '${1+"$@"}'='"$@"'
   12636   setopt NO_GLOB_SUBST
   12637 else case e in #(
   12638   e) case `(set -o) 2>/dev/null` in #(
   12639   *posix*) :
   12640     set -o posix ;; #(
   12641   *) :
   12642      ;;
   12643 esac ;;
   12644 esac
   12645 fi
   12646 
   12647 
   12648 
   12649 # Reset variables that may have inherited troublesome values from
   12650 # the environment.
   12651 
   12652 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   12653 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   12654 # side effect of setting IFS to empty, thus disabling word splitting.)
   12655 # Quoting is to prevent editors from complaining about space-tab.
   12656 as_nl='
   12657 '
   12658 export as_nl
   12659 IFS=" ""	$as_nl"
   12660 
   12661 PS1='$ '
   12662 PS2='> '
   12663 PS4='+ '
   12664 
   12665 # Ensure predictable behavior from utilities with locale-dependent output.
   12666 LC_ALL=C
   12667 export LC_ALL
   12668 LANGUAGE=C
   12669 export LANGUAGE
   12670 
   12671 # We cannot yet rely on "unset" to work, but we need these variables
   12672 # to be unset--not just set to an empty or harmless value--now, to
   12673 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   12674 # also avoids known problems related to "unset" and subshell syntax
   12675 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   12676 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   12677 do eval test \${$as_var+y} \
   12678   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   12679 done
   12680 
   12681 # Ensure that fds 0, 1, and 2 are open.
   12682 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   12683 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   12684 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   12685 
   12686 # The user is always right.
   12687 if ${PATH_SEPARATOR+false} :; then
   12688   PATH_SEPARATOR=:
   12689   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   12690     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   12691       PATH_SEPARATOR=';'
   12692   }
   12693 fi
   12694 
   12695 
   12696 # Find who we are.  Look in the path if we contain no directory separator.
   12697 as_myself=
   12698 case $0 in #((
   12699   *[\\/]* ) as_myself=$0 ;;
   12700   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12701 for as_dir in $PATH
   12702 do
   12703   IFS=$as_save_IFS
   12704   case $as_dir in #(((
   12705     '') as_dir=./ ;;
   12706     */) ;;
   12707     *) as_dir=$as_dir/ ;;
   12708   esac
   12709     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   12710   done
   12711 IFS=$as_save_IFS
   12712 
   12713      ;;
   12714 esac
   12715 # We did not find ourselves, most probably we were run as 'sh COMMAND'
   12716 # in which case we are not to be found in the path.
   12717 if test "x$as_myself" = x; then
   12718   as_myself=$0
   12719 fi
   12720 if test ! -f "$as_myself"; then
   12721   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   12722   exit 1
   12723 fi
   12724 
   12725 
   12726 
   12727 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   12728 # ----------------------------------------
   12729 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   12730 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   12731 # script with STATUS, using 1 if that was 0.
   12732 as_fn_error ()
   12733 {
   12734   as_status=$1; test $as_status -eq 0 && as_status=1
   12735   if test "$4"; then
   12736     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   12737     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   12738   fi
   12739   printf "%s\n" "$as_me: error: $2" >&2
   12740   as_fn_exit $as_status
   12741 } # as_fn_error
   12742 
   12743 
   12744 # as_fn_set_status STATUS
   12745 # -----------------------
   12746 # Set $? to STATUS, without forking.
   12747 as_fn_set_status ()
   12748 {
   12749   return $1
   12750 } # as_fn_set_status
   12751 
   12752 # as_fn_exit STATUS
   12753 # -----------------
   12754 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   12755 as_fn_exit ()
   12756 {
   12757   set +e
   12758   as_fn_set_status $1
   12759   exit $1
   12760 } # as_fn_exit
   12761 
   12762 # as_fn_unset VAR
   12763 # ---------------
   12764 # Portably unset VAR.
   12765 as_fn_unset ()
   12766 {
   12767   { eval $1=; unset $1;}
   12768 }
   12769 as_unset=as_fn_unset
   12770 
   12771 # as_fn_append VAR VALUE
   12772 # ----------------------
   12773 # Append the text in VALUE to the end of the definition contained in VAR. Take
   12774 # advantage of any shell optimizations that allow amortized linear growth over
   12775 # repeated appends, instead of the typical quadratic growth present in naive
   12776 # implementations.
   12777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   12778 then :
   12779   eval 'as_fn_append ()
   12780   {
   12781     eval $1+=\$2
   12782   }'
   12783 else case e in #(
   12784   e) as_fn_append ()
   12785   {
   12786     eval $1=\$$1\$2
   12787   } ;;
   12788 esac
   12789 fi # as_fn_append
   12790 
   12791 # as_fn_arith ARG...
   12792 # ------------------
   12793 # Perform arithmetic evaluation on the ARGs, and store the result in the
   12794 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   12795 # must be portable across $(()) and expr.
   12796 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   12797 then :
   12798   eval 'as_fn_arith ()
   12799   {
   12800     as_val=$(( $* ))
   12801   }'
   12802 else case e in #(
   12803   e) as_fn_arith ()
   12804   {
   12805     as_val=`expr "$@" || test $? -eq 1`
   12806   } ;;
   12807 esac
   12808 fi # as_fn_arith
   12809 
   12810 
   12811 if expr a : '\(a\)' >/dev/null 2>&1 &&
   12812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   12813   as_expr=expr
   12814 else
   12815   as_expr=false
   12816 fi
   12817 
   12818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   12819   as_basename=basename
   12820 else
   12821   as_basename=false
   12822 fi
   12823 
   12824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   12825   as_dirname=dirname
   12826 else
   12827   as_dirname=false
   12828 fi
   12829 
   12830 as_me=`$as_basename -- "$0" ||
   12831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   12832 	 X"$0" : 'X\(//\)$' \| \
   12833 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   12834 printf "%s\n" X/"$0" |
   12835     sed '/^.*\/\([^/][^/]*\)\/*$/{
   12836 	    s//\1/
   12837 	    q
   12838 	  }
   12839 	  /^X\/\(\/\/\)$/{
   12840 	    s//\1/
   12841 	    q
   12842 	  }
   12843 	  /^X\/\(\/\).*/{
   12844 	    s//\1/
   12845 	    q
   12846 	  }
   12847 	  s/.*/./; q'`
   12848 
   12849 # Avoid depending upon Character Ranges.
   12850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   12851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   12852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   12853 as_cr_digits='0123456789'
   12854 as_cr_alnum=$as_cr_Letters$as_cr_digits
   12855 
   12856 
   12857 # Determine whether it's possible to make 'echo' print without a newline.
   12858 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   12859 # for compatibility with existing Makefiles.
   12860 ECHO_C= ECHO_N= ECHO_T=
   12861 case `echo -n x` in #(((((
   12862 -n*)
   12863   case `echo 'xy\c'` in
   12864   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   12865   xy)  ECHO_C='\c';;
   12866   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   12867        ECHO_T='	';;
   12868   esac;;
   12869 *)
   12870   ECHO_N='-n';;
   12871 esac
   12872 
   12873 # For backward compatibility with old third-party macros, we provide
   12874 # the shell variables $as_echo and $as_echo_n.  New code should use
   12875 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   12876 as_echo='printf %s\n'
   12877 as_echo_n='printf %s'
   12878 
   12879 rm -f conf$$ conf$$.exe conf$$.file
   12880 if test -d conf$$.dir; then
   12881   rm -f conf$$.dir/conf$$.file
   12882 else
   12883   rm -f conf$$.dir
   12884   mkdir conf$$.dir 2>/dev/null
   12885 fi
   12886 if (echo >conf$$.file) 2>/dev/null; then
   12887   if ln -s conf$$.file conf$$ 2>/dev/null; then
   12888     as_ln_s='ln -s'
   12889     # ... but there are two gotchas:
   12890     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
   12891     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
   12892     # In both cases, we have to default to 'cp -pR'.
   12893     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   12894       as_ln_s='cp -pR'
   12895   elif ln conf$$.file conf$$ 2>/dev/null; then
   12896     as_ln_s=ln
   12897   else
   12898     as_ln_s='cp -pR'
   12899   fi
   12900 else
   12901   as_ln_s='cp -pR'
   12902 fi
   12903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   12904 rmdir conf$$.dir 2>/dev/null
   12905 
   12906 
   12907 # as_fn_mkdir_p
   12908 # -------------
   12909 # Create "$as_dir" as a directory, including parents if necessary.
   12910 as_fn_mkdir_p ()
   12911 {
   12912 
   12913   case $as_dir in #(
   12914   -*) as_dir=./$as_dir;;
   12915   esac
   12916   test -d "$as_dir" || eval $as_mkdir_p || {
   12917     as_dirs=
   12918     while :; do
   12919       case $as_dir in #(
   12920       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   12921       *) as_qdir=$as_dir;;
   12922       esac
   12923       as_dirs="'$as_qdir' $as_dirs"
   12924       as_dir=`$as_dirname -- "$as_dir" ||
   12925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12926 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   12927 	 X"$as_dir" : 'X\(//\)$' \| \
   12928 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   12929 printf "%s\n" X"$as_dir" |
   12930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12931 	    s//\1/
   12932 	    q
   12933 	  }
   12934 	  /^X\(\/\/\)[^/].*/{
   12935 	    s//\1/
   12936 	    q
   12937 	  }
   12938 	  /^X\(\/\/\)$/{
   12939 	    s//\1/
   12940 	    q
   12941 	  }
   12942 	  /^X\(\/\).*/{
   12943 	    s//\1/
   12944 	    q
   12945 	  }
   12946 	  s/.*/./; q'`
   12947       test -d "$as_dir" && break
   12948     done
   12949     test -z "$as_dirs" || eval "mkdir $as_dirs"
   12950   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   12951 
   12952 
   12953 } # as_fn_mkdir_p
   12954 if mkdir -p . 2>/dev/null; then
   12955   as_mkdir_p='mkdir -p "$as_dir"'
   12956 else
   12957   test -d ./-p && rmdir ./-p
   12958   as_mkdir_p=false
   12959 fi
   12960 
   12961 
   12962 # as_fn_executable_p FILE
   12963 # -----------------------
   12964 # Test if FILE is an executable regular file.
   12965 as_fn_executable_p ()
   12966 {
   12967   test -f "$1" && test -x "$1"
   12968 } # as_fn_executable_p
   12969 as_test_x='test -x'
   12970 as_executable_p=as_fn_executable_p
   12971 
   12972 # Sed expression to map a string onto a valid CPP name.
   12973 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
   12974 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
   12975 
   12976 # Sed expression to map a string onto a valid variable name.
   12977 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
   12978 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
   12979 
   12980 
   12981 exec 6>&1
   12982 ## ----------------------------------- ##
   12983 ## Main body of $CONFIG_STATUS script. ##
   12984 ## ----------------------------------- ##
   12985 _ASEOF
   12986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   12987 
   12988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12989 # Save the log message, to keep $0 and so on meaningful, and to
   12990 # report actual input values of CONFIG_FILES etc. instead of their
   12991 # values after options handling.
   12992 ac_log="
   12993 This file was extended by rgb $as_me 1.1.1, which was
   12994 generated by GNU Autoconf 2.72.  Invocation command line was
   12995 
   12996   CONFIG_FILES    = $CONFIG_FILES
   12997   CONFIG_HEADERS  = $CONFIG_HEADERS
   12998   CONFIG_LINKS    = $CONFIG_LINKS
   12999   CONFIG_COMMANDS = $CONFIG_COMMANDS
   13000   $ $0 $@
   13001 
   13002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   13003 "
   13004 
   13005 _ACEOF
   13006 
   13007 case $ac_config_files in *"
   13008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   13009 esac
   13010 
   13011 case $ac_config_headers in *"
   13012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   13013 esac
   13014 
   13015 
   13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13017 # Files that config.status was made for.
   13018 config_files="$ac_config_files"
   13019 config_headers="$ac_config_headers"
   13020 config_commands="$ac_config_commands"
   13021 
   13022 _ACEOF
   13023 
   13024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13025 ac_cs_usage="\
   13026 '$as_me' instantiates files and other configuration actions
   13027 from templates according to the current configuration.  Unless the files
   13028 and actions are specified as TAGs, all are instantiated by default.
   13029 
   13030 Usage: $0 [OPTION]... [TAG]...
   13031 
   13032   -h, --help       print this help, then exit
   13033   -V, --version    print version number and configuration settings, then exit
   13034       --config     print configuration, then exit
   13035   -q, --quiet, --silent
   13036                    do not print progress messages
   13037   -d, --debug      don't remove temporary files
   13038       --recheck    update $as_me by reconfiguring in the same conditions
   13039       --file=FILE[:TEMPLATE]
   13040                    instantiate the configuration file FILE
   13041       --header=FILE[:TEMPLATE]
   13042                    instantiate the configuration header FILE
   13043 
   13044 Configuration files:
   13045 $config_files
   13046 
   13047 Configuration headers:
   13048 $config_headers
   13049 
   13050 Configuration commands:
   13051 $config_commands
   13052 
   13053 Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>."
   13054 
   13055 _ACEOF
   13056 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   13057 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   13058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13059 ac_cs_config='$ac_cs_config_escaped'
   13060 ac_cs_version="\\
   13061 rgb config.status 1.1.1
   13062 configured by $0, generated by GNU Autoconf 2.72,
   13063   with options \\"\$ac_cs_config\\"
   13064 
   13065 Copyright (C) 2023 Free Software Foundation, Inc.
   13066 This config.status script is free software; the Free Software Foundation
   13067 gives unlimited permission to copy, distribute and modify it."
   13068 
   13069 ac_pwd='$ac_pwd'
   13070 srcdir='$srcdir'
   13071 INSTALL='$INSTALL'
   13072 MKDIR_P='$MKDIR_P'
   13073 AWK='$AWK'
   13074 test -n "\$AWK" || AWK=awk
   13075 _ACEOF
   13076 
   13077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13078 # The default lists apply if the user does not specify any file.
   13079 ac_need_defaults=:
   13080 while test $# != 0
   13081 do
   13082   case $1 in
   13083   --*=?*)
   13084     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   13085     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   13086     ac_shift=:
   13087     ;;
   13088   --*=)
   13089     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   13090     ac_optarg=
   13091     ac_shift=:
   13092     ;;
   13093   *)
   13094     ac_option=$1
   13095     ac_optarg=$2
   13096     ac_shift=shift
   13097     ;;
   13098   esac
   13099 
   13100   case $ac_option in
   13101   # Handling of the options.
   13102   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   13103     ac_cs_recheck=: ;;
   13104   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   13105     printf "%s\n" "$ac_cs_version"; exit ;;
   13106   --config | --confi | --conf | --con | --co | --c )
   13107     printf "%s\n" "$ac_cs_config"; exit ;;
   13108   --debug | --debu | --deb | --de | --d | -d )
   13109     debug=: ;;
   13110   --file | --fil | --fi | --f )
   13111     $ac_shift
   13112     case $ac_optarg in
   13113     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   13114     '') as_fn_error $? "missing file argument" ;;
   13115     esac
   13116     as_fn_append CONFIG_FILES " '$ac_optarg'"
   13117     ac_need_defaults=false;;
   13118   --header | --heade | --head | --hea )
   13119     $ac_shift
   13120     case $ac_optarg in
   13121     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   13122     esac
   13123     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   13124     ac_need_defaults=false;;
   13125   --he | --h)
   13126     # Conflict between --help and --header
   13127     as_fn_error $? "ambiguous option: '$1'
   13128 Try '$0 --help' for more information.";;
   13129   --help | --hel | -h )
   13130     printf "%s\n" "$ac_cs_usage"; exit ;;
   13131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   13132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   13133     ac_cs_silent=: ;;
   13134 
   13135   # This is an error.
   13136   -*) as_fn_error $? "unrecognized option: '$1'
   13137 Try '$0 --help' for more information." ;;
   13138 
   13139   *) as_fn_append ac_config_targets " $1"
   13140      ac_need_defaults=false ;;
   13141 
   13142   esac
   13143   shift
   13144 done
   13145 
   13146 ac_configure_extra_args=
   13147 
   13148 if $ac_cs_silent; then
   13149   exec 6>/dev/null
   13150   ac_configure_extra_args="$ac_configure_extra_args --silent"
   13151 fi
   13152 
   13153 _ACEOF
   13154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13155 if \$ac_cs_recheck; then
   13156   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   13157   shift
   13158   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   13159   CONFIG_SHELL='$SHELL'
   13160   export CONFIG_SHELL
   13161   exec "\$@"
   13162 fi
   13163 
   13164 _ACEOF
   13165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13166 exec 5>>config.log
   13167 {
   13168   echo
   13169   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   13170 ## Running $as_me. ##
   13171 _ASBOX
   13172   printf "%s\n" "$ac_log"
   13173 } >&5
   13174 
   13175 _ACEOF
   13176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13177 #
   13178 # INIT-COMMANDS
   13179 #
   13180 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
   13181 
   13182 _ACEOF
   13183 
   13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13185 
   13186 # Handling of arguments.
   13187 for ac_config_target in $ac_config_targets
   13188 do
   13189   case $ac_config_target in
   13190     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   13191     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   13192     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   13193     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
   13194 
   13195   *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
   13196   esac
   13197 done
   13198 
   13199 
   13200 # If the user did not use the arguments to specify the items to instantiate,
   13201 # then the envvar interface is used.  Set only those that are not.
   13202 # We use the long form for the default assignment because of an extremely
   13203 # bizarre bug on SunOS 4.1.3.
   13204 if $ac_need_defaults; then
   13205   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   13206   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   13207   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   13208 fi
   13209 
   13210 # Have a temporary directory for convenience.  Make it in the build tree
   13211 # simply because there is no reason against having it here, and in addition,
   13212 # creating and moving files from /tmp can sometimes cause problems.
   13213 # Hook for its removal unless debugging.
   13214 # Note that there is a small window in which the directory will not be cleaned:
   13215 # after its creation but before its name has been assigned to '$tmp'.
   13216 $debug ||
   13217 {
   13218   tmp= ac_tmp=
   13219   trap 'exit_status=$?
   13220   : "${ac_tmp:=$tmp}"
   13221   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   13222 ' 0
   13223   trap 'as_fn_exit 1' 1 2 13 15
   13224 }
   13225 # Create a (secure) tmp directory for tmp files.
   13226 
   13227 {
   13228   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   13229   test -d "$tmp"
   13230 }  ||
   13231 {
   13232   tmp=./conf$$-$RANDOM
   13233   (umask 077 && mkdir "$tmp")
   13234 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   13235 ac_tmp=$tmp
   13236 
   13237 # Set up the scripts for CONFIG_FILES section.
   13238 # No need to generate them if there are no CONFIG_FILES.
   13239 # This happens for instance with './config.status config.h'.
   13240 if test -n "$CONFIG_FILES"; then
   13241 
   13242 
   13243 ac_cr=`echo X | tr X '\015'`
   13244 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   13245 # But we know of no other shell where ac_cr would be empty at this
   13246 # point, so we can use a bashism as a fallback.
   13247 if test "x$ac_cr" = x; then
   13248   eval ac_cr=\$\'\\r\'
   13249 fi
   13250 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   13251 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   13252   ac_cs_awk_cr='\\r'
   13253 else
   13254   ac_cs_awk_cr=$ac_cr
   13255 fi
   13256 
   13257 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   13258 _ACEOF
   13259 
   13260 
   13261 {
   13262   echo "cat >conf$$subs.awk <<_ACEOF" &&
   13263   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   13264   echo "_ACEOF"
   13265 } >conf$$subs.sh ||
   13266   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13267 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   13268 ac_delim='%!_!# '
   13269 for ac_last_try in false false false false false :; do
   13270   . ./conf$$subs.sh ||
   13271     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13272 
   13273   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   13274   if test $ac_delim_n = $ac_delim_num; then
   13275     break
   13276   elif $ac_last_try; then
   13277     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13278   else
   13279     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13280   fi
   13281 done
   13282 rm -f conf$$subs.sh
   13283 
   13284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13285 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   13286 _ACEOF
   13287 sed -n '
   13288 h
   13289 s/^/S["/; s/!.*/"]=/
   13290 p
   13291 g
   13292 s/^[^!]*!//
   13293 :repl
   13294 t repl
   13295 s/'"$ac_delim"'$//
   13296 t delim
   13297 :nl
   13298 h
   13299 s/\(.\{148\}\)..*/\1/
   13300 t more1
   13301 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   13302 p
   13303 n
   13304 b repl
   13305 :more1
   13306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13307 p
   13308 g
   13309 s/.\{148\}//
   13310 t nl
   13311 :delim
   13312 h
   13313 s/\(.\{148\}\)..*/\1/
   13314 t more2
   13315 s/["\\]/\\&/g; s/^/"/; s/$/"/
   13316 p
   13317 b
   13318 :more2
   13319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13320 p
   13321 g
   13322 s/.\{148\}//
   13323 t delim
   13324 ' <conf$$subs.awk | sed '
   13325 /^[^""]/{
   13326   N
   13327   s/\n//
   13328 }
   13329 ' >>$CONFIG_STATUS || ac_write_fail=1
   13330 rm -f conf$$subs.awk
   13331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13332 _ACAWK
   13333 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   13334   for (key in S) S_is_set[key] = 1
   13335   FS = ""
   13336 
   13337 }
   13338 {
   13339   line = $ 0
   13340   nfields = split(line, field, "@")
   13341   substed = 0
   13342   len = length(field[1])
   13343   for (i = 2; i < nfields; i++) {
   13344     key = field[i]
   13345     keylen = length(key)
   13346     if (S_is_set[key]) {
   13347       value = S[key]
   13348       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   13349       len += length(value) + length(field[++i])
   13350       substed = 1
   13351     } else
   13352       len += 1 + keylen
   13353   }
   13354 
   13355   print line
   13356 }
   13357 
   13358 _ACAWK
   13359 _ACEOF
   13360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13361 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   13362   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   13363 else
   13364   cat
   13365 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   13366   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   13367 _ACEOF
   13368 
   13369 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   13370 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   13371 # trailing colons and then remove the whole line if VPATH becomes empty
   13372 # (actually we leave an empty line to preserve line numbers).
   13373 if test "x$srcdir" = x.; then
   13374   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   13375 h
   13376 s///
   13377 s/^/:/
   13378 s/[	 ]*$/:/
   13379 s/:\$(srcdir):/:/g
   13380 s/:\${srcdir}:/:/g
   13381 s/:@srcdir@:/:/g
   13382 s/^:*//
   13383 s/:*$//
   13384 x
   13385 s/\(=[	 ]*\).*/\1/
   13386 G
   13387 s/\n//
   13388 s/^[^=]*=[	 ]*$//
   13389 }'
   13390 fi
   13391 
   13392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13393 fi # test -n "$CONFIG_FILES"
   13394 
   13395 # Set up the scripts for CONFIG_HEADERS section.
   13396 # No need to generate them if there are no CONFIG_HEADERS.
   13397 # This happens for instance with './config.status Makefile'.
   13398 if test -n "$CONFIG_HEADERS"; then
   13399 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   13400 BEGIN {
   13401 _ACEOF
   13402 
   13403 # Transform confdefs.h into an awk script 'defines.awk', embedded as
   13404 # here-document in config.status, that substitutes the proper values into
   13405 # config.h.in to produce config.h.
   13406 
   13407 # Create a delimiter string that does not exist in confdefs.h, to ease
   13408 # handling of long lines.
   13409 ac_delim='%!_!# '
   13410 for ac_last_try in false false :; do
   13411   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   13412   if test -z "$ac_tt"; then
   13413     break
   13414   elif $ac_last_try; then
   13415     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   13416   else
   13417     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13418   fi
   13419 done
   13420 
   13421 # For the awk script, D is an array of macro values keyed by name,
   13422 # likewise P contains macro parameters if any.  Preserve backslash
   13423 # newline sequences.
   13424 
   13425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   13426 sed -n '
   13427 s/.\{148\}/&'"$ac_delim"'/g
   13428 t rset
   13429 :rset
   13430 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   13431 t def
   13432 d
   13433 :def
   13434 s/\\$//
   13435 t bsnl
   13436 s/["\\]/\\&/g
   13437 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   13438 D["\1"]=" \3"/p
   13439 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   13440 d
   13441 :bsnl
   13442 s/["\\]/\\&/g
   13443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   13444 D["\1"]=" \3\\\\\\n"\\/p
   13445 t cont
   13446 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   13447 t cont
   13448 d
   13449 :cont
   13450 n
   13451 s/.\{148\}/&'"$ac_delim"'/g
   13452 t clear
   13453 :clear
   13454 s/\\$//
   13455 t bsnlc
   13456 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   13457 d
   13458 :bsnlc
   13459 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   13460 b cont
   13461 ' <confdefs.h | sed '
   13462 s/'"$ac_delim"'/"\\\
   13463 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   13464 
   13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13466   for (key in D) D_is_set[key] = 1
   13467   FS = ""
   13468 }
   13469 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   13470   line = \$ 0
   13471   split(line, arg, " ")
   13472   if (arg[1] == "#") {
   13473     defundef = arg[2]
   13474     mac1 = arg[3]
   13475   } else {
   13476     defundef = substr(arg[1], 2)
   13477     mac1 = arg[2]
   13478   }
   13479   split(mac1, mac2, "(") #)
   13480   macro = mac2[1]
   13481   prefix = substr(line, 1, index(line, defundef) - 1)
   13482   if (D_is_set[macro]) {
   13483     # Preserve the white space surrounding the "#".
   13484     print prefix "define", macro P[macro] D[macro]
   13485     next
   13486   } else {
   13487     # Replace #undef with comments.  This is necessary, for example,
   13488     # in the case of _POSIX_SOURCE, which is predefined and required
   13489     # on some systems where configure will not decide to define it.
   13490     if (defundef == "undef") {
   13491       print "/*", prefix defundef, macro, "*/"
   13492       next
   13493     }
   13494   }
   13495 }
   13496 { print }
   13497 _ACAWK
   13498 _ACEOF
   13499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13500   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   13501 fi # test -n "$CONFIG_HEADERS"
   13502 
   13503 
   13504 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   13505 shift
   13506 for ac_tag
   13507 do
   13508   case $ac_tag in
   13509   :[FHLC]) ac_mode=$ac_tag; continue;;
   13510   esac
   13511   case $ac_mode$ac_tag in
   13512   :[FHL]*:*);;
   13513   :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
   13514   :[FH]-) ac_tag=-:-;;
   13515   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   13516   esac
   13517   ac_save_IFS=$IFS
   13518   IFS=:
   13519   set x $ac_tag
   13520   IFS=$ac_save_IFS
   13521   shift
   13522   ac_file=$1
   13523   shift
   13524 
   13525   case $ac_mode in
   13526   :L) ac_source=$1;;
   13527   :[FH])
   13528     ac_file_inputs=
   13529     for ac_f
   13530     do
   13531       case $ac_f in
   13532       -) ac_f="$ac_tmp/stdin";;
   13533       *) # Look for the file first in the build tree, then in the source tree
   13534 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   13535 	 # because $ac_f cannot contain ':'.
   13536 	 test -f "$ac_f" ||
   13537 	   case $ac_f in
   13538 	   [\\/$]*) false;;
   13539 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   13540 	   esac ||
   13541 	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
   13542       esac
   13543       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   13544       as_fn_append ac_file_inputs " '$ac_f'"
   13545     done
   13546 
   13547     # Let's still pretend it is 'configure' which instantiates (i.e., don't
   13548     # use $as_me), people would be surprised to read:
   13549     #    /* config.h.  Generated by config.status.  */
   13550     configure_input='Generated from '`
   13551 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   13552 	`' by configure.'
   13553     if test x"$ac_file" != x-; then
   13554       configure_input="$ac_file.  $configure_input"
   13555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   13556 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   13557     fi
   13558     # Neutralize special characters interpreted by sed in replacement strings.
   13559     case $configure_input in #(
   13560     *\&* | *\|* | *\\* )
   13561        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   13562        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   13563     *) ac_sed_conf_input=$configure_input;;
   13564     esac
   13565 
   13566     case $ac_tag in
   13567     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   13568       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   13569     esac
   13570     ;;
   13571   esac
   13572 
   13573   ac_dir=`$as_dirname -- "$ac_file" ||
   13574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13575 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   13576 	 X"$ac_file" : 'X\(//\)$' \| \
   13577 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   13578 printf "%s\n" X"$ac_file" |
   13579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13580 	    s//\1/
   13581 	    q
   13582 	  }
   13583 	  /^X\(\/\/\)[^/].*/{
   13584 	    s//\1/
   13585 	    q
   13586 	  }
   13587 	  /^X\(\/\/\)$/{
   13588 	    s//\1/
   13589 	    q
   13590 	  }
   13591 	  /^X\(\/\).*/{
   13592 	    s//\1/
   13593 	    q
   13594 	  }
   13595 	  s/.*/./; q'`
   13596   as_dir="$ac_dir"; as_fn_mkdir_p
   13597   ac_builddir=.
   13598 
   13599 case "$ac_dir" in
   13600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   13601 *)
   13602   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   13603   # A ".." for each directory in $ac_dir_suffix.
   13604   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   13605   case $ac_top_builddir_sub in
   13606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   13607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   13608   esac ;;
   13609 esac
   13610 ac_abs_top_builddir=$ac_pwd
   13611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   13612 # for backward compatibility:
   13613 ac_top_builddir=$ac_top_build_prefix
   13614 
   13615 case $srcdir in
   13616   .)  # We are building in place.
   13617     ac_srcdir=.
   13618     ac_top_srcdir=$ac_top_builddir_sub
   13619     ac_abs_top_srcdir=$ac_pwd ;;
   13620   [\\/]* | ?:[\\/]* )  # Absolute name.
   13621     ac_srcdir=$srcdir$ac_dir_suffix;
   13622     ac_top_srcdir=$srcdir
   13623     ac_abs_top_srcdir=$srcdir ;;
   13624   *) # Relative name.
   13625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   13626     ac_top_srcdir=$ac_top_build_prefix$srcdir
   13627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   13628 esac
   13629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   13630 
   13631 
   13632   case $ac_mode in
   13633   :F)
   13634   #
   13635   # CONFIG_FILE
   13636   #
   13637 
   13638   case $INSTALL in
   13639   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   13640   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   13641   esac
   13642   ac_MKDIR_P=$MKDIR_P
   13643   case $MKDIR_P in
   13644   [\\/$]* | ?:[\\/]* ) ;;
   13645   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   13646   esac
   13647 _ACEOF
   13648 
   13649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13650 # If the template does not know about datarootdir, expand it.
   13651 # FIXME: This hack should be removed a few years after 2.60.
   13652 ac_datarootdir_hack=; ac_datarootdir_seen=
   13653 ac_sed_dataroot='
   13654 /datarootdir/ {
   13655   p
   13656   q
   13657 }
   13658 /@datadir@/p
   13659 /@docdir@/p
   13660 /@infodir@/p
   13661 /@localedir@/p
   13662 /@mandir@/p'
   13663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   13664 *datarootdir*) ac_datarootdir_seen=yes;;
   13665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   13666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   13667 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   13668 _ACEOF
   13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13670   ac_datarootdir_hack='
   13671   s&@datadir@&$datadir&g
   13672   s&@docdir@&$docdir&g
   13673   s&@infodir@&$infodir&g
   13674   s&@localedir@&$localedir&g
   13675   s&@mandir@&$mandir&g
   13676   s&\\\${datarootdir}&$datarootdir&g' ;;
   13677 esac
   13678 _ACEOF
   13679 
   13680 # Neutralize VPATH when '$srcdir' = '.'.
   13681 # Shell code in configure.ac might set extrasub.
   13682 # FIXME: do we really want to maintain this feature?
   13683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13684 ac_sed_extra="$ac_vpsub
   13685 $extrasub
   13686 _ACEOF
   13687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13688 :t
   13689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   13690 s|@configure_input@|$ac_sed_conf_input|;t t
   13691 s&@top_builddir@&$ac_top_builddir_sub&;t t
   13692 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   13693 s&@srcdir@&$ac_srcdir&;t t
   13694 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   13695 s&@top_srcdir@&$ac_top_srcdir&;t t
   13696 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   13697 s&@builddir@&$ac_builddir&;t t
   13698 s&@abs_builddir@&$ac_abs_builddir&;t t
   13699 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   13700 s&@INSTALL@&$ac_INSTALL&;t t
   13701 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   13702 $ac_datarootdir_hack
   13703 "
   13704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   13705   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13706 
   13707 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   13708   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   13709   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   13710       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   13711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   13712 which seems to be undefined.  Please make sure it is defined" >&5
   13713 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   13714 which seems to be undefined.  Please make sure it is defined" >&2;}
   13715 
   13716   rm -f "$ac_tmp/stdin"
   13717   case $ac_file in
   13718   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   13719   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   13720   esac \
   13721   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13722  ;;
   13723   :H)
   13724   #
   13725   # CONFIG_HEADER
   13726   #
   13727   if test x"$ac_file" != x-; then
   13728     {
   13729       printf "%s\n" "/* $configure_input  */" >&1 \
   13730       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   13731     } >"$ac_tmp/config.h" \
   13732       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13733     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   13734       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   13735 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   13736     else
   13737       rm -f "$ac_file"
   13738       mv "$ac_tmp/config.h" "$ac_file" \
   13739 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13740     fi
   13741   else
   13742     printf "%s\n" "/* $configure_input  */" >&1 \
   13743       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   13744       || as_fn_error $? "could not create -" "$LINENO" 5
   13745   fi
   13746 # Compute "$ac_file"'s index in $config_headers.
   13747 _am_arg="$ac_file"
   13748 _am_stamp_count=1
   13749 for _am_header in $config_headers :; do
   13750   case $_am_header in
   13751     $_am_arg | $_am_arg:* )
   13752       break ;;
   13753     * )
   13754       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   13755   esac
   13756 done
   13757 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   13758 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13759 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   13760 	 X"$_am_arg" : 'X\(//\)$' \| \
   13761 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   13762 printf "%s\n" X"$_am_arg" |
   13763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13764 	    s//\1/
   13765 	    q
   13766 	  }
   13767 	  /^X\(\/\/\)[^/].*/{
   13768 	    s//\1/
   13769 	    q
   13770 	  }
   13771 	  /^X\(\/\/\)$/{
   13772 	    s//\1/
   13773 	    q
   13774 	  }
   13775 	  /^X\(\/\).*/{
   13776 	    s//\1/
   13777 	    q
   13778 	  }
   13779 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   13780  ;;
   13781 
   13782   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   13783 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   13784  ;;
   13785   esac
   13786 
   13787 
   13788   case $ac_file$ac_mode in
   13789     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   13790   # Older Autoconf quotes --file arguments for eval, but not when files
   13791   # are listed without --file.  Let's play safe and only enable the eval
   13792   # if we detect the quoting.
   13793   # TODO: see whether this extra hack can be removed once we start
   13794   # requiring Autoconf 2.70 or later.
   13795   case $CONFIG_FILES in #(
   13796   *\'*) :
   13797     eval set x "$CONFIG_FILES" ;; #(
   13798   *) :
   13799     set x $CONFIG_FILES ;; #(
   13800   *) :
   13801      ;;
   13802 esac
   13803   shift
   13804   # Used to flag and report bootstrapping failures.
   13805   am_rc=0
   13806   for am_mf
   13807   do
   13808     # Strip MF so we end up with the name of the file.
   13809     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
   13810     # Check whether this is an Automake generated Makefile which includes
   13811     # dependency-tracking related rules and includes.
   13812     # Grep'ing the whole file directly is not great: AIX grep has a line
   13813     # limit of 2048, but all sed's we know have understand at least 4000.
   13814     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
   13815       || continue
   13816     am_dirpart=`$as_dirname -- "$am_mf" ||
   13817 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13818 	 X"$am_mf" : 'X\(//\)[^/]' \| \
   13819 	 X"$am_mf" : 'X\(//\)$' \| \
   13820 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   13821 printf "%s\n" X"$am_mf" |
   13822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13823 	    s//\1/
   13824 	    q
   13825 	  }
   13826 	  /^X\(\/\/\)[^/].*/{
   13827 	    s//\1/
   13828 	    q
   13829 	  }
   13830 	  /^X\(\/\/\)$/{
   13831 	    s//\1/
   13832 	    q
   13833 	  }
   13834 	  /^X\(\/\).*/{
   13835 	    s//\1/
   13836 	    q
   13837 	  }
   13838 	  s/.*/./; q'`
   13839     am_filepart=`$as_basename -- "$am_mf" ||
   13840 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
   13841 	 X"$am_mf" : 'X\(//\)$' \| \
   13842 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   13843 printf "%s\n" X/"$am_mf" |
   13844     sed '/^.*\/\([^/][^/]*\)\/*$/{
   13845 	    s//\1/
   13846 	    q
   13847 	  }
   13848 	  /^X\/\(\/\/\)$/{
   13849 	    s//\1/
   13850 	    q
   13851 	  }
   13852 	  /^X\/\(\/\).*/{
   13853 	    s//\1/
   13854 	    q
   13855 	  }
   13856 	  s/.*/./; q'`
   13857     { echo "$as_me:$LINENO: cd "$am_dirpart" \
   13858       && sed -e '/# am--include-marker/d' "$am_filepart" \
   13859         | $MAKE -f - am--depfiles" >&5
   13860    (cd "$am_dirpart" \
   13861       && sed -e '/# am--include-marker/d' "$am_filepart" \
   13862         | $MAKE -f - am--depfiles) >&5 2>&5
   13863    ac_status=$?
   13864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13865    (exit $ac_status); } || am_rc=$?
   13866   done
   13867   if test $am_rc -ne 0; then
   13868     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   13869 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   13870 as_fn_error $? "Something went wrong bootstrapping makefile fragments
   13871     for automatic dependency tracking.  If GNU make was not used, consider
   13872     re-running the configure script with MAKE=\"gmake\" (or whatever is
   13873     necessary).  You can also try re-running configure with the
   13874     '--disable-dependency-tracking' option to at least be able to build
   13875     the package (albeit without support for automatic dependency tracking).
   13876 See 'config.log' for more details" "$LINENO" 5; }
   13877   fi
   13878   { am_dirpart=; unset am_dirpart;}
   13879   { am_filepart=; unset am_filepart;}
   13880   { am_mf=; unset am_mf;}
   13881   { am_rc=; unset am_rc;}
   13882   rm -f conftest-deps.mk
   13883 }
   13884  ;;
   13885 
   13886   esac
   13887 done # for ac_tag
   13888 
   13889 
   13890 as_fn_exit 0
   13891 _ACEOF
   13892 ac_clean_files=$ac_clean_files_save
   13893 
   13894 test $ac_write_fail = 0 ||
   13895   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   13896 
   13897 
   13898 # configure is writing to config.log, and then calls config.status.
   13899 # config.status does its own redirection, appending to config.log.
   13900 # Unfortunately, on DOS this fails, as config.log is still kept open
   13901 # by configure, so config.status won't be able to write to it; its
   13902 # output is simply discarded.  So we exec the FD to /dev/null,
   13903 # effectively closing config.log, so it can be properly (re)opened and
   13904 # appended to by config.status.  When coming back to configure, we
   13905 # need to make the FD available again.
   13906 if test "$no_create" != yes; then
   13907   ac_cs_success=:
   13908   ac_config_status_args=
   13909   test "$silent" = yes &&
   13910     ac_config_status_args="$ac_config_status_args --quiet"
   13911   exec 5>/dev/null
   13912   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   13913   exec 5>>config.log
   13914   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   13915   # would make configure fail if this is the last instruction.
   13916   $ac_cs_success || as_fn_exit 1
   13917 fi
   13918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   13919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   13920 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   13921 fi
   13922 
   13923 
   13924