Home | History | Annotate | Line # | Download | only in c++tools
configure revision 1.1
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="c++tools"
    586 ac_unique_file="server.cc"
    587 # Factoring default headers for most tests.
    588 ac_includes_default="\
    589 #include <stdio.h>
    590 #ifdef HAVE_SYS_TYPES_H
    591 # include <sys/types.h>
    592 #endif
    593 #ifdef HAVE_SYS_STAT_H
    594 # include <sys/stat.h>
    595 #endif
    596 #ifdef STDC_HEADERS
    597 # include <stdlib.h>
    598 # include <stddef.h>
    599 #else
    600 # ifdef HAVE_STDLIB_H
    601 #  include <stdlib.h>
    602 # endif
    603 #endif
    604 #ifdef HAVE_STRING_H
    605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    606 #  include <memory.h>
    607 # endif
    608 # include <string.h>
    609 #endif
    610 #ifdef HAVE_STRINGS_H
    611 # include <strings.h>
    612 #endif
    613 #ifdef HAVE_INTTYPES_H
    614 # include <inttypes.h>
    615 #endif
    616 #ifdef HAVE_STDINT_H
    617 # include <stdint.h>
    618 #endif
    619 #ifdef HAVE_UNISTD_H
    620 # include <unistd.h>
    621 #endif"
    622 
    623 ac_subst_vars='LTLIBOBJS
    624 LIBOBJS
    625 NETLIBS
    626 get_gcc_base_ver
    627 EGREP
    628 GREP
    629 CXXCPP
    630 PIEFLAG
    631 MAINTAINER
    632 CXX_AUX_TOOLS
    633 AUTOHEADER
    634 AUTOCONF
    635 OBJEXT
    636 EXEEXT
    637 ac_ct_CXX
    638 CPPFLAGS
    639 LDFLAGS
    640 CXXFLAGS
    641 CXX
    642 INSTALL_DATA
    643 INSTALL_SCRIPT
    644 INSTALL_PROGRAM
    645 target_os
    646 target_vendor
    647 target_cpu
    648 target
    649 host_os
    650 host_vendor
    651 host_cpu
    652 host
    653 target_noncanonical
    654 build_os
    655 build_vendor
    656 build_cpu
    657 build
    658 target_alias
    659 host_alias
    660 build_alias
    661 LIBS
    662 ECHO_T
    663 ECHO_N
    664 ECHO_C
    665 DEFS
    666 mandir
    667 localedir
    668 libdir
    669 psdir
    670 pdfdir
    671 dvidir
    672 htmldir
    673 infodir
    674 docdir
    675 oldincludedir
    676 includedir
    677 localstatedir
    678 sharedstatedir
    679 sysconfdir
    680 datadir
    681 datarootdir
    682 libexecdir
    683 sbindir
    684 bindir
    685 program_transform_name
    686 prefix
    687 exec_prefix
    688 PACKAGE_URL
    689 PACKAGE_BUGREPORT
    690 PACKAGE_STRING
    691 PACKAGE_VERSION
    692 PACKAGE_TARNAME
    693 PACKAGE_NAME
    694 PATH_SEPARATOR
    695 SHELL'
    696 ac_subst_files=''
    697 ac_user_opts='
    698 enable_option_checking
    699 enable_c___tools
    700 enable_maintainer_mode
    701 enable_checking
    702 enable_default_pie
    703 with_gcc_major_version_only
    704 '
    705       ac_precious_vars='build_alias
    706 host_alias
    707 target_alias
    708 CXX
    709 CXXFLAGS
    710 LDFLAGS
    711 LIBS
    712 CPPFLAGS
    713 CCC
    714 CXXCPP'
    715 
    716 
    717 # Initialize some variables set by options.
    718 ac_init_help=
    719 ac_init_version=false
    720 ac_unrecognized_opts=
    721 ac_unrecognized_sep=
    722 # The variables have the same names as the options, with
    723 # dashes changed to underlines.
    724 cache_file=/dev/null
    725 exec_prefix=NONE
    726 no_create=
    727 no_recursion=
    728 prefix=NONE
    729 program_prefix=NONE
    730 program_suffix=NONE
    731 program_transform_name=s,x,x,
    732 silent=
    733 site=
    734 srcdir=
    735 verbose=
    736 x_includes=NONE
    737 x_libraries=NONE
    738 
    739 # Installation directory options.
    740 # These are left unexpanded so users can "make install exec_prefix=/foo"
    741 # and all the variables that are supposed to be based on exec_prefix
    742 # by default will actually change.
    743 # Use braces instead of parens because sh, perl, etc. also accept them.
    744 # (The list follows the same order as the GNU Coding Standards.)
    745 bindir='${exec_prefix}/bin'
    746 sbindir='${exec_prefix}/sbin'
    747 libexecdir='${exec_prefix}/libexec'
    748 datarootdir='${prefix}/share'
    749 datadir='${datarootdir}'
    750 sysconfdir='${prefix}/etc'
    751 sharedstatedir='${prefix}/com'
    752 localstatedir='${prefix}/var'
    753 includedir='${prefix}/include'
    754 oldincludedir='/usr/include'
    755 docdir='${datarootdir}/doc/${PACKAGE}'
    756 infodir='${datarootdir}/info'
    757 htmldir='${docdir}'
    758 dvidir='${docdir}'
    759 pdfdir='${docdir}'
    760 psdir='${docdir}'
    761 libdir='${exec_prefix}/lib'
    762 localedir='${datarootdir}/locale'
    763 mandir='${datarootdir}/man'
    764 
    765 ac_prev=
    766 ac_dashdash=
    767 for ac_option
    768 do
    769   # If the previous option needs an argument, assign it.
    770   if test -n "$ac_prev"; then
    771     eval $ac_prev=\$ac_option
    772     ac_prev=
    773     continue
    774   fi
    775 
    776   case $ac_option in
    777   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    778   *=)   ac_optarg= ;;
    779   *)    ac_optarg=yes ;;
    780   esac
    781 
    782   # Accept the important Cygnus configure options, so we can diagnose typos.
    783 
    784   case $ac_dashdash$ac_option in
    785   --)
    786     ac_dashdash=yes ;;
    787 
    788   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    789     ac_prev=bindir ;;
    790   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    791     bindir=$ac_optarg ;;
    792 
    793   -build | --build | --buil | --bui | --bu)
    794     ac_prev=build_alias ;;
    795   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    796     build_alias=$ac_optarg ;;
    797 
    798   -cache-file | --cache-file | --cache-fil | --cache-fi \
    799   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    800     ac_prev=cache_file ;;
    801   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    802   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    803     cache_file=$ac_optarg ;;
    804 
    805   --config-cache | -C)
    806     cache_file=config.cache ;;
    807 
    808   -datadir | --datadir | --datadi | --datad)
    809     ac_prev=datadir ;;
    810   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    811     datadir=$ac_optarg ;;
    812 
    813   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    814   | --dataroo | --dataro | --datar)
    815     ac_prev=datarootdir ;;
    816   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    817   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    818     datarootdir=$ac_optarg ;;
    819 
    820   -disable-* | --disable-*)
    821     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    822     # Reject names that are not valid shell variable names.
    823     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    824       as_fn_error $? "invalid feature name: $ac_useropt"
    825     ac_useropt_orig=$ac_useropt
    826     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    827     case $ac_user_opts in
    828       *"
    829 "enable_$ac_useropt"
    830 "*) ;;
    831       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    832 	 ac_unrecognized_sep=', ';;
    833     esac
    834     eval enable_$ac_useropt=no ;;
    835 
    836   -docdir | --docdir | --docdi | --doc | --do)
    837     ac_prev=docdir ;;
    838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    839     docdir=$ac_optarg ;;
    840 
    841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    842     ac_prev=dvidir ;;
    843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    844     dvidir=$ac_optarg ;;
    845 
    846   -enable-* | --enable-*)
    847     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    848     # Reject names that are not valid shell variable names.
    849     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    850       as_fn_error $? "invalid feature name: $ac_useropt"
    851     ac_useropt_orig=$ac_useropt
    852     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    853     case $ac_user_opts in
    854       *"
    855 "enable_$ac_useropt"
    856 "*) ;;
    857       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    858 	 ac_unrecognized_sep=', ';;
    859     esac
    860     eval enable_$ac_useropt=\$ac_optarg ;;
    861 
    862   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    863   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    864   | --exec | --exe | --ex)
    865     ac_prev=exec_prefix ;;
    866   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    867   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    868   | --exec=* | --exe=* | --ex=*)
    869     exec_prefix=$ac_optarg ;;
    870 
    871   -gas | --gas | --ga | --g)
    872     # Obsolete; use --with-gas.
    873     with_gas=yes ;;
    874 
    875   -help | --help | --hel | --he | -h)
    876     ac_init_help=long ;;
    877   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    878     ac_init_help=recursive ;;
    879   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    880     ac_init_help=short ;;
    881 
    882   -host | --host | --hos | --ho)
    883     ac_prev=host_alias ;;
    884   -host=* | --host=* | --hos=* | --ho=*)
    885     host_alias=$ac_optarg ;;
    886 
    887   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    888     ac_prev=htmldir ;;
    889   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    890   | --ht=*)
    891     htmldir=$ac_optarg ;;
    892 
    893   -includedir | --includedir | --includedi | --included | --include \
    894   | --includ | --inclu | --incl | --inc)
    895     ac_prev=includedir ;;
    896   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    897   | --includ=* | --inclu=* | --incl=* | --inc=*)
    898     includedir=$ac_optarg ;;
    899 
    900   -infodir | --infodir | --infodi | --infod | --info | --inf)
    901     ac_prev=infodir ;;
    902   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    903     infodir=$ac_optarg ;;
    904 
    905   -libdir | --libdir | --libdi | --libd)
    906     ac_prev=libdir ;;
    907   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    908     libdir=$ac_optarg ;;
    909 
    910   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    911   | --libexe | --libex | --libe)
    912     ac_prev=libexecdir ;;
    913   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    914   | --libexe=* | --libex=* | --libe=*)
    915     libexecdir=$ac_optarg ;;
    916 
    917   -localedir | --localedir | --localedi | --localed | --locale)
    918     ac_prev=localedir ;;
    919   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    920     localedir=$ac_optarg ;;
    921 
    922   -localstatedir | --localstatedir | --localstatedi | --localstated \
    923   | --localstate | --localstat | --localsta | --localst | --locals)
    924     ac_prev=localstatedir ;;
    925   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    926   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    927     localstatedir=$ac_optarg ;;
    928 
    929   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    930     ac_prev=mandir ;;
    931   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    932     mandir=$ac_optarg ;;
    933 
    934   -nfp | --nfp | --nf)
    935     # Obsolete; use --without-fp.
    936     with_fp=no ;;
    937 
    938   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    939   | --no-cr | --no-c | -n)
    940     no_create=yes ;;
    941 
    942   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    943   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    944     no_recursion=yes ;;
    945 
    946   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    947   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    948   | --oldin | --oldi | --old | --ol | --o)
    949     ac_prev=oldincludedir ;;
    950   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    951   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    952   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    953     oldincludedir=$ac_optarg ;;
    954 
    955   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    956     ac_prev=prefix ;;
    957   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    958     prefix=$ac_optarg ;;
    959 
    960   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    961   | --program-pre | --program-pr | --program-p)
    962     ac_prev=program_prefix ;;
    963   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    964   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    965     program_prefix=$ac_optarg ;;
    966 
    967   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    968   | --program-suf | --program-su | --program-s)
    969     ac_prev=program_suffix ;;
    970   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    971   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    972     program_suffix=$ac_optarg ;;
    973 
    974   -program-transform-name | --program-transform-name \
    975   | --program-transform-nam | --program-transform-na \
    976   | --program-transform-n | --program-transform- \
    977   | --program-transform | --program-transfor \
    978   | --program-transfo | --program-transf \
    979   | --program-trans | --program-tran \
    980   | --progr-tra | --program-tr | --program-t)
    981     ac_prev=program_transform_name ;;
    982   -program-transform-name=* | --program-transform-name=* \
    983   | --program-transform-nam=* | --program-transform-na=* \
    984   | --program-transform-n=* | --program-transform-=* \
    985   | --program-transform=* | --program-transfor=* \
    986   | --program-transfo=* | --program-transf=* \
    987   | --program-trans=* | --program-tran=* \
    988   | --progr-tra=* | --program-tr=* | --program-t=*)
    989     program_transform_name=$ac_optarg ;;
    990 
    991   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    992     ac_prev=pdfdir ;;
    993   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    994     pdfdir=$ac_optarg ;;
    995 
    996   -psdir | --psdir | --psdi | --psd | --ps)
    997     ac_prev=psdir ;;
    998   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    999     psdir=$ac_optarg ;;
   1000 
   1001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1002   | -silent | --silent | --silen | --sile | --sil)
   1003     silent=yes ;;
   1004 
   1005   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1006     ac_prev=sbindir ;;
   1007   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1008   | --sbi=* | --sb=*)
   1009     sbindir=$ac_optarg ;;
   1010 
   1011   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1012   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1013   | --sharedst | --shareds | --shared | --share | --shar \
   1014   | --sha | --sh)
   1015     ac_prev=sharedstatedir ;;
   1016   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1017   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1018   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1019   | --sha=* | --sh=*)
   1020     sharedstatedir=$ac_optarg ;;
   1021 
   1022   -site | --site | --sit)
   1023     ac_prev=site ;;
   1024   -site=* | --site=* | --sit=*)
   1025     site=$ac_optarg ;;
   1026 
   1027   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1028     ac_prev=srcdir ;;
   1029   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1030     srcdir=$ac_optarg ;;
   1031 
   1032   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1033   | --syscon | --sysco | --sysc | --sys | --sy)
   1034     ac_prev=sysconfdir ;;
   1035   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1036   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1037     sysconfdir=$ac_optarg ;;
   1038 
   1039   -target | --target | --targe | --targ | --tar | --ta | --t)
   1040     ac_prev=target_alias ;;
   1041   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1042     target_alias=$ac_optarg ;;
   1043 
   1044   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1045     verbose=yes ;;
   1046 
   1047   -version | --version | --versio | --versi | --vers | -V)
   1048     ac_init_version=: ;;
   1049 
   1050   -with-* | --with-*)
   1051     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1052     # Reject names that are not valid shell variable names.
   1053     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1054       as_fn_error $? "invalid package name: $ac_useropt"
   1055     ac_useropt_orig=$ac_useropt
   1056     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1057     case $ac_user_opts in
   1058       *"
   1059 "with_$ac_useropt"
   1060 "*) ;;
   1061       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1062 	 ac_unrecognized_sep=', ';;
   1063     esac
   1064     eval with_$ac_useropt=\$ac_optarg ;;
   1065 
   1066   -without-* | --without-*)
   1067     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1068     # Reject names that are not valid shell variable names.
   1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1070       as_fn_error $? "invalid package name: $ac_useropt"
   1071     ac_useropt_orig=$ac_useropt
   1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1073     case $ac_user_opts in
   1074       *"
   1075 "with_$ac_useropt"
   1076 "*) ;;
   1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1078 	 ac_unrecognized_sep=', ';;
   1079     esac
   1080     eval with_$ac_useropt=no ;;
   1081 
   1082   --x)
   1083     # Obsolete; use --with-x.
   1084     with_x=yes ;;
   1085 
   1086   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1087   | --x-incl | --x-inc | --x-in | --x-i)
   1088     ac_prev=x_includes ;;
   1089   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1090   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1091     x_includes=$ac_optarg ;;
   1092 
   1093   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1094   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1095     ac_prev=x_libraries ;;
   1096   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1097   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1098     x_libraries=$ac_optarg ;;
   1099 
   1100   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1101 Try \`$0 --help' for more information"
   1102     ;;
   1103 
   1104   *=*)
   1105     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1106     # Reject names that are not valid shell variable names.
   1107     case $ac_envvar in #(
   1108       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1109       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1110     esac
   1111     eval $ac_envvar=\$ac_optarg
   1112     export $ac_envvar ;;
   1113 
   1114   *)
   1115     # FIXME: should be removed in autoconf 3.0.
   1116     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1117     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1118       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1119     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1120     ;;
   1121 
   1122   esac
   1123 done
   1124 
   1125 if test -n "$ac_prev"; then
   1126   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1127   as_fn_error $? "missing argument to $ac_option"
   1128 fi
   1129 
   1130 if test -n "$ac_unrecognized_opts"; then
   1131   case $enable_option_checking in
   1132     no) ;;
   1133     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1134     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1135   esac
   1136 fi
   1137 
   1138 # Check all directory arguments for consistency.
   1139 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1140 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1141 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1142 		libdir localedir mandir
   1143 do
   1144   eval ac_val=\$$ac_var
   1145   # Remove trailing slashes.
   1146   case $ac_val in
   1147     */ )
   1148       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1149       eval $ac_var=\$ac_val;;
   1150   esac
   1151   # Be sure to have absolute directory names.
   1152   case $ac_val in
   1153     [\\/$]* | ?:[\\/]* )  continue;;
   1154     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1155   esac
   1156   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1157 done
   1158 
   1159 # There might be people who depend on the old broken behavior: `$host'
   1160 # used to hold the argument of --host etc.
   1161 # FIXME: To remove some day.
   1162 build=$build_alias
   1163 host=$host_alias
   1164 target=$target_alias
   1165 
   1166 # FIXME: To remove some day.
   1167 if test "x$host_alias" != x; then
   1168   if test "x$build_alias" = x; then
   1169     cross_compiling=maybe
   1170   elif test "x$build_alias" != "x$host_alias"; then
   1171     cross_compiling=yes
   1172   fi
   1173 fi
   1174 
   1175 ac_tool_prefix=
   1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1177 
   1178 test "$silent" = yes && exec 6>/dev/null
   1179 
   1180 
   1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1182 ac_ls_di=`ls -di .` &&
   1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1184   as_fn_error $? "working directory cannot be determined"
   1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1186   as_fn_error $? "pwd does not report name of working directory"
   1187 
   1188 
   1189 # Find the source files, if location was not specified.
   1190 if test -z "$srcdir"; then
   1191   ac_srcdir_defaulted=yes
   1192   # Try the directory containing this script, then the parent directory.
   1193   ac_confdir=`$as_dirname -- "$as_myself" ||
   1194 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1195 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1196 	 X"$as_myself" : 'X\(//\)$' \| \
   1197 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1198 $as_echo X"$as_myself" |
   1199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1200 	    s//\1/
   1201 	    q
   1202 	  }
   1203 	  /^X\(\/\/\)[^/].*/{
   1204 	    s//\1/
   1205 	    q
   1206 	  }
   1207 	  /^X\(\/\/\)$/{
   1208 	    s//\1/
   1209 	    q
   1210 	  }
   1211 	  /^X\(\/\).*/{
   1212 	    s//\1/
   1213 	    q
   1214 	  }
   1215 	  s/.*/./; q'`
   1216   srcdir=$ac_confdir
   1217   if test ! -r "$srcdir/$ac_unique_file"; then
   1218     srcdir=..
   1219   fi
   1220 else
   1221   ac_srcdir_defaulted=no
   1222 fi
   1223 if test ! -r "$srcdir/$ac_unique_file"; then
   1224   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1225   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1226 fi
   1227 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1228 ac_abs_confdir=`(
   1229 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1230 	pwd)`
   1231 # When building in place, set srcdir=.
   1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1233   srcdir=.
   1234 fi
   1235 # Remove unnecessary trailing slashes from srcdir.
   1236 # Double slashes in file names in object file debugging info
   1237 # mess up M-x gdb in Emacs.
   1238 case $srcdir in
   1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1240 esac
   1241 for ac_var in $ac_precious_vars; do
   1242   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1243   eval ac_env_${ac_var}_value=\$${ac_var}
   1244   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1245   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1246 done
   1247 
   1248 #
   1249 # Report the --help message.
   1250 #
   1251 if test "$ac_init_help" = "long"; then
   1252   # Omit some internal or obsolete options to make the list less imposing.
   1253   # This message is too long to be a string in the A/UX 3.1 sh.
   1254   cat <<_ACEOF
   1255 \`configure' configures this package to adapt to many kinds of systems.
   1256 
   1257 Usage: $0 [OPTION]... [VAR=VALUE]...
   1258 
   1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1260 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1261 
   1262 Defaults for the options are specified in brackets.
   1263 
   1264 Configuration:
   1265   -h, --help              display this help and exit
   1266       --help=short        display options specific to this package
   1267       --help=recursive    display the short help of all the included packages
   1268   -V, --version           display version information and exit
   1269   -q, --quiet, --silent   do not print \`checking ...' messages
   1270       --cache-file=FILE   cache test results in FILE [disabled]
   1271   -C, --config-cache      alias for \`--cache-file=config.cache'
   1272   -n, --no-create         do not create output files
   1273       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1274 
   1275 Installation directories:
   1276   --prefix=PREFIX         install architecture-independent files in PREFIX
   1277                           [$ac_default_prefix]
   1278   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1279                           [PREFIX]
   1280 
   1281 By default, \`make install' will install all the files in
   1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1284 for instance \`--prefix=\$HOME'.
   1285 
   1286 For better control, use the options below.
   1287 
   1288 Fine tuning of the installation directories:
   1289   --bindir=DIR            user executables [EPREFIX/bin]
   1290   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1291   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1292   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1293   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1294   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1295   --libdir=DIR            object code libraries [EPREFIX/lib]
   1296   --includedir=DIR        C header files [PREFIX/include]
   1297   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1298   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1299   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1300   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1301   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1302   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1303   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1304   --htmldir=DIR           html documentation [DOCDIR]
   1305   --dvidir=DIR            dvi documentation [DOCDIR]
   1306   --pdfdir=DIR            pdf documentation [DOCDIR]
   1307   --psdir=DIR             ps documentation [DOCDIR]
   1308 _ACEOF
   1309 
   1310   cat <<\_ACEOF
   1311 
   1312 System types:
   1313   --build=BUILD     configure for building on BUILD [guessed]
   1314   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1315   --target=TARGET   configure for building compilers for TARGET [HOST]
   1316 _ACEOF
   1317 fi
   1318 
   1319 if test -n "$ac_init_help"; then
   1320 
   1321   cat <<\_ACEOF
   1322 
   1323 Optional Features:
   1324   --disable-option-checking  ignore unrecognized --enable/--with options
   1325   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1326   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1327   --enable-c++-tools      build auxiliary c++ tools
   1328   --enable-maintainer-mode
   1329                           enable maintainer mode. Add rules to rebuild
   1330                           configurey bits
   1331   --enable-checking[=LIST]
   1332                           enable expensive run-time checks. With LIST, enable
   1333                           only specific categories of checks. Categories are:
   1334                           yes,no,all,none,release.
   1335   --enable-default-pie    enable Position Independent Executable as default
   1336 
   1337 Optional Packages:
   1338   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1339   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1340   --with-gcc-major-version-only
   1341                           use only GCC major number in filesystem paths
   1342 
   1343 Some influential environment variables:
   1344   CXX         C++ compiler command
   1345   CXXFLAGS    C++ compiler flags
   1346   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1347               nonstandard directory <lib dir>
   1348   LIBS        libraries to pass to the linker, e.g. -l<library>
   1349   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1350               you have headers in a nonstandard directory <include dir>
   1351   CXXCPP      C++ preprocessor
   1352 
   1353 Use these variables to override the choices made by `configure' or to help
   1354 it to find libraries and programs with nonstandard names/locations.
   1355 
   1356 Report bugs to the package provider.
   1357 _ACEOF
   1358 ac_status=$?
   1359 fi
   1360 
   1361 if test "$ac_init_help" = "recursive"; then
   1362   # If there are subdirs, report their specific --help.
   1363   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1364     test -d "$ac_dir" ||
   1365       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1366       continue
   1367     ac_builddir=.
   1368 
   1369 case "$ac_dir" in
   1370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1371 *)
   1372   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1373   # A ".." for each directory in $ac_dir_suffix.
   1374   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1375   case $ac_top_builddir_sub in
   1376   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1377   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1378   esac ;;
   1379 esac
   1380 ac_abs_top_builddir=$ac_pwd
   1381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1382 # for backward compatibility:
   1383 ac_top_builddir=$ac_top_build_prefix
   1384 
   1385 case $srcdir in
   1386   .)  # We are building in place.
   1387     ac_srcdir=.
   1388     ac_top_srcdir=$ac_top_builddir_sub
   1389     ac_abs_top_srcdir=$ac_pwd ;;
   1390   [\\/]* | ?:[\\/]* )  # Absolute name.
   1391     ac_srcdir=$srcdir$ac_dir_suffix;
   1392     ac_top_srcdir=$srcdir
   1393     ac_abs_top_srcdir=$srcdir ;;
   1394   *) # Relative name.
   1395     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1396     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1397     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1398 esac
   1399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1400 
   1401     cd "$ac_dir" || { ac_status=$?; continue; }
   1402     # Check for guested configure.
   1403     if test -f "$ac_srcdir/configure.gnu"; then
   1404       echo &&
   1405       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1406     elif test -f "$ac_srcdir/configure"; then
   1407       echo &&
   1408       $SHELL "$ac_srcdir/configure" --help=recursive
   1409     else
   1410       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1411     fi || ac_status=$?
   1412     cd "$ac_pwd" || { ac_status=$?; break; }
   1413   done
   1414 fi
   1415 
   1416 test -n "$ac_init_help" && exit $ac_status
   1417 if $ac_init_version; then
   1418   cat <<\_ACEOF
   1419 configure
   1420 generated by GNU Autoconf 2.69
   1421 
   1422 Copyright (C) 2012 Free Software Foundation, Inc.
   1423 This configure script is free software; the Free Software Foundation
   1424 gives unlimited permission to copy, distribute and modify it.
   1425 _ACEOF
   1426   exit
   1427 fi
   1428 
   1429 ## ------------------------ ##
   1430 ## Autoconf initialization. ##
   1431 ## ------------------------ ##
   1432 
   1433 # ac_fn_cxx_try_compile LINENO
   1434 # ----------------------------
   1435 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1436 ac_fn_cxx_try_compile ()
   1437 {
   1438   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1439   rm -f conftest.$ac_objext
   1440   if { { ac_try="$ac_compile"
   1441 case "(($ac_try" in
   1442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1443   *) ac_try_echo=$ac_try;;
   1444 esac
   1445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1446 $as_echo "$ac_try_echo"; } >&5
   1447   (eval "$ac_compile") 2>conftest.err
   1448   ac_status=$?
   1449   if test -s conftest.err; then
   1450     grep -v '^ *+' conftest.err >conftest.er1
   1451     cat conftest.er1 >&5
   1452     mv -f conftest.er1 conftest.err
   1453   fi
   1454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1455   test $ac_status = 0; } && {
   1456 	 test -z "$ac_cxx_werror_flag" ||
   1457 	 test ! -s conftest.err
   1458        } && test -s conftest.$ac_objext; then :
   1459   ac_retval=0
   1460 else
   1461   $as_echo "$as_me: failed program was:" >&5
   1462 sed 's/^/| /' conftest.$ac_ext >&5
   1463 
   1464 	ac_retval=1
   1465 fi
   1466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1467   as_fn_set_status $ac_retval
   1468 
   1469 } # ac_fn_cxx_try_compile
   1470 
   1471 # ac_fn_cxx_try_cpp LINENO
   1472 # ------------------------
   1473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1474 ac_fn_cxx_try_cpp ()
   1475 {
   1476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1477   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1478 case "(($ac_try" in
   1479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1480   *) ac_try_echo=$ac_try;;
   1481 esac
   1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1483 $as_echo "$ac_try_echo"; } >&5
   1484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1485   ac_status=$?
   1486   if test -s conftest.err; then
   1487     grep -v '^ *+' conftest.err >conftest.er1
   1488     cat conftest.er1 >&5
   1489     mv -f conftest.er1 conftest.err
   1490   fi
   1491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1492   test $ac_status = 0; } > conftest.i && {
   1493 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   1494 	 test ! -s conftest.err
   1495        }; then :
   1496   ac_retval=0
   1497 else
   1498   $as_echo "$as_me: failed program was:" >&5
   1499 sed 's/^/| /' conftest.$ac_ext >&5
   1500 
   1501     ac_retval=1
   1502 fi
   1503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1504   as_fn_set_status $ac_retval
   1505 
   1506 } # ac_fn_cxx_try_cpp
   1507 
   1508 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
   1509 # ---------------------------------------------------------
   1510 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1511 # the include files in INCLUDES and setting the cache variable VAR
   1512 # accordingly.
   1513 ac_fn_cxx_check_header_mongrel ()
   1514 {
   1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1516   if eval \${$3+:} false; then :
   1517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1518 $as_echo_n "checking for $2... " >&6; }
   1519 if eval \${$3+:} false; then :
   1520   $as_echo_n "(cached) " >&6
   1521 fi
   1522 eval ac_res=\$$3
   1523 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1524 $as_echo "$ac_res" >&6; }
   1525 else
   1526   # Is the header compilable?
   1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1528 $as_echo_n "checking $2 usability... " >&6; }
   1529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1530 /* end confdefs.h.  */
   1531 $4
   1532 #include <$2>
   1533 _ACEOF
   1534 if ac_fn_cxx_try_compile "$LINENO"; then :
   1535   ac_header_compiler=yes
   1536 else
   1537   ac_header_compiler=no
   1538 fi
   1539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1541 $as_echo "$ac_header_compiler" >&6; }
   1542 
   1543 # Is the header present?
   1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1545 $as_echo_n "checking $2 presence... " >&6; }
   1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1547 /* end confdefs.h.  */
   1548 #include <$2>
   1549 _ACEOF
   1550 if ac_fn_cxx_try_cpp "$LINENO"; then :
   1551   ac_header_preproc=yes
   1552 else
   1553   ac_header_preproc=no
   1554 fi
   1555 rm -f conftest.err conftest.i conftest.$ac_ext
   1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1557 $as_echo "$ac_header_preproc" >&6; }
   1558 
   1559 # So?  What about this header?
   1560 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
   1561   yes:no: )
   1562     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1563 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1564     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1565 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1566     ;;
   1567   no:yes:* )
   1568     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1569 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1571 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1573 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1574     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1575 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1577 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1578     ;;
   1579 esac
   1580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1581 $as_echo_n "checking for $2... " >&6; }
   1582 if eval \${$3+:} false; then :
   1583   $as_echo_n "(cached) " >&6
   1584 else
   1585   eval "$3=\$ac_header_compiler"
   1586 fi
   1587 eval ac_res=\$$3
   1588 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1589 $as_echo "$ac_res" >&6; }
   1590 fi
   1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1592 
   1593 } # ac_fn_cxx_check_header_mongrel
   1594 
   1595 # ac_fn_cxx_try_run LINENO
   1596 # ------------------------
   1597 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1598 # that executables *can* be run.
   1599 ac_fn_cxx_try_run ()
   1600 {
   1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1602   if { { ac_try="$ac_link"
   1603 case "(($ac_try" in
   1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1605   *) ac_try_echo=$ac_try;;
   1606 esac
   1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1608 $as_echo "$ac_try_echo"; } >&5
   1609   (eval "$ac_link") 2>&5
   1610   ac_status=$?
   1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1612   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1613   { { case "(($ac_try" in
   1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1615   *) ac_try_echo=$ac_try;;
   1616 esac
   1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1618 $as_echo "$ac_try_echo"; } >&5
   1619   (eval "$ac_try") 2>&5
   1620   ac_status=$?
   1621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1622   test $ac_status = 0; }; }; then :
   1623   ac_retval=0
   1624 else
   1625   $as_echo "$as_me: program exited with status $ac_status" >&5
   1626        $as_echo "$as_me: failed program was:" >&5
   1627 sed 's/^/| /' conftest.$ac_ext >&5
   1628 
   1629        ac_retval=$ac_status
   1630 fi
   1631   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1633   as_fn_set_status $ac_retval
   1634 
   1635 } # ac_fn_cxx_try_run
   1636 
   1637 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
   1638 # ---------------------------------------------------------
   1639 # Tests whether HEADER exists and can be compiled using the include files in
   1640 # INCLUDES, setting the cache variable VAR accordingly.
   1641 ac_fn_cxx_check_header_compile ()
   1642 {
   1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1645 $as_echo_n "checking for $2... " >&6; }
   1646 if eval \${$3+:} false; then :
   1647   $as_echo_n "(cached) " >&6
   1648 else
   1649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1650 /* end confdefs.h.  */
   1651 $4
   1652 #include <$2>
   1653 _ACEOF
   1654 if ac_fn_cxx_try_compile "$LINENO"; then :
   1655   eval "$3=yes"
   1656 else
   1657   eval "$3=no"
   1658 fi
   1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1660 fi
   1661 eval ac_res=\$$3
   1662 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1663 $as_echo "$ac_res" >&6; }
   1664   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1665 
   1666 } # ac_fn_cxx_check_header_compile
   1667 
   1668 # ac_fn_cxx_try_link LINENO
   1669 # -------------------------
   1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1671 ac_fn_cxx_try_link ()
   1672 {
   1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1674   rm -f conftest.$ac_objext conftest$ac_exeext
   1675   if { { ac_try="$ac_link"
   1676 case "(($ac_try" in
   1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1678   *) ac_try_echo=$ac_try;;
   1679 esac
   1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1681 $as_echo "$ac_try_echo"; } >&5
   1682   (eval "$ac_link") 2>conftest.err
   1683   ac_status=$?
   1684   if test -s conftest.err; then
   1685     grep -v '^ *+' conftest.err >conftest.er1
   1686     cat conftest.er1 >&5
   1687     mv -f conftest.er1 conftest.err
   1688   fi
   1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1690   test $ac_status = 0; } && {
   1691 	 test -z "$ac_cxx_werror_flag" ||
   1692 	 test ! -s conftest.err
   1693        } && test -s conftest$ac_exeext && {
   1694 	 test "$cross_compiling" = yes ||
   1695 	 test -x conftest$ac_exeext
   1696        }; then :
   1697   ac_retval=0
   1698 else
   1699   $as_echo "$as_me: failed program was:" >&5
   1700 sed 's/^/| /' conftest.$ac_ext >&5
   1701 
   1702 	ac_retval=1
   1703 fi
   1704   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1705   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1706   # interfere with the next link command; also delete a directory that is
   1707   # left behind by Apple's compiler.  We do this before executing the actions.
   1708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1710   as_fn_set_status $ac_retval
   1711 
   1712 } # ac_fn_cxx_try_link
   1713 cat >config.log <<_ACEOF
   1714 This file contains any messages produced by compilers while
   1715 running configure, to aid debugging if configure makes a mistake.
   1716 
   1717 It was created by $as_me, which was
   1718 generated by GNU Autoconf 2.69.  Invocation command line was
   1719 
   1720   $ $0 $@
   1721 
   1722 _ACEOF
   1723 exec 5>>config.log
   1724 {
   1725 cat <<_ASUNAME
   1726 ## --------- ##
   1727 ## Platform. ##
   1728 ## --------- ##
   1729 
   1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1735 
   1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1737 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1738 
   1739 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1740 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1742 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1743 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1744 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1745 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1746 
   1747 _ASUNAME
   1748 
   1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1750 for as_dir in $PATH
   1751 do
   1752   IFS=$as_save_IFS
   1753   test -z "$as_dir" && as_dir=.
   1754     $as_echo "PATH: $as_dir"
   1755   done
   1756 IFS=$as_save_IFS
   1757 
   1758 } >&5
   1759 
   1760 cat >&5 <<_ACEOF
   1761 
   1762 
   1763 ## ----------- ##
   1764 ## Core tests. ##
   1765 ## ----------- ##
   1766 
   1767 _ACEOF
   1768 
   1769 
   1770 # Keep a trace of the command line.
   1771 # Strip out --no-create and --no-recursion so they do not pile up.
   1772 # Strip out --silent because we don't want to record it for future runs.
   1773 # Also quote any args containing shell meta-characters.
   1774 # Make two passes to allow for proper duplicate-argument suppression.
   1775 ac_configure_args=
   1776 ac_configure_args0=
   1777 ac_configure_args1=
   1778 ac_must_keep_next=false
   1779 for ac_pass in 1 2
   1780 do
   1781   for ac_arg
   1782   do
   1783     case $ac_arg in
   1784     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1785     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1786     | -silent | --silent | --silen | --sile | --sil)
   1787       continue ;;
   1788     *\'*)
   1789       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1790     esac
   1791     case $ac_pass in
   1792     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1793     2)
   1794       as_fn_append ac_configure_args1 " '$ac_arg'"
   1795       if test $ac_must_keep_next = true; then
   1796 	ac_must_keep_next=false # Got value, back to normal.
   1797       else
   1798 	case $ac_arg in
   1799 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1800 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1801 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1802 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1803 	    case "$ac_configure_args0 " in
   1804 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1805 	    esac
   1806 	    ;;
   1807 	  -* ) ac_must_keep_next=true ;;
   1808 	esac
   1809       fi
   1810       as_fn_append ac_configure_args " '$ac_arg'"
   1811       ;;
   1812     esac
   1813   done
   1814 done
   1815 { ac_configure_args0=; unset ac_configure_args0;}
   1816 { ac_configure_args1=; unset ac_configure_args1;}
   1817 
   1818 # When interrupted or exit'd, cleanup temporary files, and complete
   1819 # config.log.  We remove comments because anyway the quotes in there
   1820 # would cause problems or look ugly.
   1821 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1822 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1823 trap 'exit_status=$?
   1824   # Save into config.log some information that might help in debugging.
   1825   {
   1826     echo
   1827 
   1828     $as_echo "## ---------------- ##
   1829 ## Cache variables. ##
   1830 ## ---------------- ##"
   1831     echo
   1832     # The following way of writing the cache mishandles newlines in values,
   1833 (
   1834   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1835     eval ac_val=\$$ac_var
   1836     case $ac_val in #(
   1837     *${as_nl}*)
   1838       case $ac_var in #(
   1839       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   1840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1841       esac
   1842       case $ac_var in #(
   1843       _ | IFS | as_nl) ;; #(
   1844       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1845       *) { eval $ac_var=; unset $ac_var;} ;;
   1846       esac ;;
   1847     esac
   1848   done
   1849   (set) 2>&1 |
   1850     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1851     *${as_nl}ac_space=\ *)
   1852       sed -n \
   1853 	"s/'\''/'\''\\\\'\'''\''/g;
   1854 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1855       ;; #(
   1856     *)
   1857       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1858       ;;
   1859     esac |
   1860     sort
   1861 )
   1862     echo
   1863 
   1864     $as_echo "## ----------------- ##
   1865 ## Output variables. ##
   1866 ## ----------------- ##"
   1867     echo
   1868     for ac_var in $ac_subst_vars
   1869     do
   1870       eval ac_val=\$$ac_var
   1871       case $ac_val in
   1872       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1873       esac
   1874       $as_echo "$ac_var='\''$ac_val'\''"
   1875     done | sort
   1876     echo
   1877 
   1878     if test -n "$ac_subst_files"; then
   1879       $as_echo "## ------------------- ##
   1880 ## File substitutions. ##
   1881 ## ------------------- ##"
   1882       echo
   1883       for ac_var in $ac_subst_files
   1884       do
   1885 	eval ac_val=\$$ac_var
   1886 	case $ac_val in
   1887 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1888 	esac
   1889 	$as_echo "$ac_var='\''$ac_val'\''"
   1890       done | sort
   1891       echo
   1892     fi
   1893 
   1894     if test -s confdefs.h; then
   1895       $as_echo "## ----------- ##
   1896 ## confdefs.h. ##
   1897 ## ----------- ##"
   1898       echo
   1899       cat confdefs.h
   1900       echo
   1901     fi
   1902     test "$ac_signal" != 0 &&
   1903       $as_echo "$as_me: caught signal $ac_signal"
   1904     $as_echo "$as_me: exit $exit_status"
   1905   } >&5
   1906   rm -f core *.core core.conftest.* &&
   1907     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1908     exit $exit_status
   1909 ' 0
   1910 for ac_signal in 1 2 13 15; do
   1911   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   1912 done
   1913 ac_signal=0
   1914 
   1915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1916 rm -f -r conftest* confdefs.h
   1917 
   1918 $as_echo "/* confdefs.h */" > confdefs.h
   1919 
   1920 # Predefined preprocessor variables.
   1921 
   1922 cat >>confdefs.h <<_ACEOF
   1923 #define PACKAGE_NAME "$PACKAGE_NAME"
   1924 _ACEOF
   1925 
   1926 cat >>confdefs.h <<_ACEOF
   1927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1928 _ACEOF
   1929 
   1930 cat >>confdefs.h <<_ACEOF
   1931 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1932 _ACEOF
   1933 
   1934 cat >>confdefs.h <<_ACEOF
   1935 #define PACKAGE_STRING "$PACKAGE_STRING"
   1936 _ACEOF
   1937 
   1938 cat >>confdefs.h <<_ACEOF
   1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1940 _ACEOF
   1941 
   1942 cat >>confdefs.h <<_ACEOF
   1943 #define PACKAGE_URL "$PACKAGE_URL"
   1944 _ACEOF
   1945 
   1946 
   1947 # Let the site file select an alternate cache file if it wants to.
   1948 # Prefer an explicitly selected file to automatically selected ones.
   1949 ac_site_file1=NONE
   1950 ac_site_file2=NONE
   1951 if test -n "$CONFIG_SITE"; then
   1952   # We do not want a PATH search for config.site.
   1953   case $CONFIG_SITE in #((
   1954     -*)  ac_site_file1=./$CONFIG_SITE;;
   1955     */*) ac_site_file1=$CONFIG_SITE;;
   1956     *)   ac_site_file1=./$CONFIG_SITE;;
   1957   esac
   1958 elif test "x$prefix" != xNONE; then
   1959   ac_site_file1=$prefix/share/config.site
   1960   ac_site_file2=$prefix/etc/config.site
   1961 else
   1962   ac_site_file1=$ac_default_prefix/share/config.site
   1963   ac_site_file2=$ac_default_prefix/etc/config.site
   1964 fi
   1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   1966 do
   1967   test "x$ac_site_file" = xNONE && continue
   1968   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   1969     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   1971     sed 's/^/| /' "$ac_site_file" >&5
   1972     . "$ac_site_file" \
   1973       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   1974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   1975 as_fn_error $? "failed to load site script $ac_site_file
   1976 See \`config.log' for more details" "$LINENO" 5; }
   1977   fi
   1978 done
   1979 
   1980 if test -r "$cache_file"; then
   1981   # Some versions of bash will fail to source /dev/null (special files
   1982   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   1983   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   1984     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   1985 $as_echo "$as_me: loading cache $cache_file" >&6;}
   1986     case $cache_file in
   1987       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1988       *)                      . "./$cache_file";;
   1989     esac
   1990   fi
   1991 else
   1992   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   1993 $as_echo "$as_me: creating cache $cache_file" >&6;}
   1994   >$cache_file
   1995 fi
   1996 
   1997 # Check that the precious variables saved in the cache have kept the same
   1998 # value.
   1999 ac_cache_corrupted=false
   2000 for ac_var in $ac_precious_vars; do
   2001   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2002   eval ac_new_set=\$ac_env_${ac_var}_set
   2003   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2004   eval ac_new_val=\$ac_env_${ac_var}_value
   2005   case $ac_old_set,$ac_new_set in
   2006     set,)
   2007       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2008 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2009       ac_cache_corrupted=: ;;
   2010     ,set)
   2011       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2012 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2013       ac_cache_corrupted=: ;;
   2014     ,);;
   2015     *)
   2016       if test "x$ac_old_val" != "x$ac_new_val"; then
   2017 	# differences in whitespace do not lead to failure.
   2018 	ac_old_val_w=`echo x $ac_old_val`
   2019 	ac_new_val_w=`echo x $ac_new_val`
   2020 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2021 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2022 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2023 	  ac_cache_corrupted=:
   2024 	else
   2025 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2026 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2027 	  eval $ac_var=\$ac_old_val
   2028 	fi
   2029 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2030 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2031 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2032 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2033       fi;;
   2034   esac
   2035   # Pass precious variables to config.status.
   2036   if test "$ac_new_set" = set; then
   2037     case $ac_new_val in
   2038     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2039     *) ac_arg=$ac_var=$ac_new_val ;;
   2040     esac
   2041     case " $ac_configure_args " in
   2042       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2043       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2044     esac
   2045   fi
   2046 done
   2047 if $ac_cache_corrupted; then
   2048   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2050   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2051 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2052   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2053 fi
   2054 ## -------------------- ##
   2055 ## Main body of script. ##
   2056 ## -------------------- ##
   2057 
   2058 ac_ext=c
   2059 ac_cpp='$CPP $CPPFLAGS'
   2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2063 
   2064 
   2065 
   2066 
   2067 
   2068 # Determine the noncanonical names used for directories.
   2069 ac_aux_dir=
   2070 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2071   if test -f "$ac_dir/install-sh"; then
   2072     ac_aux_dir=$ac_dir
   2073     ac_install_sh="$ac_aux_dir/install-sh -c"
   2074     break
   2075   elif test -f "$ac_dir/install.sh"; then
   2076     ac_aux_dir=$ac_dir
   2077     ac_install_sh="$ac_aux_dir/install.sh -c"
   2078     break
   2079   elif test -f "$ac_dir/shtool"; then
   2080     ac_aux_dir=$ac_dir
   2081     ac_install_sh="$ac_aux_dir/shtool install -c"
   2082     break
   2083   fi
   2084 done
   2085 if test -z "$ac_aux_dir"; then
   2086   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2087 fi
   2088 
   2089 # These three variables are undocumented and unsupported,
   2090 # and are intended to be withdrawn in a future Autoconf release.
   2091 # They can cause serious problems if a builder's source tree is in a directory
   2092 # whose full name contains unusual characters.
   2093 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2094 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2095 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2096 
   2097 
   2098 # Make sure we can run config.sub.
   2099 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2100   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2101 
   2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2103 $as_echo_n "checking build system type... " >&6; }
   2104 if ${ac_cv_build+:} false; then :
   2105   $as_echo_n "(cached) " >&6
   2106 else
   2107   ac_build_alias=$build_alias
   2108 test "x$ac_build_alias" = x &&
   2109   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2110 test "x$ac_build_alias" = x &&
   2111   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2113   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2114 
   2115 fi
   2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2117 $as_echo "$ac_cv_build" >&6; }
   2118 case $ac_cv_build in
   2119 *-*-*) ;;
   2120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2121 esac
   2122 build=$ac_cv_build
   2123 ac_save_IFS=$IFS; IFS='-'
   2124 set x $ac_cv_build
   2125 shift
   2126 build_cpu=$1
   2127 build_vendor=$2
   2128 shift; shift
   2129 # Remember, the first character of IFS is used to create $*,
   2130 # except with old shells:
   2131 build_os=$*
   2132 IFS=$ac_save_IFS
   2133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2134 
   2135 
   2136  case ${build_alias} in
   2137   "") build_noncanonical=${build} ;;
   2138   *) build_noncanonical=${build_alias} ;;
   2139 esac
   2140 
   2141  case ${host_alias} in
   2142   "") host_noncanonical=${build_noncanonical} ;;
   2143   *) host_noncanonical=${host_alias} ;;
   2144 esac
   2145 
   2146  case ${target_alias} in
   2147   "") target_noncanonical=${host_noncanonical} ;;
   2148   *) target_noncanonical=${target_alias} ;;
   2149 esac
   2150 
   2151 
   2152 
   2153 
   2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2155 $as_echo_n "checking host system type... " >&6; }
   2156 if ${ac_cv_host+:} false; then :
   2157   $as_echo_n "(cached) " >&6
   2158 else
   2159   if test "x$host_alias" = x; then
   2160   ac_cv_host=$ac_cv_build
   2161 else
   2162   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2163     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2164 fi
   2165 
   2166 fi
   2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2168 $as_echo "$ac_cv_host" >&6; }
   2169 case $ac_cv_host in
   2170 *-*-*) ;;
   2171 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2172 esac
   2173 host=$ac_cv_host
   2174 ac_save_IFS=$IFS; IFS='-'
   2175 set x $ac_cv_host
   2176 shift
   2177 host_cpu=$1
   2178 host_vendor=$2
   2179 shift; shift
   2180 # Remember, the first character of IFS is used to create $*,
   2181 # except with old shells:
   2182 host_os=$*
   2183 IFS=$ac_save_IFS
   2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2185 
   2186 
   2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2188 $as_echo_n "checking target system type... " >&6; }
   2189 if ${ac_cv_target+:} false; then :
   2190   $as_echo_n "(cached) " >&6
   2191 else
   2192   if test "x$target_alias" = x; then
   2193   ac_cv_target=$ac_cv_host
   2194 else
   2195   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2196     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2197 fi
   2198 
   2199 fi
   2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2201 $as_echo "$ac_cv_target" >&6; }
   2202 case $ac_cv_target in
   2203 *-*-*) ;;
   2204 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2205 esac
   2206 target=$ac_cv_target
   2207 ac_save_IFS=$IFS; IFS='-'
   2208 set x $ac_cv_target
   2209 shift
   2210 target_cpu=$1
   2211 target_vendor=$2
   2212 shift; shift
   2213 # Remember, the first character of IFS is used to create $*,
   2214 # except with old shells:
   2215 target_os=$*
   2216 IFS=$ac_save_IFS
   2217 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2218 
   2219 
   2220 # The aliases save the names the user supplied, while $host etc.
   2221 # will get canonicalized.
   2222 test -n "$target_alias" &&
   2223   test "$program_prefix$program_suffix$program_transform_name" = \
   2224     NONENONEs,x,x, &&
   2225   program_prefix=${target_alias}-
   2226 
   2227 # Find a good install program.  We prefer a C program (faster),
   2228 # so one script is as good as another.  But avoid the broken or
   2229 # incompatible versions:
   2230 # SysV /etc/install, /usr/sbin/install
   2231 # SunOS /usr/etc/install
   2232 # IRIX /sbin/install
   2233 # AIX /bin/install
   2234 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2238 # OS/2's system install, which has a completely different semantic
   2239 # ./install, which can be erroneously created by make from ./install.sh.
   2240 # Reject install programs that cannot install multiple files.
   2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2242 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2243 if test -z "$INSTALL"; then
   2244 if ${ac_cv_path_install+:} false; then :
   2245   $as_echo_n "(cached) " >&6
   2246 else
   2247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2248 for as_dir in $PATH
   2249 do
   2250   IFS=$as_save_IFS
   2251   test -z "$as_dir" && as_dir=.
   2252     # Account for people who put trailing slashes in PATH elements.
   2253 case $as_dir/ in #((
   2254   ./ | .// | /[cC]/* | \
   2255   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2256   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2257   /usr/ucb/* ) ;;
   2258   *)
   2259     # OSF1 and SCO ODT 3.0 have their own names for install.
   2260     # Don't use installbsd from OSF since it installs stuff as root
   2261     # by default.
   2262     for ac_prog in ginstall scoinst install; do
   2263       for ac_exec_ext in '' $ac_executable_extensions; do
   2264 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2265 	  if test $ac_prog = install &&
   2266 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2267 	    # AIX install.  It has an incompatible calling convention.
   2268 	    :
   2269 	  elif test $ac_prog = install &&
   2270 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2271 	    # program-specific install script used by HP pwplus--don't use.
   2272 	    :
   2273 	  else
   2274 	    rm -rf conftest.one conftest.two conftest.dir
   2275 	    echo one > conftest.one
   2276 	    echo two > conftest.two
   2277 	    mkdir conftest.dir
   2278 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2279 	      test -s conftest.one && test -s conftest.two &&
   2280 	      test -s conftest.dir/conftest.one &&
   2281 	      test -s conftest.dir/conftest.two
   2282 	    then
   2283 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2284 	      break 3
   2285 	    fi
   2286 	  fi
   2287 	fi
   2288       done
   2289     done
   2290     ;;
   2291 esac
   2292 
   2293   done
   2294 IFS=$as_save_IFS
   2295 
   2296 rm -rf conftest.one conftest.two conftest.dir
   2297 
   2298 fi
   2299   if test "${ac_cv_path_install+set}" = set; then
   2300     INSTALL=$ac_cv_path_install
   2301   else
   2302     # As a last resort, use the slow shell script.  Don't cache a
   2303     # value for INSTALL within a source directory, because that will
   2304     # break other packages using the cache if that directory is
   2305     # removed, or if the value is a relative name.
   2306     INSTALL=$ac_install_sh
   2307   fi
   2308 fi
   2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2310 $as_echo "$INSTALL" >&6; }
   2311 
   2312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2313 # It thinks the first close brace ends the variable substitution.
   2314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2315 
   2316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2317 
   2318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2319 
   2320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2321 
   2322 
   2323 ac_ext=cpp
   2324 ac_cpp='$CXXCPP $CPPFLAGS'
   2325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2328 if test -z "$CXX"; then
   2329   if test -n "$CCC"; then
   2330     CXX=$CCC
   2331   else
   2332     if test -n "$ac_tool_prefix"; then
   2333   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   2334   do
   2335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2338 $as_echo_n "checking for $ac_word... " >&6; }
   2339 if ${ac_cv_prog_CXX+:} false; then :
   2340   $as_echo_n "(cached) " >&6
   2341 else
   2342   if test -n "$CXX"; then
   2343   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2344 else
   2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2346 for as_dir in $PATH
   2347 do
   2348   IFS=$as_save_IFS
   2349   test -z "$as_dir" && as_dir=.
   2350     for ac_exec_ext in '' $ac_executable_extensions; do
   2351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2352     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2354     break 2
   2355   fi
   2356 done
   2357   done
   2358 IFS=$as_save_IFS
   2359 
   2360 fi
   2361 fi
   2362 CXX=$ac_cv_prog_CXX
   2363 if test -n "$CXX"; then
   2364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   2365 $as_echo "$CXX" >&6; }
   2366 else
   2367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2368 $as_echo "no" >&6; }
   2369 fi
   2370 
   2371 
   2372     test -n "$CXX" && break
   2373   done
   2374 fi
   2375 if test -z "$CXX"; then
   2376   ac_ct_CXX=$CXX
   2377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   2378 do
   2379   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2380 set dummy $ac_prog; ac_word=$2
   2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2382 $as_echo_n "checking for $ac_word... " >&6; }
   2383 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   2384   $as_echo_n "(cached) " >&6
   2385 else
   2386   if test -n "$ac_ct_CXX"; then
   2387   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2388 else
   2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2390 for as_dir in $PATH
   2391 do
   2392   IFS=$as_save_IFS
   2393   test -z "$as_dir" && as_dir=.
   2394     for ac_exec_ext in '' $ac_executable_extensions; do
   2395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2396     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2398     break 2
   2399   fi
   2400 done
   2401   done
   2402 IFS=$as_save_IFS
   2403 
   2404 fi
   2405 fi
   2406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2407 if test -n "$ac_ct_CXX"; then
   2408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   2409 $as_echo "$ac_ct_CXX" >&6; }
   2410 else
   2411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2412 $as_echo "no" >&6; }
   2413 fi
   2414 
   2415 
   2416   test -n "$ac_ct_CXX" && break
   2417 done
   2418 
   2419   if test "x$ac_ct_CXX" = x; then
   2420     CXX="g++"
   2421   else
   2422     case $cross_compiling:$ac_tool_warned in
   2423 yes:)
   2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2426 ac_tool_warned=yes ;;
   2427 esac
   2428     CXX=$ac_ct_CXX
   2429   fi
   2430 fi
   2431 
   2432   fi
   2433 fi
   2434 # Provide some information about the compiler.
   2435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   2436 set X $ac_compile
   2437 ac_compiler=$2
   2438 for ac_option in --version -v -V -qversion; do
   2439   { { ac_try="$ac_compiler $ac_option >&5"
   2440 case "(($ac_try" in
   2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2442   *) ac_try_echo=$ac_try;;
   2443 esac
   2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2445 $as_echo "$ac_try_echo"; } >&5
   2446   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2447   ac_status=$?
   2448   if test -s conftest.err; then
   2449     sed '10a\
   2450 ... rest of stderr output deleted ...
   2451          10q' conftest.err >conftest.er1
   2452     cat conftest.er1 >&5
   2453   fi
   2454   rm -f conftest.er1 conftest.err
   2455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2456   test $ac_status = 0; }
   2457 done
   2458 
   2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2460 /* end confdefs.h.  */
   2461 
   2462 int
   2463 main ()
   2464 {
   2465 
   2466   ;
   2467   return 0;
   2468 }
   2469 _ACEOF
   2470 ac_clean_files_save=$ac_clean_files
   2471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2472 # Try to create an executable without -o first, disregard a.out.
   2473 # It will help us diagnose broken compilers, and finding out an intuition
   2474 # of exeext.
   2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
   2476 $as_echo_n "checking whether the C++ compiler works... " >&6; }
   2477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2478 
   2479 # The possible output files:
   2480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   2481 
   2482 ac_rmfiles=
   2483 for ac_file in $ac_files
   2484 do
   2485   case $ac_file in
   2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   2487     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2488   esac
   2489 done
   2490 rm -f $ac_rmfiles
   2491 
   2492 if { { ac_try="$ac_link_default"
   2493 case "(($ac_try" in
   2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2495   *) ac_try_echo=$ac_try;;
   2496 esac
   2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2498 $as_echo "$ac_try_echo"; } >&5
   2499   (eval "$ac_link_default") 2>&5
   2500   ac_status=$?
   2501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2502   test $ac_status = 0; }; then :
   2503   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2505 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2506 # so that the user can short-circuit this test for compilers unknown to
   2507 # Autoconf.
   2508 for ac_file in $ac_files ''
   2509 do
   2510   test -f "$ac_file" || continue
   2511   case $ac_file in
   2512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   2513 	;;
   2514     [ab].out )
   2515 	# We found the default executable, but exeext='' is most
   2516 	# certainly right.
   2517 	break;;
   2518     *.* )
   2519 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2520 	then :; else
   2521 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2522 	fi
   2523 	# We set ac_cv_exeext here because the later test for it is not
   2524 	# safe: cross compilers may not add the suffix if given an `-o'
   2525 	# argument, so we may need to know it at that point already.
   2526 	# Even if this section looks crufty: it has the advantage of
   2527 	# actually working.
   2528 	break;;
   2529     * )
   2530 	break;;
   2531   esac
   2532 done
   2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2534 
   2535 else
   2536   ac_file=''
   2537 fi
   2538 if test -z "$ac_file"; then :
   2539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2540 $as_echo "no" >&6; }
   2541 $as_echo "$as_me: failed program was:" >&5
   2542 sed 's/^/| /' conftest.$ac_ext >&5
   2543 
   2544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2546 as_fn_error 77 "C++ compiler cannot create executables
   2547 See \`config.log' for more details" "$LINENO" 5; }
   2548 else
   2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2550 $as_echo "yes" >&6; }
   2551 fi
   2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
   2553 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
   2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   2555 $as_echo "$ac_file" >&6; }
   2556 ac_exeext=$ac_cv_exeext
   2557 
   2558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   2559 ac_clean_files=$ac_clean_files_save
   2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   2561 $as_echo_n "checking for suffix of executables... " >&6; }
   2562 if { { ac_try="$ac_link"
   2563 case "(($ac_try" in
   2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2565   *) ac_try_echo=$ac_try;;
   2566 esac
   2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2568 $as_echo "$ac_try_echo"; } >&5
   2569   (eval "$ac_link") 2>&5
   2570   ac_status=$?
   2571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2572   test $ac_status = 0; }; then :
   2573   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2574 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2575 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2576 # `rm'.
   2577 for ac_file in conftest.exe conftest conftest.*; do
   2578   test -f "$ac_file" || continue
   2579   case $ac_file in
   2580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   2581     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2582 	  break;;
   2583     * ) break;;
   2584   esac
   2585 done
   2586 else
   2587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   2590 See \`config.log' for more details" "$LINENO" 5; }
   2591 fi
   2592 rm -f conftest conftest$ac_cv_exeext
   2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   2594 $as_echo "$ac_cv_exeext" >&6; }
   2595 
   2596 rm -f conftest.$ac_ext
   2597 EXEEXT=$ac_cv_exeext
   2598 ac_exeext=$EXEEXT
   2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2600 /* end confdefs.h.  */
   2601 #include <stdio.h>
   2602 int
   2603 main ()
   2604 {
   2605 FILE *f = fopen ("conftest.out", "w");
   2606  return ferror (f) || fclose (f) != 0;
   2607 
   2608   ;
   2609   return 0;
   2610 }
   2611 _ACEOF
   2612 ac_clean_files="$ac_clean_files conftest.out"
   2613 # Check that the compiler produces executables we can run.  If not, either
   2614 # the compiler is broken, or we cross compile.
   2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   2616 $as_echo_n "checking whether we are cross compiling... " >&6; }
   2617 if test "$cross_compiling" != yes; then
   2618   { { ac_try="$ac_link"
   2619 case "(($ac_try" in
   2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2621   *) ac_try_echo=$ac_try;;
   2622 esac
   2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2624 $as_echo "$ac_try_echo"; } >&5
   2625   (eval "$ac_link") 2>&5
   2626   ac_status=$?
   2627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2628   test $ac_status = 0; }
   2629   if { ac_try='./conftest$ac_cv_exeext'
   2630   { { case "(($ac_try" in
   2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2632   *) ac_try_echo=$ac_try;;
   2633 esac
   2634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2635 $as_echo "$ac_try_echo"; } >&5
   2636   (eval "$ac_try") 2>&5
   2637   ac_status=$?
   2638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2639   test $ac_status = 0; }; }; then
   2640     cross_compiling=no
   2641   else
   2642     if test "$cross_compiling" = maybe; then
   2643 	cross_compiling=yes
   2644     else
   2645 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2647 as_fn_error $? "cannot run C++ compiled programs.
   2648 If you meant to cross compile, use \`--host'.
   2649 See \`config.log' for more details" "$LINENO" 5; }
   2650     fi
   2651   fi
   2652 fi
   2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   2654 $as_echo "$cross_compiling" >&6; }
   2655 
   2656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   2657 ac_clean_files=$ac_clean_files_save
   2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   2659 $as_echo_n "checking for suffix of object files... " >&6; }
   2660 if ${ac_cv_objext+:} false; then :
   2661   $as_echo_n "(cached) " >&6
   2662 else
   2663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2664 /* end confdefs.h.  */
   2665 
   2666 int
   2667 main ()
   2668 {
   2669 
   2670   ;
   2671   return 0;
   2672 }
   2673 _ACEOF
   2674 rm -f conftest.o conftest.obj
   2675 if { { ac_try="$ac_compile"
   2676 case "(($ac_try" in
   2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2678   *) ac_try_echo=$ac_try;;
   2679 esac
   2680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2681 $as_echo "$ac_try_echo"; } >&5
   2682   (eval "$ac_compile") 2>&5
   2683   ac_status=$?
   2684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2685   test $ac_status = 0; }; then :
   2686   for ac_file in conftest.o conftest.obj conftest.*; do
   2687   test -f "$ac_file" || continue;
   2688   case $ac_file in
   2689     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   2690     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2691        break;;
   2692   esac
   2693 done
   2694 else
   2695   $as_echo "$as_me: failed program was:" >&5
   2696 sed 's/^/| /' conftest.$ac_ext >&5
   2697 
   2698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2700 as_fn_error $? "cannot compute suffix of object files: cannot compile
   2701 See \`config.log' for more details" "$LINENO" 5; }
   2702 fi
   2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2704 fi
   2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   2706 $as_echo "$ac_cv_objext" >&6; }
   2707 OBJEXT=$ac_cv_objext
   2708 ac_objext=$OBJEXT
   2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   2710 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   2711 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   2712   $as_echo_n "(cached) " >&6
   2713 else
   2714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2715 /* end confdefs.h.  */
   2716 
   2717 int
   2718 main ()
   2719 {
   2720 #ifndef __GNUC__
   2721        choke me
   2722 #endif
   2723 
   2724   ;
   2725   return 0;
   2726 }
   2727 _ACEOF
   2728 if ac_fn_cxx_try_compile "$LINENO"; then :
   2729   ac_compiler_gnu=yes
   2730 else
   2731   ac_compiler_gnu=no
   2732 fi
   2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2734 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2735 
   2736 fi
   2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   2738 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   2739 if test $ac_compiler_gnu = yes; then
   2740   GXX=yes
   2741 else
   2742   GXX=
   2743 fi
   2744 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2745 ac_save_CXXFLAGS=$CXXFLAGS
   2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   2747 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   2748 if ${ac_cv_prog_cxx_g+:} false; then :
   2749   $as_echo_n "(cached) " >&6
   2750 else
   2751   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2752    ac_cxx_werror_flag=yes
   2753    ac_cv_prog_cxx_g=no
   2754    CXXFLAGS="-g"
   2755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2756 /* end confdefs.h.  */
   2757 
   2758 int
   2759 main ()
   2760 {
   2761 
   2762   ;
   2763   return 0;
   2764 }
   2765 _ACEOF
   2766 if ac_fn_cxx_try_compile "$LINENO"; then :
   2767   ac_cv_prog_cxx_g=yes
   2768 else
   2769   CXXFLAGS=""
   2770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2771 /* end confdefs.h.  */
   2772 
   2773 int
   2774 main ()
   2775 {
   2776 
   2777   ;
   2778   return 0;
   2779 }
   2780 _ACEOF
   2781 if ac_fn_cxx_try_compile "$LINENO"; then :
   2782 
   2783 else
   2784   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2785 	 CXXFLAGS="-g"
   2786 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2787 /* end confdefs.h.  */
   2788 
   2789 int
   2790 main ()
   2791 {
   2792 
   2793   ;
   2794   return 0;
   2795 }
   2796 _ACEOF
   2797 if ac_fn_cxx_try_compile "$LINENO"; then :
   2798   ac_cv_prog_cxx_g=yes
   2799 fi
   2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2801 fi
   2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2803 fi
   2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2805    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2806 fi
   2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   2808 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   2809 if test "$ac_test_CXXFLAGS" = set; then
   2810   CXXFLAGS=$ac_save_CXXFLAGS
   2811 elif test $ac_cv_prog_cxx_g = yes; then
   2812   if test "$GXX" = yes; then
   2813     CXXFLAGS="-g -O2"
   2814   else
   2815     CXXFLAGS="-g"
   2816   fi
   2817 else
   2818   if test "$GXX" = yes; then
   2819     CXXFLAGS="-O2"
   2820   else
   2821     CXXFLAGS=
   2822   fi
   2823 fi
   2824 ac_ext=c
   2825 ac_cpp='$CPP $CPPFLAGS'
   2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2829 
   2830 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
   2831 for ac_prog in autoconf
   2832 do
   2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2834 set dummy $ac_prog; ac_word=$2
   2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2836 $as_echo_n "checking for $ac_word... " >&6; }
   2837 if ${ac_cv_prog_AUTOCONF+:} false; then :
   2838   $as_echo_n "(cached) " >&6
   2839 else
   2840   if test -n "$AUTOCONF"; then
   2841   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
   2842 else
   2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2844 for as_dir in $PATH
   2845 do
   2846   IFS=$as_save_IFS
   2847   test -z "$as_dir" && as_dir=.
   2848     for ac_exec_ext in '' $ac_executable_extensions; do
   2849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2850     ac_cv_prog_AUTOCONF="$ac_prog"
   2851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2852     break 2
   2853   fi
   2854 done
   2855   done
   2856 IFS=$as_save_IFS
   2857 
   2858 fi
   2859 fi
   2860 AUTOCONF=$ac_cv_prog_AUTOCONF
   2861 if test -n "$AUTOCONF"; then
   2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
   2863 $as_echo "$AUTOCONF" >&6; }
   2864 else
   2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2866 $as_echo "no" >&6; }
   2867 fi
   2868 
   2869 
   2870   test -n "$AUTOCONF" && break
   2871 done
   2872 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
   2873 
   2874 for ac_prog in autoheader
   2875 do
   2876   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2877 set dummy $ac_prog; ac_word=$2
   2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2879 $as_echo_n "checking for $ac_word... " >&6; }
   2880 if ${ac_cv_prog_AUTOHEADER+:} false; then :
   2881   $as_echo_n "(cached) " >&6
   2882 else
   2883   if test -n "$AUTOHEADER"; then
   2884   ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
   2885 else
   2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2887 for as_dir in $PATH
   2888 do
   2889   IFS=$as_save_IFS
   2890   test -z "$as_dir" && as_dir=.
   2891     for ac_exec_ext in '' $ac_executable_extensions; do
   2892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2893     ac_cv_prog_AUTOHEADER="$ac_prog"
   2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2895     break 2
   2896   fi
   2897 done
   2898   done
   2899 IFS=$as_save_IFS
   2900 
   2901 fi
   2902 fi
   2903 AUTOHEADER=$ac_cv_prog_AUTOHEADER
   2904 if test -n "$AUTOHEADER"; then
   2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
   2906 $as_echo "$AUTOHEADER" >&6; }
   2907 else
   2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2909 $as_echo "no" >&6; }
   2910 fi
   2911 
   2912 
   2913   test -n "$AUTOHEADER" && break
   2914 done
   2915 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
   2916 
   2917 
   2918 ac_ext=cpp
   2919 ac_cpp='$CXXCPP $CPPFLAGS'
   2920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2923 
   2924 
   2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build C++ tools" >&5
   2926 $as_echo_n "checking whether to build C++ tools... " >&6; }
   2927   # Check whether --enable-c++-tools was given.
   2928 if test "${enable_c___tools+set}" = set; then :
   2929   enableval=$enable_c___tools; cxx_aux_tools=$enableval
   2930 else
   2931   cxx_aux_tools=yes
   2932 fi
   2933 
   2934 
   2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_aux_tools" >&5
   2936 $as_echo "$cxx_aux_tools" >&6; }
   2937 CXX_AUX_TOOLS="$cxx_aux_tools"
   2938 
   2939 
   2940 # Check whether --enable-maintainer-mode was given.
   2941 if test "${enable_maintainer_mode+set}" = set; then :
   2942   enableval=$enable_maintainer_mode;
   2943 else
   2944   enable_maintainer_mode=no
   2945 fi
   2946 
   2947 case "$enable_maintainer_mode" in
   2948   yes) maintainer_mode=yes ;;
   2949   no) maintainer_mode=no ;;
   2950   *) as_fn_error $? "unknown maintainer mode $enable_maintainer_mode" "$LINENO" 5 ;;
   2951 esac
   2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer-mode" >&5
   2953 $as_echo_n "checking maintainer-mode... " >&6; }
   2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
   2955 $as_echo "$maintainer_mode" >&6; }
   2956 test "$maintainer_mode" = yes && MAINTAINER=yes
   2957 
   2958 
   2959 # Handle configuration of checking; for the tools in this directory we
   2960 # default to release checking and stricter checks do not change this.
   2961 
   2962 # Check whether --enable-checking was given.
   2963 if test "${enable_checking+set}" = set; then :
   2964   enableval=$enable_checking; ac_checking_flags="${enableval}"
   2965 else
   2966 
   2967 # Default to checking.
   2968 ac_checking_flags=yes
   2969 
   2970 fi
   2971 
   2972 IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
   2973 for check in release $ac_checking_flags
   2974 do
   2975 	case $check in
   2976 	# these set all the flags to specific states
   2977 	yes|all|release|assert) ac_assert_checking=1 ; ;;
   2978 	no|none) ac_assert_checking= ; ;;
   2979 	*) ;;
   2980 	esac
   2981 done
   2982 IFS="$ac_save_IFS"
   2983 
   2984 if test x$ac_assert_checking != x ; then
   2985 
   2986 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
   2987 
   2988 fi
   2989 
   2990 # Check whether --enable-default-pie was given.
   2991 # Check whether --enable-default-pie was given.
   2992 if test "${enable_default_pie+set}" = set; then :
   2993   enableval=$enable_default_pie; PIEFLAG=-fPIE
   2994 else
   2995   PIEFLAG=
   2996 fi
   2997 
   2998 
   2999 
   3000 # Check if O_CLOEXEC is defined by fcntl
   3001 
   3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
   3003 $as_echo_n "checking for O_CLOEXEC... " >&6; }
   3004 if ${ac_cv_o_cloexec+:} false; then :
   3005   $as_echo_n "(cached) " >&6
   3006 else
   3007 
   3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3009 /* end confdefs.h.  */
   3010 
   3011 #include <fcntl.h>
   3012 int
   3013 main ()
   3014 {
   3015 
   3016 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
   3017   ;
   3018   return 0;
   3019 }
   3020 _ACEOF
   3021 if ac_fn_cxx_try_compile "$LINENO"; then :
   3022   ac_cv_o_cloexec=yes
   3023 else
   3024   ac_cv_o_cloexec=no
   3025 fi
   3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3027 fi
   3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
   3029 $as_echo "$ac_cv_o_cloexec" >&6; }
   3030 if test $ac_cv_o_cloexec = yes; then
   3031 
   3032 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
   3033 
   3034 fi
   3035 
   3036 ac_ext=cpp
   3037 ac_cpp='$CXXCPP $CPPFLAGS'
   3038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   3042 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   3043 if test -z "$CXXCPP"; then
   3044   if ${ac_cv_prog_CXXCPP+:} false; then :
   3045   $as_echo_n "(cached) " >&6
   3046 else
   3047       # Double quotes because CXXCPP needs to be expanded
   3048     for CXXCPP in "$CXX -E" "/lib/cpp"
   3049     do
   3050       ac_preproc_ok=false
   3051 for ac_cxx_preproc_warn_flag in '' yes
   3052 do
   3053   # Use a header file that comes with gcc, so configuring glibc
   3054   # with a fresh cross-compiler works.
   3055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3056   # <limits.h> exists even on freestanding compilers.
   3057   # On the NeXT, cc -E runs the code through the compiler's parser,
   3058   # not just through cpp. "Syntax error" is here to catch this case.
   3059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3060 /* end confdefs.h.  */
   3061 #ifdef __STDC__
   3062 # include <limits.h>
   3063 #else
   3064 # include <assert.h>
   3065 #endif
   3066 		     Syntax error
   3067 _ACEOF
   3068 if ac_fn_cxx_try_cpp "$LINENO"; then :
   3069 
   3070 else
   3071   # Broken: fails on valid input.
   3072 continue
   3073 fi
   3074 rm -f conftest.err conftest.i conftest.$ac_ext
   3075 
   3076   # OK, works on sane cases.  Now check whether nonexistent headers
   3077   # can be detected and how.
   3078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3079 /* end confdefs.h.  */
   3080 #include <ac_nonexistent.h>
   3081 _ACEOF
   3082 if ac_fn_cxx_try_cpp "$LINENO"; then :
   3083   # Broken: success on invalid input.
   3084 continue
   3085 else
   3086   # Passes both tests.
   3087 ac_preproc_ok=:
   3088 break
   3089 fi
   3090 rm -f conftest.err conftest.i conftest.$ac_ext
   3091 
   3092 done
   3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3094 rm -f conftest.i conftest.err conftest.$ac_ext
   3095 if $ac_preproc_ok; then :
   3096   break
   3097 fi
   3098 
   3099     done
   3100     ac_cv_prog_CXXCPP=$CXXCPP
   3101 
   3102 fi
   3103   CXXCPP=$ac_cv_prog_CXXCPP
   3104 else
   3105   ac_cv_prog_CXXCPP=$CXXCPP
   3106 fi
   3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   3108 $as_echo "$CXXCPP" >&6; }
   3109 ac_preproc_ok=false
   3110 for ac_cxx_preproc_warn_flag in '' yes
   3111 do
   3112   # Use a header file that comes with gcc, so configuring glibc
   3113   # with a fresh cross-compiler works.
   3114   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3115   # <limits.h> exists even on freestanding compilers.
   3116   # On the NeXT, cc -E runs the code through the compiler's parser,
   3117   # not just through cpp. "Syntax error" is here to catch this case.
   3118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3119 /* end confdefs.h.  */
   3120 #ifdef __STDC__
   3121 # include <limits.h>
   3122 #else
   3123 # include <assert.h>
   3124 #endif
   3125 		     Syntax error
   3126 _ACEOF
   3127 if ac_fn_cxx_try_cpp "$LINENO"; then :
   3128 
   3129 else
   3130   # Broken: fails on valid input.
   3131 continue
   3132 fi
   3133 rm -f conftest.err conftest.i conftest.$ac_ext
   3134 
   3135   # OK, works on sane cases.  Now check whether nonexistent headers
   3136   # can be detected and how.
   3137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3138 /* end confdefs.h.  */
   3139 #include <ac_nonexistent.h>
   3140 _ACEOF
   3141 if ac_fn_cxx_try_cpp "$LINENO"; then :
   3142   # Broken: success on invalid input.
   3143 continue
   3144 else
   3145   # Passes both tests.
   3146 ac_preproc_ok=:
   3147 break
   3148 fi
   3149 rm -f conftest.err conftest.i conftest.$ac_ext
   3150 
   3151 done
   3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3153 rm -f conftest.i conftest.err conftest.$ac_ext
   3154 if $ac_preproc_ok; then :
   3155 
   3156 else
   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 $? "C++ preprocessor \"$CXXCPP\" fails sanity check
   3160 See \`config.log' for more details" "$LINENO" 5; }
   3161 fi
   3162 
   3163 ac_ext=cpp
   3164 ac_cpp='$CXXCPP $CPPFLAGS'
   3165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3168 
   3169 
   3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3172 if ${ac_cv_path_GREP+:} false; then :
   3173   $as_echo_n "(cached) " >&6
   3174 else
   3175   if test -z "$GREP"; then
   3176   ac_path_GREP_found=false
   3177   # Loop through the user's path and test for each of PROGNAME-LIST
   3178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3180 do
   3181   IFS=$as_save_IFS
   3182   test -z "$as_dir" && as_dir=.
   3183     for ac_prog in grep ggrep; do
   3184     for ac_exec_ext in '' $ac_executable_extensions; do
   3185       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3186       as_fn_executable_p "$ac_path_GREP" || continue
   3187 # Check for GNU ac_path_GREP and select it if it is found.
   3188   # Check for GNU $ac_path_GREP
   3189 case `"$ac_path_GREP" --version 2>&1` in
   3190 *GNU*)
   3191   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3192 *)
   3193   ac_count=0
   3194   $as_echo_n 0123456789 >"conftest.in"
   3195   while :
   3196   do
   3197     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3198     mv "conftest.tmp" "conftest.in"
   3199     cp "conftest.in" "conftest.nl"
   3200     $as_echo 'GREP' >> "conftest.nl"
   3201     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3203     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3204     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3205       # Best one so far, save it but keep looking for a better one
   3206       ac_cv_path_GREP="$ac_path_GREP"
   3207       ac_path_GREP_max=$ac_count
   3208     fi
   3209     # 10*(2^10) chars as input seems more than enough
   3210     test $ac_count -gt 10 && break
   3211   done
   3212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3213 esac
   3214 
   3215       $ac_path_GREP_found && break 3
   3216     done
   3217   done
   3218   done
   3219 IFS=$as_save_IFS
   3220   if test -z "$ac_cv_path_GREP"; then
   3221     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3222   fi
   3223 else
   3224   ac_cv_path_GREP=$GREP
   3225 fi
   3226 
   3227 fi
   3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3229 $as_echo "$ac_cv_path_GREP" >&6; }
   3230  GREP="$ac_cv_path_GREP"
   3231 
   3232 
   3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3234 $as_echo_n "checking for egrep... " >&6; }
   3235 if ${ac_cv_path_EGREP+:} false; then :
   3236   $as_echo_n "(cached) " >&6
   3237 else
   3238   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3239    then ac_cv_path_EGREP="$GREP -E"
   3240    else
   3241      if test -z "$EGREP"; then
   3242   ac_path_EGREP_found=false
   3243   # Loop through the user's path and test for each of PROGNAME-LIST
   3244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3246 do
   3247   IFS=$as_save_IFS
   3248   test -z "$as_dir" && as_dir=.
   3249     for ac_prog in egrep; do
   3250     for ac_exec_ext in '' $ac_executable_extensions; do
   3251       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3252       as_fn_executable_p "$ac_path_EGREP" || continue
   3253 # Check for GNU ac_path_EGREP and select it if it is found.
   3254   # Check for GNU $ac_path_EGREP
   3255 case `"$ac_path_EGREP" --version 2>&1` in
   3256 *GNU*)
   3257   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3258 *)
   3259   ac_count=0
   3260   $as_echo_n 0123456789 >"conftest.in"
   3261   while :
   3262   do
   3263     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3264     mv "conftest.tmp" "conftest.in"
   3265     cp "conftest.in" "conftest.nl"
   3266     $as_echo 'EGREP' >> "conftest.nl"
   3267     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3269     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3270     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3271       # Best one so far, save it but keep looking for a better one
   3272       ac_cv_path_EGREP="$ac_path_EGREP"
   3273       ac_path_EGREP_max=$ac_count
   3274     fi
   3275     # 10*(2^10) chars as input seems more than enough
   3276     test $ac_count -gt 10 && break
   3277   done
   3278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3279 esac
   3280 
   3281       $ac_path_EGREP_found && break 3
   3282     done
   3283   done
   3284   done
   3285 IFS=$as_save_IFS
   3286   if test -z "$ac_cv_path_EGREP"; then
   3287     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3288   fi
   3289 else
   3290   ac_cv_path_EGREP=$EGREP
   3291 fi
   3292 
   3293    fi
   3294 fi
   3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3296 $as_echo "$ac_cv_path_EGREP" >&6; }
   3297  EGREP="$ac_cv_path_EGREP"
   3298 
   3299 
   3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3301 $as_echo_n "checking for ANSI C header files... " >&6; }
   3302 if ${ac_cv_header_stdc+:} false; then :
   3303   $as_echo_n "(cached) " >&6
   3304 else
   3305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3306 /* end confdefs.h.  */
   3307 #include <stdlib.h>
   3308 #include <stdarg.h>
   3309 #include <string.h>
   3310 #include <float.h>
   3311 
   3312 int
   3313 main ()
   3314 {
   3315 
   3316   ;
   3317   return 0;
   3318 }
   3319 _ACEOF
   3320 if ac_fn_cxx_try_compile "$LINENO"; then :
   3321   ac_cv_header_stdc=yes
   3322 else
   3323   ac_cv_header_stdc=no
   3324 fi
   3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3326 
   3327 if test $ac_cv_header_stdc = yes; then
   3328   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3330 /* end confdefs.h.  */
   3331 #include <string.h>
   3332 
   3333 _ACEOF
   3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3335   $EGREP "memchr" >/dev/null 2>&1; then :
   3336 
   3337 else
   3338   ac_cv_header_stdc=no
   3339 fi
   3340 rm -f conftest*
   3341 
   3342 fi
   3343 
   3344 if test $ac_cv_header_stdc = yes; then
   3345   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3347 /* end confdefs.h.  */
   3348 #include <stdlib.h>
   3349 
   3350 _ACEOF
   3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3352   $EGREP "free" >/dev/null 2>&1; then :
   3353 
   3354 else
   3355   ac_cv_header_stdc=no
   3356 fi
   3357 rm -f conftest*
   3358 
   3359 fi
   3360 
   3361 if test $ac_cv_header_stdc = yes; then
   3362   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3363   if test "$cross_compiling" = yes; then :
   3364   :
   3365 else
   3366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3367 /* end confdefs.h.  */
   3368 #include <ctype.h>
   3369 #include <stdlib.h>
   3370 #if ((' ' & 0x0FF) == 0x020)
   3371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3373 #else
   3374 # define ISLOWER(c) \
   3375 		   (('a' <= (c) && (c) <= 'i') \
   3376 		     || ('j' <= (c) && (c) <= 'r') \
   3377 		     || ('s' <= (c) && (c) <= 'z'))
   3378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3379 #endif
   3380 
   3381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3382 int
   3383 main ()
   3384 {
   3385   int i;
   3386   for (i = 0; i < 256; i++)
   3387     if (XOR (islower (i), ISLOWER (i))
   3388 	|| toupper (i) != TOUPPER (i))
   3389       return 2;
   3390   return 0;
   3391 }
   3392 _ACEOF
   3393 if ac_fn_cxx_try_run "$LINENO"; then :
   3394 
   3395 else
   3396   ac_cv_header_stdc=no
   3397 fi
   3398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3399   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3400 fi
   3401 
   3402 fi
   3403 fi
   3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3405 $as_echo "$ac_cv_header_stdc" >&6; }
   3406 if test $ac_cv_header_stdc = yes; then
   3407 
   3408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3409 
   3410 fi
   3411 
   3412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3414 		  inttypes.h stdint.h unistd.h
   3415 do :
   3416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3417 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3418 "
   3419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3420   cat >>confdefs.h <<_ACEOF
   3421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3422 _ACEOF
   3423 
   3424 fi
   3425 
   3426 done
   3427 
   3428 
   3429 for ac_header in sys/mman.h
   3430 do :
   3431   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
   3432 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
   3433   cat >>confdefs.h <<_ACEOF
   3434 #define HAVE_SYS_MMAN_H 1
   3435 _ACEOF
   3436 
   3437 fi
   3438 
   3439 done
   3440 
   3441 
   3442 # C++ Modules would like some networking features to provide the mapping
   3443 # server.  You can still use modules without them though.
   3444 # The following network-related checks could probably do with some
   3445 # Windows and other non-linux defenses and checking.
   3446 
   3447 # Local socket connectivity wants AF_UNIX networking
   3448 # Check for AF_UNIX networking
   3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
   3450 $as_echo_n "checking for AF_UNIX... " >&6; }
   3451 if ${ac_cv_af_unix+:} false; then :
   3452   $as_echo_n "(cached) " >&6
   3453 else
   3454 
   3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3456 /* end confdefs.h.  */
   3457 
   3458 #include <sys/types.h>
   3459 #include <sys/socket.h>
   3460 #include <sys/un.h>
   3461 #include <netinet/in.h>
   3462 int
   3463 main ()
   3464 {
   3465 
   3466 sockaddr_un un;
   3467 un.sun_family = AF_UNSPEC;
   3468 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
   3469 connect (fd, (sockaddr *)&un, sizeof (un));
   3470   ;
   3471   return 0;
   3472 }
   3473 _ACEOF
   3474 if ac_fn_cxx_try_compile "$LINENO"; then :
   3475   ac_cv_af_unix=yes
   3476 else
   3477   ac_cv_af_unix=no
   3478 fi
   3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3480 fi
   3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
   3482 $as_echo "$ac_cv_af_unix" >&6; }
   3483 if test $ac_cv_af_unix = yes; then
   3484 
   3485 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
   3486 
   3487 fi
   3488 
   3489 # Remote socket connectivity wants AF_INET6 networking
   3490 # Check for AF_INET6 networking
   3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
   3492 $as_echo_n "checking for AF_INET6... " >&6; }
   3493 if ${ac_cv_af_inet6+:} false; then :
   3494   $as_echo_n "(cached) " >&6
   3495 else
   3496 
   3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3498 /* end confdefs.h.  */
   3499 
   3500 #include <sys/types.h>
   3501 #include <sys/socket.h>
   3502 #include <netinet/in.h>
   3503 #include <netdb.h>
   3504 int
   3505 main ()
   3506 {
   3507 
   3508 sockaddr_in6 in6;
   3509 in6.sin6_family = AF_UNSPEC;
   3510 struct addrinfo *addrs = 0;
   3511 struct addrinfo hints;
   3512 hints.ai_flags = 0;
   3513 hints.ai_family = AF_INET6;
   3514 hints.ai_socktype = SOCK_STREAM;
   3515 hints.ai_protocol = 0;
   3516 hints.ai_canonname = 0;
   3517 hints.ai_addr = 0;
   3518 hints.ai_next = 0;
   3519 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
   3520 const char *str = gai_strerror (e);
   3521 freeaddrinfo (addrs);
   3522 int fd = socket (AF_INET6, SOCK_STREAM, 0);
   3523 connect (fd, (sockaddr *)&in6, sizeof (in6));
   3524   ;
   3525   return 0;
   3526 }
   3527 _ACEOF
   3528 if ac_fn_cxx_try_compile "$LINENO"; then :
   3529   ac_cv_af_inet6=yes
   3530 else
   3531   ac_cv_af_inet6=no
   3532 fi
   3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3534 fi
   3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
   3536 $as_echo "$ac_cv_af_inet6" >&6; }
   3537 if test $ac_cv_af_inet6 = yes; then
   3538 
   3539 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
   3540 
   3541 fi
   3542 
   3543 # Efficient server response wants epoll
   3544 # Check for epoll_create, epoll_ctl, epoll_pwait
   3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
   3546 $as_echo_n "checking for epoll... " >&6; }
   3547 if ${ac_cv_epoll+:} false; then :
   3548   $as_echo_n "(cached) " >&6
   3549 else
   3550 
   3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3552 /* end confdefs.h.  */
   3553 
   3554 #include <sys/epoll.h>
   3555 int
   3556 main ()
   3557 {
   3558 
   3559 int fd = epoll_create (1);
   3560 epoll_event ev;
   3561 ev.events = EPOLLIN;
   3562 ev.data.fd = 0;
   3563 epoll_ctl (fd, EPOLL_CTL_ADD, 0, &ev);
   3564 epoll_pwait (fd, 0, 0, -1, 0);
   3565   ;
   3566   return 0;
   3567 }
   3568 _ACEOF
   3569 if ac_fn_cxx_try_compile "$LINENO"; then :
   3570   ac_cv_epoll=yes
   3571 else
   3572   ac_cv_epoll=no
   3573 fi
   3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3575 fi
   3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_epoll" >&5
   3577 $as_echo "$ac_cv_epoll" >&6; }
   3578 if test $ac_cv_epoll = yes; then
   3579 
   3580 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   3581 
   3582 fi
   3583 
   3584 # If we can't use epoll, try pselect.
   3585 # Check for pselect
   3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
   3587 $as_echo_n "checking for pselect... " >&6; }
   3588 if ${ac_cv_pselect+:} false; then :
   3589   $as_echo_n "(cached) " >&6
   3590 else
   3591 
   3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3593 /* end confdefs.h.  */
   3594 
   3595 #include <sys/select.h>
   3596 int
   3597 main ()
   3598 {
   3599 
   3600 pselect (0, 0, 0, 0, 0, 0);
   3601   ;
   3602   return 0;
   3603 }
   3604 _ACEOF
   3605 if ac_fn_cxx_try_compile "$LINENO"; then :
   3606   ac_cv_pselect=yes
   3607 else
   3608   ac_cv_pselect=no
   3609 fi
   3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3611 fi
   3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pselect" >&5
   3613 $as_echo "$ac_cv_pselect" >&6; }
   3614 if test $ac_cv_pselect = yes; then
   3615 
   3616 $as_echo "#define HAVE_PSELECT 1" >>confdefs.h
   3617 
   3618 fi
   3619 
   3620 # And failing that, use good old select.
   3621 # If we can't even use this, the server is serialized.
   3622 # Check for select
   3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
   3624 $as_echo_n "checking for select... " >&6; }
   3625 if ${ac_cv_select+:} false; then :
   3626   $as_echo_n "(cached) " >&6
   3627 else
   3628 
   3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3630 /* end confdefs.h.  */
   3631 
   3632 #include <sys/select.h>
   3633 int
   3634 main ()
   3635 {
   3636 
   3637 select (0, 0, 0, 0, 0);
   3638   ;
   3639   return 0;
   3640 }
   3641 _ACEOF
   3642 if ac_fn_cxx_try_compile "$LINENO"; then :
   3643   ac_cv_select=yes
   3644 else
   3645   ac_cv_select=no
   3646 fi
   3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3648 fi
   3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_select" >&5
   3650 $as_echo "$ac_cv_select" >&6; }
   3651 if test $ac_cv_select = yes; then
   3652 
   3653 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
   3654 
   3655 fi
   3656 
   3657 # Avoid some fnctl calls by using accept4, when available.
   3658 # Check for accept4
   3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
   3660 $as_echo_n "checking for accept4... " >&6; }
   3661 if ${ac_cv_accept4+:} false; then :
   3662   $as_echo_n "(cached) " >&6
   3663 else
   3664 
   3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3666 /* end confdefs.h.  */
   3667 
   3668 #include <sys/socket.h>
   3669 int
   3670 main ()
   3671 {
   3672 
   3673 int err = accept4 (1, 0, 0, SOCK_NONBLOCK);
   3674   ;
   3675   return 0;
   3676 }
   3677 _ACEOF
   3678 if ac_fn_cxx_try_compile "$LINENO"; then :
   3679   ac_cv_accept4=yes
   3680 else
   3681   ac_cv_accept4=no
   3682 fi
   3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3684 fi
   3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
   3686 $as_echo "$ac_cv_accept4" >&6; }
   3687 if test $ac_cv_accept4 = yes; then
   3688 
   3689 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
   3690 
   3691 fi
   3692 
   3693 # For better server messages, look for a way to stringize network addresses
   3694 # Check for inet_ntop
   3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
   3696 $as_echo_n "checking for inet_ntop... " >&6; }
   3697 if ${ac_cv_inet_ntop+:} false; then :
   3698   $as_echo_n "(cached) " >&6
   3699 else
   3700 
   3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3702 /* end confdefs.h.  */
   3703 
   3704 #include <arpa/inet.h>
   3705 #include <netinet/in.h>
   3706 int
   3707 main ()
   3708 {
   3709 
   3710 sockaddr_in6 in6;
   3711 char buf[INET6_ADDRSTRLEN];
   3712 const char *str = inet_ntop (AF_INET6, &in6, buf, sizeof (buf));
   3713   ;
   3714   return 0;
   3715 }
   3716 _ACEOF
   3717 if ac_fn_cxx_try_compile "$LINENO"; then :
   3718   ac_cv_inet_ntop=yes
   3719 else
   3720   ac_cv_inet_ntop=no
   3721 fi
   3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3723 fi
   3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_inet_ntop" >&5
   3725 $as_echo "$ac_cv_inet_ntop" >&6; }
   3726 if test $ac_cv_inet_ntop = yes; then
   3727 
   3728 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
   3729 
   3730 fi
   3731 
   3732 # Determine what GCC version number to use in filesystem paths.
   3733 
   3734   get_gcc_base_ver="cat"
   3735 
   3736 # Check whether --with-gcc-major-version-only was given.
   3737 if test "${with_gcc_major_version_only+set}" = set; then :
   3738   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
   3739         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
   3740       fi
   3741 
   3742 fi
   3743 
   3744 
   3745 
   3746 
   3747 # Solaris needs libsocket and libnsl for socket functions before 11.4.
   3748 # libcody uses those.
   3749 save_LIBS="$LIBS"
   3750 LIBS=
   3751 
   3752 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   3753 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   3754 if ${ac_cv_search_gethostbyname+:} false; then :
   3755   $as_echo_n "(cached) " >&6
   3756 else
   3757   ac_func_search_save_LIBS=$LIBS
   3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3759 /* end confdefs.h.  */
   3760 
   3761 /* Override any GCC internal prototype to avoid an error.
   3762    Use char because int might match the return type of a GCC
   3763    builtin and then its argument prototype would still apply.  */
   3764 #ifdef __cplusplus
   3765 extern "C"
   3766 #endif
   3767 char gethostbyname ();
   3768 int
   3769 main ()
   3770 {
   3771 return gethostbyname ();
   3772   ;
   3773   return 0;
   3774 }
   3775 _ACEOF
   3776 for ac_lib in '' nsl; do
   3777   if test -z "$ac_lib"; then
   3778     ac_res="none required"
   3779   else
   3780     ac_res=-l$ac_lib
   3781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   3782   fi
   3783   if ac_fn_cxx_try_link "$LINENO"; then :
   3784   ac_cv_search_gethostbyname=$ac_res
   3785 fi
   3786 rm -f core conftest.err conftest.$ac_objext \
   3787     conftest$ac_exeext
   3788   if ${ac_cv_search_gethostbyname+:} false; then :
   3789   break
   3790 fi
   3791 done
   3792 if ${ac_cv_search_gethostbyname+:} false; then :
   3793 
   3794 else
   3795   ac_cv_search_gethostbyname=no
   3796 fi
   3797 rm conftest.$ac_ext
   3798 LIBS=$ac_func_search_save_LIBS
   3799 fi
   3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   3801 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   3802 ac_res=$ac_cv_search_gethostbyname
   3803 if test "$ac_res" != no; then :
   3804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   3805 
   3806 fi
   3807 
   3808 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   3809 $as_echo_n "checking for library containing socket... " >&6; }
   3810 if ${ac_cv_search_socket+:} false; then :
   3811   $as_echo_n "(cached) " >&6
   3812 else
   3813   ac_func_search_save_LIBS=$LIBS
   3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3815 /* end confdefs.h.  */
   3816 
   3817 /* Override any GCC internal prototype to avoid an error.
   3818    Use char because int might match the return type of a GCC
   3819    builtin and then its argument prototype would still apply.  */
   3820 #ifdef __cplusplus
   3821 extern "C"
   3822 #endif
   3823 char socket ();
   3824 int
   3825 main ()
   3826 {
   3827 return socket ();
   3828   ;
   3829   return 0;
   3830 }
   3831 _ACEOF
   3832 for ac_lib in '' socket; do
   3833   if test -z "$ac_lib"; then
   3834     ac_res="none required"
   3835   else
   3836     ac_res=-l$ac_lib
   3837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   3838   fi
   3839   if ac_fn_cxx_try_link "$LINENO"; then :
   3840   ac_cv_search_socket=$ac_res
   3841 fi
   3842 rm -f core conftest.err conftest.$ac_objext \
   3843     conftest$ac_exeext
   3844   if ${ac_cv_search_socket+:} false; then :
   3845   break
   3846 fi
   3847 done
   3848 if ${ac_cv_search_socket+:} false; then :
   3849 
   3850 else
   3851   ac_cv_search_socket=no
   3852 fi
   3853 rm conftest.$ac_ext
   3854 LIBS=$ac_func_search_save_LIBS
   3855 fi
   3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   3857 $as_echo "$ac_cv_search_socket" >&6; }
   3858 ac_res=$ac_cv_search_socket
   3859 if test "$ac_res" != no; then :
   3860   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   3861 
   3862 else
   3863 
   3864 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   3865 $as_echo_n "checking for socket in -lsocket... " >&6; }
   3866 if ${ac_cv_lib_socket_socket+:} false; then :
   3867   $as_echo_n "(cached) " >&6
   3868 else
   3869   ac_check_lib_save_LIBS=$LIBS
   3870 LIBS="-lsocket -lnsl $LIBS"
   3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3872 /* end confdefs.h.  */
   3873 
   3874 /* Override any GCC internal prototype to avoid an error.
   3875    Use char because int might match the return type of a GCC
   3876    builtin and then its argument prototype would still apply.  */
   3877 #ifdef __cplusplus
   3878 extern "C"
   3879 #endif
   3880 char socket ();
   3881 int
   3882 main ()
   3883 {
   3884 return socket ();
   3885   ;
   3886   return 0;
   3887 }
   3888 _ACEOF
   3889 if ac_fn_cxx_try_link "$LINENO"; then :
   3890   ac_cv_lib_socket_socket=yes
   3891 else
   3892   ac_cv_lib_socket_socket=no
   3893 fi
   3894 rm -f core conftest.err conftest.$ac_objext \
   3895     conftest$ac_exeext conftest.$ac_ext
   3896 LIBS=$ac_check_lib_save_LIBS
   3897 fi
   3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   3899 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   3900 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   3901   LIBS="-lsocket -lnsl $LIBS"
   3902 fi
   3903 
   3904 fi
   3905 
   3906 
   3907 NETLIBS="$LIBS"
   3908 LIBS="$save_LIBS"
   3909 
   3910 
   3911 ac_config_headers="$ac_config_headers config.h"
   3912 
   3913 ac_config_files="$ac_config_files Makefile"
   3914 
   3915 
   3916 cat >confcache <<\_ACEOF
   3917 # This file is a shell script that caches the results of configure
   3918 # tests run on this system so they can be shared between configure
   3919 # scripts and configure runs, see configure's option --config-cache.
   3920 # It is not useful on other systems.  If it contains results you don't
   3921 # want to keep, you may remove or edit it.
   3922 #
   3923 # config.status only pays attention to the cache file if you give it
   3924 # the --recheck option to rerun configure.
   3925 #
   3926 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   3927 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   3928 # following values.
   3929 
   3930 _ACEOF
   3931 
   3932 # The following way of writing the cache mishandles newlines in values,
   3933 # but we know of no workaround that is simple, portable, and efficient.
   3934 # So, we kill variables containing newlines.
   3935 # Ultrix sh set writes to stderr and can't be redirected directly,
   3936 # and sets the high bit in the cache file unless we assign to the vars.
   3937 (
   3938   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   3939     eval ac_val=\$$ac_var
   3940     case $ac_val in #(
   3941     *${as_nl}*)
   3942       case $ac_var in #(
   3943       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   3944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   3945       esac
   3946       case $ac_var in #(
   3947       _ | IFS | as_nl) ;; #(
   3948       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   3949       *) { eval $ac_var=; unset $ac_var;} ;;
   3950       esac ;;
   3951     esac
   3952   done
   3953 
   3954   (set) 2>&1 |
   3955     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   3956     *${as_nl}ac_space=\ *)
   3957       # `set' does not quote correctly, so add quotes: double-quote
   3958       # substitution turns \\\\ into \\, and sed turns \\ into \.
   3959       sed -n \
   3960 	"s/'/'\\\\''/g;
   3961 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   3962       ;; #(
   3963     *)
   3964       # `set' quotes correctly as required by POSIX, so do not add quotes.
   3965       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   3966       ;;
   3967     esac |
   3968     sort
   3969 ) |
   3970   sed '
   3971      /^ac_cv_env_/b end
   3972      t clear
   3973      :clear
   3974      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   3975      t end
   3976      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   3977      :end' >>confcache
   3978 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   3979   if test -w "$cache_file"; then
   3980     if test "x$cache_file" != "x/dev/null"; then
   3981       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   3982 $as_echo "$as_me: updating cache $cache_file" >&6;}
   3983       if test ! -f "$cache_file" || test -h "$cache_file"; then
   3984 	cat confcache >"$cache_file"
   3985       else
   3986         case $cache_file in #(
   3987         */* | ?:*)
   3988 	  mv -f confcache "$cache_file"$$ &&
   3989 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   3990         *)
   3991 	  mv -f confcache "$cache_file" ;;
   3992 	esac
   3993       fi
   3994     fi
   3995   else
   3996     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   3997 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   3998   fi
   3999 fi
   4000 rm -f confcache
   4001 
   4002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   4003 # Let make expand exec_prefix.
   4004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   4005 
   4006 DEFS=-DHAVE_CONFIG_H
   4007 
   4008 ac_libobjs=
   4009 ac_ltlibobjs=
   4010 U=
   4011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   4012   # 1. Remove the extension, and $U if already installed.
   4013   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   4014   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   4015   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   4016   #    will be set to the directory where LIBOBJS objects are built.
   4017   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   4018   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   4019 done
   4020 LIBOBJS=$ac_libobjs
   4021 
   4022 LTLIBOBJS=$ac_ltlibobjs
   4023 
   4024 
   4025 
   4026 : "${CONFIG_STATUS=./config.status}"
   4027 ac_write_fail=0
   4028 ac_clean_files_save=$ac_clean_files
   4029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   4030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   4031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   4032 as_write_fail=0
   4033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   4034 #! $SHELL
   4035 # Generated by $as_me.
   4036 # Run this file to recreate the current configuration.
   4037 # Compiler output produced by configure, useful for debugging
   4038 # configure, is in config.log if it exists.
   4039 
   4040 debug=false
   4041 ac_cs_recheck=false
   4042 ac_cs_silent=false
   4043 
   4044 SHELL=\${CONFIG_SHELL-$SHELL}
   4045 export SHELL
   4046 _ASEOF
   4047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   4048 ## -------------------- ##
   4049 ## M4sh Initialization. ##
   4050 ## -------------------- ##
   4051 
   4052 # Be more Bourne compatible
   4053 DUALCASE=1; export DUALCASE # for MKS sh
   4054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   4055   emulate sh
   4056   NULLCMD=:
   4057   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   4058   # is contrary to our usage.  Disable this feature.
   4059   alias -g '${1+"$@"}'='"$@"'
   4060   setopt NO_GLOB_SUBST
   4061 else
   4062   case `(set -o) 2>/dev/null` in #(
   4063   *posix*) :
   4064     set -o posix ;; #(
   4065   *) :
   4066      ;;
   4067 esac
   4068 fi
   4069 
   4070 
   4071 as_nl='
   4072 '
   4073 export as_nl
   4074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   4075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   4076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   4077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   4078 # Prefer a ksh shell builtin over an external printf program on Solaris,
   4079 # but without wasting forks for bash or zsh.
   4080 if test -z "$BASH_VERSION$ZSH_VERSION" \
   4081     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   4082   as_echo='print -r --'
   4083   as_echo_n='print -rn --'
   4084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   4085   as_echo='printf %s\n'
   4086   as_echo_n='printf %s'
   4087 else
   4088   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   4089     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   4090     as_echo_n='/usr/ucb/echo -n'
   4091   else
   4092     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   4093     as_echo_n_body='eval
   4094       arg=$1;
   4095       case $arg in #(
   4096       *"$as_nl"*)
   4097 	expr "X$arg" : "X\\(.*\\)$as_nl";
   4098 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   4099       esac;
   4100       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   4101     '
   4102     export as_echo_n_body
   4103     as_echo_n='sh -c $as_echo_n_body as_echo'
   4104   fi
   4105   export as_echo_body
   4106   as_echo='sh -c $as_echo_body as_echo'
   4107 fi
   4108 
   4109 # The user is always right.
   4110 if test "${PATH_SEPARATOR+set}" != set; then
   4111   PATH_SEPARATOR=:
   4112   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   4113     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   4114       PATH_SEPARATOR=';'
   4115   }
   4116 fi
   4117 
   4118 
   4119 # IFS
   4120 # We need space, tab and new line, in precisely that order.  Quoting is
   4121 # there to prevent editors from complaining about space-tab.
   4122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   4123 # splitting by setting IFS to empty value.)
   4124 IFS=" ""	$as_nl"
   4125 
   4126 # Find who we are.  Look in the path if we contain no directory separator.
   4127 as_myself=
   4128 case $0 in #((
   4129   *[\\/]* ) as_myself=$0 ;;
   4130   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4131 for as_dir in $PATH
   4132 do
   4133   IFS=$as_save_IFS
   4134   test -z "$as_dir" && as_dir=.
   4135     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   4136   done
   4137 IFS=$as_save_IFS
   4138 
   4139      ;;
   4140 esac
   4141 # We did not find ourselves, most probably we were run as `sh COMMAND'
   4142 # in which case we are not to be found in the path.
   4143 if test "x$as_myself" = x; then
   4144   as_myself=$0
   4145 fi
   4146 if test ! -f "$as_myself"; then
   4147   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   4148   exit 1
   4149 fi
   4150 
   4151 # Unset variables that we do not need and which cause bugs (e.g. in
   4152 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   4153 # suppresses any "Segmentation fault" message there.  '((' could
   4154 # trigger a bug in pdksh 5.2.14.
   4155 for as_var in BASH_ENV ENV MAIL MAILPATH
   4156 do eval test x\${$as_var+set} = xset \
   4157   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   4158 done
   4159 PS1='$ '
   4160 PS2='> '
   4161 PS4='+ '
   4162 
   4163 # NLS nuisances.
   4164 LC_ALL=C
   4165 export LC_ALL
   4166 LANGUAGE=C
   4167 export LANGUAGE
   4168 
   4169 # CDPATH.
   4170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   4171 
   4172 
   4173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   4174 # ----------------------------------------
   4175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   4176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   4177 # script with STATUS, using 1 if that was 0.
   4178 as_fn_error ()
   4179 {
   4180   as_status=$1; test $as_status -eq 0 && as_status=1
   4181   if test "$4"; then
   4182     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   4183     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   4184   fi
   4185   $as_echo "$as_me: error: $2" >&2
   4186   as_fn_exit $as_status
   4187 } # as_fn_error
   4188 
   4189 
   4190 # as_fn_set_status STATUS
   4191 # -----------------------
   4192 # Set $? to STATUS, without forking.
   4193 as_fn_set_status ()
   4194 {
   4195   return $1
   4196 } # as_fn_set_status
   4197 
   4198 # as_fn_exit STATUS
   4199 # -----------------
   4200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   4201 as_fn_exit ()
   4202 {
   4203   set +e
   4204   as_fn_set_status $1
   4205   exit $1
   4206 } # as_fn_exit
   4207 
   4208 # as_fn_unset VAR
   4209 # ---------------
   4210 # Portably unset VAR.
   4211 as_fn_unset ()
   4212 {
   4213   { eval $1=; unset $1;}
   4214 }
   4215 as_unset=as_fn_unset
   4216 # as_fn_append VAR VALUE
   4217 # ----------------------
   4218 # Append the text in VALUE to the end of the definition contained in VAR. Take
   4219 # advantage of any shell optimizations that allow amortized linear growth over
   4220 # repeated appends, instead of the typical quadratic growth present in naive
   4221 # implementations.
   4222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   4223   eval 'as_fn_append ()
   4224   {
   4225     eval $1+=\$2
   4226   }'
   4227 else
   4228   as_fn_append ()
   4229   {
   4230     eval $1=\$$1\$2
   4231   }
   4232 fi # as_fn_append
   4233 
   4234 # as_fn_arith ARG...
   4235 # ------------------
   4236 # Perform arithmetic evaluation on the ARGs, and store the result in the
   4237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   4238 # must be portable across $(()) and expr.
   4239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   4240   eval 'as_fn_arith ()
   4241   {
   4242     as_val=$(( $* ))
   4243   }'
   4244 else
   4245   as_fn_arith ()
   4246   {
   4247     as_val=`expr "$@" || test $? -eq 1`
   4248   }
   4249 fi # as_fn_arith
   4250 
   4251 
   4252 if expr a : '\(a\)' >/dev/null 2>&1 &&
   4253    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   4254   as_expr=expr
   4255 else
   4256   as_expr=false
   4257 fi
   4258 
   4259 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   4260   as_basename=basename
   4261 else
   4262   as_basename=false
   4263 fi
   4264 
   4265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   4266   as_dirname=dirname
   4267 else
   4268   as_dirname=false
   4269 fi
   4270 
   4271 as_me=`$as_basename -- "$0" ||
   4272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   4273 	 X"$0" : 'X\(//\)$' \| \
   4274 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   4275 $as_echo X/"$0" |
   4276     sed '/^.*\/\([^/][^/]*\)\/*$/{
   4277 	    s//\1/
   4278 	    q
   4279 	  }
   4280 	  /^X\/\(\/\/\)$/{
   4281 	    s//\1/
   4282 	    q
   4283 	  }
   4284 	  /^X\/\(\/\).*/{
   4285 	    s//\1/
   4286 	    q
   4287 	  }
   4288 	  s/.*/./; q'`
   4289 
   4290 # Avoid depending upon Character Ranges.
   4291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   4292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   4293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   4294 as_cr_digits='0123456789'
   4295 as_cr_alnum=$as_cr_Letters$as_cr_digits
   4296 
   4297 ECHO_C= ECHO_N= ECHO_T=
   4298 case `echo -n x` in #(((((
   4299 -n*)
   4300   case `echo 'xy\c'` in
   4301   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   4302   xy)  ECHO_C='\c';;
   4303   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   4304        ECHO_T='	';;
   4305   esac;;
   4306 *)
   4307   ECHO_N='-n';;
   4308 esac
   4309 
   4310 rm -f conf$$ conf$$.exe conf$$.file
   4311 if test -d conf$$.dir; then
   4312   rm -f conf$$.dir/conf$$.file
   4313 else
   4314   rm -f conf$$.dir
   4315   mkdir conf$$.dir 2>/dev/null
   4316 fi
   4317 if (echo >conf$$.file) 2>/dev/null; then
   4318   if ln -s conf$$.file conf$$ 2>/dev/null; then
   4319     as_ln_s='ln -s'
   4320     # ... but there are two gotchas:
   4321     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   4322     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   4323     # In both cases, we have to default to `cp -pR'.
   4324     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   4325       as_ln_s='cp -pR'
   4326   elif ln conf$$.file conf$$ 2>/dev/null; then
   4327     as_ln_s=ln
   4328   else
   4329     as_ln_s='cp -pR'
   4330   fi
   4331 else
   4332   as_ln_s='cp -pR'
   4333 fi
   4334 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   4335 rmdir conf$$.dir 2>/dev/null
   4336 
   4337 
   4338 # as_fn_mkdir_p
   4339 # -------------
   4340 # Create "$as_dir" as a directory, including parents if necessary.
   4341 as_fn_mkdir_p ()
   4342 {
   4343 
   4344   case $as_dir in #(
   4345   -*) as_dir=./$as_dir;;
   4346   esac
   4347   test -d "$as_dir" || eval $as_mkdir_p || {
   4348     as_dirs=
   4349     while :; do
   4350       case $as_dir in #(
   4351       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   4352       *) as_qdir=$as_dir;;
   4353       esac
   4354       as_dirs="'$as_qdir' $as_dirs"
   4355       as_dir=`$as_dirname -- "$as_dir" ||
   4356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   4357 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   4358 	 X"$as_dir" : 'X\(//\)$' \| \
   4359 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   4360 $as_echo X"$as_dir" |
   4361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   4362 	    s//\1/
   4363 	    q
   4364 	  }
   4365 	  /^X\(\/\/\)[^/].*/{
   4366 	    s//\1/
   4367 	    q
   4368 	  }
   4369 	  /^X\(\/\/\)$/{
   4370 	    s//\1/
   4371 	    q
   4372 	  }
   4373 	  /^X\(\/\).*/{
   4374 	    s//\1/
   4375 	    q
   4376 	  }
   4377 	  s/.*/./; q'`
   4378       test -d "$as_dir" && break
   4379     done
   4380     test -z "$as_dirs" || eval "mkdir $as_dirs"
   4381   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   4382 
   4383 
   4384 } # as_fn_mkdir_p
   4385 if mkdir -p . 2>/dev/null; then
   4386   as_mkdir_p='mkdir -p "$as_dir"'
   4387 else
   4388   test -d ./-p && rmdir ./-p
   4389   as_mkdir_p=false
   4390 fi
   4391 
   4392 
   4393 # as_fn_executable_p FILE
   4394 # -----------------------
   4395 # Test if FILE is an executable regular file.
   4396 as_fn_executable_p ()
   4397 {
   4398   test -f "$1" && test -x "$1"
   4399 } # as_fn_executable_p
   4400 as_test_x='test -x'
   4401 as_executable_p=as_fn_executable_p
   4402 
   4403 # Sed expression to map a string onto a valid CPP name.
   4404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   4405 
   4406 # Sed expression to map a string onto a valid variable name.
   4407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   4408 
   4409 
   4410 exec 6>&1
   4411 ## ----------------------------------- ##
   4412 ## Main body of $CONFIG_STATUS script. ##
   4413 ## ----------------------------------- ##
   4414 _ASEOF
   4415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   4416 
   4417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4418 # Save the log message, to keep $0 and so on meaningful, and to
   4419 # report actual input values of CONFIG_FILES etc. instead of their
   4420 # values after options handling.
   4421 ac_log="
   4422 This file was extended by $as_me, which was
   4423 generated by GNU Autoconf 2.69.  Invocation command line was
   4424 
   4425   CONFIG_FILES    = $CONFIG_FILES
   4426   CONFIG_HEADERS  = $CONFIG_HEADERS
   4427   CONFIG_LINKS    = $CONFIG_LINKS
   4428   CONFIG_COMMANDS = $CONFIG_COMMANDS
   4429   $ $0 $@
   4430 
   4431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   4432 "
   4433 
   4434 _ACEOF
   4435 
   4436 case $ac_config_files in *"
   4437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   4438 esac
   4439 
   4440 case $ac_config_headers in *"
   4441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   4442 esac
   4443 
   4444 
   4445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4446 # Files that config.status was made for.
   4447 config_files="$ac_config_files"
   4448 config_headers="$ac_config_headers"
   4449 
   4450 _ACEOF
   4451 
   4452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4453 ac_cs_usage="\
   4454 \`$as_me' instantiates files and other configuration actions
   4455 from templates according to the current configuration.  Unless the files
   4456 and actions are specified as TAGs, all are instantiated by default.
   4457 
   4458 Usage: $0 [OPTION]... [TAG]...
   4459 
   4460   -h, --help       print this help, then exit
   4461   -V, --version    print version number and configuration settings, then exit
   4462       --config     print configuration, then exit
   4463   -q, --quiet, --silent
   4464                    do not print progress messages
   4465   -d, --debug      don't remove temporary files
   4466       --recheck    update $as_me by reconfiguring in the same conditions
   4467       --file=FILE[:TEMPLATE]
   4468                    instantiate the configuration file FILE
   4469       --header=FILE[:TEMPLATE]
   4470                    instantiate the configuration header FILE
   4471 
   4472 Configuration files:
   4473 $config_files
   4474 
   4475 Configuration headers:
   4476 $config_headers
   4477 
   4478 Report bugs to the package provider."
   4479 
   4480 _ACEOF
   4481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   4483 ac_cs_version="\\
   4484 config.status
   4485 configured by $0, generated by GNU Autoconf 2.69,
   4486   with options \\"\$ac_cs_config\\"
   4487 
   4488 Copyright (C) 2012 Free Software Foundation, Inc.
   4489 This config.status script is free software; the Free Software Foundation
   4490 gives unlimited permission to copy, distribute and modify it."
   4491 
   4492 ac_pwd='$ac_pwd'
   4493 srcdir='$srcdir'
   4494 INSTALL='$INSTALL'
   4495 test -n "\$AWK" || AWK=awk
   4496 _ACEOF
   4497 
   4498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4499 # The default lists apply if the user does not specify any file.
   4500 ac_need_defaults=:
   4501 while test $# != 0
   4502 do
   4503   case $1 in
   4504   --*=?*)
   4505     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   4506     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   4507     ac_shift=:
   4508     ;;
   4509   --*=)
   4510     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   4511     ac_optarg=
   4512     ac_shift=:
   4513     ;;
   4514   *)
   4515     ac_option=$1
   4516     ac_optarg=$2
   4517     ac_shift=shift
   4518     ;;
   4519   esac
   4520 
   4521   case $ac_option in
   4522   # Handling of the options.
   4523   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   4524     ac_cs_recheck=: ;;
   4525   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   4526     $as_echo "$ac_cs_version"; exit ;;
   4527   --config | --confi | --conf | --con | --co | --c )
   4528     $as_echo "$ac_cs_config"; exit ;;
   4529   --debug | --debu | --deb | --de | --d | -d )
   4530     debug=: ;;
   4531   --file | --fil | --fi | --f )
   4532     $ac_shift
   4533     case $ac_optarg in
   4534     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   4535     '') as_fn_error $? "missing file argument" ;;
   4536     esac
   4537     as_fn_append CONFIG_FILES " '$ac_optarg'"
   4538     ac_need_defaults=false;;
   4539   --header | --heade | --head | --hea )
   4540     $ac_shift
   4541     case $ac_optarg in
   4542     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   4543     esac
   4544     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   4545     ac_need_defaults=false;;
   4546   --he | --h)
   4547     # Conflict between --help and --header
   4548     as_fn_error $? "ambiguous option: \`$1'
   4549 Try \`$0 --help' for more information.";;
   4550   --help | --hel | -h )
   4551     $as_echo "$ac_cs_usage"; exit ;;
   4552   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   4553   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   4554     ac_cs_silent=: ;;
   4555 
   4556   # This is an error.
   4557   -*) as_fn_error $? "unrecognized option: \`$1'
   4558 Try \`$0 --help' for more information." ;;
   4559 
   4560   *) as_fn_append ac_config_targets " $1"
   4561      ac_need_defaults=false ;;
   4562 
   4563   esac
   4564   shift
   4565 done
   4566 
   4567 ac_configure_extra_args=
   4568 
   4569 if $ac_cs_silent; then
   4570   exec 6>/dev/null
   4571   ac_configure_extra_args="$ac_configure_extra_args --silent"
   4572 fi
   4573 
   4574 _ACEOF
   4575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4576 if \$ac_cs_recheck; then
   4577   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   4578   shift
   4579   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   4580   CONFIG_SHELL='$SHELL'
   4581   export CONFIG_SHELL
   4582   exec "\$@"
   4583 fi
   4584 
   4585 _ACEOF
   4586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4587 exec 5>>config.log
   4588 {
   4589   echo
   4590   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   4591 ## Running $as_me. ##
   4592 _ASBOX
   4593   $as_echo "$ac_log"
   4594 } >&5
   4595 
   4596 _ACEOF
   4597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4598 _ACEOF
   4599 
   4600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4601 
   4602 # Handling of arguments.
   4603 for ac_config_target in $ac_config_targets
   4604 do
   4605   case $ac_config_target in
   4606     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   4607     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   4608 
   4609   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   4610   esac
   4611 done
   4612 
   4613 
   4614 # If the user did not use the arguments to specify the items to instantiate,
   4615 # then the envvar interface is used.  Set only those that are not.
   4616 # We use the long form for the default assignment because of an extremely
   4617 # bizarre bug on SunOS 4.1.3.
   4618 if $ac_need_defaults; then
   4619   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   4620   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   4621 fi
   4622 
   4623 # Have a temporary directory for convenience.  Make it in the build tree
   4624 # simply because there is no reason against having it here, and in addition,
   4625 # creating and moving files from /tmp can sometimes cause problems.
   4626 # Hook for its removal unless debugging.
   4627 # Note that there is a small window in which the directory will not be cleaned:
   4628 # after its creation but before its name has been assigned to `$tmp'.
   4629 $debug ||
   4630 {
   4631   tmp= ac_tmp=
   4632   trap 'exit_status=$?
   4633   : "${ac_tmp:=$tmp}"
   4634   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   4635 ' 0
   4636   trap 'as_fn_exit 1' 1 2 13 15
   4637 }
   4638 # Create a (secure) tmp directory for tmp files.
   4639 
   4640 {
   4641   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   4642   test -d "$tmp"
   4643 }  ||
   4644 {
   4645   tmp=./conf$$-$RANDOM
   4646   (umask 077 && mkdir "$tmp")
   4647 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   4648 ac_tmp=$tmp
   4649 
   4650 # Set up the scripts for CONFIG_FILES section.
   4651 # No need to generate them if there are no CONFIG_FILES.
   4652 # This happens for instance with `./config.status config.h'.
   4653 if test -n "$CONFIG_FILES"; then
   4654 
   4655 
   4656 ac_cr=`echo X | tr X '\015'`
   4657 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   4658 # But we know of no other shell where ac_cr would be empty at this
   4659 # point, so we can use a bashism as a fallback.
   4660 if test "x$ac_cr" = x; then
   4661   eval ac_cr=\$\'\\r\'
   4662 fi
   4663 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   4664 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   4665   ac_cs_awk_cr='\\r'
   4666 else
   4667   ac_cs_awk_cr=$ac_cr
   4668 fi
   4669 
   4670 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   4671 _ACEOF
   4672 
   4673 
   4674 {
   4675   echo "cat >conf$$subs.awk <<_ACEOF" &&
   4676   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   4677   echo "_ACEOF"
   4678 } >conf$$subs.sh ||
   4679   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   4680 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   4681 ac_delim='%!_!# '
   4682 for ac_last_try in false false false false false :; do
   4683   . ./conf$$subs.sh ||
   4684     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   4685 
   4686   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   4687   if test $ac_delim_n = $ac_delim_num; then
   4688     break
   4689   elif $ac_last_try; then
   4690     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   4691   else
   4692     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   4693   fi
   4694 done
   4695 rm -f conf$$subs.sh
   4696 
   4697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4698 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   4699 _ACEOF
   4700 sed -n '
   4701 h
   4702 s/^/S["/; s/!.*/"]=/
   4703 p
   4704 g
   4705 s/^[^!]*!//
   4706 :repl
   4707 t repl
   4708 s/'"$ac_delim"'$//
   4709 t delim
   4710 :nl
   4711 h
   4712 s/\(.\{148\}\)..*/\1/
   4713 t more1
   4714 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   4715 p
   4716 n
   4717 b repl
   4718 :more1
   4719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   4720 p
   4721 g
   4722 s/.\{148\}//
   4723 t nl
   4724 :delim
   4725 h
   4726 s/\(.\{148\}\)..*/\1/
   4727 t more2
   4728 s/["\\]/\\&/g; s/^/"/; s/$/"/
   4729 p
   4730 b
   4731 :more2
   4732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   4733 p
   4734 g
   4735 s/.\{148\}//
   4736 t delim
   4737 ' <conf$$subs.awk | sed '
   4738 /^[^""]/{
   4739   N
   4740   s/\n//
   4741 }
   4742 ' >>$CONFIG_STATUS || ac_write_fail=1
   4743 rm -f conf$$subs.awk
   4744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4745 _ACAWK
   4746 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   4747   for (key in S) S_is_set[key] = 1
   4748   FS = ""
   4749 
   4750 }
   4751 {
   4752   line = $ 0
   4753   nfields = split(line, field, "@")
   4754   substed = 0
   4755   len = length(field[1])
   4756   for (i = 2; i < nfields; i++) {
   4757     key = field[i]
   4758     keylen = length(key)
   4759     if (S_is_set[key]) {
   4760       value = S[key]
   4761       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   4762       len += length(value) + length(field[++i])
   4763       substed = 1
   4764     } else
   4765       len += 1 + keylen
   4766   }
   4767 
   4768   print line
   4769 }
   4770 
   4771 _ACAWK
   4772 _ACEOF
   4773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4774 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   4775   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   4776 else
   4777   cat
   4778 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   4779   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   4780 _ACEOF
   4781 
   4782 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   4783 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   4784 # trailing colons and then remove the whole line if VPATH becomes empty
   4785 # (actually we leave an empty line to preserve line numbers).
   4786 if test "x$srcdir" = x.; then
   4787   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   4788 h
   4789 s///
   4790 s/^/:/
   4791 s/[	 ]*$/:/
   4792 s/:\$(srcdir):/:/g
   4793 s/:\${srcdir}:/:/g
   4794 s/:@srcdir@:/:/g
   4795 s/^:*//
   4796 s/:*$//
   4797 x
   4798 s/\(=[	 ]*\).*/\1/
   4799 G
   4800 s/\n//
   4801 s/^[^=]*=[	 ]*$//
   4802 }'
   4803 fi
   4804 
   4805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4806 fi # test -n "$CONFIG_FILES"
   4807 
   4808 # Set up the scripts for CONFIG_HEADERS section.
   4809 # No need to generate them if there are no CONFIG_HEADERS.
   4810 # This happens for instance with `./config.status Makefile'.
   4811 if test -n "$CONFIG_HEADERS"; then
   4812 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   4813 BEGIN {
   4814 _ACEOF
   4815 
   4816 # Transform confdefs.h into an awk script `defines.awk', embedded as
   4817 # here-document in config.status, that substitutes the proper values into
   4818 # config.h.in to produce config.h.
   4819 
   4820 # Create a delimiter string that does not exist in confdefs.h, to ease
   4821 # handling of long lines.
   4822 ac_delim='%!_!# '
   4823 for ac_last_try in false false :; do
   4824   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   4825   if test -z "$ac_tt"; then
   4826     break
   4827   elif $ac_last_try; then
   4828     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   4829   else
   4830     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   4831   fi
   4832 done
   4833 
   4834 # For the awk script, D is an array of macro values keyed by name,
   4835 # likewise P contains macro parameters if any.  Preserve backslash
   4836 # newline sequences.
   4837 
   4838 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   4839 sed -n '
   4840 s/.\{148\}/&'"$ac_delim"'/g
   4841 t rset
   4842 :rset
   4843 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   4844 t def
   4845 d
   4846 :def
   4847 s/\\$//
   4848 t bsnl
   4849 s/["\\]/\\&/g
   4850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   4851 D["\1"]=" \3"/p
   4852 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   4853 d
   4854 :bsnl
   4855 s/["\\]/\\&/g
   4856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   4857 D["\1"]=" \3\\\\\\n"\\/p
   4858 t cont
   4859 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   4860 t cont
   4861 d
   4862 :cont
   4863 n
   4864 s/.\{148\}/&'"$ac_delim"'/g
   4865 t clear
   4866 :clear
   4867 s/\\$//
   4868 t bsnlc
   4869 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   4870 d
   4871 :bsnlc
   4872 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   4873 b cont
   4874 ' <confdefs.h | sed '
   4875 s/'"$ac_delim"'/"\\\
   4876 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   4877 
   4878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   4879   for (key in D) D_is_set[key] = 1
   4880   FS = ""
   4881 }
   4882 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   4883   line = \$ 0
   4884   split(line, arg, " ")
   4885   if (arg[1] == "#") {
   4886     defundef = arg[2]
   4887     mac1 = arg[3]
   4888   } else {
   4889     defundef = substr(arg[1], 2)
   4890     mac1 = arg[2]
   4891   }
   4892   split(mac1, mac2, "(") #)
   4893   macro = mac2[1]
   4894   prefix = substr(line, 1, index(line, defundef) - 1)
   4895   if (D_is_set[macro]) {
   4896     # Preserve the white space surrounding the "#".
   4897     print prefix "define", macro P[macro] D[macro]
   4898     next
   4899   } else {
   4900     # Replace #undef with comments.  This is necessary, for example,
   4901     # in the case of _POSIX_SOURCE, which is predefined and required
   4902     # on some systems where configure will not decide to define it.
   4903     if (defundef == "undef") {
   4904       print "/*", prefix defundef, macro, "*/"
   4905       next
   4906     }
   4907   }
   4908 }
   4909 { print }
   4910 _ACAWK
   4911 _ACEOF
   4912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   4913   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   4914 fi # test -n "$CONFIG_HEADERS"
   4915 
   4916 
   4917 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   4918 shift
   4919 for ac_tag
   4920 do
   4921   case $ac_tag in
   4922   :[FHLC]) ac_mode=$ac_tag; continue;;
   4923   esac
   4924   case $ac_mode$ac_tag in
   4925   :[FHL]*:*);;
   4926   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   4927   :[FH]-) ac_tag=-:-;;
   4928   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   4929   esac
   4930   ac_save_IFS=$IFS
   4931   IFS=:
   4932   set x $ac_tag
   4933   IFS=$ac_save_IFS
   4934   shift
   4935   ac_file=$1
   4936   shift
   4937 
   4938   case $ac_mode in
   4939   :L) ac_source=$1;;
   4940   :[FH])
   4941     ac_file_inputs=
   4942     for ac_f
   4943     do
   4944       case $ac_f in
   4945       -) ac_f="$ac_tmp/stdin";;
   4946       *) # Look for the file first in the build tree, then in the source tree
   4947 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   4948 	 # because $ac_f cannot contain `:'.
   4949 	 test -f "$ac_f" ||
   4950 	   case $ac_f in
   4951 	   [\\/$]*) false;;
   4952 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   4953 	   esac ||
   4954 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   4955       esac
   4956       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   4957       as_fn_append ac_file_inputs " '$ac_f'"
   4958     done
   4959 
   4960     # Let's still pretend it is `configure' which instantiates (i.e., don't
   4961     # use $as_me), people would be surprised to read:
   4962     #    /* config.h.  Generated by config.status.  */
   4963     configure_input='Generated from '`
   4964 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   4965 	`' by configure.'
   4966     if test x"$ac_file" != x-; then
   4967       configure_input="$ac_file.  $configure_input"
   4968       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   4969 $as_echo "$as_me: creating $ac_file" >&6;}
   4970     fi
   4971     # Neutralize special characters interpreted by sed in replacement strings.
   4972     case $configure_input in #(
   4973     *\&* | *\|* | *\\* )
   4974        ac_sed_conf_input=`$as_echo "$configure_input" |
   4975        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   4976     *) ac_sed_conf_input=$configure_input;;
   4977     esac
   4978 
   4979     case $ac_tag in
   4980     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   4981       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   4982     esac
   4983     ;;
   4984   esac
   4985 
   4986   ac_dir=`$as_dirname -- "$ac_file" ||
   4987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   4988 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   4989 	 X"$ac_file" : 'X\(//\)$' \| \
   4990 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   4991 $as_echo X"$ac_file" |
   4992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   4993 	    s//\1/
   4994 	    q
   4995 	  }
   4996 	  /^X\(\/\/\)[^/].*/{
   4997 	    s//\1/
   4998 	    q
   4999 	  }
   5000 	  /^X\(\/\/\)$/{
   5001 	    s//\1/
   5002 	    q
   5003 	  }
   5004 	  /^X\(\/\).*/{
   5005 	    s//\1/
   5006 	    q
   5007 	  }
   5008 	  s/.*/./; q'`
   5009   as_dir="$ac_dir"; as_fn_mkdir_p
   5010   ac_builddir=.
   5011 
   5012 case "$ac_dir" in
   5013 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   5014 *)
   5015   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   5016   # A ".." for each directory in $ac_dir_suffix.
   5017   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   5018   case $ac_top_builddir_sub in
   5019   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   5020   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   5021   esac ;;
   5022 esac
   5023 ac_abs_top_builddir=$ac_pwd
   5024 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   5025 # for backward compatibility:
   5026 ac_top_builddir=$ac_top_build_prefix
   5027 
   5028 case $srcdir in
   5029   .)  # We are building in place.
   5030     ac_srcdir=.
   5031     ac_top_srcdir=$ac_top_builddir_sub
   5032     ac_abs_top_srcdir=$ac_pwd ;;
   5033   [\\/]* | ?:[\\/]* )  # Absolute name.
   5034     ac_srcdir=$srcdir$ac_dir_suffix;
   5035     ac_top_srcdir=$srcdir
   5036     ac_abs_top_srcdir=$srcdir ;;
   5037   *) # Relative name.
   5038     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   5039     ac_top_srcdir=$ac_top_build_prefix$srcdir
   5040     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   5041 esac
   5042 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   5043 
   5044 
   5045   case $ac_mode in
   5046   :F)
   5047   #
   5048   # CONFIG_FILE
   5049   #
   5050 
   5051   case $INSTALL in
   5052   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   5053   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   5054   esac
   5055 _ACEOF
   5056 
   5057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5058 # If the template does not know about datarootdir, expand it.
   5059 # FIXME: This hack should be removed a few years after 2.60.
   5060 ac_datarootdir_hack=; ac_datarootdir_seen=
   5061 ac_sed_dataroot='
   5062 /datarootdir/ {
   5063   p
   5064   q
   5065 }
   5066 /@datadir@/p
   5067 /@docdir@/p
   5068 /@infodir@/p
   5069 /@localedir@/p
   5070 /@mandir@/p'
   5071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   5072 *datarootdir*) ac_datarootdir_seen=yes;;
   5073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   5074   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   5075 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   5076 _ACEOF
   5077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5078   ac_datarootdir_hack='
   5079   s&@datadir@&$datadir&g
   5080   s&@docdir@&$docdir&g
   5081   s&@infodir@&$infodir&g
   5082   s&@localedir@&$localedir&g
   5083   s&@mandir@&$mandir&g
   5084   s&\\\${datarootdir}&$datarootdir&g' ;;
   5085 esac
   5086 _ACEOF
   5087 
   5088 # Neutralize VPATH when `$srcdir' = `.'.
   5089 # Shell code in configure.ac might set extrasub.
   5090 # FIXME: do we really want to maintain this feature?
   5091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   5092 ac_sed_extra="$ac_vpsub
   5093 $extrasub
   5094 _ACEOF
   5095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   5096 :t
   5097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   5098 s|@configure_input@|$ac_sed_conf_input|;t t
   5099 s&@top_builddir@&$ac_top_builddir_sub&;t t
   5100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   5101 s&@srcdir@&$ac_srcdir&;t t
   5102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   5103 s&@top_srcdir@&$ac_top_srcdir&;t t
   5104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   5105 s&@builddir@&$ac_builddir&;t t
   5106 s&@abs_builddir@&$ac_abs_builddir&;t t
   5107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   5108 s&@INSTALL@&$ac_INSTALL&;t t
   5109 $ac_datarootdir_hack
   5110 "
   5111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   5112   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   5113 
   5114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   5115   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   5116   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   5117       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   5118   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   5119 which seems to be undefined.  Please make sure it is defined" >&5
   5120 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   5121 which seems to be undefined.  Please make sure it is defined" >&2;}
   5122 
   5123   rm -f "$ac_tmp/stdin"
   5124   case $ac_file in
   5125   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   5126   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   5127   esac \
   5128   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   5129  ;;
   5130   :H)
   5131   #
   5132   # CONFIG_HEADER
   5133   #
   5134   if test x"$ac_file" != x-; then
   5135     {
   5136       $as_echo "/* $configure_input  */" \
   5137       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   5138     } >"$ac_tmp/config.h" \
   5139       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   5140     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   5141       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   5142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   5143     else
   5144       rm -f "$ac_file"
   5145       mv "$ac_tmp/config.h" "$ac_file" \
   5146 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   5147     fi
   5148   else
   5149     $as_echo "/* $configure_input  */" \
   5150       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   5151       || as_fn_error $? "could not create -" "$LINENO" 5
   5152   fi
   5153  ;;
   5154 
   5155 
   5156   esac
   5157 
   5158 done # for ac_tag
   5159 
   5160 
   5161 as_fn_exit 0
   5162 _ACEOF
   5163 ac_clean_files=$ac_clean_files_save
   5164 
   5165 test $ac_write_fail = 0 ||
   5166   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   5167 
   5168 
   5169 # configure is writing to config.log, and then calls config.status.
   5170 # config.status does its own redirection, appending to config.log.
   5171 # Unfortunately, on DOS this fails, as config.log is still kept open
   5172 # by configure, so config.status won't be able to write to it; its
   5173 # output is simply discarded.  So we exec the FD to /dev/null,
   5174 # effectively closing config.log, so it can be properly (re)opened and
   5175 # appended to by config.status.  When coming back to configure, we
   5176 # need to make the FD available again.
   5177 if test "$no_create" != yes; then
   5178   ac_cs_success=:
   5179   ac_config_status_args=
   5180   test "$silent" = yes &&
   5181     ac_config_status_args="$ac_config_status_args --quiet"
   5182   exec 5>/dev/null
   5183   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   5184   exec 5>>config.log
   5185   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   5186   # would make configure fail if this is the last instruction.
   5187   $ac_cs_success || as_fn_exit 1
   5188 fi
   5189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   5190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   5191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   5192 fi
   5193 
   5194