Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.2
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.68 for xsm 1.0.2.
      4 #
      5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
      6 #
      7 #
      8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     10 # Foundation, Inc.
     11 #
     12 #
     13 # This configure script is free software; the Free Software Foundation
     14 # gives unlimited permission to copy, distribute and modify it.
     15 ## -------------------- ##
     16 ## M4sh Initialization. ##
     17 ## -------------------- ##
     18 
     19 # Be more Bourne compatible
     20 DUALCASE=1; export DUALCASE # for MKS sh
     21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
     29   case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac
     35 fi
     36 
     37 
     38 as_nl='
     39 '
     40 export as_nl
     41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     45 # Prefer a ksh shell builtin over an external printf program on Solaris,
     46 # but without wasting forks for bash or zsh.
     47 if test -z "$BASH_VERSION$ZSH_VERSION" \
     48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     49   as_echo='print -r --'
     50   as_echo_n='print -rn --'
     51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     52   as_echo='printf %s\n'
     53   as_echo_n='printf %s'
     54 else
     55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     57     as_echo_n='/usr/ucb/echo -n'
     58   else
     59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     60     as_echo_n_body='eval
     61       arg=$1;
     62       case $arg in #(
     63       *"$as_nl"*)
     64 	expr "X$arg" : "X\\(.*\\)$as_nl";
     65 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     66       esac;
     67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     68     '
     69     export as_echo_n_body
     70     as_echo_n='sh -c $as_echo_n_body as_echo'
     71   fi
     72   export as_echo_body
     73   as_echo='sh -c $as_echo_body as_echo'
     74 fi
     75 
     76 # The user is always right.
     77 if test "${PATH_SEPARATOR+set}" != set; then
     78   PATH_SEPARATOR=:
     79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     81       PATH_SEPARATOR=';'
     82   }
     83 fi
     84 
     85 
     86 # IFS
     87 # We need space, tab and new line, in precisely that order.  Quoting is
     88 # there to prevent editors from complaining about space-tab.
     89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     90 # splitting by setting IFS to empty value.)
     91 IFS=" ""	$as_nl"
     92 
     93 # Find who we are.  Look in the path if we contain no directory separator.
     94 as_myself=
     95 case $0 in #((
     96   *[\\/]* ) as_myself=$0 ;;
     97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     98 for as_dir in $PATH
     99 do
    100   IFS=$as_save_IFS
    101   test -z "$as_dir" && as_dir=.
    102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    103   done
    104 IFS=$as_save_IFS
    105 
    106      ;;
    107 esac
    108 # We did not find ourselves, most probably we were run as `sh COMMAND'
    109 # in which case we are not to be found in the path.
    110 if test "x$as_myself" = x; then
    111   as_myself=$0
    112 fi
    113 if test ! -f "$as_myself"; then
    114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    115   exit 1
    116 fi
    117 
    118 # Unset variables that we do not need and which cause bugs (e.g. in
    119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    120 # suppresses any "Segmentation fault" message there.  '((' could
    121 # trigger a bug in pdksh 5.2.14.
    122 for as_var in BASH_ENV ENV MAIL MAILPATH
    123 do eval test x\${$as_var+set} = xset \
    124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    125 done
    126 PS1='$ '
    127 PS2='> '
    128 PS4='+ '
    129 
    130 # NLS nuisances.
    131 LC_ALL=C
    132 export LC_ALL
    133 LANGUAGE=C
    134 export LANGUAGE
    135 
    136 # CDPATH.
    137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    138 
    139 if test "x$CONFIG_SHELL" = x; then
    140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    141   emulate sh
    142   NULLCMD=:
    143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    144   # is contrary to our usage.  Disable this feature.
    145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    146   setopt NO_GLOB_SUBST
    147 else
    148   case \`(set -o) 2>/dev/null\` in #(
    149   *posix*) :
    150     set -o posix ;; #(
    151   *) :
    152      ;;
    153 esac
    154 fi
    155 "
    156   as_required="as_fn_return () { (exit \$1); }
    157 as_fn_success () { as_fn_return 0; }
    158 as_fn_failure () { as_fn_return 1; }
    159 as_fn_ret_success () { return 0; }
    160 as_fn_ret_failure () { return 1; }
    161 
    162 exitcode=0
    163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    168 
    169 else
    170   exitcode=1; echo positional parameters were not saved.
    171 fi
    172 test x\$exitcode = x0 || exit 1"
    173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    177 test \$(( 1 + 1 )) = 2 || exit 1"
    178   if (eval "$as_required") 2>/dev/null; then :
    179   as_have_required=yes
    180 else
    181   as_have_required=no
    182 fi
    183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    184 
    185 else
    186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    187 as_found=false
    188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    189 do
    190   IFS=$as_save_IFS
    191   test -z "$as_dir" && as_dir=.
    192   as_found=:
    193   case $as_dir in #(
    194 	 /*)
    195 	   for as_base in sh bash ksh sh5; do
    196 	     # Try only shells that exist, to save several forks.
    197 	     as_shell=$as_dir/$as_base
    198 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    199 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    200   CONFIG_SHELL=$as_shell as_have_required=yes
    201 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    202   break 2
    203 fi
    204 fi
    205 	   done;;
    206        esac
    207   as_found=false
    208 done
    209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    210 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    211   CONFIG_SHELL=$SHELL as_have_required=yes
    212 fi; }
    213 IFS=$as_save_IFS
    214 
    215 
    216       if test "x$CONFIG_SHELL" != x; then :
    217   # We cannot yet assume a decent shell, so we have to provide a
    218 	# neutralization value for shells without unset; and this also
    219 	# works around shells that cannot unset nonexistent variables.
    220 	# Preserve -v and -x to the replacement shell.
    221 	BASH_ENV=/dev/null
    222 	ENV=/dev/null
    223 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    224 	export CONFIG_SHELL
    225 	case $- in # ((((
    226 	  *v*x* | *x*v* ) as_opts=-vx ;;
    227 	  *v* ) as_opts=-v ;;
    228 	  *x* ) as_opts=-x ;;
    229 	  * ) as_opts= ;;
    230 	esac
    231 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
    232 fi
    233 
    234     if test x$as_have_required = xno; then :
    235   $as_echo "$0: This script requires a shell more modern than all"
    236   $as_echo "$0: the shells that I found on your system."
    237   if test x${ZSH_VERSION+set} = xset ; then
    238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    240   else
    241     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
    243 $0: about your system, including any error possibly output
    244 $0: before this message. Then install a modern shell, or
    245 $0: manually run the script under such a shell if you do
    246 $0: have one."
    247   fi
    248   exit 1
    249 fi
    250 fi
    251 fi
    252 SHELL=${CONFIG_SHELL-/bin/sh}
    253 export SHELL
    254 # Unset more variables known to interfere with behavior of common tools.
    255 CLICOLOR_FORCE= GREP_OPTIONS=
    256 unset CLICOLOR_FORCE GREP_OPTIONS
    257 
    258 ## --------------------- ##
    259 ## M4sh Shell Functions. ##
    260 ## --------------------- ##
    261 # as_fn_unset VAR
    262 # ---------------
    263 # Portably unset VAR.
    264 as_fn_unset ()
    265 {
    266   { eval $1=; unset $1;}
    267 }
    268 as_unset=as_fn_unset
    269 
    270 # as_fn_set_status STATUS
    271 # -----------------------
    272 # Set $? to STATUS, without forking.
    273 as_fn_set_status ()
    274 {
    275   return $1
    276 } # as_fn_set_status
    277 
    278 # as_fn_exit STATUS
    279 # -----------------
    280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    281 as_fn_exit ()
    282 {
    283   set +e
    284   as_fn_set_status $1
    285   exit $1
    286 } # as_fn_exit
    287 
    288 # as_fn_mkdir_p
    289 # -------------
    290 # Create "$as_dir" as a directory, including parents if necessary.
    291 as_fn_mkdir_p ()
    292 {
    293 
    294   case $as_dir in #(
    295   -*) as_dir=./$as_dir;;
    296   esac
    297   test -d "$as_dir" || eval $as_mkdir_p || {
    298     as_dirs=
    299     while :; do
    300       case $as_dir in #(
    301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    302       *) as_qdir=$as_dir;;
    303       esac
    304       as_dirs="'$as_qdir' $as_dirs"
    305       as_dir=`$as_dirname -- "$as_dir" ||
    306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    307 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    308 	 X"$as_dir" : 'X\(//\)$' \| \
    309 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    310 $as_echo X"$as_dir" |
    311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    312 	    s//\1/
    313 	    q
    314 	  }
    315 	  /^X\(\/\/\)[^/].*/{
    316 	    s//\1/
    317 	    q
    318 	  }
    319 	  /^X\(\/\/\)$/{
    320 	    s//\1/
    321 	    q
    322 	  }
    323 	  /^X\(\/\).*/{
    324 	    s//\1/
    325 	    q
    326 	  }
    327 	  s/.*/./; q'`
    328       test -d "$as_dir" && break
    329     done
    330     test -z "$as_dirs" || eval "mkdir $as_dirs"
    331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    332 
    333 
    334 } # as_fn_mkdir_p
    335 # as_fn_append VAR VALUE
    336 # ----------------------
    337 # Append the text in VALUE to the end of the definition contained in VAR. Take
    338 # advantage of any shell optimizations that allow amortized linear growth over
    339 # repeated appends, instead of the typical quadratic growth present in naive
    340 # implementations.
    341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    342   eval 'as_fn_append ()
    343   {
    344     eval $1+=\$2
    345   }'
    346 else
    347   as_fn_append ()
    348   {
    349     eval $1=\$$1\$2
    350   }
    351 fi # as_fn_append
    352 
    353 # as_fn_arith ARG...
    354 # ------------------
    355 # Perform arithmetic evaluation on the ARGs, and store the result in the
    356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    357 # must be portable across $(()) and expr.
    358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    359   eval 'as_fn_arith ()
    360   {
    361     as_val=$(( $* ))
    362   }'
    363 else
    364   as_fn_arith ()
    365   {
    366     as_val=`expr "$@" || test $? -eq 1`
    367   }
    368 fi # as_fn_arith
    369 
    370 
    371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    372 # ----------------------------------------
    373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    375 # script with STATUS, using 1 if that was 0.
    376 as_fn_error ()
    377 {
    378   as_status=$1; test $as_status -eq 0 && as_status=1
    379   if test "$4"; then
    380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    382   fi
    383   $as_echo "$as_me: error: $2" >&2
    384   as_fn_exit $as_status
    385 } # as_fn_error
    386 
    387 if expr a : '\(a\)' >/dev/null 2>&1 &&
    388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    389   as_expr=expr
    390 else
    391   as_expr=false
    392 fi
    393 
    394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    395   as_basename=basename
    396 else
    397   as_basename=false
    398 fi
    399 
    400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    401   as_dirname=dirname
    402 else
    403   as_dirname=false
    404 fi
    405 
    406 as_me=`$as_basename -- "$0" ||
    407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    408 	 X"$0" : 'X\(//\)$' \| \
    409 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    410 $as_echo X/"$0" |
    411     sed '/^.*\/\([^/][^/]*\)\/*$/{
    412 	    s//\1/
    413 	    q
    414 	  }
    415 	  /^X\/\(\/\/\)$/{
    416 	    s//\1/
    417 	    q
    418 	  }
    419 	  /^X\/\(\/\).*/{
    420 	    s//\1/
    421 	    q
    422 	  }
    423 	  s/.*/./; q'`
    424 
    425 # Avoid depending upon Character Ranges.
    426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    429 as_cr_digits='0123456789'
    430 as_cr_alnum=$as_cr_Letters$as_cr_digits
    431 
    432 
    433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    438   sed -n '
    439     p
    440     /[$]LINENO/=
    441   ' <$as_myself |
    442     sed '
    443       s/[$]LINENO.*/&-/
    444       t lineno
    445       b
    446       :lineno
    447       N
    448       :loop
    449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    450       t loop
    451       s/-\n.*//
    452     ' >$as_me.lineno &&
    453   chmod +x "$as_me.lineno" ||
    454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    455 
    456   # Don't try to exec as it changes $[0], causing all sort of problems
    457   # (the dirname of $[0] is not the place where we might find the
    458   # original and so on.  Autoconf is especially sensitive to this).
    459   . "./$as_me.lineno"
    460   # Exit status is that of the last command.
    461   exit
    462 }
    463 
    464 ECHO_C= ECHO_N= ECHO_T=
    465 case `echo -n x` in #(((((
    466 -n*)
    467   case `echo 'xy\c'` in
    468   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    469   xy)  ECHO_C='\c';;
    470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    471        ECHO_T='	';;
    472   esac;;
    473 *)
    474   ECHO_N='-n';;
    475 esac
    476 
    477 rm -f conf$$ conf$$.exe conf$$.file
    478 if test -d conf$$.dir; then
    479   rm -f conf$$.dir/conf$$.file
    480 else
    481   rm -f conf$$.dir
    482   mkdir conf$$.dir 2>/dev/null
    483 fi
    484 if (echo >conf$$.file) 2>/dev/null; then
    485   if ln -s conf$$.file conf$$ 2>/dev/null; then
    486     as_ln_s='ln -s'
    487     # ... but there are two gotchas:
    488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    490     # In both cases, we have to default to `cp -p'.
    491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    492       as_ln_s='cp -p'
    493   elif ln conf$$.file conf$$ 2>/dev/null; then
    494     as_ln_s=ln
    495   else
    496     as_ln_s='cp -p'
    497   fi
    498 else
    499   as_ln_s='cp -p'
    500 fi
    501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    502 rmdir conf$$.dir 2>/dev/null
    503 
    504 if mkdir -p . 2>/dev/null; then
    505   as_mkdir_p='mkdir -p "$as_dir"'
    506 else
    507   test -d ./-p && rmdir ./-p
    508   as_mkdir_p=false
    509 fi
    510 
    511 if test -x / >/dev/null 2>&1; then
    512   as_test_x='test -x'
    513 else
    514   if ls -dL / >/dev/null 2>&1; then
    515     as_ls_L_option=L
    516   else
    517     as_ls_L_option=
    518   fi
    519   as_test_x='
    520     eval sh -c '\''
    521       if test -d "$1"; then
    522 	test -d "$1/.";
    523       else
    524 	case $1 in #(
    525 	-*)set "./$1";;
    526 	esac;
    527 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    528 	???[sx]*):;;*)false;;esac;fi
    529     '\'' sh
    530   '
    531 fi
    532 as_executable_p=$as_test_x
    533 
    534 # Sed expression to map a string onto a valid CPP name.
    535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    536 
    537 # Sed expression to map a string onto a valid variable name.
    538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    539 
    540 
    541 test -n "$DJDIR" || exec 7<&0 </dev/null
    542 exec 6>&1
    543 
    544 # Name of the host.
    545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    546 # so uname gets run too.
    547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    548 
    549 #
    550 # Initializations.
    551 #
    552 ac_default_prefix=/usr/local
    553 ac_clean_files=
    554 ac_config_libobj_dir=.
    555 LIBOBJS=
    556 cross_compiling=no
    557 subdirs=
    558 MFLAGS=
    559 MAKEFLAGS=
    560 
    561 # Identity of this package.
    562 PACKAGE_NAME='xsm'
    563 PACKAGE_TARNAME='xsm'
    564 PACKAGE_VERSION='1.0.2'
    565 PACKAGE_STRING='xsm 1.0.2'
    566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
    567 PACKAGE_URL=''
    568 
    569 # Factoring default headers for most tests.
    570 ac_includes_default="\
    571 #include <stdio.h>
    572 #ifdef HAVE_SYS_TYPES_H
    573 # include <sys/types.h>
    574 #endif
    575 #ifdef HAVE_SYS_STAT_H
    576 # include <sys/stat.h>
    577 #endif
    578 #ifdef STDC_HEADERS
    579 # include <stdlib.h>
    580 # include <stddef.h>
    581 #else
    582 # ifdef HAVE_STDLIB_H
    583 #  include <stdlib.h>
    584 # endif
    585 #endif
    586 #ifdef HAVE_STRING_H
    587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    588 #  include <memory.h>
    589 # endif
    590 # include <string.h>
    591 #endif
    592 #ifdef HAVE_STRINGS_H
    593 # include <strings.h>
    594 #endif
    595 #ifdef HAVE_INTTYPES_H
    596 # include <inttypes.h>
    597 #endif
    598 #ifdef HAVE_STDINT_H
    599 # include <stdint.h>
    600 #endif
    601 #ifdef HAVE_UNISTD_H
    602 # include <unistd.h>
    603 #endif"
    604 
    605 ac_subst_vars='am__EXEEXT_FALSE
    606 am__EXEEXT_TRUE
    607 LTLIBOBJS
    608 LIBOBJS
    609 appdefaultdir
    610 XSM_LIBS
    611 XSM_CFLAGS
    612 RSH
    613 AM_BACKSLASH
    614 AM_DEFAULT_VERBOSITY
    615 MAN_SUBSTS
    616 XORG_MAN_PAGE
    617 ADMIN_MAN_DIR
    618 DRIVER_MAN_DIR
    619 MISC_MAN_DIR
    620 FILE_MAN_DIR
    621 LIB_MAN_DIR
    622 APP_MAN_DIR
    623 ADMIN_MAN_SUFFIX
    624 DRIVER_MAN_SUFFIX
    625 MISC_MAN_SUFFIX
    626 FILE_MAN_SUFFIX
    627 LIB_MAN_SUFFIX
    628 APP_MAN_SUFFIX
    629 SED
    630 host_os
    631 host_vendor
    632 host_cpu
    633 host
    634 build_os
    635 build_vendor
    636 build_cpu
    637 build
    638 INSTALL_CMD
    639 PKG_CONFIG
    640 CHANGELOG_CMD
    641 CWARNFLAGS
    642 EGREP
    643 GREP
    644 CPP
    645 am__fastdepCC_FALSE
    646 am__fastdepCC_TRUE
    647 CCDEPMODE
    648 AMDEPBACKSLASH
    649 AMDEP_FALSE
    650 AMDEP_TRUE
    651 am__quote
    652 am__include
    653 DEPDIR
    654 OBJEXT
    655 EXEEXT
    656 ac_ct_CC
    657 CPPFLAGS
    658 LDFLAGS
    659 CFLAGS
    660 CC
    661 MAINT
    662 MAINTAINER_MODE_FALSE
    663 MAINTAINER_MODE_TRUE
    664 am__untar
    665 am__tar
    666 AMTAR
    667 am__leading_dot
    668 SET_MAKE
    669 AWK
    670 mkdir_p
    671 MKDIR_P
    672 INSTALL_STRIP_PROGRAM
    673 STRIP
    674 install_sh
    675 MAKEINFO
    676 AUTOHEADER
    677 AUTOMAKE
    678 AUTOCONF
    679 ACLOCAL
    680 VERSION
    681 PACKAGE
    682 CYGPATH_W
    683 am__isrc
    684 INSTALL_DATA
    685 INSTALL_SCRIPT
    686 INSTALL_PROGRAM
    687 target_alias
    688 host_alias
    689 build_alias
    690 LIBS
    691 ECHO_T
    692 ECHO_N
    693 ECHO_C
    694 DEFS
    695 mandir
    696 localedir
    697 libdir
    698 psdir
    699 pdfdir
    700 dvidir
    701 htmldir
    702 infodir
    703 docdir
    704 oldincludedir
    705 includedir
    706 localstatedir
    707 sharedstatedir
    708 sysconfdir
    709 datadir
    710 datarootdir
    711 libexecdir
    712 sbindir
    713 bindir
    714 program_transform_name
    715 prefix
    716 exec_prefix
    717 PACKAGE_URL
    718 PACKAGE_BUGREPORT
    719 PACKAGE_STRING
    720 PACKAGE_VERSION
    721 PACKAGE_TARNAME
    722 PACKAGE_NAME
    723 PATH_SEPARATOR
    724 SHELL'
    725 ac_subst_files=''
    726 ac_user_opts='
    727 enable_option_checking
    728 enable_maintainer_mode
    729 enable_dependency_tracking
    730 enable_strict_compilation
    731 enable_silent_rules
    732 with_rsh
    733 with_appdefaultdir
    734 '
    735       ac_precious_vars='build_alias
    736 host_alias
    737 target_alias
    738 CC
    739 CFLAGS
    740 LDFLAGS
    741 LIBS
    742 CPPFLAGS
    743 CPP
    744 PKG_CONFIG
    745 XSM_CFLAGS
    746 XSM_LIBS'
    747 
    748 
    749 # Initialize some variables set by options.
    750 ac_init_help=
    751 ac_init_version=false
    752 ac_unrecognized_opts=
    753 ac_unrecognized_sep=
    754 # The variables have the same names as the options, with
    755 # dashes changed to underlines.
    756 cache_file=/dev/null
    757 exec_prefix=NONE
    758 no_create=
    759 no_recursion=
    760 prefix=NONE
    761 program_prefix=NONE
    762 program_suffix=NONE
    763 program_transform_name=s,x,x,
    764 silent=
    765 site=
    766 srcdir=
    767 verbose=
    768 x_includes=NONE
    769 x_libraries=NONE
    770 
    771 # Installation directory options.
    772 # These are left unexpanded so users can "make install exec_prefix=/foo"
    773 # and all the variables that are supposed to be based on exec_prefix
    774 # by default will actually change.
    775 # Use braces instead of parens because sh, perl, etc. also accept them.
    776 # (The list follows the same order as the GNU Coding Standards.)
    777 bindir='${exec_prefix}/bin'
    778 sbindir='${exec_prefix}/sbin'
    779 libexecdir='${exec_prefix}/libexec'
    780 datarootdir='${prefix}/share'
    781 datadir='${datarootdir}'
    782 sysconfdir='${prefix}/etc'
    783 sharedstatedir='${prefix}/com'
    784 localstatedir='${prefix}/var'
    785 includedir='${prefix}/include'
    786 oldincludedir='/usr/include'
    787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    788 infodir='${datarootdir}/info'
    789 htmldir='${docdir}'
    790 dvidir='${docdir}'
    791 pdfdir='${docdir}'
    792 psdir='${docdir}'
    793 libdir='${exec_prefix}/lib'
    794 localedir='${datarootdir}/locale'
    795 mandir='${datarootdir}/man'
    796 
    797 ac_prev=
    798 ac_dashdash=
    799 for ac_option
    800 do
    801   # If the previous option needs an argument, assign it.
    802   if test -n "$ac_prev"; then
    803     eval $ac_prev=\$ac_option
    804     ac_prev=
    805     continue
    806   fi
    807 
    808   case $ac_option in
    809   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    810   *=)   ac_optarg= ;;
    811   *)    ac_optarg=yes ;;
    812   esac
    813 
    814   # Accept the important Cygnus configure options, so we can diagnose typos.
    815 
    816   case $ac_dashdash$ac_option in
    817   --)
    818     ac_dashdash=yes ;;
    819 
    820   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    821     ac_prev=bindir ;;
    822   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    823     bindir=$ac_optarg ;;
    824 
    825   -build | --build | --buil | --bui | --bu)
    826     ac_prev=build_alias ;;
    827   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    828     build_alias=$ac_optarg ;;
    829 
    830   -cache-file | --cache-file | --cache-fil | --cache-fi \
    831   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    832     ac_prev=cache_file ;;
    833   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    834   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    835     cache_file=$ac_optarg ;;
    836 
    837   --config-cache | -C)
    838     cache_file=config.cache ;;
    839 
    840   -datadir | --datadir | --datadi | --datad)
    841     ac_prev=datadir ;;
    842   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    843     datadir=$ac_optarg ;;
    844 
    845   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    846   | --dataroo | --dataro | --datar)
    847     ac_prev=datarootdir ;;
    848   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    849   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    850     datarootdir=$ac_optarg ;;
    851 
    852   -disable-* | --disable-*)
    853     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    854     # Reject names that are not valid shell variable names.
    855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    856       as_fn_error $? "invalid feature name: $ac_useropt"
    857     ac_useropt_orig=$ac_useropt
    858     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    859     case $ac_user_opts in
    860       *"
    861 "enable_$ac_useropt"
    862 "*) ;;
    863       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    864 	 ac_unrecognized_sep=', ';;
    865     esac
    866     eval enable_$ac_useropt=no ;;
    867 
    868   -docdir | --docdir | --docdi | --doc | --do)
    869     ac_prev=docdir ;;
    870   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    871     docdir=$ac_optarg ;;
    872 
    873   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    874     ac_prev=dvidir ;;
    875   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    876     dvidir=$ac_optarg ;;
    877 
    878   -enable-* | --enable-*)
    879     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    880     # Reject names that are not valid shell variable names.
    881     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    882       as_fn_error $? "invalid feature name: $ac_useropt"
    883     ac_useropt_orig=$ac_useropt
    884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    885     case $ac_user_opts in
    886       *"
    887 "enable_$ac_useropt"
    888 "*) ;;
    889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    890 	 ac_unrecognized_sep=', ';;
    891     esac
    892     eval enable_$ac_useropt=\$ac_optarg ;;
    893 
    894   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    895   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    896   | --exec | --exe | --ex)
    897     ac_prev=exec_prefix ;;
    898   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    899   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    900   | --exec=* | --exe=* | --ex=*)
    901     exec_prefix=$ac_optarg ;;
    902 
    903   -gas | --gas | --ga | --g)
    904     # Obsolete; use --with-gas.
    905     with_gas=yes ;;
    906 
    907   -help | --help | --hel | --he | -h)
    908     ac_init_help=long ;;
    909   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    910     ac_init_help=recursive ;;
    911   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    912     ac_init_help=short ;;
    913 
    914   -host | --host | --hos | --ho)
    915     ac_prev=host_alias ;;
    916   -host=* | --host=* | --hos=* | --ho=*)
    917     host_alias=$ac_optarg ;;
    918 
    919   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    920     ac_prev=htmldir ;;
    921   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    922   | --ht=*)
    923     htmldir=$ac_optarg ;;
    924 
    925   -includedir | --includedir | --includedi | --included | --include \
    926   | --includ | --inclu | --incl | --inc)
    927     ac_prev=includedir ;;
    928   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    929   | --includ=* | --inclu=* | --incl=* | --inc=*)
    930     includedir=$ac_optarg ;;
    931 
    932   -infodir | --infodir | --infodi | --infod | --info | --inf)
    933     ac_prev=infodir ;;
    934   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    935     infodir=$ac_optarg ;;
    936 
    937   -libdir | --libdir | --libdi | --libd)
    938     ac_prev=libdir ;;
    939   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    940     libdir=$ac_optarg ;;
    941 
    942   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    943   | --libexe | --libex | --libe)
    944     ac_prev=libexecdir ;;
    945   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    946   | --libexe=* | --libex=* | --libe=*)
    947     libexecdir=$ac_optarg ;;
    948 
    949   -localedir | --localedir | --localedi | --localed | --locale)
    950     ac_prev=localedir ;;
    951   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    952     localedir=$ac_optarg ;;
    953 
    954   -localstatedir | --localstatedir | --localstatedi | --localstated \
    955   | --localstate | --localstat | --localsta | --localst | --locals)
    956     ac_prev=localstatedir ;;
    957   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    958   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    959     localstatedir=$ac_optarg ;;
    960 
    961   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    962     ac_prev=mandir ;;
    963   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    964     mandir=$ac_optarg ;;
    965 
    966   -nfp | --nfp | --nf)
    967     # Obsolete; use --without-fp.
    968     with_fp=no ;;
    969 
    970   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    971   | --no-cr | --no-c | -n)
    972     no_create=yes ;;
    973 
    974   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    975   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    976     no_recursion=yes ;;
    977 
    978   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    979   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    980   | --oldin | --oldi | --old | --ol | --o)
    981     ac_prev=oldincludedir ;;
    982   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    983   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    984   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    985     oldincludedir=$ac_optarg ;;
    986 
    987   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    988     ac_prev=prefix ;;
    989   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    990     prefix=$ac_optarg ;;
    991 
    992   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    993   | --program-pre | --program-pr | --program-p)
    994     ac_prev=program_prefix ;;
    995   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    996   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    997     program_prefix=$ac_optarg ;;
    998 
    999   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1000   | --program-suf | --program-su | --program-s)
   1001     ac_prev=program_suffix ;;
   1002   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1003   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1004     program_suffix=$ac_optarg ;;
   1005 
   1006   -program-transform-name | --program-transform-name \
   1007   | --program-transform-nam | --program-transform-na \
   1008   | --program-transform-n | --program-transform- \
   1009   | --program-transform | --program-transfor \
   1010   | --program-transfo | --program-transf \
   1011   | --program-trans | --program-tran \
   1012   | --progr-tra | --program-tr | --program-t)
   1013     ac_prev=program_transform_name ;;
   1014   -program-transform-name=* | --program-transform-name=* \
   1015   | --program-transform-nam=* | --program-transform-na=* \
   1016   | --program-transform-n=* | --program-transform-=* \
   1017   | --program-transform=* | --program-transfor=* \
   1018   | --program-transfo=* | --program-transf=* \
   1019   | --program-trans=* | --program-tran=* \
   1020   | --progr-tra=* | --program-tr=* | --program-t=*)
   1021     program_transform_name=$ac_optarg ;;
   1022 
   1023   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1024     ac_prev=pdfdir ;;
   1025   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1026     pdfdir=$ac_optarg ;;
   1027 
   1028   -psdir | --psdir | --psdi | --psd | --ps)
   1029     ac_prev=psdir ;;
   1030   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1031     psdir=$ac_optarg ;;
   1032 
   1033   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1034   | -silent | --silent | --silen | --sile | --sil)
   1035     silent=yes ;;
   1036 
   1037   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1038     ac_prev=sbindir ;;
   1039   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1040   | --sbi=* | --sb=*)
   1041     sbindir=$ac_optarg ;;
   1042 
   1043   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1044   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1045   | --sharedst | --shareds | --shared | --share | --shar \
   1046   | --sha | --sh)
   1047     ac_prev=sharedstatedir ;;
   1048   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1049   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1050   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1051   | --sha=* | --sh=*)
   1052     sharedstatedir=$ac_optarg ;;
   1053 
   1054   -site | --site | --sit)
   1055     ac_prev=site ;;
   1056   -site=* | --site=* | --sit=*)
   1057     site=$ac_optarg ;;
   1058 
   1059   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1060     ac_prev=srcdir ;;
   1061   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1062     srcdir=$ac_optarg ;;
   1063 
   1064   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1065   | --syscon | --sysco | --sysc | --sys | --sy)
   1066     ac_prev=sysconfdir ;;
   1067   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1068   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1069     sysconfdir=$ac_optarg ;;
   1070 
   1071   -target | --target | --targe | --targ | --tar | --ta | --t)
   1072     ac_prev=target_alias ;;
   1073   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1074     target_alias=$ac_optarg ;;
   1075 
   1076   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1077     verbose=yes ;;
   1078 
   1079   -version | --version | --versio | --versi | --vers | -V)
   1080     ac_init_version=: ;;
   1081 
   1082   -with-* | --with-*)
   1083     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1084     # Reject names that are not valid shell variable names.
   1085     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1086       as_fn_error $? "invalid package name: $ac_useropt"
   1087     ac_useropt_orig=$ac_useropt
   1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1089     case $ac_user_opts in
   1090       *"
   1091 "with_$ac_useropt"
   1092 "*) ;;
   1093       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1094 	 ac_unrecognized_sep=', ';;
   1095     esac
   1096     eval with_$ac_useropt=\$ac_optarg ;;
   1097 
   1098   -without-* | --without-*)
   1099     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1100     # Reject names that are not valid shell variable names.
   1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1102       as_fn_error $? "invalid package name: $ac_useropt"
   1103     ac_useropt_orig=$ac_useropt
   1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1105     case $ac_user_opts in
   1106       *"
   1107 "with_$ac_useropt"
   1108 "*) ;;
   1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1110 	 ac_unrecognized_sep=', ';;
   1111     esac
   1112     eval with_$ac_useropt=no ;;
   1113 
   1114   --x)
   1115     # Obsolete; use --with-x.
   1116     with_x=yes ;;
   1117 
   1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1119   | --x-incl | --x-inc | --x-in | --x-i)
   1120     ac_prev=x_includes ;;
   1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1123     x_includes=$ac_optarg ;;
   1124 
   1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1127     ac_prev=x_libraries ;;
   1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1130     x_libraries=$ac_optarg ;;
   1131 
   1132   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1133 Try \`$0 --help' for more information"
   1134     ;;
   1135 
   1136   *=*)
   1137     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1138     # Reject names that are not valid shell variable names.
   1139     case $ac_envvar in #(
   1140       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1141       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1142     esac
   1143     eval $ac_envvar=\$ac_optarg
   1144     export $ac_envvar ;;
   1145 
   1146   *)
   1147     # FIXME: should be removed in autoconf 3.0.
   1148     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1150       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1151     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1152     ;;
   1153 
   1154   esac
   1155 done
   1156 
   1157 if test -n "$ac_prev"; then
   1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1159   as_fn_error $? "missing argument to $ac_option"
   1160 fi
   1161 
   1162 if test -n "$ac_unrecognized_opts"; then
   1163   case $enable_option_checking in
   1164     no) ;;
   1165     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1166     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1167   esac
   1168 fi
   1169 
   1170 # Check all directory arguments for consistency.
   1171 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1172 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1173 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1174 		libdir localedir mandir
   1175 do
   1176   eval ac_val=\$$ac_var
   1177   # Remove trailing slashes.
   1178   case $ac_val in
   1179     */ )
   1180       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1181       eval $ac_var=\$ac_val;;
   1182   esac
   1183   # Be sure to have absolute directory names.
   1184   case $ac_val in
   1185     [\\/$]* | ?:[\\/]* )  continue;;
   1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1187   esac
   1188   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1189 done
   1190 
   1191 # There might be people who depend on the old broken behavior: `$host'
   1192 # used to hold the argument of --host etc.
   1193 # FIXME: To remove some day.
   1194 build=$build_alias
   1195 host=$host_alias
   1196 target=$target_alias
   1197 
   1198 # FIXME: To remove some day.
   1199 if test "x$host_alias" != x; then
   1200   if test "x$build_alias" = x; then
   1201     cross_compiling=maybe
   1202     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
   1203     If a cross compiler is detected then cross compile mode will be used" >&2
   1204   elif test "x$build_alias" != "x$host_alias"; then
   1205     cross_compiling=yes
   1206   fi
   1207 fi
   1208 
   1209 ac_tool_prefix=
   1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1211 
   1212 test "$silent" = yes && exec 6>/dev/null
   1213 
   1214 
   1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1216 ac_ls_di=`ls -di .` &&
   1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1218   as_fn_error $? "working directory cannot be determined"
   1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1220   as_fn_error $? "pwd does not report name of working directory"
   1221 
   1222 
   1223 # Find the source files, if location was not specified.
   1224 if test -z "$srcdir"; then
   1225   ac_srcdir_defaulted=yes
   1226   # Try the directory containing this script, then the parent directory.
   1227   ac_confdir=`$as_dirname -- "$as_myself" ||
   1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1229 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1230 	 X"$as_myself" : 'X\(//\)$' \| \
   1231 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1232 $as_echo X"$as_myself" |
   1233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1234 	    s//\1/
   1235 	    q
   1236 	  }
   1237 	  /^X\(\/\/\)[^/].*/{
   1238 	    s//\1/
   1239 	    q
   1240 	  }
   1241 	  /^X\(\/\/\)$/{
   1242 	    s//\1/
   1243 	    q
   1244 	  }
   1245 	  /^X\(\/\).*/{
   1246 	    s//\1/
   1247 	    q
   1248 	  }
   1249 	  s/.*/./; q'`
   1250   srcdir=$ac_confdir
   1251   if test ! -r "$srcdir/$ac_unique_file"; then
   1252     srcdir=..
   1253   fi
   1254 else
   1255   ac_srcdir_defaulted=no
   1256 fi
   1257 if test ! -r "$srcdir/$ac_unique_file"; then
   1258   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1259   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1260 fi
   1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1262 ac_abs_confdir=`(
   1263 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1264 	pwd)`
   1265 # When building in place, set srcdir=.
   1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1267   srcdir=.
   1268 fi
   1269 # Remove unnecessary trailing slashes from srcdir.
   1270 # Double slashes in file names in object file debugging info
   1271 # mess up M-x gdb in Emacs.
   1272 case $srcdir in
   1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1274 esac
   1275 for ac_var in $ac_precious_vars; do
   1276   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1277   eval ac_env_${ac_var}_value=\$${ac_var}
   1278   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1279   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1280 done
   1281 
   1282 #
   1283 # Report the --help message.
   1284 #
   1285 if test "$ac_init_help" = "long"; then
   1286   # Omit some internal or obsolete options to make the list less imposing.
   1287   # This message is too long to be a string in the A/UX 3.1 sh.
   1288   cat <<_ACEOF
   1289 \`configure' configures xsm 1.0.2 to adapt to many kinds of systems.
   1290 
   1291 Usage: $0 [OPTION]... [VAR=VALUE]...
   1292 
   1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1294 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1295 
   1296 Defaults for the options are specified in brackets.
   1297 
   1298 Configuration:
   1299   -h, --help              display this help and exit
   1300       --help=short        display options specific to this package
   1301       --help=recursive    display the short help of all the included packages
   1302   -V, --version           display version information and exit
   1303   -q, --quiet, --silent   do not print \`checking ...' messages
   1304       --cache-file=FILE   cache test results in FILE [disabled]
   1305   -C, --config-cache      alias for \`--cache-file=config.cache'
   1306   -n, --no-create         do not create output files
   1307       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1308 
   1309 Installation directories:
   1310   --prefix=PREFIX         install architecture-independent files in PREFIX
   1311                           [$ac_default_prefix]
   1312   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1313                           [PREFIX]
   1314 
   1315 By default, \`make install' will install all the files in
   1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1318 for instance \`--prefix=\$HOME'.
   1319 
   1320 For better control, use the options below.
   1321 
   1322 Fine tuning of the installation directories:
   1323   --bindir=DIR            user executables [EPREFIX/bin]
   1324   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1325   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1326   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1327   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1328   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1329   --libdir=DIR            object code libraries [EPREFIX/lib]
   1330   --includedir=DIR        C header files [PREFIX/include]
   1331   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1332   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1333   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1334   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1335   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1336   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1337   --docdir=DIR            documentation root [DATAROOTDIR/doc/xsm]
   1338   --htmldir=DIR           html documentation [DOCDIR]
   1339   --dvidir=DIR            dvi documentation [DOCDIR]
   1340   --pdfdir=DIR            pdf documentation [DOCDIR]
   1341   --psdir=DIR             ps documentation [DOCDIR]
   1342 _ACEOF
   1343 
   1344   cat <<\_ACEOF
   1345 
   1346 Program names:
   1347   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1348   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1349   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1350 
   1351 System types:
   1352   --build=BUILD     configure for building on BUILD [guessed]
   1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1354 _ACEOF
   1355 fi
   1356 
   1357 if test -n "$ac_init_help"; then
   1358   case $ac_init_help in
   1359      short | recursive ) echo "Configuration of xsm 1.0.2:";;
   1360    esac
   1361   cat <<\_ACEOF
   1362 
   1363 Optional Features:
   1364   --disable-option-checking  ignore unrecognized --enable/--with options
   1365   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1366   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1367   --enable-maintainer-mode  enable make rules and dependencies not useful
   1368 			  (and sometimes confusing) to the casual installer
   1369   --disable-dependency-tracking  speeds up one-time build
   1370   --enable-dependency-tracking   do not reject slow dependency extractors
   1371   --enable-strict-compilation
   1372                           Enable all warnings from compiler and make them
   1373                           errors (default: disabled)
   1374   --enable-silent-rules          less verbose build output (undo: `make V=1')
   1375   --disable-silent-rules         verbose build output (undo: `make V=0')
   1376 
   1377 Optional Packages:
   1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1380   --with-rsh=PATH         Rsh command to use (default: $bindir/ssh)
   1381   --with-appdefaultdir=<pathname>
   1382                           specify directory for app-defaults files (default is
   1383                           autodetected)
   1384 
   1385 Some influential environment variables:
   1386   CC          C compiler command
   1387   CFLAGS      C compiler flags
   1388   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1389               nonstandard directory <lib dir>
   1390   LIBS        libraries to pass to the linker, e.g. -l<library>
   1391   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1392               you have headers in a nonstandard directory <include dir>
   1393   CPP         C preprocessor
   1394   PKG_CONFIG  path to pkg-config utility
   1395   XSM_CFLAGS  C compiler flags for XSM, overriding pkg-config
   1396   XSM_LIBS    linker flags for XSM, overriding pkg-config
   1397 
   1398 Use these variables to override the choices made by `configure' or to help
   1399 it to find libraries and programs with nonstandard names/locations.
   1400 
   1401 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
   1402 _ACEOF
   1403 ac_status=$?
   1404 fi
   1405 
   1406 if test "$ac_init_help" = "recursive"; then
   1407   # If there are subdirs, report their specific --help.
   1408   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1409     test -d "$ac_dir" ||
   1410       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1411       continue
   1412     ac_builddir=.
   1413 
   1414 case "$ac_dir" in
   1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1416 *)
   1417   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1418   # A ".." for each directory in $ac_dir_suffix.
   1419   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1420   case $ac_top_builddir_sub in
   1421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1423   esac ;;
   1424 esac
   1425 ac_abs_top_builddir=$ac_pwd
   1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1427 # for backward compatibility:
   1428 ac_top_builddir=$ac_top_build_prefix
   1429 
   1430 case $srcdir in
   1431   .)  # We are building in place.
   1432     ac_srcdir=.
   1433     ac_top_srcdir=$ac_top_builddir_sub
   1434     ac_abs_top_srcdir=$ac_pwd ;;
   1435   [\\/]* | ?:[\\/]* )  # Absolute name.
   1436     ac_srcdir=$srcdir$ac_dir_suffix;
   1437     ac_top_srcdir=$srcdir
   1438     ac_abs_top_srcdir=$srcdir ;;
   1439   *) # Relative name.
   1440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1441     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1443 esac
   1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1445 
   1446     cd "$ac_dir" || { ac_status=$?; continue; }
   1447     # Check for guested configure.
   1448     if test -f "$ac_srcdir/configure.gnu"; then
   1449       echo &&
   1450       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1451     elif test -f "$ac_srcdir/configure"; then
   1452       echo &&
   1453       $SHELL "$ac_srcdir/configure" --help=recursive
   1454     else
   1455       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1456     fi || ac_status=$?
   1457     cd "$ac_pwd" || { ac_status=$?; break; }
   1458   done
   1459 fi
   1460 
   1461 test -n "$ac_init_help" && exit $ac_status
   1462 if $ac_init_version; then
   1463   cat <<\_ACEOF
   1464 xsm configure 1.0.2
   1465 generated by GNU Autoconf 2.68
   1466 
   1467 Copyright (C) 2010 Free Software Foundation, Inc.
   1468 This configure script is free software; the Free Software Foundation
   1469 gives unlimited permission to copy, distribute and modify it.
   1470 _ACEOF
   1471   exit
   1472 fi
   1473 
   1474 ## ------------------------ ##
   1475 ## Autoconf initialization. ##
   1476 ## ------------------------ ##
   1477 
   1478 # ac_fn_c_try_compile LINENO
   1479 # --------------------------
   1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1481 ac_fn_c_try_compile ()
   1482 {
   1483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1484   rm -f conftest.$ac_objext
   1485   if { { ac_try="$ac_compile"
   1486 case "(($ac_try" in
   1487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1488   *) ac_try_echo=$ac_try;;
   1489 esac
   1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1491 $as_echo "$ac_try_echo"; } >&5
   1492   (eval "$ac_compile") 2>conftest.err
   1493   ac_status=$?
   1494   if test -s conftest.err; then
   1495     grep -v '^ *+' conftest.err >conftest.er1
   1496     cat conftest.er1 >&5
   1497     mv -f conftest.er1 conftest.err
   1498   fi
   1499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1500   test $ac_status = 0; } && {
   1501 	 test -z "$ac_c_werror_flag" ||
   1502 	 test ! -s conftest.err
   1503        } && test -s conftest.$ac_objext; then :
   1504   ac_retval=0
   1505 else
   1506   $as_echo "$as_me: failed program was:" >&5
   1507 sed 's/^/| /' conftest.$ac_ext >&5
   1508 
   1509 	ac_retval=1
   1510 fi
   1511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1512   as_fn_set_status $ac_retval
   1513 
   1514 } # ac_fn_c_try_compile
   1515 
   1516 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1517 # ---------------------------------------------
   1518 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1519 # accordingly.
   1520 ac_fn_c_check_decl ()
   1521 {
   1522   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1523   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1524   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1526 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1527 if eval \${$3+:} false; then :
   1528   $as_echo_n "(cached) " >&6
   1529 else
   1530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1531 /* end confdefs.h.  */
   1532 $4
   1533 int
   1534 main ()
   1535 {
   1536 #ifndef $as_decl_name
   1537 #ifdef __cplusplus
   1538   (void) $as_decl_use;
   1539 #else
   1540   (void) $as_decl_name;
   1541 #endif
   1542 #endif
   1543 
   1544   ;
   1545   return 0;
   1546 }
   1547 _ACEOF
   1548 if ac_fn_c_try_compile "$LINENO"; then :
   1549   eval "$3=yes"
   1550 else
   1551   eval "$3=no"
   1552 fi
   1553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1554 fi
   1555 eval ac_res=\$$3
   1556 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1557 $as_echo "$ac_res" >&6; }
   1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1559 
   1560 } # ac_fn_c_check_decl
   1561 
   1562 # ac_fn_c_try_cpp LINENO
   1563 # ----------------------
   1564 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1565 ac_fn_c_try_cpp ()
   1566 {
   1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1568   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1569 case "(($ac_try" in
   1570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1571   *) ac_try_echo=$ac_try;;
   1572 esac
   1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1574 $as_echo "$ac_try_echo"; } >&5
   1575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1576   ac_status=$?
   1577   if test -s conftest.err; then
   1578     grep -v '^ *+' conftest.err >conftest.er1
   1579     cat conftest.er1 >&5
   1580     mv -f conftest.er1 conftest.err
   1581   fi
   1582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1583   test $ac_status = 0; } > conftest.i && {
   1584 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1585 	 test ! -s conftest.err
   1586        }; then :
   1587   ac_retval=0
   1588 else
   1589   $as_echo "$as_me: failed program was:" >&5
   1590 sed 's/^/| /' conftest.$ac_ext >&5
   1591 
   1592     ac_retval=1
   1593 fi
   1594   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1595   as_fn_set_status $ac_retval
   1596 
   1597 } # ac_fn_c_try_cpp
   1598 
   1599 # ac_fn_c_try_run LINENO
   1600 # ----------------------
   1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1602 # that executables *can* be run.
   1603 ac_fn_c_try_run ()
   1604 {
   1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1606   if { { ac_try="$ac_link"
   1607 case "(($ac_try" in
   1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1609   *) ac_try_echo=$ac_try;;
   1610 esac
   1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1612 $as_echo "$ac_try_echo"; } >&5
   1613   (eval "$ac_link") 2>&5
   1614   ac_status=$?
   1615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1616   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1617   { { case "(($ac_try" in
   1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1619   *) ac_try_echo=$ac_try;;
   1620 esac
   1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1622 $as_echo "$ac_try_echo"; } >&5
   1623   (eval "$ac_try") 2>&5
   1624   ac_status=$?
   1625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1626   test $ac_status = 0; }; }; then :
   1627   ac_retval=0
   1628 else
   1629   $as_echo "$as_me: program exited with status $ac_status" >&5
   1630        $as_echo "$as_me: failed program was:" >&5
   1631 sed 's/^/| /' conftest.$ac_ext >&5
   1632 
   1633        ac_retval=$ac_status
   1634 fi
   1635   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1637   as_fn_set_status $ac_retval
   1638 
   1639 } # ac_fn_c_try_run
   1640 
   1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1642 # -------------------------------------------------------
   1643 # Tests whether HEADER exists and can be compiled using the include files in
   1644 # INCLUDES, setting the cache variable VAR accordingly.
   1645 ac_fn_c_check_header_compile ()
   1646 {
   1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1649 $as_echo_n "checking for $2... " >&6; }
   1650 if eval \${$3+:} false; then :
   1651   $as_echo_n "(cached) " >&6
   1652 else
   1653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1654 /* end confdefs.h.  */
   1655 $4
   1656 #include <$2>
   1657 _ACEOF
   1658 if ac_fn_c_try_compile "$LINENO"; then :
   1659   eval "$3=yes"
   1660 else
   1661   eval "$3=no"
   1662 fi
   1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1664 fi
   1665 eval ac_res=\$$3
   1666 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1667 $as_echo "$ac_res" >&6; }
   1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1669 
   1670 } # ac_fn_c_check_header_compile
   1671 
   1672 # ac_fn_c_try_link LINENO
   1673 # -----------------------
   1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1675 ac_fn_c_try_link ()
   1676 {
   1677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1678   rm -f conftest.$ac_objext conftest$ac_exeext
   1679   if { { ac_try="$ac_link"
   1680 case "(($ac_try" in
   1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1682   *) ac_try_echo=$ac_try;;
   1683 esac
   1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1685 $as_echo "$ac_try_echo"; } >&5
   1686   (eval "$ac_link") 2>conftest.err
   1687   ac_status=$?
   1688   if test -s conftest.err; then
   1689     grep -v '^ *+' conftest.err >conftest.er1
   1690     cat conftest.er1 >&5
   1691     mv -f conftest.er1 conftest.err
   1692   fi
   1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1694   test $ac_status = 0; } && {
   1695 	 test -z "$ac_c_werror_flag" ||
   1696 	 test ! -s conftest.err
   1697        } && test -s conftest$ac_exeext && {
   1698 	 test "$cross_compiling" = yes ||
   1699 	 $as_test_x conftest$ac_exeext
   1700        }; then :
   1701   ac_retval=0
   1702 else
   1703   $as_echo "$as_me: failed program was:" >&5
   1704 sed 's/^/| /' conftest.$ac_ext >&5
   1705 
   1706 	ac_retval=1
   1707 fi
   1708   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1709   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1710   # interfere with the next link command; also delete a directory that is
   1711   # left behind by Apple's compiler.  We do this before executing the actions.
   1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1714   as_fn_set_status $ac_retval
   1715 
   1716 } # ac_fn_c_try_link
   1717 
   1718 # ac_fn_c_check_func LINENO FUNC VAR
   1719 # ----------------------------------
   1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1721 ac_fn_c_check_func ()
   1722 {
   1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1725 $as_echo_n "checking for $2... " >&6; }
   1726 if eval \${$3+:} false; then :
   1727   $as_echo_n "(cached) " >&6
   1728 else
   1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1730 /* end confdefs.h.  */
   1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1733 #define $2 innocuous_$2
   1734 
   1735 /* System header to define __stub macros and hopefully few prototypes,
   1736     which can conflict with char $2 (); below.
   1737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1738     <limits.h> exists even on freestanding compilers.  */
   1739 
   1740 #ifdef __STDC__
   1741 # include <limits.h>
   1742 #else
   1743 # include <assert.h>
   1744 #endif
   1745 
   1746 #undef $2
   1747 
   1748 /* Override any GCC internal prototype to avoid an error.
   1749    Use char because int might match the return type of a GCC
   1750    builtin and then its argument prototype would still apply.  */
   1751 #ifdef __cplusplus
   1752 extern "C"
   1753 #endif
   1754 char $2 ();
   1755 /* The GNU C library defines this for functions which it implements
   1756     to always fail with ENOSYS.  Some functions are actually named
   1757     something starting with __ and the normal name is an alias.  */
   1758 #if defined __stub_$2 || defined __stub___$2
   1759 choke me
   1760 #endif
   1761 
   1762 int
   1763 main ()
   1764 {
   1765 return $2 ();
   1766   ;
   1767   return 0;
   1768 }
   1769 _ACEOF
   1770 if ac_fn_c_try_link "$LINENO"; then :
   1771   eval "$3=yes"
   1772 else
   1773   eval "$3=no"
   1774 fi
   1775 rm -f core conftest.err conftest.$ac_objext \
   1776     conftest$ac_exeext conftest.$ac_ext
   1777 fi
   1778 eval ac_res=\$$3
   1779 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1780 $as_echo "$ac_res" >&6; }
   1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1782 
   1783 } # ac_fn_c_check_func
   1784 cat >config.log <<_ACEOF
   1785 This file contains any messages produced by compilers while
   1786 running configure, to aid debugging if configure makes a mistake.
   1787 
   1788 It was created by xsm $as_me 1.0.2, which was
   1789 generated by GNU Autoconf 2.68.  Invocation command line was
   1790 
   1791   $ $0 $@
   1792 
   1793 _ACEOF
   1794 exec 5>>config.log
   1795 {
   1796 cat <<_ASUNAME
   1797 ## --------- ##
   1798 ## Platform. ##
   1799 ## --------- ##
   1800 
   1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1806 
   1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1808 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1809 
   1810 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1811 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1813 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1814 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1815 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1816 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1817 
   1818 _ASUNAME
   1819 
   1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1821 for as_dir in $PATH
   1822 do
   1823   IFS=$as_save_IFS
   1824   test -z "$as_dir" && as_dir=.
   1825     $as_echo "PATH: $as_dir"
   1826   done
   1827 IFS=$as_save_IFS
   1828 
   1829 } >&5
   1830 
   1831 cat >&5 <<_ACEOF
   1832 
   1833 
   1834 ## ----------- ##
   1835 ## Core tests. ##
   1836 ## ----------- ##
   1837 
   1838 _ACEOF
   1839 
   1840 
   1841 # Keep a trace of the command line.
   1842 # Strip out --no-create and --no-recursion so they do not pile up.
   1843 # Strip out --silent because we don't want to record it for future runs.
   1844 # Also quote any args containing shell meta-characters.
   1845 # Make two passes to allow for proper duplicate-argument suppression.
   1846 ac_configure_args=
   1847 ac_configure_args0=
   1848 ac_configure_args1=
   1849 ac_must_keep_next=false
   1850 for ac_pass in 1 2
   1851 do
   1852   for ac_arg
   1853   do
   1854     case $ac_arg in
   1855     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1856     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1857     | -silent | --silent | --silen | --sile | --sil)
   1858       continue ;;
   1859     *\'*)
   1860       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1861     esac
   1862     case $ac_pass in
   1863     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1864     2)
   1865       as_fn_append ac_configure_args1 " '$ac_arg'"
   1866       if test $ac_must_keep_next = true; then
   1867 	ac_must_keep_next=false # Got value, back to normal.
   1868       else
   1869 	case $ac_arg in
   1870 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1871 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1872 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1873 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1874 	    case "$ac_configure_args0 " in
   1875 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1876 	    esac
   1877 	    ;;
   1878 	  -* ) ac_must_keep_next=true ;;
   1879 	esac
   1880       fi
   1881       as_fn_append ac_configure_args " '$ac_arg'"
   1882       ;;
   1883     esac
   1884   done
   1885 done
   1886 { ac_configure_args0=; unset ac_configure_args0;}
   1887 { ac_configure_args1=; unset ac_configure_args1;}
   1888 
   1889 # When interrupted or exit'd, cleanup temporary files, and complete
   1890 # config.log.  We remove comments because anyway the quotes in there
   1891 # would cause problems or look ugly.
   1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1894 trap 'exit_status=$?
   1895   # Save into config.log some information that might help in debugging.
   1896   {
   1897     echo
   1898 
   1899     $as_echo "## ---------------- ##
   1900 ## Cache variables. ##
   1901 ## ---------------- ##"
   1902     echo
   1903     # The following way of writing the cache mishandles newlines in values,
   1904 (
   1905   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1906     eval ac_val=\$$ac_var
   1907     case $ac_val in #(
   1908     *${as_nl}*)
   1909       case $ac_var in #(
   1910       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   1911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1912       esac
   1913       case $ac_var in #(
   1914       _ | IFS | as_nl) ;; #(
   1915       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1916       *) { eval $ac_var=; unset $ac_var;} ;;
   1917       esac ;;
   1918     esac
   1919   done
   1920   (set) 2>&1 |
   1921     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1922     *${as_nl}ac_space=\ *)
   1923       sed -n \
   1924 	"s/'\''/'\''\\\\'\'''\''/g;
   1925 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1926       ;; #(
   1927     *)
   1928       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1929       ;;
   1930     esac |
   1931     sort
   1932 )
   1933     echo
   1934 
   1935     $as_echo "## ----------------- ##
   1936 ## Output variables. ##
   1937 ## ----------------- ##"
   1938     echo
   1939     for ac_var in $ac_subst_vars
   1940     do
   1941       eval ac_val=\$$ac_var
   1942       case $ac_val in
   1943       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1944       esac
   1945       $as_echo "$ac_var='\''$ac_val'\''"
   1946     done | sort
   1947     echo
   1948 
   1949     if test -n "$ac_subst_files"; then
   1950       $as_echo "## ------------------- ##
   1951 ## File substitutions. ##
   1952 ## ------------------- ##"
   1953       echo
   1954       for ac_var in $ac_subst_files
   1955       do
   1956 	eval ac_val=\$$ac_var
   1957 	case $ac_val in
   1958 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1959 	esac
   1960 	$as_echo "$ac_var='\''$ac_val'\''"
   1961       done | sort
   1962       echo
   1963     fi
   1964 
   1965     if test -s confdefs.h; then
   1966       $as_echo "## ----------- ##
   1967 ## confdefs.h. ##
   1968 ## ----------- ##"
   1969       echo
   1970       cat confdefs.h
   1971       echo
   1972     fi
   1973     test "$ac_signal" != 0 &&
   1974       $as_echo "$as_me: caught signal $ac_signal"
   1975     $as_echo "$as_me: exit $exit_status"
   1976   } >&5
   1977   rm -f core *.core core.conftest.* &&
   1978     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1979     exit $exit_status
   1980 ' 0
   1981 for ac_signal in 1 2 13 15; do
   1982   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   1983 done
   1984 ac_signal=0
   1985 
   1986 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1987 rm -f -r conftest* confdefs.h
   1988 
   1989 $as_echo "/* confdefs.h */" > confdefs.h
   1990 
   1991 # Predefined preprocessor variables.
   1992 
   1993 cat >>confdefs.h <<_ACEOF
   1994 #define PACKAGE_NAME "$PACKAGE_NAME"
   1995 _ACEOF
   1996 
   1997 cat >>confdefs.h <<_ACEOF
   1998 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1999 _ACEOF
   2000 
   2001 cat >>confdefs.h <<_ACEOF
   2002 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2003 _ACEOF
   2004 
   2005 cat >>confdefs.h <<_ACEOF
   2006 #define PACKAGE_STRING "$PACKAGE_STRING"
   2007 _ACEOF
   2008 
   2009 cat >>confdefs.h <<_ACEOF
   2010 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2011 _ACEOF
   2012 
   2013 cat >>confdefs.h <<_ACEOF
   2014 #define PACKAGE_URL "$PACKAGE_URL"
   2015 _ACEOF
   2016 
   2017 
   2018 # Let the site file select an alternate cache file if it wants to.
   2019 # Prefer an explicitly selected file to automatically selected ones.
   2020 ac_site_file1=NONE
   2021 ac_site_file2=NONE
   2022 if test -n "$CONFIG_SITE"; then
   2023   # We do not want a PATH search for config.site.
   2024   case $CONFIG_SITE in #((
   2025     -*)  ac_site_file1=./$CONFIG_SITE;;
   2026     */*) ac_site_file1=$CONFIG_SITE;;
   2027     *)   ac_site_file1=./$CONFIG_SITE;;
   2028   esac
   2029 elif test "x$prefix" != xNONE; then
   2030   ac_site_file1=$prefix/share/config.site
   2031   ac_site_file2=$prefix/etc/config.site
   2032 else
   2033   ac_site_file1=$ac_default_prefix/share/config.site
   2034   ac_site_file2=$ac_default_prefix/etc/config.site
   2035 fi
   2036 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2037 do
   2038   test "x$ac_site_file" = xNONE && continue
   2039   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2040     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2041 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2042     sed 's/^/| /' "$ac_site_file" >&5
   2043     . "$ac_site_file" \
   2044       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2046 as_fn_error $? "failed to load site script $ac_site_file
   2047 See \`config.log' for more details" "$LINENO" 5; }
   2048   fi
   2049 done
   2050 
   2051 if test -r "$cache_file"; then
   2052   # Some versions of bash will fail to source /dev/null (special files
   2053   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2054   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2055     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2056 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2057     case $cache_file in
   2058       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2059       *)                      . "./$cache_file";;
   2060     esac
   2061   fi
   2062 else
   2063   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2064 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2065   >$cache_file
   2066 fi
   2067 
   2068 # Check that the precious variables saved in the cache have kept the same
   2069 # value.
   2070 ac_cache_corrupted=false
   2071 for ac_var in $ac_precious_vars; do
   2072   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2073   eval ac_new_set=\$ac_env_${ac_var}_set
   2074   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2075   eval ac_new_val=\$ac_env_${ac_var}_value
   2076   case $ac_old_set,$ac_new_set in
   2077     set,)
   2078       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2079 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2080       ac_cache_corrupted=: ;;
   2081     ,set)
   2082       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2083 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2084       ac_cache_corrupted=: ;;
   2085     ,);;
   2086     *)
   2087       if test "x$ac_old_val" != "x$ac_new_val"; then
   2088 	# differences in whitespace do not lead to failure.
   2089 	ac_old_val_w=`echo x $ac_old_val`
   2090 	ac_new_val_w=`echo x $ac_new_val`
   2091 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2092 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2093 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2094 	  ac_cache_corrupted=:
   2095 	else
   2096 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2097 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2098 	  eval $ac_var=\$ac_old_val
   2099 	fi
   2100 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2101 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2102 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2103 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2104       fi;;
   2105   esac
   2106   # Pass precious variables to config.status.
   2107   if test "$ac_new_set" = set; then
   2108     case $ac_new_val in
   2109     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2110     *) ac_arg=$ac_var=$ac_new_val ;;
   2111     esac
   2112     case " $ac_configure_args " in
   2113       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2114       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2115     esac
   2116   fi
   2117 done
   2118 if $ac_cache_corrupted; then
   2119   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2121   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2122 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2123   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2124 fi
   2125 ## -------------------- ##
   2126 ## Main body of script. ##
   2127 ## -------------------- ##
   2128 
   2129 ac_ext=c
   2130 ac_cpp='$CPP $CPPFLAGS'
   2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2134 
   2135 
   2136 am__api_version='1.11'
   2137 
   2138 ac_aux_dir=
   2139 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2140   if test -f "$ac_dir/install-sh"; then
   2141     ac_aux_dir=$ac_dir
   2142     ac_install_sh="$ac_aux_dir/install-sh -c"
   2143     break
   2144   elif test -f "$ac_dir/install.sh"; then
   2145     ac_aux_dir=$ac_dir
   2146     ac_install_sh="$ac_aux_dir/install.sh -c"
   2147     break
   2148   elif test -f "$ac_dir/shtool"; then
   2149     ac_aux_dir=$ac_dir
   2150     ac_install_sh="$ac_aux_dir/shtool install -c"
   2151     break
   2152   fi
   2153 done
   2154 if test -z "$ac_aux_dir"; then
   2155   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2156 fi
   2157 
   2158 # These three variables are undocumented and unsupported,
   2159 # and are intended to be withdrawn in a future Autoconf release.
   2160 # They can cause serious problems if a builder's source tree is in a directory
   2161 # whose full name contains unusual characters.
   2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2164 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2165 
   2166 
   2167 # Find a good install program.  We prefer a C program (faster),
   2168 # so one script is as good as another.  But avoid the broken or
   2169 # incompatible versions:
   2170 # SysV /etc/install, /usr/sbin/install
   2171 # SunOS /usr/etc/install
   2172 # IRIX /sbin/install
   2173 # AIX /bin/install
   2174 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2178 # OS/2's system install, which has a completely different semantic
   2179 # ./install, which can be erroneously created by make from ./install.sh.
   2180 # Reject install programs that cannot install multiple files.
   2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2182 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2183 if test -z "$INSTALL"; then
   2184 if ${ac_cv_path_install+:} false; then :
   2185   $as_echo_n "(cached) " >&6
   2186 else
   2187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2188 for as_dir in $PATH
   2189 do
   2190   IFS=$as_save_IFS
   2191   test -z "$as_dir" && as_dir=.
   2192     # Account for people who put trailing slashes in PATH elements.
   2193 case $as_dir/ in #((
   2194   ./ | .// | /[cC]/* | \
   2195   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2196   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2197   /usr/ucb/* ) ;;
   2198   *)
   2199     # OSF1 and SCO ODT 3.0 have their own names for install.
   2200     # Don't use installbsd from OSF since it installs stuff as root
   2201     # by default.
   2202     for ac_prog in ginstall scoinst install; do
   2203       for ac_exec_ext in '' $ac_executable_extensions; do
   2204 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   2205 	  if test $ac_prog = install &&
   2206 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2207 	    # AIX install.  It has an incompatible calling convention.
   2208 	    :
   2209 	  elif test $ac_prog = install &&
   2210 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2211 	    # program-specific install script used by HP pwplus--don't use.
   2212 	    :
   2213 	  else
   2214 	    rm -rf conftest.one conftest.two conftest.dir
   2215 	    echo one > conftest.one
   2216 	    echo two > conftest.two
   2217 	    mkdir conftest.dir
   2218 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2219 	      test -s conftest.one && test -s conftest.two &&
   2220 	      test -s conftest.dir/conftest.one &&
   2221 	      test -s conftest.dir/conftest.two
   2222 	    then
   2223 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2224 	      break 3
   2225 	    fi
   2226 	  fi
   2227 	fi
   2228       done
   2229     done
   2230     ;;
   2231 esac
   2232 
   2233   done
   2234 IFS=$as_save_IFS
   2235 
   2236 rm -rf conftest.one conftest.two conftest.dir
   2237 
   2238 fi
   2239   if test "${ac_cv_path_install+set}" = set; then
   2240     INSTALL=$ac_cv_path_install
   2241   else
   2242     # As a last resort, use the slow shell script.  Don't cache a
   2243     # value for INSTALL within a source directory, because that will
   2244     # break other packages using the cache if that directory is
   2245     # removed, or if the value is a relative name.
   2246     INSTALL=$ac_install_sh
   2247   fi
   2248 fi
   2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2250 $as_echo "$INSTALL" >&6; }
   2251 
   2252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2253 # It thinks the first close brace ends the variable substitution.
   2254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2255 
   2256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2257 
   2258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2259 
   2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2261 $as_echo_n "checking whether build environment is sane... " >&6; }
   2262 # Just in case
   2263 sleep 1
   2264 echo timestamp > conftest.file
   2265 # Reject unsafe characters in $srcdir or the absolute working directory
   2266 # name.  Accept space and tab only in the latter.
   2267 am_lf='
   2268 '
   2269 case `pwd` in
   2270   *[\\\"\#\$\&\'\`$am_lf]*)
   2271     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2272 esac
   2273 case $srcdir in
   2274   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2275     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
   2276 esac
   2277 
   2278 # Do `set' in a subshell so we don't clobber the current shell's
   2279 # arguments.  Must try -L first in case configure is actually a
   2280 # symlink; some systems play weird games with the mod time of symlinks
   2281 # (eg FreeBSD returns the mod time of the symlink's containing
   2282 # directory).
   2283 if (
   2284    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2285    if test "$*" = "X"; then
   2286       # -L didn't work.
   2287       set X `ls -t "$srcdir/configure" conftest.file`
   2288    fi
   2289    rm -f conftest.file
   2290    if test "$*" != "X $srcdir/configure conftest.file" \
   2291       && test "$*" != "X conftest.file $srcdir/configure"; then
   2292 
   2293       # If neither matched, then we have a broken ls.  This can happen
   2294       # if, for instance, CONFIG_SHELL is bash and it inherits a
   2295       # broken ls alias from the environment.  This has actually
   2296       # happened.  Such a system could not be considered "sane".
   2297       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2298 alias in your environment" "$LINENO" 5
   2299    fi
   2300 
   2301    test "$2" = conftest.file
   2302    )
   2303 then
   2304    # Ok.
   2305    :
   2306 else
   2307    as_fn_error $? "newly created file is older than distributed files!
   2308 Check your system clock" "$LINENO" 5
   2309 fi
   2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2311 $as_echo "yes" >&6; }
   2312 test "$program_prefix" != NONE &&
   2313   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2314 # Use a double $ so make ignores it.
   2315 test "$program_suffix" != NONE &&
   2316   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2317 # Double any \ or $.
   2318 # By default was `s,x,x', remove it if useless.
   2319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2321 
   2322 # expand $ac_aux_dir to an absolute path
   2323 am_aux_dir=`cd $ac_aux_dir && pwd`
   2324 
   2325 if test x"${MISSING+set}" != xset; then
   2326   case $am_aux_dir in
   2327   *\ * | *\	*)
   2328     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2329   *)
   2330     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2331   esac
   2332 fi
   2333 # Use eval to expand $SHELL
   2334 if eval "$MISSING --run true"; then
   2335   am_missing_run="$MISSING --run "
   2336 else
   2337   am_missing_run=
   2338   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
   2339 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   2340 fi
   2341 
   2342 if test x"${install_sh}" != xset; then
   2343   case $am_aux_dir in
   2344   *\ * | *\	*)
   2345     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2346   *)
   2347     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2348   esac
   2349 fi
   2350 
   2351 # Installed binaries are usually stripped using `strip' when the user
   2352 # run `make install-strip'.  However `strip' might not be the right
   2353 # tool to use in cross-compilation environments, therefore Automake
   2354 # will honor the `STRIP' environment variable to overrule this program.
   2355 if test "$cross_compiling" != no; then
   2356   if test -n "$ac_tool_prefix"; then
   2357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2360 $as_echo_n "checking for $ac_word... " >&6; }
   2361 if ${ac_cv_prog_STRIP+:} false; then :
   2362   $as_echo_n "(cached) " >&6
   2363 else
   2364   if test -n "$STRIP"; then
   2365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2366 else
   2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2368 for as_dir in $PATH
   2369 do
   2370   IFS=$as_save_IFS
   2371   test -z "$as_dir" && as_dir=.
   2372     for ac_exec_ext in '' $ac_executable_extensions; do
   2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2376     break 2
   2377   fi
   2378 done
   2379   done
   2380 IFS=$as_save_IFS
   2381 
   2382 fi
   2383 fi
   2384 STRIP=$ac_cv_prog_STRIP
   2385 if test -n "$STRIP"; then
   2386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2387 $as_echo "$STRIP" >&6; }
   2388 else
   2389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2390 $as_echo "no" >&6; }
   2391 fi
   2392 
   2393 
   2394 fi
   2395 if test -z "$ac_cv_prog_STRIP"; then
   2396   ac_ct_STRIP=$STRIP
   2397   # Extract the first word of "strip", so it can be a program name with args.
   2398 set dummy strip; ac_word=$2
   2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2400 $as_echo_n "checking for $ac_word... " >&6; }
   2401 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2402   $as_echo_n "(cached) " >&6
   2403 else
   2404   if test -n "$ac_ct_STRIP"; then
   2405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2406 else
   2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2408 for as_dir in $PATH
   2409 do
   2410   IFS=$as_save_IFS
   2411   test -z "$as_dir" && as_dir=.
   2412     for ac_exec_ext in '' $ac_executable_extensions; do
   2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2414     ac_cv_prog_ac_ct_STRIP="strip"
   2415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2416     break 2
   2417   fi
   2418 done
   2419   done
   2420 IFS=$as_save_IFS
   2421 
   2422 fi
   2423 fi
   2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2425 if test -n "$ac_ct_STRIP"; then
   2426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2427 $as_echo "$ac_ct_STRIP" >&6; }
   2428 else
   2429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2430 $as_echo "no" >&6; }
   2431 fi
   2432 
   2433   if test "x$ac_ct_STRIP" = x; then
   2434     STRIP=":"
   2435   else
   2436     case $cross_compiling:$ac_tool_warned in
   2437 yes:)
   2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2440 ac_tool_warned=yes ;;
   2441 esac
   2442     STRIP=$ac_ct_STRIP
   2443   fi
   2444 else
   2445   STRIP="$ac_cv_prog_STRIP"
   2446 fi
   2447 
   2448 fi
   2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2450 
   2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2452 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2453 if test -z "$MKDIR_P"; then
   2454   if ${ac_cv_path_mkdir+:} false; then :
   2455   $as_echo_n "(cached) " >&6
   2456 else
   2457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2458 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2459 do
   2460   IFS=$as_save_IFS
   2461   test -z "$as_dir" && as_dir=.
   2462     for ac_prog in mkdir gmkdir; do
   2463 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2464 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   2465 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2466 	     'mkdir (GNU coreutils) '* | \
   2467 	     'mkdir (coreutils) '* | \
   2468 	     'mkdir (fileutils) '4.1*)
   2469 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2470 	       break 3;;
   2471 	   esac
   2472 	 done
   2473        done
   2474   done
   2475 IFS=$as_save_IFS
   2476 
   2477 fi
   2478 
   2479   test -d ./--version && rmdir ./--version
   2480   if test "${ac_cv_path_mkdir+set}" = set; then
   2481     MKDIR_P="$ac_cv_path_mkdir -p"
   2482   else
   2483     # As a last resort, use the slow shell script.  Don't cache a
   2484     # value for MKDIR_P within a source directory, because that will
   2485     # break other packages using the cache if that directory is
   2486     # removed, or if the value is a relative name.
   2487     MKDIR_P="$ac_install_sh -d"
   2488   fi
   2489 fi
   2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2491 $as_echo "$MKDIR_P" >&6; }
   2492 
   2493 mkdir_p="$MKDIR_P"
   2494 case $mkdir_p in
   2495   [\\/$]* | ?:[\\/]*) ;;
   2496   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   2497 esac
   2498 
   2499 for ac_prog in gawk mawk nawk awk
   2500 do
   2501   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2502 set dummy $ac_prog; ac_word=$2
   2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2504 $as_echo_n "checking for $ac_word... " >&6; }
   2505 if ${ac_cv_prog_AWK+:} false; then :
   2506   $as_echo_n "(cached) " >&6
   2507 else
   2508   if test -n "$AWK"; then
   2509   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2510 else
   2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2512 for as_dir in $PATH
   2513 do
   2514   IFS=$as_save_IFS
   2515   test -z "$as_dir" && as_dir=.
   2516     for ac_exec_ext in '' $ac_executable_extensions; do
   2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2518     ac_cv_prog_AWK="$ac_prog"
   2519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2520     break 2
   2521   fi
   2522 done
   2523   done
   2524 IFS=$as_save_IFS
   2525 
   2526 fi
   2527 fi
   2528 AWK=$ac_cv_prog_AWK
   2529 if test -n "$AWK"; then
   2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2531 $as_echo "$AWK" >&6; }
   2532 else
   2533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2534 $as_echo "no" >&6; }
   2535 fi
   2536 
   2537 
   2538   test -n "$AWK" && break
   2539 done
   2540 
   2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2542 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2543 set x ${MAKE-make}
   2544 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2545 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   2546   $as_echo_n "(cached) " >&6
   2547 else
   2548   cat >conftest.make <<\_ACEOF
   2549 SHELL = /bin/sh
   2550 all:
   2551 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2552 _ACEOF
   2553 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   2554 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2555   *@@@%%%=?*=@@@%%%*)
   2556     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2557   *)
   2558     eval ac_cv_prog_make_${ac_make}_set=no;;
   2559 esac
   2560 rm -f conftest.make
   2561 fi
   2562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2564 $as_echo "yes" >&6; }
   2565   SET_MAKE=
   2566 else
   2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2568 $as_echo "no" >&6; }
   2569   SET_MAKE="MAKE=${MAKE-make}"
   2570 fi
   2571 
   2572 rm -rf .tst 2>/dev/null
   2573 mkdir .tst 2>/dev/null
   2574 if test -d .tst; then
   2575   am__leading_dot=.
   2576 else
   2577   am__leading_dot=_
   2578 fi
   2579 rmdir .tst 2>/dev/null
   2580 
   2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   2582   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   2583   # is not polluted with repeated "-I."
   2584   am__isrc=' -I$(srcdir)'
   2585   # test to see if srcdir already configured
   2586   if test -f $srcdir/config.status; then
   2587     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   2588   fi
   2589 fi
   2590 
   2591 # test whether we have cygpath
   2592 if test -z "$CYGPATH_W"; then
   2593   if (cygpath --version) >/dev/null 2>/dev/null; then
   2594     CYGPATH_W='cygpath -w'
   2595   else
   2596     CYGPATH_W=echo
   2597   fi
   2598 fi
   2599 
   2600 
   2601 # Define the identity of the package.
   2602  PACKAGE='xsm'
   2603  VERSION='1.0.2'
   2604 
   2605 
   2606 cat >>confdefs.h <<_ACEOF
   2607 #define PACKAGE "$PACKAGE"
   2608 _ACEOF
   2609 
   2610 
   2611 cat >>confdefs.h <<_ACEOF
   2612 #define VERSION "$VERSION"
   2613 _ACEOF
   2614 
   2615 # Some tools Automake needs.
   2616 
   2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2618 
   2619 
   2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2621 
   2622 
   2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2624 
   2625 
   2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2627 
   2628 
   2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2630 
   2631 # We need awk for the "check" target.  The system "awk" is bad on
   2632 # some platforms.
   2633 # Always define AMTAR for backward compatibility.
   2634 
   2635 AMTAR=${AMTAR-"${am_missing_run}tar"}
   2636 
   2637 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   2638 
   2639 
   2640 
   2641 
   2642 
   2643 
   2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2645 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2646     # Check whether --enable-maintainer-mode was given.
   2647 if test "${enable_maintainer_mode+set}" = set; then :
   2648   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2649 else
   2650   USE_MAINTAINER_MODE=no
   2651 fi
   2652 
   2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2654 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2655    if test $USE_MAINTAINER_MODE = yes; then
   2656   MAINTAINER_MODE_TRUE=
   2657   MAINTAINER_MODE_FALSE='#'
   2658 else
   2659   MAINTAINER_MODE_TRUE='#'
   2660   MAINTAINER_MODE_FALSE=
   2661 fi
   2662 
   2663   MAINT=$MAINTAINER_MODE_TRUE
   2664 
   2665 
   2666 
   2667 ac_config_headers="$ac_config_headers config.h"
   2668 
   2669 
   2670 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
   2671 
   2672 
   2673 
   2674 
   2675 
   2676 
   2677 
   2678 
   2679 
   2680 
   2681 
   2682 DEPDIR="${am__leading_dot}deps"
   2683 
   2684 ac_config_commands="$ac_config_commands depfiles"
   2685 
   2686 
   2687 am_make=${MAKE-make}
   2688 cat > confinc << 'END'
   2689 am__doit:
   2690 	@echo this is the am__doit target
   2691 .PHONY: am__doit
   2692 END
   2693 # If we don't find an include directive, just comment out the code.
   2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   2695 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   2696 am__include="#"
   2697 am__quote=
   2698 _am_result=none
   2699 # First try GNU make style include.
   2700 echo "include confinc" > confmf
   2701 # Ignore all kinds of additional output from `make'.
   2702 case `$am_make -s -f confmf 2> /dev/null` in #(
   2703 *the\ am__doit\ target*)
   2704   am__include=include
   2705   am__quote=
   2706   _am_result=GNU
   2707   ;;
   2708 esac
   2709 # Now try BSD make style include.
   2710 if test "$am__include" = "#"; then
   2711    echo '.include "confinc"' > confmf
   2712    case `$am_make -s -f confmf 2> /dev/null` in #(
   2713    *the\ am__doit\ target*)
   2714      am__include=.include
   2715      am__quote="\""
   2716      _am_result=BSD
   2717      ;;
   2718    esac
   2719 fi
   2720 
   2721 
   2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   2723 $as_echo "$_am_result" >&6; }
   2724 rm -f confinc confmf
   2725 
   2726 # Check whether --enable-dependency-tracking was given.
   2727 if test "${enable_dependency_tracking+set}" = set; then :
   2728   enableval=$enable_dependency_tracking;
   2729 fi
   2730 
   2731 if test "x$enable_dependency_tracking" != xno; then
   2732   am_depcomp="$ac_aux_dir/depcomp"
   2733   AMDEPBACKSLASH='\'
   2734 fi
   2735  if test "x$enable_dependency_tracking" != xno; then
   2736   AMDEP_TRUE=
   2737   AMDEP_FALSE='#'
   2738 else
   2739   AMDEP_TRUE='#'
   2740   AMDEP_FALSE=
   2741 fi
   2742 
   2743 
   2744 ac_ext=c
   2745 ac_cpp='$CPP $CPPFLAGS'
   2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2749 if test -n "$ac_tool_prefix"; then
   2750   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2753 $as_echo_n "checking for $ac_word... " >&6; }
   2754 if ${ac_cv_prog_CC+:} false; then :
   2755   $as_echo_n "(cached) " >&6
   2756 else
   2757   if test -n "$CC"; then
   2758   ac_cv_prog_CC="$CC" # Let the user override the test.
   2759 else
   2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2761 for as_dir in $PATH
   2762 do
   2763   IFS=$as_save_IFS
   2764   test -z "$as_dir" && as_dir=.
   2765     for ac_exec_ext in '' $ac_executable_extensions; do
   2766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2767     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2769     break 2
   2770   fi
   2771 done
   2772   done
   2773 IFS=$as_save_IFS
   2774 
   2775 fi
   2776 fi
   2777 CC=$ac_cv_prog_CC
   2778 if test -n "$CC"; then
   2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2780 $as_echo "$CC" >&6; }
   2781 else
   2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2783 $as_echo "no" >&6; }
   2784 fi
   2785 
   2786 
   2787 fi
   2788 if test -z "$ac_cv_prog_CC"; then
   2789   ac_ct_CC=$CC
   2790   # Extract the first word of "gcc", so it can be a program name with args.
   2791 set dummy gcc; ac_word=$2
   2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2793 $as_echo_n "checking for $ac_word... " >&6; }
   2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2795   $as_echo_n "(cached) " >&6
   2796 else
   2797   if test -n "$ac_ct_CC"; then
   2798   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2799 else
   2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2801 for as_dir in $PATH
   2802 do
   2803   IFS=$as_save_IFS
   2804   test -z "$as_dir" && as_dir=.
   2805     for ac_exec_ext in '' $ac_executable_extensions; do
   2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2807     ac_cv_prog_ac_ct_CC="gcc"
   2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2809     break 2
   2810   fi
   2811 done
   2812   done
   2813 IFS=$as_save_IFS
   2814 
   2815 fi
   2816 fi
   2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2818 if test -n "$ac_ct_CC"; then
   2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2820 $as_echo "$ac_ct_CC" >&6; }
   2821 else
   2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2823 $as_echo "no" >&6; }
   2824 fi
   2825 
   2826   if test "x$ac_ct_CC" = x; then
   2827     CC=""
   2828   else
   2829     case $cross_compiling:$ac_tool_warned in
   2830 yes:)
   2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2833 ac_tool_warned=yes ;;
   2834 esac
   2835     CC=$ac_ct_CC
   2836   fi
   2837 else
   2838   CC="$ac_cv_prog_CC"
   2839 fi
   2840 
   2841 if test -z "$CC"; then
   2842           if test -n "$ac_tool_prefix"; then
   2843     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2846 $as_echo_n "checking for $ac_word... " >&6; }
   2847 if ${ac_cv_prog_CC+:} false; then :
   2848   $as_echo_n "(cached) " >&6
   2849 else
   2850   if test -n "$CC"; then
   2851   ac_cv_prog_CC="$CC" # Let the user override the test.
   2852 else
   2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2854 for as_dir in $PATH
   2855 do
   2856   IFS=$as_save_IFS
   2857   test -z "$as_dir" && as_dir=.
   2858     for ac_exec_ext in '' $ac_executable_extensions; do
   2859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2860     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2862     break 2
   2863   fi
   2864 done
   2865   done
   2866 IFS=$as_save_IFS
   2867 
   2868 fi
   2869 fi
   2870 CC=$ac_cv_prog_CC
   2871 if test -n "$CC"; then
   2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2873 $as_echo "$CC" >&6; }
   2874 else
   2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2876 $as_echo "no" >&6; }
   2877 fi
   2878 
   2879 
   2880   fi
   2881 fi
   2882 if test -z "$CC"; then
   2883   # Extract the first word of "cc", so it can be a program name with args.
   2884 set dummy cc; ac_word=$2
   2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2886 $as_echo_n "checking for $ac_word... " >&6; }
   2887 if ${ac_cv_prog_CC+:} false; then :
   2888   $as_echo_n "(cached) " >&6
   2889 else
   2890   if test -n "$CC"; then
   2891   ac_cv_prog_CC="$CC" # Let the user override the test.
   2892 else
   2893   ac_prog_rejected=no
   2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2895 for as_dir in $PATH
   2896 do
   2897   IFS=$as_save_IFS
   2898   test -z "$as_dir" && as_dir=.
   2899     for ac_exec_ext in '' $ac_executable_extensions; do
   2900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2901     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2902        ac_prog_rejected=yes
   2903        continue
   2904      fi
   2905     ac_cv_prog_CC="cc"
   2906     $as_echo "$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 if test $ac_prog_rejected = yes; then
   2914   # We found a bogon in the path, so make sure we never use it.
   2915   set dummy $ac_cv_prog_CC
   2916   shift
   2917   if test $# != 0; then
   2918     # We chose a different compiler from the bogus one.
   2919     # However, it has the same basename, so the bogon will be chosen
   2920     # first if we set CC to just the basename; use the full file name.
   2921     shift
   2922     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2923   fi
   2924 fi
   2925 fi
   2926 fi
   2927 CC=$ac_cv_prog_CC
   2928 if test -n "$CC"; then
   2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2930 $as_echo "$CC" >&6; }
   2931 else
   2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2933 $as_echo "no" >&6; }
   2934 fi
   2935 
   2936 
   2937 fi
   2938 if test -z "$CC"; then
   2939   if test -n "$ac_tool_prefix"; then
   2940   for ac_prog in cl.exe
   2941   do
   2942     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2945 $as_echo_n "checking for $ac_word... " >&6; }
   2946 if ${ac_cv_prog_CC+:} false; then :
   2947   $as_echo_n "(cached) " >&6
   2948 else
   2949   if test -n "$CC"; then
   2950   ac_cv_prog_CC="$CC" # Let the user override the test.
   2951 else
   2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2953 for as_dir in $PATH
   2954 do
   2955   IFS=$as_save_IFS
   2956   test -z "$as_dir" && as_dir=.
   2957     for ac_exec_ext in '' $ac_executable_extensions; do
   2958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2959     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2961     break 2
   2962   fi
   2963 done
   2964   done
   2965 IFS=$as_save_IFS
   2966 
   2967 fi
   2968 fi
   2969 CC=$ac_cv_prog_CC
   2970 if test -n "$CC"; then
   2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2972 $as_echo "$CC" >&6; }
   2973 else
   2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2975 $as_echo "no" >&6; }
   2976 fi
   2977 
   2978 
   2979     test -n "$CC" && break
   2980   done
   2981 fi
   2982 if test -z "$CC"; then
   2983   ac_ct_CC=$CC
   2984   for ac_prog in cl.exe
   2985 do
   2986   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2987 set dummy $ac_prog; ac_word=$2
   2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2989 $as_echo_n "checking for $ac_word... " >&6; }
   2990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2991   $as_echo_n "(cached) " >&6
   2992 else
   2993   if test -n "$ac_ct_CC"; then
   2994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2995 else
   2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2997 for as_dir in $PATH
   2998 do
   2999   IFS=$as_save_IFS
   3000   test -z "$as_dir" && as_dir=.
   3001     for ac_exec_ext in '' $ac_executable_extensions; do
   3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3003     ac_cv_prog_ac_ct_CC="$ac_prog"
   3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3005     break 2
   3006   fi
   3007 done
   3008   done
   3009 IFS=$as_save_IFS
   3010 
   3011 fi
   3012 fi
   3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3014 if test -n "$ac_ct_CC"; then
   3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3016 $as_echo "$ac_ct_CC" >&6; }
   3017 else
   3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3019 $as_echo "no" >&6; }
   3020 fi
   3021 
   3022 
   3023   test -n "$ac_ct_CC" && break
   3024 done
   3025 
   3026   if test "x$ac_ct_CC" = x; then
   3027     CC=""
   3028   else
   3029     case $cross_compiling:$ac_tool_warned in
   3030 yes:)
   3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3033 ac_tool_warned=yes ;;
   3034 esac
   3035     CC=$ac_ct_CC
   3036   fi
   3037 fi
   3038 
   3039 fi
   3040 
   3041 
   3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3044 as_fn_error $? "no acceptable C compiler found in \$PATH
   3045 See \`config.log' for more details" "$LINENO" 5; }
   3046 
   3047 # Provide some information about the compiler.
   3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3049 set X $ac_compile
   3050 ac_compiler=$2
   3051 for ac_option in --version -v -V -qversion; do
   3052   { { ac_try="$ac_compiler $ac_option >&5"
   3053 case "(($ac_try" in
   3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3055   *) ac_try_echo=$ac_try;;
   3056 esac
   3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3058 $as_echo "$ac_try_echo"; } >&5
   3059   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3060   ac_status=$?
   3061   if test -s conftest.err; then
   3062     sed '10a\
   3063 ... rest of stderr output deleted ...
   3064          10q' conftest.err >conftest.er1
   3065     cat conftest.er1 >&5
   3066   fi
   3067   rm -f conftest.er1 conftest.err
   3068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3069   test $ac_status = 0; }
   3070 done
   3071 
   3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3073 /* end confdefs.h.  */
   3074 
   3075 int
   3076 main ()
   3077 {
   3078 
   3079   ;
   3080   return 0;
   3081 }
   3082 _ACEOF
   3083 ac_clean_files_save=$ac_clean_files
   3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3085 # Try to create an executable without -o first, disregard a.out.
   3086 # It will help us diagnose broken compilers, and finding out an intuition
   3087 # of exeext.
   3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3089 $as_echo_n "checking whether the C compiler works... " >&6; }
   3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3091 
   3092 # The possible output files:
   3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3094 
   3095 ac_rmfiles=
   3096 for ac_file in $ac_files
   3097 do
   3098   case $ac_file in
   3099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3100     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3101   esac
   3102 done
   3103 rm -f $ac_rmfiles
   3104 
   3105 if { { ac_try="$ac_link_default"
   3106 case "(($ac_try" in
   3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3108   *) ac_try_echo=$ac_try;;
   3109 esac
   3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3111 $as_echo "$ac_try_echo"; } >&5
   3112   (eval "$ac_link_default") 2>&5
   3113   ac_status=$?
   3114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3115   test $ac_status = 0; }; then :
   3116   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3118 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3119 # so that the user can short-circuit this test for compilers unknown to
   3120 # Autoconf.
   3121 for ac_file in $ac_files ''
   3122 do
   3123   test -f "$ac_file" || continue
   3124   case $ac_file in
   3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3126 	;;
   3127     [ab].out )
   3128 	# We found the default executable, but exeext='' is most
   3129 	# certainly right.
   3130 	break;;
   3131     *.* )
   3132 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3133 	then :; else
   3134 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3135 	fi
   3136 	# We set ac_cv_exeext here because the later test for it is not
   3137 	# safe: cross compilers may not add the suffix if given an `-o'
   3138 	# argument, so we may need to know it at that point already.
   3139 	# Even if this section looks crufty: it has the advantage of
   3140 	# actually working.
   3141 	break;;
   3142     * )
   3143 	break;;
   3144   esac
   3145 done
   3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3147 
   3148 else
   3149   ac_file=''
   3150 fi
   3151 if test -z "$ac_file"; then :
   3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3153 $as_echo "no" >&6; }
   3154 $as_echo "$as_me: failed program was:" >&5
   3155 sed 's/^/| /' conftest.$ac_ext >&5
   3156 
   3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3159 as_fn_error 77 "C compiler cannot create executables
   3160 See \`config.log' for more details" "$LINENO" 5; }
   3161 else
   3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3163 $as_echo "yes" >&6; }
   3164 fi
   3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3168 $as_echo "$ac_file" >&6; }
   3169 ac_exeext=$ac_cv_exeext
   3170 
   3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3172 ac_clean_files=$ac_clean_files_save
   3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3174 $as_echo_n "checking for suffix of executables... " >&6; }
   3175 if { { ac_try="$ac_link"
   3176 case "(($ac_try" in
   3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3178   *) ac_try_echo=$ac_try;;
   3179 esac
   3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3181 $as_echo "$ac_try_echo"; } >&5
   3182   (eval "$ac_link") 2>&5
   3183   ac_status=$?
   3184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3185   test $ac_status = 0; }; then :
   3186   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3187 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3189 # `rm'.
   3190 for ac_file in conftest.exe conftest conftest.*; do
   3191   test -f "$ac_file" || continue
   3192   case $ac_file in
   3193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3194     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3195 	  break;;
   3196     * ) break;;
   3197   esac
   3198 done
   3199 else
   3200   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3203 See \`config.log' for more details" "$LINENO" 5; }
   3204 fi
   3205 rm -f conftest conftest$ac_cv_exeext
   3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3207 $as_echo "$ac_cv_exeext" >&6; }
   3208 
   3209 rm -f conftest.$ac_ext
   3210 EXEEXT=$ac_cv_exeext
   3211 ac_exeext=$EXEEXT
   3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3213 /* end confdefs.h.  */
   3214 #include <stdio.h>
   3215 int
   3216 main ()
   3217 {
   3218 FILE *f = fopen ("conftest.out", "w");
   3219  return ferror (f) || fclose (f) != 0;
   3220 
   3221   ;
   3222   return 0;
   3223 }
   3224 _ACEOF
   3225 ac_clean_files="$ac_clean_files conftest.out"
   3226 # Check that the compiler produces executables we can run.  If not, either
   3227 # the compiler is broken, or we cross compile.
   3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3230 if test "$cross_compiling" != yes; then
   3231   { { ac_try="$ac_link"
   3232 case "(($ac_try" in
   3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3234   *) ac_try_echo=$ac_try;;
   3235 esac
   3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3237 $as_echo "$ac_try_echo"; } >&5
   3238   (eval "$ac_link") 2>&5
   3239   ac_status=$?
   3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3241   test $ac_status = 0; }
   3242   if { ac_try='./conftest$ac_cv_exeext'
   3243   { { case "(($ac_try" in
   3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3245   *) ac_try_echo=$ac_try;;
   3246 esac
   3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3248 $as_echo "$ac_try_echo"; } >&5
   3249   (eval "$ac_try") 2>&5
   3250   ac_status=$?
   3251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3252   test $ac_status = 0; }; }; then
   3253     cross_compiling=no
   3254   else
   3255     if test "$cross_compiling" = maybe; then
   3256 	cross_compiling=yes
   3257     else
   3258 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3260 as_fn_error $? "cannot run C compiled programs.
   3261 If you meant to cross compile, use \`--host'.
   3262 See \`config.log' for more details" "$LINENO" 5; }
   3263     fi
   3264   fi
   3265 fi
   3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3267 $as_echo "$cross_compiling" >&6; }
   3268 
   3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3270 ac_clean_files=$ac_clean_files_save
   3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3272 $as_echo_n "checking for suffix of object files... " >&6; }
   3273 if ${ac_cv_objext+:} false; then :
   3274   $as_echo_n "(cached) " >&6
   3275 else
   3276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3277 /* end confdefs.h.  */
   3278 
   3279 int
   3280 main ()
   3281 {
   3282 
   3283   ;
   3284   return 0;
   3285 }
   3286 _ACEOF
   3287 rm -f conftest.o conftest.obj
   3288 if { { ac_try="$ac_compile"
   3289 case "(($ac_try" in
   3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3291   *) ac_try_echo=$ac_try;;
   3292 esac
   3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3294 $as_echo "$ac_try_echo"; } >&5
   3295   (eval "$ac_compile") 2>&5
   3296   ac_status=$?
   3297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3298   test $ac_status = 0; }; then :
   3299   for ac_file in conftest.o conftest.obj conftest.*; do
   3300   test -f "$ac_file" || continue;
   3301   case $ac_file in
   3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3303     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3304        break;;
   3305   esac
   3306 done
   3307 else
   3308   $as_echo "$as_me: failed program was:" >&5
   3309 sed 's/^/| /' conftest.$ac_ext >&5
   3310 
   3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3314 See \`config.log' for more details" "$LINENO" 5; }
   3315 fi
   3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3317 fi
   3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3319 $as_echo "$ac_cv_objext" >&6; }
   3320 OBJEXT=$ac_cv_objext
   3321 ac_objext=$OBJEXT
   3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3324 if ${ac_cv_c_compiler_gnu+:} false; then :
   3325   $as_echo_n "(cached) " >&6
   3326 else
   3327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3328 /* end confdefs.h.  */
   3329 
   3330 int
   3331 main ()
   3332 {
   3333 #ifndef __GNUC__
   3334        choke me
   3335 #endif
   3336 
   3337   ;
   3338   return 0;
   3339 }
   3340 _ACEOF
   3341 if ac_fn_c_try_compile "$LINENO"; then :
   3342   ac_compiler_gnu=yes
   3343 else
   3344   ac_compiler_gnu=no
   3345 fi
   3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3348 
   3349 fi
   3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3352 if test $ac_compiler_gnu = yes; then
   3353   GCC=yes
   3354 else
   3355   GCC=
   3356 fi
   3357 ac_test_CFLAGS=${CFLAGS+set}
   3358 ac_save_CFLAGS=$CFLAGS
   3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3361 if ${ac_cv_prog_cc_g+:} false; then :
   3362   $as_echo_n "(cached) " >&6
   3363 else
   3364   ac_save_c_werror_flag=$ac_c_werror_flag
   3365    ac_c_werror_flag=yes
   3366    ac_cv_prog_cc_g=no
   3367    CFLAGS="-g"
   3368    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3369 /* end confdefs.h.  */
   3370 
   3371 int
   3372 main ()
   3373 {
   3374 
   3375   ;
   3376   return 0;
   3377 }
   3378 _ACEOF
   3379 if ac_fn_c_try_compile "$LINENO"; then :
   3380   ac_cv_prog_cc_g=yes
   3381 else
   3382   CFLAGS=""
   3383       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3384 /* end confdefs.h.  */
   3385 
   3386 int
   3387 main ()
   3388 {
   3389 
   3390   ;
   3391   return 0;
   3392 }
   3393 _ACEOF
   3394 if ac_fn_c_try_compile "$LINENO"; then :
   3395 
   3396 else
   3397   ac_c_werror_flag=$ac_save_c_werror_flag
   3398 	 CFLAGS="-g"
   3399 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3400 /* end confdefs.h.  */
   3401 
   3402 int
   3403 main ()
   3404 {
   3405 
   3406   ;
   3407   return 0;
   3408 }
   3409 _ACEOF
   3410 if ac_fn_c_try_compile "$LINENO"; then :
   3411   ac_cv_prog_cc_g=yes
   3412 fi
   3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3414 fi
   3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3416 fi
   3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3418    ac_c_werror_flag=$ac_save_c_werror_flag
   3419 fi
   3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3422 if test "$ac_test_CFLAGS" = set; then
   3423   CFLAGS=$ac_save_CFLAGS
   3424 elif test $ac_cv_prog_cc_g = yes; then
   3425   if test "$GCC" = yes; then
   3426     CFLAGS="-g -O2"
   3427   else
   3428     CFLAGS="-g"
   3429   fi
   3430 else
   3431   if test "$GCC" = yes; then
   3432     CFLAGS="-O2"
   3433   else
   3434     CFLAGS=
   3435   fi
   3436 fi
   3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3439 if ${ac_cv_prog_cc_c89+:} false; then :
   3440   $as_echo_n "(cached) " >&6
   3441 else
   3442   ac_cv_prog_cc_c89=no
   3443 ac_save_CC=$CC
   3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3445 /* end confdefs.h.  */
   3446 #include <stdarg.h>
   3447 #include <stdio.h>
   3448 #include <sys/types.h>
   3449 #include <sys/stat.h>
   3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3451 struct buf { int x; };
   3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3453 static char *e (p, i)
   3454      char **p;
   3455      int i;
   3456 {
   3457   return p[i];
   3458 }
   3459 static char *f (char * (*g) (char **, int), char **p, ...)
   3460 {
   3461   char *s;
   3462   va_list v;
   3463   va_start (v,p);
   3464   s = g (p, va_arg (v,int));
   3465   va_end (v);
   3466   return s;
   3467 }
   3468 
   3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3470    function prototypes and stuff, but not '\xHH' hex character constants.
   3471    These don't provoke an error unfortunately, instead are silently treated
   3472    as 'x'.  The following induces an error, until -std is added to get
   3473    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3474    array size at least.  It's necessary to write '\x00'==0 to get something
   3475    that's true only with -std.  */
   3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3477 
   3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3479    inside strings and character constants.  */
   3480 #define FOO(x) 'x'
   3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3482 
   3483 int test (int i, double x);
   3484 struct s1 {int (*f) (int a);};
   3485 struct s2 {int (*f) (double a);};
   3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3487 int argc;
   3488 char **argv;
   3489 int
   3490 main ()
   3491 {
   3492 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3493   ;
   3494   return 0;
   3495 }
   3496 _ACEOF
   3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3498 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3499 do
   3500   CC="$ac_save_CC $ac_arg"
   3501   if ac_fn_c_try_compile "$LINENO"; then :
   3502   ac_cv_prog_cc_c89=$ac_arg
   3503 fi
   3504 rm -f core conftest.err conftest.$ac_objext
   3505   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3506 done
   3507 rm -f conftest.$ac_ext
   3508 CC=$ac_save_CC
   3509 
   3510 fi
   3511 # AC_CACHE_VAL
   3512 case "x$ac_cv_prog_cc_c89" in
   3513   x)
   3514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3515 $as_echo "none needed" >&6; } ;;
   3516   xno)
   3517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3518 $as_echo "unsupported" >&6; } ;;
   3519   *)
   3520     CC="$CC $ac_cv_prog_cc_c89"
   3521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3523 esac
   3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3525 
   3526 fi
   3527 
   3528 ac_ext=c
   3529 ac_cpp='$CPP $CPPFLAGS'
   3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3533 
   3534 depcc="$CC"   am_compiler_list=
   3535 
   3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   3537 $as_echo_n "checking dependency style of $depcc... " >&6; }
   3538 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   3539   $as_echo_n "(cached) " >&6
   3540 else
   3541   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3542   # We make a subdir and do the tests there.  Otherwise we can end up
   3543   # making bogus files that we don't know about and never remove.  For
   3544   # instance it was reported that on HP-UX the gcc test will end up
   3545   # making a dummy file named `D' -- because `-MD' means `put the output
   3546   # in D'.
   3547   mkdir conftest.dir
   3548   # Copy depcomp to subdir because otherwise we won't find it if we're
   3549   # using a relative directory.
   3550   cp "$am_depcomp" conftest.dir
   3551   cd conftest.dir
   3552   # We will build objects and dependencies in a subdirectory because
   3553   # it helps to detect inapplicable dependency modes.  For instance
   3554   # both Tru64's cc and ICC support -MD to output dependencies as a
   3555   # side effect of compilation, but ICC will put the dependencies in
   3556   # the current directory while Tru64 will put them in the object
   3557   # directory.
   3558   mkdir sub
   3559 
   3560   am_cv_CC_dependencies_compiler_type=none
   3561   if test "$am_compiler_list" = ""; then
   3562      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3563   fi
   3564   am__universal=false
   3565   case " $depcc " in #(
   3566      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   3567      esac
   3568 
   3569   for depmode in $am_compiler_list; do
   3570     # Setup a source with many dependencies, because some compilers
   3571     # like to wrap large dependency lists on column 80 (with \), and
   3572     # we should not choose a depcomp mode which is confused by this.
   3573     #
   3574     # We need to recreate these files for each test, as the compiler may
   3575     # overwrite some of them when testing with obscure command lines.
   3576     # This happens at least with the AIX C compiler.
   3577     : > sub/conftest.c
   3578     for i in 1 2 3 4 5 6; do
   3579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   3581       # Solaris 8's {/usr,}/bin/sh.
   3582       touch sub/conftst$i.h
   3583     done
   3584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   3585 
   3586     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   3587     # mode.  It turns out that the SunPro C++ compiler does not properly
   3588     # handle `-M -o', and we need to detect this.  Also, some Intel
   3589     # versions had trouble with output in subdirs
   3590     am__obj=sub/conftest.${OBJEXT-o}
   3591     am__minus_obj="-o $am__obj"
   3592     case $depmode in
   3593     gcc)
   3594       # This depmode causes a compiler race in universal mode.
   3595       test "$am__universal" = false || continue
   3596       ;;
   3597     nosideeffect)
   3598       # after this tag, mechanisms are not by side-effect, so they'll
   3599       # only be used when explicitly requested
   3600       if test "x$enable_dependency_tracking" = xyes; then
   3601 	continue
   3602       else
   3603 	break
   3604       fi
   3605       ;;
   3606     msvisualcpp | msvcmsys)
   3607       # This compiler won't grok `-c -o', but also, the minuso test has
   3608       # not run yet.  These depmodes are late enough in the game, and
   3609       # so weak that their functioning should not be impacted.
   3610       am__obj=conftest.${OBJEXT-o}
   3611       am__minus_obj=
   3612       ;;
   3613     none) break ;;
   3614     esac
   3615     if depmode=$depmode \
   3616        source=sub/conftest.c object=$am__obj \
   3617        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   3618        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   3619          >/dev/null 2>conftest.err &&
   3620        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   3621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   3622        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   3623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   3624       # icc doesn't choke on unknown options, it will just issue warnings
   3625       # or remarks (even with -Werror).  So we grep stderr for any message
   3626       # that says an option was ignored or not supported.
   3627       # When given -MP, icc 7.0 and 7.1 complain thusly:
   3628       #   icc: Command line warning: ignoring option '-M'; no argument required
   3629       # The diagnosis changed in icc 8.0:
   3630       #   icc: Command line remark: option '-MP' not supported
   3631       if (grep 'ignoring option' conftest.err ||
   3632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   3633         am_cv_CC_dependencies_compiler_type=$depmode
   3634         break
   3635       fi
   3636     fi
   3637   done
   3638 
   3639   cd ..
   3640   rm -rf conftest.dir
   3641 else
   3642   am_cv_CC_dependencies_compiler_type=none
   3643 fi
   3644 
   3645 fi
   3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   3647 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   3648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   3649 
   3650  if
   3651   test "x$enable_dependency_tracking" != xno \
   3652   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   3653   am__fastdepCC_TRUE=
   3654   am__fastdepCC_FALSE='#'
   3655 else
   3656   am__fastdepCC_TRUE='#'
   3657   am__fastdepCC_FALSE=
   3658 fi
   3659 
   3660 
   3661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   3662 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   3663 if ${ac_cv_prog_cc_c99+:} false; then :
   3664   $as_echo_n "(cached) " >&6
   3665 else
   3666   ac_cv_prog_cc_c99=no
   3667 ac_save_CC=$CC
   3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3669 /* end confdefs.h.  */
   3670 #include <stdarg.h>
   3671 #include <stdbool.h>
   3672 #include <stdlib.h>
   3673 #include <wchar.h>
   3674 #include <stdio.h>
   3675 
   3676 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   3677 #define debug(...) fprintf (stderr, __VA_ARGS__)
   3678 #define showlist(...) puts (#__VA_ARGS__)
   3679 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   3680 static void
   3681 test_varargs_macros (void)
   3682 {
   3683   int x = 1234;
   3684   int y = 5678;
   3685   debug ("Flag");
   3686   debug ("X = %d\n", x);
   3687   showlist (The first, second, and third items.);
   3688   report (x>y, "x is %d but y is %d", x, y);
   3689 }
   3690 
   3691 // Check long long types.
   3692 #define BIG64 18446744073709551615ull
   3693 #define BIG32 4294967295ul
   3694 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   3695 #if !BIG_OK
   3696   your preprocessor is broken;
   3697 #endif
   3698 #if BIG_OK
   3699 #else
   3700   your preprocessor is broken;
   3701 #endif
   3702 static long long int bignum = -9223372036854775807LL;
   3703 static unsigned long long int ubignum = BIG64;
   3704 
   3705 struct incomplete_array
   3706 {
   3707   int datasize;
   3708   double data[];
   3709 };
   3710 
   3711 struct named_init {
   3712   int number;
   3713   const wchar_t *name;
   3714   double average;
   3715 };
   3716 
   3717 typedef const char *ccp;
   3718 
   3719 static inline int
   3720 test_restrict (ccp restrict text)
   3721 {
   3722   // See if C++-style comments work.
   3723   // Iterate through items via the restricted pointer.
   3724   // Also check for declarations in for loops.
   3725   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   3726     continue;
   3727   return 0;
   3728 }
   3729 
   3730 // Check varargs and va_copy.
   3731 static void
   3732 test_varargs (const char *format, ...)
   3733 {
   3734   va_list args;
   3735   va_start (args, format);
   3736   va_list args_copy;
   3737   va_copy (args_copy, args);
   3738 
   3739   const char *str;
   3740   int number;
   3741   float fnumber;
   3742 
   3743   while (*format)
   3744     {
   3745       switch (*format++)
   3746 	{
   3747 	case 's': // string
   3748 	  str = va_arg (args_copy, const char *);
   3749 	  break;
   3750 	case 'd': // int
   3751 	  number = va_arg (args_copy, int);
   3752 	  break;
   3753 	case 'f': // float
   3754 	  fnumber = va_arg (args_copy, double);
   3755 	  break;
   3756 	default:
   3757 	  break;
   3758 	}
   3759     }
   3760   va_end (args_copy);
   3761   va_end (args);
   3762 }
   3763 
   3764 int
   3765 main ()
   3766 {
   3767 
   3768   // Check bool.
   3769   _Bool success = false;
   3770 
   3771   // Check restrict.
   3772   if (test_restrict ("String literal") == 0)
   3773     success = true;
   3774   char *restrict newvar = "Another string";
   3775 
   3776   // Check varargs.
   3777   test_varargs ("s, d' f .", "string", 65, 34.234);
   3778   test_varargs_macros ();
   3779 
   3780   // Check flexible array members.
   3781   struct incomplete_array *ia =
   3782     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   3783   ia->datasize = 10;
   3784   for (int i = 0; i < ia->datasize; ++i)
   3785     ia->data[i] = i * 1.234;
   3786 
   3787   // Check named initializers.
   3788   struct named_init ni = {
   3789     .number = 34,
   3790     .name = L"Test wide string",
   3791     .average = 543.34343,
   3792   };
   3793 
   3794   ni.number = 58;
   3795 
   3796   int dynamic_array[ni.number];
   3797   dynamic_array[ni.number - 1] = 543;
   3798 
   3799   // work around unused variable warnings
   3800   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   3801 	  || dynamic_array[ni.number - 1] != 543);
   3802 
   3803   ;
   3804   return 0;
   3805 }
   3806 _ACEOF
   3807 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
   3808 do
   3809   CC="$ac_save_CC $ac_arg"
   3810   if ac_fn_c_try_compile "$LINENO"; then :
   3811   ac_cv_prog_cc_c99=$ac_arg
   3812 fi
   3813 rm -f core conftest.err conftest.$ac_objext
   3814   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3815 done
   3816 rm -f conftest.$ac_ext
   3817 CC=$ac_save_CC
   3818 
   3819 fi
   3820 # AC_CACHE_VAL
   3821 case "x$ac_cv_prog_cc_c99" in
   3822   x)
   3823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3824 $as_echo "none needed" >&6; } ;;
   3825   xno)
   3826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3827 $as_echo "unsupported" >&6; } ;;
   3828   *)
   3829     CC="$CC $ac_cv_prog_cc_c99"
   3830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3831 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   3832 esac
   3833 if test "x$ac_cv_prog_cc_c99" != xno; then :
   3834 
   3835 fi
   3836 
   3837 
   3838 
   3839 ac_ext=c
   3840 ac_cpp='$CPP $CPPFLAGS'
   3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3846 # On Suns, sometimes $CPP names a directory.
   3847 if test -n "$CPP" && test -d "$CPP"; then
   3848   CPP=
   3849 fi
   3850 if test -z "$CPP"; then
   3851   if ${ac_cv_prog_CPP+:} false; then :
   3852   $as_echo_n "(cached) " >&6
   3853 else
   3854       # Double quotes because CPP needs to be expanded
   3855     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3856     do
   3857       ac_preproc_ok=false
   3858 for ac_c_preproc_warn_flag in '' yes
   3859 do
   3860   # Use a header file that comes with gcc, so configuring glibc
   3861   # with a fresh cross-compiler works.
   3862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3863   # <limits.h> exists even on freestanding compilers.
   3864   # On the NeXT, cc -E runs the code through the compiler's parser,
   3865   # not just through cpp. "Syntax error" is here to catch this case.
   3866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3867 /* end confdefs.h.  */
   3868 #ifdef __STDC__
   3869 # include <limits.h>
   3870 #else
   3871 # include <assert.h>
   3872 #endif
   3873 		     Syntax error
   3874 _ACEOF
   3875 if ac_fn_c_try_cpp "$LINENO"; then :
   3876 
   3877 else
   3878   # Broken: fails on valid input.
   3879 continue
   3880 fi
   3881 rm -f conftest.err conftest.i conftest.$ac_ext
   3882 
   3883   # OK, works on sane cases.  Now check whether nonexistent headers
   3884   # can be detected and how.
   3885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3886 /* end confdefs.h.  */
   3887 #include <ac_nonexistent.h>
   3888 _ACEOF
   3889 if ac_fn_c_try_cpp "$LINENO"; then :
   3890   # Broken: success on invalid input.
   3891 continue
   3892 else
   3893   # Passes both tests.
   3894 ac_preproc_ok=:
   3895 break
   3896 fi
   3897 rm -f conftest.err conftest.i conftest.$ac_ext
   3898 
   3899 done
   3900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3901 rm -f conftest.i conftest.err conftest.$ac_ext
   3902 if $ac_preproc_ok; then :
   3903   break
   3904 fi
   3905 
   3906     done
   3907     ac_cv_prog_CPP=$CPP
   3908 
   3909 fi
   3910   CPP=$ac_cv_prog_CPP
   3911 else
   3912   ac_cv_prog_CPP=$CPP
   3913 fi
   3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3915 $as_echo "$CPP" >&6; }
   3916 ac_preproc_ok=false
   3917 for ac_c_preproc_warn_flag in '' yes
   3918 do
   3919   # Use a header file that comes with gcc, so configuring glibc
   3920   # with a fresh cross-compiler works.
   3921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3922   # <limits.h> exists even on freestanding compilers.
   3923   # On the NeXT, cc -E runs the code through the compiler's parser,
   3924   # not just through cpp. "Syntax error" is here to catch this case.
   3925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3926 /* end confdefs.h.  */
   3927 #ifdef __STDC__
   3928 # include <limits.h>
   3929 #else
   3930 # include <assert.h>
   3931 #endif
   3932 		     Syntax error
   3933 _ACEOF
   3934 if ac_fn_c_try_cpp "$LINENO"; then :
   3935 
   3936 else
   3937   # Broken: fails on valid input.
   3938 continue
   3939 fi
   3940 rm -f conftest.err conftest.i conftest.$ac_ext
   3941 
   3942   # OK, works on sane cases.  Now check whether nonexistent headers
   3943   # can be detected and how.
   3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3945 /* end confdefs.h.  */
   3946 #include <ac_nonexistent.h>
   3947 _ACEOF
   3948 if ac_fn_c_try_cpp "$LINENO"; then :
   3949   # Broken: success on invalid input.
   3950 continue
   3951 else
   3952   # Passes both tests.
   3953 ac_preproc_ok=:
   3954 break
   3955 fi
   3956 rm -f conftest.err conftest.i conftest.$ac_ext
   3957 
   3958 done
   3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3960 rm -f conftest.i conftest.err conftest.$ac_ext
   3961 if $ac_preproc_ok; then :
   3962 
   3963 else
   3964   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3966 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3967 See \`config.log' for more details" "$LINENO" 5; }
   3968 fi
   3969 
   3970 ac_ext=c
   3971 ac_cpp='$CPP $CPPFLAGS'
   3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3975 
   3976 
   3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3979 if ${ac_cv_path_GREP+:} false; then :
   3980   $as_echo_n "(cached) " >&6
   3981 else
   3982   if test -z "$GREP"; then
   3983   ac_path_GREP_found=false
   3984   # Loop through the user's path and test for each of PROGNAME-LIST
   3985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3987 do
   3988   IFS=$as_save_IFS
   3989   test -z "$as_dir" && as_dir=.
   3990     for ac_prog in grep ggrep; do
   3991     for ac_exec_ext in '' $ac_executable_extensions; do
   3992       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3993       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3994 # Check for GNU ac_path_GREP and select it if it is found.
   3995   # Check for GNU $ac_path_GREP
   3996 case `"$ac_path_GREP" --version 2>&1` in
   3997 *GNU*)
   3998   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3999 *)
   4000   ac_count=0
   4001   $as_echo_n 0123456789 >"conftest.in"
   4002   while :
   4003   do
   4004     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4005     mv "conftest.tmp" "conftest.in"
   4006     cp "conftest.in" "conftest.nl"
   4007     $as_echo 'GREP' >> "conftest.nl"
   4008     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4010     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4011     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4012       # Best one so far, save it but keep looking for a better one
   4013       ac_cv_path_GREP="$ac_path_GREP"
   4014       ac_path_GREP_max=$ac_count
   4015     fi
   4016     # 10*(2^10) chars as input seems more than enough
   4017     test $ac_count -gt 10 && break
   4018   done
   4019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4020 esac
   4021 
   4022       $ac_path_GREP_found && break 3
   4023     done
   4024   done
   4025   done
   4026 IFS=$as_save_IFS
   4027   if test -z "$ac_cv_path_GREP"; then
   4028     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4029   fi
   4030 else
   4031   ac_cv_path_GREP=$GREP
   4032 fi
   4033 
   4034 fi
   4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4036 $as_echo "$ac_cv_path_GREP" >&6; }
   4037  GREP="$ac_cv_path_GREP"
   4038 
   4039 
   4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4041 $as_echo_n "checking for egrep... " >&6; }
   4042 if ${ac_cv_path_EGREP+:} false; then :
   4043   $as_echo_n "(cached) " >&6
   4044 else
   4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4046    then ac_cv_path_EGREP="$GREP -E"
   4047    else
   4048      if test -z "$EGREP"; then
   4049   ac_path_EGREP_found=false
   4050   # Loop through the user's path and test for each of PROGNAME-LIST
   4051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4053 do
   4054   IFS=$as_save_IFS
   4055   test -z "$as_dir" && as_dir=.
   4056     for ac_prog in egrep; do
   4057     for ac_exec_ext in '' $ac_executable_extensions; do
   4058       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4059       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4060 # Check for GNU ac_path_EGREP and select it if it is found.
   4061   # Check for GNU $ac_path_EGREP
   4062 case `"$ac_path_EGREP" --version 2>&1` in
   4063 *GNU*)
   4064   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4065 *)
   4066   ac_count=0
   4067   $as_echo_n 0123456789 >"conftest.in"
   4068   while :
   4069   do
   4070     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4071     mv "conftest.tmp" "conftest.in"
   4072     cp "conftest.in" "conftest.nl"
   4073     $as_echo 'EGREP' >> "conftest.nl"
   4074     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4076     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4077     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4078       # Best one so far, save it but keep looking for a better one
   4079       ac_cv_path_EGREP="$ac_path_EGREP"
   4080       ac_path_EGREP_max=$ac_count
   4081     fi
   4082     # 10*(2^10) chars as input seems more than enough
   4083     test $ac_count -gt 10 && break
   4084   done
   4085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4086 esac
   4087 
   4088       $ac_path_EGREP_found && break 3
   4089     done
   4090   done
   4091   done
   4092 IFS=$as_save_IFS
   4093   if test -z "$ac_cv_path_EGREP"; then
   4094     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4095   fi
   4096 else
   4097   ac_cv_path_EGREP=$EGREP
   4098 fi
   4099 
   4100    fi
   4101 fi
   4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4103 $as_echo "$ac_cv_path_EGREP" >&6; }
   4104  EGREP="$ac_cv_path_EGREP"
   4105 
   4106 
   4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4108 $as_echo_n "checking for ANSI C header files... " >&6; }
   4109 if ${ac_cv_header_stdc+:} false; then :
   4110   $as_echo_n "(cached) " >&6
   4111 else
   4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4113 /* end confdefs.h.  */
   4114 #include <stdlib.h>
   4115 #include <stdarg.h>
   4116 #include <string.h>
   4117 #include <float.h>
   4118 
   4119 int
   4120 main ()
   4121 {
   4122 
   4123   ;
   4124   return 0;
   4125 }
   4126 _ACEOF
   4127 if ac_fn_c_try_compile "$LINENO"; then :
   4128   ac_cv_header_stdc=yes
   4129 else
   4130   ac_cv_header_stdc=no
   4131 fi
   4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4133 
   4134 if test $ac_cv_header_stdc = yes; then
   4135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4137 /* end confdefs.h.  */
   4138 #include <string.h>
   4139 
   4140 _ACEOF
   4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4142   $EGREP "memchr" >/dev/null 2>&1; then :
   4143 
   4144 else
   4145   ac_cv_header_stdc=no
   4146 fi
   4147 rm -f conftest*
   4148 
   4149 fi
   4150 
   4151 if test $ac_cv_header_stdc = yes; then
   4152   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4154 /* end confdefs.h.  */
   4155 #include <stdlib.h>
   4156 
   4157 _ACEOF
   4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4159   $EGREP "free" >/dev/null 2>&1; then :
   4160 
   4161 else
   4162   ac_cv_header_stdc=no
   4163 fi
   4164 rm -f conftest*
   4165 
   4166 fi
   4167 
   4168 if test $ac_cv_header_stdc = yes; then
   4169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4170   if test "$cross_compiling" = yes; then :
   4171   :
   4172 else
   4173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4174 /* end confdefs.h.  */
   4175 #include <ctype.h>
   4176 #include <stdlib.h>
   4177 #if ((' ' & 0x0FF) == 0x020)
   4178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4180 #else
   4181 # define ISLOWER(c) \
   4182 		   (('a' <= (c) && (c) <= 'i') \
   4183 		     || ('j' <= (c) && (c) <= 'r') \
   4184 		     || ('s' <= (c) && (c) <= 'z'))
   4185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4186 #endif
   4187 
   4188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4189 int
   4190 main ()
   4191 {
   4192   int i;
   4193   for (i = 0; i < 256; i++)
   4194     if (XOR (islower (i), ISLOWER (i))
   4195 	|| toupper (i) != TOUPPER (i))
   4196       return 2;
   4197   return 0;
   4198 }
   4199 _ACEOF
   4200 if ac_fn_c_try_run "$LINENO"; then :
   4201 
   4202 else
   4203   ac_cv_header_stdc=no
   4204 fi
   4205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4206   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4207 fi
   4208 
   4209 fi
   4210 fi
   4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4212 $as_echo "$ac_cv_header_stdc" >&6; }
   4213 if test $ac_cv_header_stdc = yes; then
   4214 
   4215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4216 
   4217 fi
   4218 
   4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4221 		  inttypes.h stdint.h unistd.h
   4222 do :
   4223   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4225 "
   4226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4227   cat >>confdefs.h <<_ACEOF
   4228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4229 _ACEOF
   4230 
   4231 fi
   4232 
   4233 done
   4234 
   4235 
   4236 
   4237 
   4238 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4239 	if test -n "$ac_tool_prefix"; then
   4240   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4241 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4243 $as_echo_n "checking for $ac_word... " >&6; }
   4244 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   4245   $as_echo_n "(cached) " >&6
   4246 else
   4247   case $PKG_CONFIG in
   4248   [\\/]* | ?:[\\/]*)
   4249   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4250   ;;
   4251   *)
   4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4253 for as_dir in $PATH
   4254 do
   4255   IFS=$as_save_IFS
   4256   test -z "$as_dir" && as_dir=.
   4257     for ac_exec_ext in '' $ac_executable_extensions; do
   4258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4259     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4261     break 2
   4262   fi
   4263 done
   4264   done
   4265 IFS=$as_save_IFS
   4266 
   4267   ;;
   4268 esac
   4269 fi
   4270 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4271 if test -n "$PKG_CONFIG"; then
   4272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4273 $as_echo "$PKG_CONFIG" >&6; }
   4274 else
   4275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4276 $as_echo "no" >&6; }
   4277 fi
   4278 
   4279 
   4280 fi
   4281 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4282   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4283   # Extract the first word of "pkg-config", so it can be a program name with args.
   4284 set dummy pkg-config; ac_word=$2
   4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4286 $as_echo_n "checking for $ac_word... " >&6; }
   4287 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   4288   $as_echo_n "(cached) " >&6
   4289 else
   4290   case $ac_pt_PKG_CONFIG in
   4291   [\\/]* | ?:[\\/]*)
   4292   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4293   ;;
   4294   *)
   4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4296 for as_dir in $PATH
   4297 do
   4298   IFS=$as_save_IFS
   4299   test -z "$as_dir" && as_dir=.
   4300     for ac_exec_ext in '' $ac_executable_extensions; do
   4301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4302     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4304     break 2
   4305   fi
   4306 done
   4307   done
   4308 IFS=$as_save_IFS
   4309 
   4310   ;;
   4311 esac
   4312 fi
   4313 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4314 if test -n "$ac_pt_PKG_CONFIG"; then
   4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4316 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   4317 else
   4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4319 $as_echo "no" >&6; }
   4320 fi
   4321 
   4322   if test "x$ac_pt_PKG_CONFIG" = x; then
   4323     PKG_CONFIG=""
   4324   else
   4325     case $cross_compiling:$ac_tool_warned in
   4326 yes:)
   4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4329 ac_tool_warned=yes ;;
   4330 esac
   4331     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4332   fi
   4333 else
   4334   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4335 fi
   4336 
   4337 fi
   4338 if test -n "$PKG_CONFIG"; then
   4339 	_pkg_min_version=0.9.0
   4340 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4341 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4342 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4343 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4344 $as_echo "yes" >&6; }
   4345 	else
   4346 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4347 $as_echo "no" >&6; }
   4348 		PKG_CONFIG=""
   4349 	fi
   4350 
   4351 fi
   4352 # Make sure we can run config.sub.
   4353 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4354   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4355 
   4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4357 $as_echo_n "checking build system type... " >&6; }
   4358 if ${ac_cv_build+:} false; then :
   4359   $as_echo_n "(cached) " >&6
   4360 else
   4361   ac_build_alias=$build_alias
   4362 test "x$ac_build_alias" = x &&
   4363   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4364 test "x$ac_build_alias" = x &&
   4365   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4366 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4367   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4368 
   4369 fi
   4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4371 $as_echo "$ac_cv_build" >&6; }
   4372 case $ac_cv_build in
   4373 *-*-*) ;;
   4374 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4375 esac
   4376 build=$ac_cv_build
   4377 ac_save_IFS=$IFS; IFS='-'
   4378 set x $ac_cv_build
   4379 shift
   4380 build_cpu=$1
   4381 build_vendor=$2
   4382 shift; shift
   4383 # Remember, the first character of IFS is used to create $*,
   4384 # except with old shells:
   4385 build_os=$*
   4386 IFS=$ac_save_IFS
   4387 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4388 
   4389 
   4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4391 $as_echo_n "checking host system type... " >&6; }
   4392 if ${ac_cv_host+:} false; then :
   4393   $as_echo_n "(cached) " >&6
   4394 else
   4395   if test "x$host_alias" = x; then
   4396   ac_cv_host=$ac_cv_build
   4397 else
   4398   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4399     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4400 fi
   4401 
   4402 fi
   4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4404 $as_echo "$ac_cv_host" >&6; }
   4405 case $ac_cv_host in
   4406 *-*-*) ;;
   4407 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4408 esac
   4409 host=$ac_cv_host
   4410 ac_save_IFS=$IFS; IFS='-'
   4411 set x $ac_cv_host
   4412 shift
   4413 host_cpu=$1
   4414 host_vendor=$2
   4415 shift; shift
   4416 # Remember, the first character of IFS is used to create $*,
   4417 # except with old shells:
   4418 host_os=$*
   4419 IFS=$ac_save_IFS
   4420 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4421 
   4422 
   4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4424 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4425 if ${ac_cv_path_SED+:} false; then :
   4426   $as_echo_n "(cached) " >&6
   4427 else
   4428             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4429      for ac_i in 1 2 3 4 5 6 7; do
   4430        ac_script="$ac_script$as_nl$ac_script"
   4431      done
   4432      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4433      { ac_script=; unset ac_script;}
   4434      if test -z "$SED"; then
   4435   ac_path_SED_found=false
   4436   # Loop through the user's path and test for each of PROGNAME-LIST
   4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4438 for as_dir in $PATH
   4439 do
   4440   IFS=$as_save_IFS
   4441   test -z "$as_dir" && as_dir=.
   4442     for ac_prog in sed gsed; do
   4443     for ac_exec_ext in '' $ac_executable_extensions; do
   4444       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4445       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   4446 # Check for GNU ac_path_SED and select it if it is found.
   4447   # Check for GNU $ac_path_SED
   4448 case `"$ac_path_SED" --version 2>&1` in
   4449 *GNU*)
   4450   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4451 *)
   4452   ac_count=0
   4453   $as_echo_n 0123456789 >"conftest.in"
   4454   while :
   4455   do
   4456     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4457     mv "conftest.tmp" "conftest.in"
   4458     cp "conftest.in" "conftest.nl"
   4459     $as_echo '' >> "conftest.nl"
   4460     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4461     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4462     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4463     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4464       # Best one so far, save it but keep looking for a better one
   4465       ac_cv_path_SED="$ac_path_SED"
   4466       ac_path_SED_max=$ac_count
   4467     fi
   4468     # 10*(2^10) chars as input seems more than enough
   4469     test $ac_count -gt 10 && break
   4470   done
   4471   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4472 esac
   4473 
   4474       $ac_path_SED_found && break 3
   4475     done
   4476   done
   4477   done
   4478 IFS=$as_save_IFS
   4479   if test -z "$ac_cv_path_SED"; then
   4480     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4481   fi
   4482 else
   4483   ac_cv_path_SED=$SED
   4484 fi
   4485 
   4486 fi
   4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4488 $as_echo "$ac_cv_path_SED" >&6; }
   4489  SED="$ac_cv_path_SED"
   4490   rm -f conftest.sed
   4491 
   4492 
   4493 
   4494 
   4495 
   4496 if  test "x$GCC" = xyes ; then
   4497     CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
   4498 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
   4499 -Wbad-function-cast -Wformat=2"
   4500     case `$CC -dumpversion` in
   4501     3.4.* | 4.*)
   4502 	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
   4503 	;;
   4504     esac
   4505 else
   4506     ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
   4507 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
   4508   SUNCC="yes"
   4509 else
   4510   SUNCC="no"
   4511 fi
   4512 
   4513     if test "x$SUNCC" = "xyes"; then
   4514 	CWARNFLAGS="-v"
   4515     fi
   4516 fi
   4517 
   4518 
   4519 
   4520 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
   4521 
   4522 
   4523 
   4524 # Check whether --enable-strict-compilation was given.
   4525 if test "${enable_strict_compilation+set}" = set; then :
   4526   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
   4527 else
   4528   STRICT_COMPILE=no
   4529 fi
   4530 
   4531 if test "x$STRICT_COMPILE" = "xyes"; then
   4532 	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
   4533 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
   4534   SUNCC="yes"
   4535 else
   4536   SUNCC="no"
   4537 fi
   4538 
   4539 	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
   4540 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
   4541   INTELCC="yes"
   4542 else
   4543   INTELCC="no"
   4544 fi
   4545 
   4546 	if test "x$GCC" = xyes ; then
   4547 		STRICT_CFLAGS="-pedantic -Werror"
   4548 	elif test "x$SUNCC" = "xyes"; then
   4549 		STRICT_CFLAGS="-errwarn"
   4550     elif test "x$INTELCC" = "xyes"; then
   4551 		STRICT_CFLAGS="-Werror"
   4552 	fi
   4553 fi
   4554 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
   4555 
   4556 
   4557 
   4558 
   4559 cat >>confdefs.h <<_ACEOF
   4560 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
   4561 _ACEOF
   4562 
   4563 	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
   4564 	if test "x$PVM" = "x"; then
   4565 		PVM="0"
   4566 	fi
   4567 
   4568 cat >>confdefs.h <<_ACEOF
   4569 #define PACKAGE_VERSION_MINOR $PVM
   4570 _ACEOF
   4571 
   4572 	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
   4573 	if test "x$PVP" = "x"; then
   4574 		PVP="0"
   4575 	fi
   4576 
   4577 cat >>confdefs.h <<_ACEOF
   4578 #define PACKAGE_VERSION_PATCHLEVEL $PVP
   4579 _ACEOF
   4580 
   4581 
   4582 
   4583 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
   4584 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
   4585 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
   4586 echo 'git directory not found: installing possibly empty changelog.' >&2)"
   4587 
   4588 
   4589 
   4590 
   4591 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
   4592 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
   4593 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
   4594 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
   4595 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
   4596 
   4597 
   4598 
   4599 
   4600 
   4601 
   4602 if test x$APP_MAN_SUFFIX = x    ; then
   4603     APP_MAN_SUFFIX=1
   4604 fi
   4605 if test x$APP_MAN_DIR = x    ; then
   4606     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
   4607 fi
   4608 
   4609 if test x$LIB_MAN_SUFFIX = x    ; then
   4610     LIB_MAN_SUFFIX=3
   4611 fi
   4612 if test x$LIB_MAN_DIR = x    ; then
   4613     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
   4614 fi
   4615 
   4616 if test x$FILE_MAN_SUFFIX = x    ; then
   4617     case $host_os in
   4618 	solaris*)	FILE_MAN_SUFFIX=4  ;;
   4619 	*)		FILE_MAN_SUFFIX=5  ;;
   4620     esac
   4621 fi
   4622 if test x$FILE_MAN_DIR = x    ; then
   4623     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
   4624 fi
   4625 
   4626 if test x$MISC_MAN_SUFFIX = x    ; then
   4627     case $host_os in
   4628 	solaris*)	MISC_MAN_SUFFIX=5  ;;
   4629 	*)		MISC_MAN_SUFFIX=7  ;;
   4630     esac
   4631 fi
   4632 if test x$MISC_MAN_DIR = x    ; then
   4633     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
   4634 fi
   4635 
   4636 if test x$DRIVER_MAN_SUFFIX = x    ; then
   4637     case $host_os in
   4638 	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
   4639 	*)		DRIVER_MAN_SUFFIX=4  ;;
   4640     esac
   4641 fi
   4642 if test x$DRIVER_MAN_DIR = x    ; then
   4643     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
   4644 fi
   4645 
   4646 if test x$ADMIN_MAN_SUFFIX = x    ; then
   4647     case $host_os in
   4648 	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
   4649 	*)		ADMIN_MAN_SUFFIX=8  ;;
   4650     esac
   4651 fi
   4652 if test x$ADMIN_MAN_DIR = x    ; then
   4653     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
   4654 fi
   4655 
   4656 
   4657 
   4658 
   4659 
   4660 
   4661 
   4662 
   4663 
   4664 
   4665 
   4666 
   4667 
   4668 
   4669 
   4670 XORG_MAN_PAGE="X Version 11"
   4671 
   4672 MAN_SUBSTS="\
   4673 	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   4674 	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   4675 	-e 's|__xservername__|Xorg|g' \
   4676 	-e 's|__xconfigfile__|xorg.conf|g' \
   4677 	-e 's|__projectroot__|\$(prefix)|g' \
   4678 	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
   4679 	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
   4680 	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
   4681 	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
   4682 	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
   4683 	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
   4684 	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
   4685 
   4686 
   4687 
   4688 # Check whether --enable-silent-rules was given.
   4689 if test "${enable_silent_rules+set}" = set; then :
   4690   enableval=$enable_silent_rules;
   4691 fi
   4692 
   4693 case $enable_silent_rules in
   4694 yes) AM_DEFAULT_VERBOSITY=0;;
   4695 no)  AM_DEFAULT_VERBOSITY=1;;
   4696 *)   AM_DEFAULT_VERBOSITY=0;;
   4697 esac
   4698 AM_BACKSLASH='\'
   4699 
   4700 
   4701 
   4702 
   4703 # Check whether --with-rsh was given.
   4704 if test "${with_rsh+set}" = set; then :
   4705   withval=$with_rsh;  rsh="$withval"
   4706 else
   4707    rsh=${bindir}/ssh
   4708 fi
   4709 
   4710 RSH=$rsh
   4711 
   4712 
   4713 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
   4714 if test "x$ac_cv_func_mkstemp" = xyes; then :
   4715 
   4716 $as_echo "#define HAS_MKSTEMP 1" >>confdefs.h
   4717 
   4718 fi
   4719 
   4720 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
   4721 if test "x$ac_cv_func_putenv" = xyes; then :
   4722 
   4723 else
   4724 
   4725 $as_echo "#define NOPUTENV 1" >>confdefs.h
   4726 
   4727 fi
   4728 
   4729 
   4730 # Checks for pkg-config packages
   4731 
   4732 pkg_failed=no
   4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5
   4734 $as_echo_n "checking for XSM... " >&6; }
   4735 
   4736 if test -n "$XSM_CFLAGS"; then
   4737     pkg_cv_XSM_CFLAGS="$XSM_CFLAGS"
   4738  elif test -n "$PKG_CONFIG"; then
   4739     if test -n "$PKG_CONFIG" && \
   4740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt ice sm xaw7\""; } >&5
   4741   ($PKG_CONFIG --exists --print-errors "x11 xt ice sm xaw7") 2>&5
   4742   ac_status=$?
   4743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4744   test $ac_status = 0; }; then
   4745   pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt ice sm xaw7" 2>/dev/null`
   4746 else
   4747   pkg_failed=yes
   4748 fi
   4749  else
   4750     pkg_failed=untried
   4751 fi
   4752 if test -n "$XSM_LIBS"; then
   4753     pkg_cv_XSM_LIBS="$XSM_LIBS"
   4754  elif test -n "$PKG_CONFIG"; then
   4755     if test -n "$PKG_CONFIG" && \
   4756     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt ice sm xaw7\""; } >&5
   4757   ($PKG_CONFIG --exists --print-errors "x11 xt ice sm xaw7") 2>&5
   4758   ac_status=$?
   4759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4760   test $ac_status = 0; }; then
   4761   pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt ice sm xaw7" 2>/dev/null`
   4762 else
   4763   pkg_failed=yes
   4764 fi
   4765  else
   4766     pkg_failed=untried
   4767 fi
   4768 
   4769 
   4770 
   4771 if test $pkg_failed = yes; then
   4772 
   4773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   4774         _pkg_short_errors_supported=yes
   4775 else
   4776         _pkg_short_errors_supported=no
   4777 fi
   4778         if test $_pkg_short_errors_supported = yes; then
   4779 	        XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt ice sm xaw7" 2>&1`
   4780         else
   4781 	        XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt ice sm xaw7" 2>&1`
   4782         fi
   4783 	# Put the nasty error message in config.log where it belongs
   4784 	echo "$XSM_PKG_ERRORS" >&5
   4785 
   4786 	as_fn_error $? "Package requirements (x11 xt ice sm xaw7) were not met:
   4787 
   4788 $XSM_PKG_ERRORS
   4789 
   4790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   4791 installed software in a non-standard prefix.
   4792 
   4793 Alternatively, you may set the environment variables XSM_CFLAGS
   4794 and XSM_LIBS to avoid the need to call pkg-config.
   4795 See the pkg-config man page for more details.
   4796 " "$LINENO" 5
   4797 elif test $pkg_failed = untried; then
   4798 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4800 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   4801 is in your PATH or set the PKG_CONFIG environment variable to the full
   4802 path to pkg-config.
   4803 
   4804 Alternatively, you may set the environment variables XSM_CFLAGS
   4805 and XSM_LIBS to avoid the need to call pkg-config.
   4806 See the pkg-config man page for more details.
   4807 
   4808 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   4809 See \`config.log' for more details" "$LINENO" 5; }
   4810 else
   4811 	XSM_CFLAGS=$pkg_cv_XSM_CFLAGS
   4812 	XSM_LIBS=$pkg_cv_XSM_LIBS
   4813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4814 $as_echo "yes" >&6; }
   4815 	:
   4816 fi
   4817 
   4818 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
   4819 
   4820 # Check whether --with-appdefaultdir was given.
   4821 if test "${with_appdefaultdir+set}" = set; then :
   4822   withval=$with_appdefaultdir; appdefaultdir="$withval"
   4823 else
   4824   appdefaultdir="${xt_appdefaultdir}"
   4825 fi
   4826 
   4827 
   4828 
   4829 
   4830 ac_config_files="$ac_config_files Makefile"
   4831 
   4832 cat >confcache <<\_ACEOF
   4833 # This file is a shell script that caches the results of configure
   4834 # tests run on this system so they can be shared between configure
   4835 # scripts and configure runs, see configure's option --config-cache.
   4836 # It is not useful on other systems.  If it contains results you don't
   4837 # want to keep, you may remove or edit it.
   4838 #
   4839 # config.status only pays attention to the cache file if you give it
   4840 # the --recheck option to rerun configure.
   4841 #
   4842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   4843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   4844 # following values.
   4845 
   4846 _ACEOF
   4847 
   4848 # The following way of writing the cache mishandles newlines in values,
   4849 # but we know of no workaround that is simple, portable, and efficient.
   4850 # So, we kill variables containing newlines.
   4851 # Ultrix sh set writes to stderr and can't be redirected directly,
   4852 # and sets the high bit in the cache file unless we assign to the vars.
   4853 (
   4854   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   4855     eval ac_val=\$$ac_var
   4856     case $ac_val in #(
   4857     *${as_nl}*)
   4858       case $ac_var in #(
   4859       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   4860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   4861       esac
   4862       case $ac_var in #(
   4863       _ | IFS | as_nl) ;; #(
   4864       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   4865       *) { eval $ac_var=; unset $ac_var;} ;;
   4866       esac ;;
   4867     esac
   4868   done
   4869 
   4870   (set) 2>&1 |
   4871     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   4872     *${as_nl}ac_space=\ *)
   4873       # `set' does not quote correctly, so add quotes: double-quote
   4874       # substitution turns \\\\ into \\, and sed turns \\ into \.
   4875       sed -n \
   4876 	"s/'/'\\\\''/g;
   4877 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   4878       ;; #(
   4879     *)
   4880       # `set' quotes correctly as required by POSIX, so do not add quotes.
   4881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   4882       ;;
   4883     esac |
   4884     sort
   4885 ) |
   4886   sed '
   4887      /^ac_cv_env_/b end
   4888      t clear
   4889      :clear
   4890      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   4891      t end
   4892      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   4893      :end' >>confcache
   4894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   4895   if test -w "$cache_file"; then
   4896     if test "x$cache_file" != "x/dev/null"; then
   4897       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   4898 $as_echo "$as_me: updating cache $cache_file" >&6;}
   4899       if test ! -f "$cache_file" || test -h "$cache_file"; then
   4900 	cat confcache >"$cache_file"
   4901       else
   4902         case $cache_file in #(
   4903         */* | ?:*)
   4904 	  mv -f confcache "$cache_file"$$ &&
   4905 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   4906         *)
   4907 	  mv -f confcache "$cache_file" ;;
   4908 	esac
   4909       fi
   4910     fi
   4911   else
   4912     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   4913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   4914   fi
   4915 fi
   4916 rm -f confcache
   4917 
   4918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   4919 # Let make expand exec_prefix.
   4920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   4921 
   4922 DEFS=-DHAVE_CONFIG_H
   4923 
   4924 ac_libobjs=
   4925 ac_ltlibobjs=
   4926 U=
   4927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   4928   # 1. Remove the extension, and $U if already installed.
   4929   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   4930   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   4931   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   4932   #    will be set to the directory where LIBOBJS objects are built.
   4933   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   4934   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   4935 done
   4936 LIBOBJS=$ac_libobjs
   4937 
   4938 LTLIBOBJS=$ac_ltlibobjs
   4939 
   4940 
   4941  if test -n "$EXEEXT"; then
   4942   am__EXEEXT_TRUE=
   4943   am__EXEEXT_FALSE='#'
   4944 else
   4945   am__EXEEXT_TRUE='#'
   4946   am__EXEEXT_FALSE=
   4947 fi
   4948 
   4949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   4950   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   4951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   4952 fi
   4953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   4954   as_fn_error $? "conditional \"AMDEP\" was never defined.
   4955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   4956 fi
   4957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   4958   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   4959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   4960 fi
   4961 
   4962 : "${CONFIG_STATUS=./config.status}"
   4963 ac_write_fail=0
   4964 ac_clean_files_save=$ac_clean_files
   4965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   4966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   4967 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   4968 as_write_fail=0
   4969 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   4970 #! $SHELL
   4971 # Generated by $as_me.
   4972 # Run this file to recreate the current configuration.
   4973 # Compiler output produced by configure, useful for debugging
   4974 # configure, is in config.log if it exists.
   4975 
   4976 debug=false
   4977 ac_cs_recheck=false
   4978 ac_cs_silent=false
   4979 
   4980 SHELL=\${CONFIG_SHELL-$SHELL}
   4981 export SHELL
   4982 _ASEOF
   4983 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   4984 ## -------------------- ##
   4985 ## M4sh Initialization. ##
   4986 ## -------------------- ##
   4987 
   4988 # Be more Bourne compatible
   4989 DUALCASE=1; export DUALCASE # for MKS sh
   4990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   4991   emulate sh
   4992   NULLCMD=:
   4993   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   4994   # is contrary to our usage.  Disable this feature.
   4995   alias -g '${1+"$@"}'='"$@"'
   4996   setopt NO_GLOB_SUBST
   4997 else
   4998   case `(set -o) 2>/dev/null` in #(
   4999   *posix*) :
   5000     set -o posix ;; #(
   5001   *) :
   5002      ;;
   5003 esac
   5004 fi
   5005 
   5006 
   5007 as_nl='
   5008 '
   5009 export as_nl
   5010 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   5011 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   5012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   5013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   5014 # Prefer a ksh shell builtin over an external printf program on Solaris,
   5015 # but without wasting forks for bash or zsh.
   5016 if test -z "$BASH_VERSION$ZSH_VERSION" \
   5017     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   5018   as_echo='print -r --'
   5019   as_echo_n='print -rn --'
   5020 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   5021   as_echo='printf %s\n'
   5022   as_echo_n='printf %s'
   5023 else
   5024   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   5025     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   5026     as_echo_n='/usr/ucb/echo -n'
   5027   else
   5028     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   5029     as_echo_n_body='eval
   5030       arg=$1;
   5031       case $arg in #(
   5032       *"$as_nl"*)
   5033 	expr "X$arg" : "X\\(.*\\)$as_nl";
   5034 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   5035       esac;
   5036       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   5037     '
   5038     export as_echo_n_body
   5039     as_echo_n='sh -c $as_echo_n_body as_echo'
   5040   fi
   5041   export as_echo_body
   5042   as_echo='sh -c $as_echo_body as_echo'
   5043 fi
   5044 
   5045 # The user is always right.
   5046 if test "${PATH_SEPARATOR+set}" != set; then
   5047   PATH_SEPARATOR=:
   5048   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   5049     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   5050       PATH_SEPARATOR=';'
   5051   }
   5052 fi
   5053 
   5054 
   5055 # IFS
   5056 # We need space, tab and new line, in precisely that order.  Quoting is
   5057 # there to prevent editors from complaining about space-tab.
   5058 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   5059 # splitting by setting IFS to empty value.)
   5060 IFS=" ""	$as_nl"
   5061 
   5062 # Find who we are.  Look in the path if we contain no directory separator.
   5063 as_myself=
   5064 case $0 in #((
   5065   *[\\/]* ) as_myself=$0 ;;
   5066   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5067 for as_dir in $PATH
   5068 do
   5069   IFS=$as_save_IFS
   5070   test -z "$as_dir" && as_dir=.
   5071     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   5072   done
   5073 IFS=$as_save_IFS
   5074 
   5075      ;;
   5076 esac
   5077 # We did not find ourselves, most probably we were run as `sh COMMAND'
   5078 # in which case we are not to be found in the path.
   5079 if test "x$as_myself" = x; then
   5080   as_myself=$0
   5081 fi
   5082 if test ! -f "$as_myself"; then
   5083   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   5084   exit 1
   5085 fi
   5086 
   5087 # Unset variables that we do not need and which cause bugs (e.g. in
   5088 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   5089 # suppresses any "Segmentation fault" message there.  '((' could
   5090 # trigger a bug in pdksh 5.2.14.
   5091 for as_var in BASH_ENV ENV MAIL MAILPATH
   5092 do eval test x\${$as_var+set} = xset \
   5093   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   5094 done
   5095 PS1='$ '
   5096 PS2='> '
   5097 PS4='+ '
   5098 
   5099 # NLS nuisances.
   5100 LC_ALL=C
   5101 export LC_ALL
   5102 LANGUAGE=C
   5103 export LANGUAGE
   5104 
   5105 # CDPATH.
   5106 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   5107 
   5108 
   5109 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   5110 # ----------------------------------------
   5111 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   5112 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   5113 # script with STATUS, using 1 if that was 0.
   5114 as_fn_error ()
   5115 {
   5116   as_status=$1; test $as_status -eq 0 && as_status=1
   5117   if test "$4"; then
   5118     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   5119     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   5120   fi
   5121   $as_echo "$as_me: error: $2" >&2
   5122   as_fn_exit $as_status
   5123 } # as_fn_error
   5124 
   5125 
   5126 # as_fn_set_status STATUS
   5127 # -----------------------
   5128 # Set $? to STATUS, without forking.
   5129 as_fn_set_status ()
   5130 {
   5131   return $1
   5132 } # as_fn_set_status
   5133 
   5134 # as_fn_exit STATUS
   5135 # -----------------
   5136 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   5137 as_fn_exit ()
   5138 {
   5139   set +e
   5140   as_fn_set_status $1
   5141   exit $1
   5142 } # as_fn_exit
   5143 
   5144 # as_fn_unset VAR
   5145 # ---------------
   5146 # Portably unset VAR.
   5147 as_fn_unset ()
   5148 {
   5149   { eval $1=; unset $1;}
   5150 }
   5151 as_unset=as_fn_unset
   5152 # as_fn_append VAR VALUE
   5153 # ----------------------
   5154 # Append the text in VALUE to the end of the definition contained in VAR. Take
   5155 # advantage of any shell optimizations that allow amortized linear growth over
   5156 # repeated appends, instead of the typical quadratic growth present in naive
   5157 # implementations.
   5158 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   5159   eval 'as_fn_append ()
   5160   {
   5161     eval $1+=\$2
   5162   }'
   5163 else
   5164   as_fn_append ()
   5165   {
   5166     eval $1=\$$1\$2
   5167   }
   5168 fi # as_fn_append
   5169 
   5170 # as_fn_arith ARG...
   5171 # ------------------
   5172 # Perform arithmetic evaluation on the ARGs, and store the result in the
   5173 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   5174 # must be portable across $(()) and expr.
   5175 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   5176   eval 'as_fn_arith ()
   5177   {
   5178     as_val=$(( $* ))
   5179   }'
   5180 else
   5181   as_fn_arith ()
   5182   {
   5183     as_val=`expr "$@" || test $? -eq 1`
   5184   }
   5185 fi # as_fn_arith
   5186 
   5187 
   5188 if expr a : '\(a\)' >/dev/null 2>&1 &&
   5189    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   5190   as_expr=expr
   5191 else
   5192   as_expr=false
   5193 fi
   5194 
   5195 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   5196   as_basename=basename
   5197 else
   5198   as_basename=false
   5199 fi
   5200 
   5201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   5202   as_dirname=dirname
   5203 else
   5204   as_dirname=false
   5205 fi
   5206 
   5207 as_me=`$as_basename -- "$0" ||
   5208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   5209 	 X"$0" : 'X\(//\)$' \| \
   5210 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   5211 $as_echo X/"$0" |
   5212     sed '/^.*\/\([^/][^/]*\)\/*$/{
   5213 	    s//\1/
   5214 	    q
   5215 	  }
   5216 	  /^X\/\(\/\/\)$/{
   5217 	    s//\1/
   5218 	    q
   5219 	  }
   5220 	  /^X\/\(\/\).*/{
   5221 	    s//\1/
   5222 	    q
   5223 	  }
   5224 	  s/.*/./; q'`
   5225 
   5226 # Avoid depending upon Character Ranges.
   5227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   5228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   5229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   5230 as_cr_digits='0123456789'
   5231 as_cr_alnum=$as_cr_Letters$as_cr_digits
   5232 
   5233 ECHO_C= ECHO_N= ECHO_T=
   5234 case `echo -n x` in #(((((
   5235 -n*)
   5236   case `echo 'xy\c'` in
   5237   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   5238   xy)  ECHO_C='\c';;
   5239   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   5240        ECHO_T='	';;
   5241   esac;;
   5242 *)
   5243   ECHO_N='-n';;
   5244 esac
   5245 
   5246 rm -f conf$$ conf$$.exe conf$$.file
   5247 if test -d conf$$.dir; then
   5248   rm -f conf$$.dir/conf$$.file
   5249 else
   5250   rm -f conf$$.dir
   5251   mkdir conf$$.dir 2>/dev/null
   5252 fi
   5253 if (echo >conf$$.file) 2>/dev/null; then
   5254   if ln -s conf$$.file conf$$ 2>/dev/null; then
   5255     as_ln_s='ln -s'
   5256     # ... but there are two gotchas:
   5257     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   5258     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   5259     # In both cases, we have to default to `cp -p'.
   5260     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   5261       as_ln_s='cp -p'
   5262   elif ln conf$$.file conf$$ 2>/dev/null; then
   5263     as_ln_s=ln
   5264   else
   5265     as_ln_s='cp -p'
   5266   fi
   5267 else
   5268   as_ln_s='cp -p'
   5269 fi
   5270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   5271 rmdir conf$$.dir 2>/dev/null
   5272 
   5273 
   5274 # as_fn_mkdir_p
   5275 # -------------
   5276 # Create "$as_dir" as a directory, including parents if necessary.
   5277 as_fn_mkdir_p ()
   5278 {
   5279 
   5280   case $as_dir in #(
   5281   -*) as_dir=./$as_dir;;
   5282   esac
   5283   test -d "$as_dir" || eval $as_mkdir_p || {
   5284     as_dirs=
   5285     while :; do
   5286       case $as_dir in #(
   5287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   5288       *) as_qdir=$as_dir;;
   5289       esac
   5290       as_dirs="'$as_qdir' $as_dirs"
   5291       as_dir=`$as_dirname -- "$as_dir" ||
   5292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   5293 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   5294 	 X"$as_dir" : 'X\(//\)$' \| \
   5295 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   5296 $as_echo X"$as_dir" |
   5297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   5298 	    s//\1/
   5299 	    q
   5300 	  }
   5301 	  /^X\(\/\/\)[^/].*/{
   5302 	    s//\1/
   5303 	    q
   5304 	  }
   5305 	  /^X\(\/\/\)$/{
   5306 	    s//\1/
   5307 	    q
   5308 	  }
   5309 	  /^X\(\/\).*/{
   5310 	    s//\1/
   5311 	    q
   5312 	  }
   5313 	  s/.*/./; q'`
   5314       test -d "$as_dir" && break
   5315     done
   5316     test -z "$as_dirs" || eval "mkdir $as_dirs"
   5317   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   5318 
   5319 
   5320 } # as_fn_mkdir_p
   5321 if mkdir -p . 2>/dev/null; then
   5322   as_mkdir_p='mkdir -p "$as_dir"'
   5323 else
   5324   test -d ./-p && rmdir ./-p
   5325   as_mkdir_p=false
   5326 fi
   5327 
   5328 if test -x / >/dev/null 2>&1; then
   5329   as_test_x='test -x'
   5330 else
   5331   if ls -dL / >/dev/null 2>&1; then
   5332     as_ls_L_option=L
   5333   else
   5334     as_ls_L_option=
   5335   fi
   5336   as_test_x='
   5337     eval sh -c '\''
   5338       if test -d "$1"; then
   5339 	test -d "$1/.";
   5340       else
   5341 	case $1 in #(
   5342 	-*)set "./$1";;
   5343 	esac;
   5344 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   5345 	???[sx]*):;;*)false;;esac;fi
   5346     '\'' sh
   5347   '
   5348 fi
   5349 as_executable_p=$as_test_x
   5350 
   5351 # Sed expression to map a string onto a valid CPP name.
   5352 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   5353 
   5354 # Sed expression to map a string onto a valid variable name.
   5355 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   5356 
   5357 
   5358 exec 6>&1
   5359 ## ----------------------------------- ##
   5360 ## Main body of $CONFIG_STATUS script. ##
   5361 ## ----------------------------------- ##
   5362 _ASEOF
   5363 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   5364 
   5365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5366 # Save the log message, to keep $0 and so on meaningful, and to
   5367 # report actual input values of CONFIG_FILES etc. instead of their
   5368 # values after options handling.
   5369 ac_log="
   5370 This file was extended by xsm $as_me 1.0.2, which was
   5371 generated by GNU Autoconf 2.68.  Invocation command line was
   5372 
   5373   CONFIG_FILES    = $CONFIG_FILES
   5374   CONFIG_HEADERS  = $CONFIG_HEADERS
   5375   CONFIG_LINKS    = $CONFIG_LINKS
   5376   CONFIG_COMMANDS = $CONFIG_COMMANDS
   5377   $ $0 $@
   5378 
   5379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   5380 "
   5381 
   5382 _ACEOF
   5383 
   5384 case $ac_config_files in *"
   5385 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   5386 esac
   5387 
   5388 case $ac_config_headers in *"
   5389 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   5390 esac
   5391 
   5392 
   5393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5394 # Files that config.status was made for.
   5395 config_files="$ac_config_files"
   5396 config_headers="$ac_config_headers"
   5397 config_commands="$ac_config_commands"
   5398 
   5399 _ACEOF
   5400 
   5401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5402 ac_cs_usage="\
   5403 \`$as_me' instantiates files and other configuration actions
   5404 from templates according to the current configuration.  Unless the files
   5405 and actions are specified as TAGs, all are instantiated by default.
   5406 
   5407 Usage: $0 [OPTION]... [TAG]...
   5408 
   5409   -h, --help       print this help, then exit
   5410   -V, --version    print version number and configuration settings, then exit
   5411       --config     print configuration, then exit
   5412   -q, --quiet, --silent
   5413                    do not print progress messages
   5414   -d, --debug      don't remove temporary files
   5415       --recheck    update $as_me by reconfiguring in the same conditions
   5416       --file=FILE[:TEMPLATE]
   5417                    instantiate the configuration file FILE
   5418       --header=FILE[:TEMPLATE]
   5419                    instantiate the configuration header FILE
   5420 
   5421 Configuration files:
   5422 $config_files
   5423 
   5424 Configuration headers:
   5425 $config_headers
   5426 
   5427 Configuration commands:
   5428 $config_commands
   5429 
   5430 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
   5431 
   5432 _ACEOF
   5433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5434 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   5435 ac_cs_version="\\
   5436 xsm config.status 1.0.2
   5437 configured by $0, generated by GNU Autoconf 2.68,
   5438   with options \\"\$ac_cs_config\\"
   5439 
   5440 Copyright (C) 2010 Free Software Foundation, Inc.
   5441 This config.status script is free software; the Free Software Foundation
   5442 gives unlimited permission to copy, distribute and modify it."
   5443 
   5444 ac_pwd='$ac_pwd'
   5445 srcdir='$srcdir'
   5446 INSTALL='$INSTALL'
   5447 MKDIR_P='$MKDIR_P'
   5448 AWK='$AWK'
   5449 test -n "\$AWK" || AWK=awk
   5450 _ACEOF
   5451 
   5452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5453 # The default lists apply if the user does not specify any file.
   5454 ac_need_defaults=:
   5455 while test $# != 0
   5456 do
   5457   case $1 in
   5458   --*=?*)
   5459     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   5460     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   5461     ac_shift=:
   5462     ;;
   5463   --*=)
   5464     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   5465     ac_optarg=
   5466     ac_shift=:
   5467     ;;
   5468   *)
   5469     ac_option=$1
   5470     ac_optarg=$2
   5471     ac_shift=shift
   5472     ;;
   5473   esac
   5474 
   5475   case $ac_option in
   5476   # Handling of the options.
   5477   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   5478     ac_cs_recheck=: ;;
   5479   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   5480     $as_echo "$ac_cs_version"; exit ;;
   5481   --config | --confi | --conf | --con | --co | --c )
   5482     $as_echo "$ac_cs_config"; exit ;;
   5483   --debug | --debu | --deb | --de | --d | -d )
   5484     debug=: ;;
   5485   --file | --fil | --fi | --f )
   5486     $ac_shift
   5487     case $ac_optarg in
   5488     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5489     '') as_fn_error $? "missing file argument" ;;
   5490     esac
   5491     as_fn_append CONFIG_FILES " '$ac_optarg'"
   5492     ac_need_defaults=false;;
   5493   --header | --heade | --head | --hea )
   5494     $ac_shift
   5495     case $ac_optarg in
   5496     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5497     esac
   5498     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   5499     ac_need_defaults=false;;
   5500   --he | --h)
   5501     # Conflict between --help and --header
   5502     as_fn_error $? "ambiguous option: \`$1'
   5503 Try \`$0 --help' for more information.";;
   5504   --help | --hel | -h )
   5505     $as_echo "$ac_cs_usage"; exit ;;
   5506   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   5507   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   5508     ac_cs_silent=: ;;
   5509 
   5510   # This is an error.
   5511   -*) as_fn_error $? "unrecognized option: \`$1'
   5512 Try \`$0 --help' for more information." ;;
   5513 
   5514   *) as_fn_append ac_config_targets " $1"
   5515      ac_need_defaults=false ;;
   5516 
   5517   esac
   5518   shift
   5519 done
   5520 
   5521 ac_configure_extra_args=
   5522 
   5523 if $ac_cs_silent; then
   5524   exec 6>/dev/null
   5525   ac_configure_extra_args="$ac_configure_extra_args --silent"
   5526 fi
   5527 
   5528 _ACEOF
   5529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5530 if \$ac_cs_recheck; then
   5531   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   5532   shift
   5533   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   5534   CONFIG_SHELL='$SHELL'
   5535   export CONFIG_SHELL
   5536   exec "\$@"
   5537 fi
   5538 
   5539 _ACEOF
   5540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5541 exec 5>>config.log
   5542 {
   5543   echo
   5544   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   5545 ## Running $as_me. ##
   5546 _ASBOX
   5547   $as_echo "$ac_log"
   5548 } >&5
   5549 
   5550 _ACEOF
   5551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5552 #
   5553 # INIT-COMMANDS
   5554 #
   5555 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   5556 
   5557 _ACEOF
   5558 
   5559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5560 
   5561 # Handling of arguments.
   5562 for ac_config_target in $ac_config_targets
   5563 do
   5564   case $ac_config_target in
   5565     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   5566     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   5567     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   5568 
   5569   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   5570   esac
   5571 done
   5572 
   5573 
   5574 # If the user did not use the arguments to specify the items to instantiate,
   5575 # then the envvar interface is used.  Set only those that are not.
   5576 # We use the long form for the default assignment because of an extremely
   5577 # bizarre bug on SunOS 4.1.3.
   5578 if $ac_need_defaults; then
   5579   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   5580   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   5581   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   5582 fi
   5583 
   5584 # Have a temporary directory for convenience.  Make it in the build tree
   5585 # simply because there is no reason against having it here, and in addition,
   5586 # creating and moving files from /tmp can sometimes cause problems.
   5587 # Hook for its removal unless debugging.
   5588 # Note that there is a small window in which the directory will not be cleaned:
   5589 # after its creation but before its name has been assigned to `$tmp'.
   5590 $debug ||
   5591 {
   5592   tmp= ac_tmp=
   5593   trap 'exit_status=$?
   5594   : "${ac_tmp:=$tmp}"
   5595   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   5596 ' 0
   5597   trap 'as_fn_exit 1' 1 2 13 15
   5598 }
   5599 # Create a (secure) tmp directory for tmp files.
   5600 
   5601 {
   5602   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   5603   test -d "$tmp"
   5604 }  ||
   5605 {
   5606   tmp=./conf$$-$RANDOM
   5607   (umask 077 && mkdir "$tmp")
   5608 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   5609 ac_tmp=$tmp
   5610 
   5611 # Set up the scripts for CONFIG_FILES section.
   5612 # No need to generate them if there are no CONFIG_FILES.
   5613 # This happens for instance with `./config.status config.h'.
   5614 if test -n "$CONFIG_FILES"; then
   5615 
   5616 
   5617 ac_cr=`echo X | tr X '\015'`
   5618 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   5619 # But we know of no other shell where ac_cr would be empty at this
   5620 # point, so we can use a bashism as a fallback.
   5621 if test "x$ac_cr" = x; then
   5622   eval ac_cr=\$\'\\r\'
   5623 fi
   5624 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   5625 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   5626   ac_cs_awk_cr='\\r'
   5627 else
   5628   ac_cs_awk_cr=$ac_cr
   5629 fi
   5630 
   5631 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   5632 _ACEOF
   5633 
   5634 
   5635 {
   5636   echo "cat >conf$$subs.awk <<_ACEOF" &&
   5637   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   5638   echo "_ACEOF"
   5639 } >conf$$subs.sh ||
   5640   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   5641 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   5642 ac_delim='%!_!# '
   5643 for ac_last_try in false false false false false :; do
   5644   . ./conf$$subs.sh ||
   5645     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   5646 
   5647   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   5648   if test $ac_delim_n = $ac_delim_num; then
   5649     break
   5650   elif $ac_last_try; then
   5651     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   5652   else
   5653     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   5654   fi
   5655 done
   5656 rm -f conf$$subs.sh
   5657 
   5658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5659 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   5660 _ACEOF
   5661 sed -n '
   5662 h
   5663 s/^/S["/; s/!.*/"]=/
   5664 p
   5665 g
   5666 s/^[^!]*!//
   5667 :repl
   5668 t repl
   5669 s/'"$ac_delim"'$//
   5670 t delim
   5671 :nl
   5672 h
   5673 s/\(.\{148\}\)..*/\1/
   5674 t more1
   5675 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   5676 p
   5677 n
   5678 b repl
   5679 :more1
   5680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   5681 p
   5682 g
   5683 s/.\{148\}//
   5684 t nl
   5685 :delim
   5686 h
   5687 s/\(.\{148\}\)..*/\1/
   5688 t more2
   5689 s/["\\]/\\&/g; s/^/"/; s/$/"/
   5690 p
   5691 b
   5692 :more2
   5693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   5694 p
   5695 g
   5696 s/.\{148\}//
   5697 t delim
   5698 ' <conf$$subs.awk | sed '
   5699 /^[^""]/{
   5700   N
   5701   s/\n//
   5702 }
   5703 ' >>$CONFIG_STATUS || ac_write_fail=1
   5704 rm -f conf$$subs.awk
   5705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5706 _ACAWK
   5707 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   5708   for (key in S) S_is_set[key] = 1
   5709   FS = ""
   5710 
   5711 }
   5712 {
   5713   line = $ 0
   5714   nfields = split(line, field, "@")
   5715   substed = 0
   5716   len = length(field[1])
   5717   for (i = 2; i < nfields; i++) {
   5718     key = field[i]
   5719     keylen = length(key)
   5720     if (S_is_set[key]) {
   5721       value = S[key]
   5722       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   5723       len += length(value) + length(field[++i])
   5724       substed = 1
   5725     } else
   5726       len += 1 + keylen
   5727   }
   5728 
   5729   print line
   5730 }
   5731 
   5732 _ACAWK
   5733 _ACEOF
   5734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5735 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   5736   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   5737 else
   5738   cat
   5739 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   5740   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   5741 _ACEOF
   5742 
   5743 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   5744 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   5745 # trailing colons and then remove the whole line if VPATH becomes empty
   5746 # (actually we leave an empty line to preserve line numbers).
   5747 if test "x$srcdir" = x.; then
   5748   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   5749 h
   5750 s///
   5751 s/^/:/
   5752 s/[	 ]*$/:/
   5753 s/:\$(srcdir):/:/g
   5754 s/:\${srcdir}:/:/g
   5755 s/:@srcdir@:/:/g
   5756 s/^:*//
   5757 s/:*$//
   5758 x
   5759 s/\(=[	 ]*\).*/\1/
   5760 G
   5761 s/\n//
   5762 s/^[^=]*=[	 ]*$//
   5763 }'
   5764 fi
   5765 
   5766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5767 fi # test -n "$CONFIG_FILES"
   5768 
   5769 # Set up the scripts for CONFIG_HEADERS section.
   5770 # No need to generate them if there are no CONFIG_HEADERS.
   5771 # This happens for instance with `./config.status Makefile'.
   5772 if test -n "$CONFIG_HEADERS"; then
   5773 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   5774 BEGIN {
   5775 _ACEOF
   5776 
   5777 # Transform confdefs.h into an awk script `defines.awk', embedded as
   5778 # here-document in config.status, that substitutes the proper values into
   5779 # config.h.in to produce config.h.
   5780 
   5781 # Create a delimiter string that does not exist in confdefs.h, to ease
   5782 # handling of long lines.
   5783 ac_delim='%!_!# '
   5784 for ac_last_try in false false :; do
   5785   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   5786   if test -z "$ac_tt"; then
   5787     break
   5788   elif $ac_last_try; then
   5789     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   5790   else
   5791     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   5792   fi
   5793 done
   5794 
   5795 # For the awk script, D is an array of macro values keyed by name,
   5796 # likewise P contains macro parameters if any.  Preserve backslash
   5797 # newline sequences.
   5798 
   5799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   5800 sed -n '
   5801 s/.\{148\}/&'"$ac_delim"'/g
   5802 t rset
   5803 :rset
   5804 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   5805 t def
   5806 d
   5807 :def
   5808 s/\\$//
   5809 t bsnl
   5810 s/["\\]/\\&/g
   5811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   5812 D["\1"]=" \3"/p
   5813 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   5814 d
   5815 :bsnl
   5816 s/["\\]/\\&/g
   5817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   5818 D["\1"]=" \3\\\\\\n"\\/p
   5819 t cont
   5820 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   5821 t cont
   5822 d
   5823 :cont
   5824 n
   5825 s/.\{148\}/&'"$ac_delim"'/g
   5826 t clear
   5827 :clear
   5828 s/\\$//
   5829 t bsnlc
   5830 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   5831 d
   5832 :bsnlc
   5833 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   5834 b cont
   5835 ' <confdefs.h | sed '
   5836 s/'"$ac_delim"'/"\\\
   5837 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   5838 
   5839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5840   for (key in D) D_is_set[key] = 1
   5841   FS = ""
   5842 }
   5843 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   5844   line = \$ 0
   5845   split(line, arg, " ")
   5846   if (arg[1] == "#") {
   5847     defundef = arg[2]
   5848     mac1 = arg[3]
   5849   } else {
   5850     defundef = substr(arg[1], 2)
   5851     mac1 = arg[2]
   5852   }
   5853   split(mac1, mac2, "(") #)
   5854   macro = mac2[1]
   5855   prefix = substr(line, 1, index(line, defundef) - 1)
   5856   if (D_is_set[macro]) {
   5857     # Preserve the white space surrounding the "#".
   5858     print prefix "define", macro P[macro] D[macro]
   5859     next
   5860   } else {
   5861     # Replace #undef with comments.  This is necessary, for example,
   5862     # in the case of _POSIX_SOURCE, which is predefined and required
   5863     # on some systems where configure will not decide to define it.
   5864     if (defundef == "undef") {
   5865       print "/*", prefix defundef, macro, "*/"
   5866       next
   5867     }
   5868   }
   5869 }
   5870 { print }
   5871 _ACAWK
   5872 _ACEOF
   5873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5874   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   5875 fi # test -n "$CONFIG_HEADERS"
   5876 
   5877 
   5878 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   5879 shift
   5880 for ac_tag
   5881 do
   5882   case $ac_tag in
   5883   :[FHLC]) ac_mode=$ac_tag; continue;;
   5884   esac
   5885   case $ac_mode$ac_tag in
   5886   :[FHL]*:*);;
   5887   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   5888   :[FH]-) ac_tag=-:-;;
   5889   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   5890   esac
   5891   ac_save_IFS=$IFS
   5892   IFS=:
   5893   set x $ac_tag
   5894   IFS=$ac_save_IFS
   5895   shift
   5896   ac_file=$1
   5897   shift
   5898 
   5899   case $ac_mode in
   5900   :L) ac_source=$1;;
   5901   :[FH])
   5902     ac_file_inputs=
   5903     for ac_f
   5904     do
   5905       case $ac_f in
   5906       -) ac_f="$ac_tmp/stdin";;
   5907       *) # Look for the file first in the build tree, then in the source tree
   5908 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   5909 	 # because $ac_f cannot contain `:'.
   5910 	 test -f "$ac_f" ||
   5911 	   case $ac_f in
   5912 	   [\\/$]*) false;;
   5913 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   5914 	   esac ||
   5915 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   5916       esac
   5917       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   5918       as_fn_append ac_file_inputs " '$ac_f'"
   5919     done
   5920 
   5921     # Let's still pretend it is `configure' which instantiates (i.e., don't
   5922     # use $as_me), people would be surprised to read:
   5923     #    /* config.h.  Generated by config.status.  */
   5924     configure_input='Generated from '`
   5925 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   5926 	`' by configure.'
   5927     if test x"$ac_file" != x-; then
   5928       configure_input="$ac_file.  $configure_input"
   5929       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   5930 $as_echo "$as_me: creating $ac_file" >&6;}
   5931     fi
   5932     # Neutralize special characters interpreted by sed in replacement strings.
   5933     case $configure_input in #(
   5934     *\&* | *\|* | *\\* )
   5935        ac_sed_conf_input=`$as_echo "$configure_input" |
   5936        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   5937     *) ac_sed_conf_input=$configure_input;;
   5938     esac
   5939 
   5940     case $ac_tag in
   5941     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   5942       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   5943     esac
   5944     ;;
   5945   esac
   5946 
   5947   ac_dir=`$as_dirname -- "$ac_file" ||
   5948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   5949 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   5950 	 X"$ac_file" : 'X\(//\)$' \| \
   5951 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   5952 $as_echo X"$ac_file" |
   5953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   5954 	    s//\1/
   5955 	    q
   5956 	  }
   5957 	  /^X\(\/\/\)[^/].*/{
   5958 	    s//\1/
   5959 	    q
   5960 	  }
   5961 	  /^X\(\/\/\)$/{
   5962 	    s//\1/
   5963 	    q
   5964 	  }
   5965 	  /^X\(\/\).*/{
   5966 	    s//\1/
   5967 	    q
   5968 	  }
   5969 	  s/.*/./; q'`
   5970   as_dir="$ac_dir"; as_fn_mkdir_p
   5971   ac_builddir=.
   5972 
   5973 case "$ac_dir" in
   5974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   5975 *)
   5976   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   5977   # A ".." for each directory in $ac_dir_suffix.
   5978   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   5979   case $ac_top_builddir_sub in
   5980   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   5981   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   5982   esac ;;
   5983 esac
   5984 ac_abs_top_builddir=$ac_pwd
   5985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   5986 # for backward compatibility:
   5987 ac_top_builddir=$ac_top_build_prefix
   5988 
   5989 case $srcdir in
   5990   .)  # We are building in place.
   5991     ac_srcdir=.
   5992     ac_top_srcdir=$ac_top_builddir_sub
   5993     ac_abs_top_srcdir=$ac_pwd ;;
   5994   [\\/]* | ?:[\\/]* )  # Absolute name.
   5995     ac_srcdir=$srcdir$ac_dir_suffix;
   5996     ac_top_srcdir=$srcdir
   5997     ac_abs_top_srcdir=$srcdir ;;
   5998   *) # Relative name.
   5999     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   6000     ac_top_srcdir=$ac_top_build_prefix$srcdir
   6001     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   6002 esac
   6003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   6004 
   6005 
   6006   case $ac_mode in
   6007   :F)
   6008   #
   6009   # CONFIG_FILE
   6010   #
   6011 
   6012   case $INSTALL in
   6013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   6014   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   6015   esac
   6016   ac_MKDIR_P=$MKDIR_P
   6017   case $MKDIR_P in
   6018   [\\/$]* | ?:[\\/]* ) ;;
   6019   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   6020   esac
   6021 _ACEOF
   6022 
   6023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   6024 # If the template does not know about datarootdir, expand it.
   6025 # FIXME: This hack should be removed a few years after 2.60.
   6026 ac_datarootdir_hack=; ac_datarootdir_seen=
   6027 ac_sed_dataroot='
   6028 /datarootdir/ {
   6029   p
   6030   q
   6031 }
   6032 /@datadir@/p
   6033 /@docdir@/p
   6034 /@infodir@/p
   6035 /@localedir@/p
   6036 /@mandir@/p'
   6037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   6038 *datarootdir*) ac_datarootdir_seen=yes;;
   6039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   6040   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   6041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   6042 _ACEOF
   6043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   6044   ac_datarootdir_hack='
   6045   s&@datadir@&$datadir&g
   6046   s&@docdir@&$docdir&g
   6047   s&@infodir@&$infodir&g
   6048   s&@localedir@&$localedir&g
   6049   s&@mandir@&$mandir&g
   6050   s&\\\${datarootdir}&$datarootdir&g' ;;
   6051 esac
   6052 _ACEOF
   6053 
   6054 # Neutralize VPATH when `$srcdir' = `.'.
   6055 # Shell code in configure.ac might set extrasub.
   6056 # FIXME: do we really want to maintain this feature?
   6057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   6058 ac_sed_extra="$ac_vpsub
   6059 $extrasub
   6060 _ACEOF
   6061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   6062 :t
   6063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   6064 s|@configure_input@|$ac_sed_conf_input|;t t
   6065 s&@top_builddir@&$ac_top_builddir_sub&;t t
   6066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   6067 s&@srcdir@&$ac_srcdir&;t t
   6068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   6069 s&@top_srcdir@&$ac_top_srcdir&;t t
   6070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   6071 s&@builddir@&$ac_builddir&;t t
   6072 s&@abs_builddir@&$ac_abs_builddir&;t t
   6073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   6074 s&@INSTALL@&$ac_INSTALL&;t t
   6075 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   6076 $ac_datarootdir_hack
   6077 "
   6078 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   6079   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   6080 
   6081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   6082   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   6083   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   6084       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   6085   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   6086 which seems to be undefined.  Please make sure it is defined" >&5
   6087 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   6088 which seems to be undefined.  Please make sure it is defined" >&2;}
   6089 
   6090   rm -f "$ac_tmp/stdin"
   6091   case $ac_file in
   6092   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   6093   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   6094   esac \
   6095   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   6096  ;;
   6097   :H)
   6098   #
   6099   # CONFIG_HEADER
   6100   #
   6101   if test x"$ac_file" != x-; then
   6102     {
   6103       $as_echo "/* $configure_input  */" \
   6104       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   6105     } >"$ac_tmp/config.h" \
   6106       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   6107     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   6108       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   6109 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   6110     else
   6111       rm -f "$ac_file"
   6112       mv "$ac_tmp/config.h" "$ac_file" \
   6113 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   6114     fi
   6115   else
   6116     $as_echo "/* $configure_input  */" \
   6117       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   6118       || as_fn_error $? "could not create -" "$LINENO" 5
   6119   fi
   6120 # Compute "$ac_file"'s index in $config_headers.
   6121 _am_arg="$ac_file"
   6122 _am_stamp_count=1
   6123 for _am_header in $config_headers :; do
   6124   case $_am_header in
   6125     $_am_arg | $_am_arg:* )
   6126       break ;;
   6127     * )
   6128       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   6129   esac
   6130 done
   6131 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   6132 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6133 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   6134 	 X"$_am_arg" : 'X\(//\)$' \| \
   6135 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   6136 $as_echo X"$_am_arg" |
   6137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   6138 	    s//\1/
   6139 	    q
   6140 	  }
   6141 	  /^X\(\/\/\)[^/].*/{
   6142 	    s//\1/
   6143 	    q
   6144 	  }
   6145 	  /^X\(\/\/\)$/{
   6146 	    s//\1/
   6147 	    q
   6148 	  }
   6149 	  /^X\(\/\).*/{
   6150 	    s//\1/
   6151 	    q
   6152 	  }
   6153 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   6154  ;;
   6155 
   6156   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   6157 $as_echo "$as_me: executing $ac_file commands" >&6;}
   6158  ;;
   6159   esac
   6160 
   6161 
   6162   case $ac_file$ac_mode in
   6163     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   6164   # Autoconf 2.62 quotes --file arguments for eval, but not when files
   6165   # are listed without --file.  Let's play safe and only enable the eval
   6166   # if we detect the quoting.
   6167   case $CONFIG_FILES in
   6168   *\'*) eval set x "$CONFIG_FILES" ;;
   6169   *)   set x $CONFIG_FILES ;;
   6170   esac
   6171   shift
   6172   for mf
   6173   do
   6174     # Strip MF so we end up with the name of the file.
   6175     mf=`echo "$mf" | sed -e 's/:.*$//'`
   6176     # Check whether this is an Automake generated Makefile or not.
   6177     # We used to match only the files named `Makefile.in', but
   6178     # some people rename them; so instead we look at the file content.
   6179     # Grep'ing the first line is not enough: some people post-process
   6180     # each Makefile.in and add a new line on top of each file to say so.
   6181     # Grep'ing the whole file is not good either: AIX grep has a line
   6182     # limit of 2048, but all sed's we know have understand at least 4000.
   6183     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   6184       dirpart=`$as_dirname -- "$mf" ||
   6185 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6186 	 X"$mf" : 'X\(//\)[^/]' \| \
   6187 	 X"$mf" : 'X\(//\)$' \| \
   6188 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   6189 $as_echo X"$mf" |
   6190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   6191 	    s//\1/
   6192 	    q
   6193 	  }
   6194 	  /^X\(\/\/\)[^/].*/{
   6195 	    s//\1/
   6196 	    q
   6197 	  }
   6198 	  /^X\(\/\/\)$/{
   6199 	    s//\1/
   6200 	    q
   6201 	  }
   6202 	  /^X\(\/\).*/{
   6203 	    s//\1/
   6204 	    q
   6205 	  }
   6206 	  s/.*/./; q'`
   6207     else
   6208       continue
   6209     fi
   6210     # Extract the definition of DEPDIR, am__include, and am__quote
   6211     # from the Makefile without running `make'.
   6212     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   6213     test -z "$DEPDIR" && continue
   6214     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   6215     test -z "am__include" && continue
   6216     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   6217     # When using ansi2knr, U may be empty or an underscore; expand it
   6218     U=`sed -n 's/^U = //p' < "$mf"`
   6219     # Find all dependency output files, they are included files with
   6220     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   6221     # simplest approach to changing $(DEPDIR) to its actual value in the
   6222     # expansion.
   6223     for file in `sed -n "
   6224       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   6225 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   6226       # Make sure the directory exists.
   6227       test -f "$dirpart/$file" && continue
   6228       fdir=`$as_dirname -- "$file" ||
   6229 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6230 	 X"$file" : 'X\(//\)[^/]' \| \
   6231 	 X"$file" : 'X\(//\)$' \| \
   6232 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   6233 $as_echo X"$file" |
   6234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   6235 	    s//\1/
   6236 	    q
   6237 	  }
   6238 	  /^X\(\/\/\)[^/].*/{
   6239 	    s//\1/
   6240 	    q
   6241 	  }
   6242 	  /^X\(\/\/\)$/{
   6243 	    s//\1/
   6244 	    q
   6245 	  }
   6246 	  /^X\(\/\).*/{
   6247 	    s//\1/
   6248 	    q
   6249 	  }
   6250 	  s/.*/./; q'`
   6251       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   6252       # echo "creating $dirpart/$file"
   6253       echo '# dummy' > "$dirpart/$file"
   6254     done
   6255   done
   6256 }
   6257  ;;
   6258 
   6259   esac
   6260 done # for ac_tag
   6261 
   6262 
   6263 as_fn_exit 0
   6264 _ACEOF
   6265 ac_clean_files=$ac_clean_files_save
   6266 
   6267 test $ac_write_fail = 0 ||
   6268   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   6269 
   6270 
   6271 # configure is writing to config.log, and then calls config.status.
   6272 # config.status does its own redirection, appending to config.log.
   6273 # Unfortunately, on DOS this fails, as config.log is still kept open
   6274 # by configure, so config.status won't be able to write to it; its
   6275 # output is simply discarded.  So we exec the FD to /dev/null,
   6276 # effectively closing config.log, so it can be properly (re)opened and
   6277 # appended to by config.status.  When coming back to configure, we
   6278 # need to make the FD available again.
   6279 if test "$no_create" != yes; then
   6280   ac_cs_success=:
   6281   ac_config_status_args=
   6282   test "$silent" = yes &&
   6283     ac_config_status_args="$ac_config_status_args --quiet"
   6284   exec 5>/dev/null
   6285   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   6286   exec 5>>config.log
   6287   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   6288   # would make configure fail if this is the last instruction.
   6289   $ac_cs_success || as_fn_exit 1
   6290 fi
   6291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   6292   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   6293 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   6294 fi
   6295 
   6296