configure
author Gabriel Jacobo <gabomdq@gmail.com>
Tue, 13 May 2014 19:42:40 -0300
changeset 8774 3e2b3019a879
parent 8752 44d31ae3d104
child 8828 0b7aae26e494
permissions -rwxr-xr-x
Fixes #2541, build failure with Wayland enabled, OpenGL ES disabled

Also includes an attempt at fixing building SDL on Ubuntu 13.10, which hopefully
won't break 14.04
     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 
   200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
   201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
   203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
   204     PATH=/empty FPATH=/empty; export PATH FPATH
   205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
   206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
   207 test \$(( 1 + 1 )) = 2 || exit 1"
   208   if (eval "$as_required") 2>/dev/null; then :
   209   as_have_required=yes
   210 else
   211   as_have_required=no
   212 fi
   213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
   214 
   215 else
   216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   217 as_found=false
   218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   219 do
   220   IFS=$as_save_IFS
   221   test -z "$as_dir" && as_dir=.
   222   as_found=:
   223   case $as_dir in #(
   224 	 /*)
   225 	   for as_base in sh bash ksh sh5; do
   226 	     # Try only shells that exist, to save several forks.
   227 	     as_shell=$as_dir/$as_base
   228 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   229 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
   230   CONFIG_SHELL=$as_shell as_have_required=yes
   231 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
   232   break 2
   233 fi
   234 fi
   235 	   done;;
   236        esac
   237   as_found=false
   238 done
   239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
   240 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
   241   CONFIG_SHELL=$SHELL as_have_required=yes
   242 fi; }
   243 IFS=$as_save_IFS
   244 
   245 
   246       if test "x$CONFIG_SHELL" != x; then :
   247   export CONFIG_SHELL
   248              # We cannot yet assume a decent shell, so we have to provide a
   249 # neutralization value for shells without unset; and this also
   250 # works around shells that cannot unset nonexistent variables.
   251 # Preserve -v and -x to the replacement shell.
   252 BASH_ENV=/dev/null
   253 ENV=/dev/null
   254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   255 case $- in # ((((
   256   *v*x* | *x*v* ) as_opts=-vx ;;
   257   *v* ) as_opts=-v ;;
   258   *x* ) as_opts=-x ;;
   259   * ) as_opts= ;;
   260 esac
   261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   262 # Admittedly, this is quite paranoid, since all the known shells bail
   263 # out after a failed `exec'.
   264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   265 exit 255
   266 fi
   267 
   268     if test x$as_have_required = xno; then :
   269   $as_echo "$0: This script requires a shell more modern than all"
   270   $as_echo "$0: the shells that I found on your system."
   271   if test x${ZSH_VERSION+set} = xset ; then
   272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
   273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   274   else
   275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
   276 $0: including any error possibly output before this
   277 $0: message. Then install a modern shell, or manually run
   278 $0: the script under such a shell if you do have one."
   279   fi
   280   exit 1
   281 fi
   282 fi
   283 fi
   284 SHELL=${CONFIG_SHELL-/bin/sh}
   285 export SHELL
   286 # Unset more variables known to interfere with behavior of common tools.
   287 CLICOLOR_FORCE= GREP_OPTIONS=
   288 unset CLICOLOR_FORCE GREP_OPTIONS
   289 
   290 ## --------------------- ##
   291 ## M4sh Shell Functions. ##
   292 ## --------------------- ##
   293 # as_fn_unset VAR
   294 # ---------------
   295 # Portably unset VAR.
   296 as_fn_unset ()
   297 {
   298   { eval $1=; unset $1;}
   299 }
   300 as_unset=as_fn_unset
   301 
   302 # as_fn_set_status STATUS
   303 # -----------------------
   304 # Set $? to STATUS, without forking.
   305 as_fn_set_status ()
   306 {
   307   return $1
   308 } # as_fn_set_status
   309 
   310 # as_fn_exit STATUS
   311 # -----------------
   312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   313 as_fn_exit ()
   314 {
   315   set +e
   316   as_fn_set_status $1
   317   exit $1
   318 } # as_fn_exit
   319 
   320 # as_fn_mkdir_p
   321 # -------------
   322 # Create "$as_dir" as a directory, including parents if necessary.
   323 as_fn_mkdir_p ()
   324 {
   325 
   326   case $as_dir in #(
   327   -*) as_dir=./$as_dir;;
   328   esac
   329   test -d "$as_dir" || eval $as_mkdir_p || {
   330     as_dirs=
   331     while :; do
   332       case $as_dir in #(
   333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   334       *) as_qdir=$as_dir;;
   335       esac
   336       as_dirs="'$as_qdir' $as_dirs"
   337       as_dir=`$as_dirname -- "$as_dir" ||
   338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   339 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   340 	 X"$as_dir" : 'X\(//\)$' \| \
   341 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   342 $as_echo X"$as_dir" |
   343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   344 	    s//\1/
   345 	    q
   346 	  }
   347 	  /^X\(\/\/\)[^/].*/{
   348 	    s//\1/
   349 	    q
   350 	  }
   351 	  /^X\(\/\/\)$/{
   352 	    s//\1/
   353 	    q
   354 	  }
   355 	  /^X\(\/\).*/{
   356 	    s//\1/
   357 	    q
   358 	  }
   359 	  s/.*/./; q'`
   360       test -d "$as_dir" && break
   361     done
   362     test -z "$as_dirs" || eval "mkdir $as_dirs"
   363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   364 
   365 
   366 } # as_fn_mkdir_p
   367 
   368 # as_fn_executable_p FILE
   369 # -----------------------
   370 # Test if FILE is an executable regular file.
   371 as_fn_executable_p ()
   372 {
   373   test -f "$1" && test -x "$1"
   374 } # as_fn_executable_p
   375 # as_fn_append VAR VALUE
   376 # ----------------------
   377 # Append the text in VALUE to the end of the definition contained in VAR. Take
   378 # advantage of any shell optimizations that allow amortized linear growth over
   379 # repeated appends, instead of the typical quadratic growth present in naive
   380 # implementations.
   381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   382   eval 'as_fn_append ()
   383   {
   384     eval $1+=\$2
   385   }'
   386 else
   387   as_fn_append ()
   388   {
   389     eval $1=\$$1\$2
   390   }
   391 fi # as_fn_append
   392 
   393 # as_fn_arith ARG...
   394 # ------------------
   395 # Perform arithmetic evaluation on the ARGs, and store the result in the
   396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   397 # must be portable across $(()) and expr.
   398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   399   eval 'as_fn_arith ()
   400   {
   401     as_val=$(( $* ))
   402   }'
   403 else
   404   as_fn_arith ()
   405   {
   406     as_val=`expr "$@" || test $? -eq 1`
   407   }
   408 fi # as_fn_arith
   409 
   410 
   411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   412 # ----------------------------------------
   413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   415 # script with STATUS, using 1 if that was 0.
   416 as_fn_error ()
   417 {
   418   as_status=$1; test $as_status -eq 0 && as_status=1
   419   if test "$4"; then
   420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   422   fi
   423   $as_echo "$as_me: error: $2" >&2
   424   as_fn_exit $as_status
   425 } # as_fn_error
   426 
   427 if expr a : '\(a\)' >/dev/null 2>&1 &&
   428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   429   as_expr=expr
   430 else
   431   as_expr=false
   432 fi
   433 
   434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   435   as_basename=basename
   436 else
   437   as_basename=false
   438 fi
   439 
   440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   441   as_dirname=dirname
   442 else
   443   as_dirname=false
   444 fi
   445 
   446 as_me=`$as_basename -- "$0" ||
   447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   448 	 X"$0" : 'X\(//\)$' \| \
   449 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   450 $as_echo X/"$0" |
   451     sed '/^.*\/\([^/][^/]*\)\/*$/{
   452 	    s//\1/
   453 	    q
   454 	  }
   455 	  /^X\/\(\/\/\)$/{
   456 	    s//\1/
   457 	    q
   458 	  }
   459 	  /^X\/\(\/\).*/{
   460 	    s//\1/
   461 	    q
   462 	  }
   463 	  s/.*/./; q'`
   464 
   465 # Avoid depending upon Character Ranges.
   466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   469 as_cr_digits='0123456789'
   470 as_cr_alnum=$as_cr_Letters$as_cr_digits
   471 
   472 
   473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
   474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
   475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
   476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
   477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
   478   sed -n '
   479     p
   480     /[$]LINENO/=
   481   ' <$as_myself |
   482     sed '
   483       s/[$]LINENO.*/&-/
   484       t lineno
   485       b
   486       :lineno
   487       N
   488       :loop
   489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   490       t loop
   491       s/-\n.*//
   492     ' >$as_me.lineno &&
   493   chmod +x "$as_me.lineno" ||
   494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   495 
   496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
   497   # already done that, so ensure we don't try to do so again and fall
   498   # in an infinite loop.  This has already happened in practice.
   499   _as_can_reexec=no; export _as_can_reexec
   500   # Don't try to exec as it changes $[0], causing all sort of problems
   501   # (the dirname of $[0] is not the place where we might find the
   502   # original and so on.  Autoconf is especially sensitive to this).
   503   . "./$as_me.lineno"
   504   # Exit status is that of the last command.
   505   exit
   506 }
   507 
   508 ECHO_C= ECHO_N= ECHO_T=
   509 case `echo -n x` in #(((((
   510 -n*)
   511   case `echo 'xy\c'` in
   512   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   513   xy)  ECHO_C='\c';;
   514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   515        ECHO_T='	';;
   516   esac;;
   517 *)
   518   ECHO_N='-n';;
   519 esac
   520 
   521 rm -f conf$$ conf$$.exe conf$$.file
   522 if test -d conf$$.dir; then
   523   rm -f conf$$.dir/conf$$.file
   524 else
   525   rm -f conf$$.dir
   526   mkdir conf$$.dir 2>/dev/null
   527 fi
   528 if (echo >conf$$.file) 2>/dev/null; then
   529   if ln -s conf$$.file conf$$ 2>/dev/null; then
   530     as_ln_s='ln -s'
   531     # ... but there are two gotchas:
   532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   534     # In both cases, we have to default to `cp -pR'.
   535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   536       as_ln_s='cp -pR'
   537   elif ln conf$$.file conf$$ 2>/dev/null; then
   538     as_ln_s=ln
   539   else
   540     as_ln_s='cp -pR'
   541   fi
   542 else
   543   as_ln_s='cp -pR'
   544 fi
   545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   546 rmdir conf$$.dir 2>/dev/null
   547 
   548 if mkdir -p . 2>/dev/null; then
   549   as_mkdir_p='mkdir -p "$as_dir"'
   550 else
   551   test -d ./-p && rmdir ./-p
   552   as_mkdir_p=false
   553 fi
   554 
   555 as_test_x='test -x'
   556 as_executable_p=as_fn_executable_p
   557 
   558 # Sed expression to map a string onto a valid CPP name.
   559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   560 
   561 # Sed expression to map a string onto a valid variable name.
   562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   563 
   564 SHELL=${CONFIG_SHELL-/bin/sh}
   565 
   566 
   567 test -n "$DJDIR" || exec 7<&0 </dev/null
   568 exec 6>&1
   569 
   570 # Name of the host.
   571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
   572 # so uname gets run too.
   573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   574 
   575 #
   576 # Initializations.
   577 #
   578 ac_default_prefix=/usr/local
   579 ac_clean_files=
   580 ac_config_libobj_dir=.
   581 LIBOBJS=
   582 cross_compiling=no
   583 subdirs=
   584 MFLAGS=
   585 MAKEFLAGS=
   586 
   587 # Identity of this package.
   588 PACKAGE_NAME=
   589 PACKAGE_TARNAME=
   590 PACKAGE_VERSION=
   591 PACKAGE_STRING=
   592 PACKAGE_BUGREPORT=
   593 PACKAGE_URL=
   594 
   595 ac_unique_file="README.txt"
   596 # Factoring default headers for most tests.
   597 ac_includes_default="\
   598 #include <stdio.h>
   599 #ifdef HAVE_SYS_TYPES_H
   600 # include <sys/types.h>
   601 #endif
   602 #ifdef HAVE_SYS_STAT_H
   603 # include <sys/stat.h>
   604 #endif
   605 #ifdef STDC_HEADERS
   606 # include <stdlib.h>
   607 # include <stddef.h>
   608 #else
   609 # ifdef HAVE_STDLIB_H
   610 #  include <stdlib.h>
   611 # endif
   612 #endif
   613 #ifdef HAVE_STRING_H
   614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   615 #  include <memory.h>
   616 # endif
   617 # include <string.h>
   618 #endif
   619 #ifdef HAVE_STRINGS_H
   620 # include <strings.h>
   621 #endif
   622 #ifdef HAVE_INTTYPES_H
   623 # include <inttypes.h>
   624 #endif
   625 #ifdef HAVE_STDINT_H
   626 # include <stdint.h>
   627 #endif
   628 #ifdef HAVE_UNISTD_H
   629 # include <unistd.h>
   630 #endif"
   631 
   632 ac_subst_vars='LTLIBOBJS
   633 EXTRA_LDFLAGS
   634 BUILD_LDFLAGS
   635 EXTRA_CFLAGS
   636 BUILD_CFLAGS
   637 SDLTEST_OBJECTS
   638 SDLMAIN_OBJECTS
   639 VERSION_OBJECTS
   640 OBJECTS
   641 INCLUDE
   642 ac_aux_dir
   643 ENABLE_STATIC_FALSE
   644 ENABLE_STATIC_TRUE
   645 ENABLE_SHARED_FALSE
   646 ENABLE_SHARED_TRUE
   647 SDL_RLD_FLAGS
   648 SDL_STATIC_LIBS
   649 SDL_LIBS
   650 SDL_CFLAGS
   651 DIRECTFBCONFIG
   652 X_EXTRA_LIBS
   653 X_LIBS
   654 X_PRE_LIBS
   655 X_CFLAGS
   656 XMKMF
   657 ARTSCONFIG
   658 PKG_CONFIG
   659 ESD_LIBS
   660 ESD_CFLAGS
   661 ESD_CONFIG
   662 ALSA_LIBS
   663 ALSA_CFLAGS
   664 POW_LIB
   665 LIBOBJS
   666 ALLOCA
   667 WINDRES
   668 SET_MAKE
   669 INSTALL_DATA
   670 INSTALL_SCRIPT
   671 INSTALL_PROGRAM
   672 CXXCPP
   673 ac_ct_CXX
   674 CXXFLAGS
   675 CXX
   676 LT_AGE
   677 LT_REVISION
   678 LT_CURRENT
   679 LT_RELEASE
   680 CPP
   681 OTOOL64
   682 OTOOL
   683 LIPO
   684 NMEDIT
   685 DSYMUTIL
   686 MANIFEST_TOOL
   687 AWK
   688 RANLIB
   689 STRIP
   690 ac_ct_AR
   691 AR
   692 LN_S
   693 NM
   694 ac_ct_DUMPBIN
   695 DUMPBIN
   696 LD
   697 FGREP
   698 EGREP
   699 GREP
   700 SED
   701 OBJEXT
   702 EXEEXT
   703 ac_ct_CC
   704 CPPFLAGS
   705 LDFLAGS
   706 CFLAGS
   707 CC
   708 host_os
   709 host_vendor
   710 host_cpu
   711 host
   712 build_os
   713 build_vendor
   714 build_cpu
   715 build
   716 LIBTOOL
   717 OBJDUMP
   718 DLLTOOL
   719 AS
   720 SDL_VERSION
   721 SDL_BINARY_AGE
   722 SDL_INTERFACE_AGE
   723 SDL_MICRO_VERSION
   724 SDL_MINOR_VERSION
   725 SDL_MAJOR_VERSION
   726 target_alias
   727 host_alias
   728 build_alias
   729 LIBS
   730 ECHO_T
   731 ECHO_N
   732 ECHO_C
   733 DEFS
   734 mandir
   735 localedir
   736 libdir
   737 psdir
   738 pdfdir
   739 dvidir
   740 htmldir
   741 infodir
   742 docdir
   743 oldincludedir
   744 includedir
   745 localstatedir
   746 sharedstatedir
   747 sysconfdir
   748 datadir
   749 datarootdir
   750 libexecdir
   751 sbindir
   752 bindir
   753 program_transform_name
   754 prefix
   755 exec_prefix
   756 PACKAGE_URL
   757 PACKAGE_BUGREPORT
   758 PACKAGE_STRING
   759 PACKAGE_VERSION
   760 PACKAGE_TARNAME
   761 PACKAGE_NAME
   762 PATH_SEPARATOR
   763 SHELL'
   764 ac_subst_files=''
   765 ac_user_opts='
   766 enable_option_checking
   767 enable_shared
   768 enable_static
   769 with_pic
   770 enable_fast_install
   771 with_gnu_ld
   772 with_sysroot
   773 enable_libtool_lock
   774 enable_assertions
   775 enable_dependency_tracking
   776 enable_libc
   777 enable_gcc_atomics
   778 enable_atomic
   779 enable_audio
   780 enable_video
   781 enable_render
   782 enable_events
   783 enable_joystick
   784 enable_haptic
   785 enable_power
   786 enable_filesystem
   787 enable_threads
   788 enable_timers
   789 enable_file
   790 enable_loadso
   791 enable_cpuinfo
   792 enable_assembly
   793 enable_ssemath
   794 enable_mmx
   795 enable_3dnow
   796 enable_sse
   797 enable_sse2
   798 enable_altivec
   799 enable_oss
   800 enable_alsa
   801 with_alsa_prefix
   802 with_alsa_inc_prefix
   803 enable_alsatest
   804 enable_alsa_shared
   805 enable_esd
   806 with_esd_prefix
   807 with_esd_exec_prefix
   808 enable_esdtest
   809 enable_esd_shared
   810 enable_pulseaudio
   811 enable_pulseaudio_shared
   812 enable_arts
   813 enable_arts_shared
   814 enable_nas
   815 enable_nas_shared
   816 enable_sndio
   817 enable_sndio_shared
   818 enable_diskaudio
   819 enable_dummyaudio
   820 enable_video_wayland
   821 enable_video_wayland_qt_touch
   822 enable_wayland_shared
   823 enable_video_mir
   824 enable_mir_shared
   825 enable_video_x11
   826 with_x
   827 enable_x11_shared
   828 enable_video_x11_xcursor
   829 enable_video_x11_xinerama
   830 enable_video_x11_xinput
   831 enable_video_x11_xrandr
   832 enable_video_x11_scrnsaver
   833 enable_video_x11_xshape
   834 enable_video_x11_vm
   835 enable_video_cocoa
   836 enable_video_directfb
   837 enable_directfb_shared
   838 enable_fusionsound
   839 enable_fusionsound_shared
   840 enable_video_dummy
   841 enable_video_opengl
   842 enable_video_opengles
   843 enable_libudev
   844 enable_dbus
   845 enable_input_tslib
   846 enable_pthreads
   847 enable_pthread_sem
   848 enable_directx
   849 enable_sdl_dlopen
   850 enable_clock_gettime
   851 enable_rpath
   852 enable_render_d3d
   853 '
   854       ac_precious_vars='build_alias
   855 host_alias
   856 target_alias
   857 CC
   858 CFLAGS
   859 LDFLAGS
   860 LIBS
   861 CPPFLAGS
   862 CPP
   863 CXX
   864 CXXFLAGS
   865 CCC
   866 CXXCPP
   867 XMKMF'
   868 
   869 
   870 # Initialize some variables set by options.
   871 ac_init_help=
   872 ac_init_version=false
   873 ac_unrecognized_opts=
   874 ac_unrecognized_sep=
   875 # The variables have the same names as the options, with
   876 # dashes changed to underlines.
   877 cache_file=/dev/null
   878 exec_prefix=NONE
   879 no_create=
   880 no_recursion=
   881 prefix=NONE
   882 program_prefix=NONE
   883 program_suffix=NONE
   884 program_transform_name=s,x,x,
   885 silent=
   886 site=
   887 srcdir=
   888 verbose=
   889 x_includes=NONE
   890 x_libraries=NONE
   891 
   892 # Installation directory options.
   893 # These are left unexpanded so users can "make install exec_prefix=/foo"
   894 # and all the variables that are supposed to be based on exec_prefix
   895 # by default will actually change.
   896 # Use braces instead of parens because sh, perl, etc. also accept them.
   897 # (The list follows the same order as the GNU Coding Standards.)
   898 bindir='${exec_prefix}/bin'
   899 sbindir='${exec_prefix}/sbin'
   900 libexecdir='${exec_prefix}/libexec'
   901 datarootdir='${prefix}/share'
   902 datadir='${datarootdir}'
   903 sysconfdir='${prefix}/etc'
   904 sharedstatedir='${prefix}/com'
   905 localstatedir='${prefix}/var'
   906 includedir='${prefix}/include'
   907 oldincludedir='/usr/include'
   908 docdir='${datarootdir}/doc/${PACKAGE}'
   909 infodir='${datarootdir}/info'
   910 htmldir='${docdir}'
   911 dvidir='${docdir}'
   912 pdfdir='${docdir}'
   913 psdir='${docdir}'
   914 libdir='${exec_prefix}/lib'
   915 localedir='${datarootdir}/locale'
   916 mandir='${datarootdir}/man'
   917 
   918 ac_prev=
   919 ac_dashdash=
   920 for ac_option
   921 do
   922   # If the previous option needs an argument, assign it.
   923   if test -n "$ac_prev"; then
   924     eval $ac_prev=\$ac_option
   925     ac_prev=
   926     continue
   927   fi
   928 
   929   case $ac_option in
   930   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   931   *=)   ac_optarg= ;;
   932   *)    ac_optarg=yes ;;
   933   esac
   934 
   935   # Accept the important Cygnus configure options, so we can diagnose typos.
   936 
   937   case $ac_dashdash$ac_option in
   938   --)
   939     ac_dashdash=yes ;;
   940 
   941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   942     ac_prev=bindir ;;
   943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   944     bindir=$ac_optarg ;;
   945 
   946   -build | --build | --buil | --bui | --bu)
   947     ac_prev=build_alias ;;
   948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   949     build_alias=$ac_optarg ;;
   950 
   951   -cache-file | --cache-file | --cache-fil | --cache-fi \
   952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   953     ac_prev=cache_file ;;
   954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   956     cache_file=$ac_optarg ;;
   957 
   958   --config-cache | -C)
   959     cache_file=config.cache ;;
   960 
   961   -datadir | --datadir | --datadi | --datad)
   962     ac_prev=datadir ;;
   963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   964     datadir=$ac_optarg ;;
   965 
   966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   967   | --dataroo | --dataro | --datar)
   968     ac_prev=datarootdir ;;
   969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   971     datarootdir=$ac_optarg ;;
   972 
   973   -disable-* | --disable-*)
   974     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   975     # Reject names that are not valid shell variable names.
   976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   977       as_fn_error $? "invalid feature name: $ac_useropt"
   978     ac_useropt_orig=$ac_useropt
   979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   980     case $ac_user_opts in
   981       *"
   982 "enable_$ac_useropt"
   983 "*) ;;
   984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   985 	 ac_unrecognized_sep=', ';;
   986     esac
   987     eval enable_$ac_useropt=no ;;
   988 
   989   -docdir | --docdir | --docdi | --doc | --do)
   990     ac_prev=docdir ;;
   991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   992     docdir=$ac_optarg ;;
   993 
   994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   995     ac_prev=dvidir ;;
   996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   997     dvidir=$ac_optarg ;;
   998 
   999   -enable-* | --enable-*)
  1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1001     # Reject names that are not valid shell variable names.
  1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003       as_fn_error $? "invalid feature name: $ac_useropt"
  1004     ac_useropt_orig=$ac_useropt
  1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006     case $ac_user_opts in
  1007       *"
  1008 "enable_$ac_useropt"
  1009 "*) ;;
  1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1011 	 ac_unrecognized_sep=', ';;
  1012     esac
  1013     eval enable_$ac_useropt=\$ac_optarg ;;
  1014 
  1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1017   | --exec | --exe | --ex)
  1018     ac_prev=exec_prefix ;;
  1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1021   | --exec=* | --exe=* | --ex=*)
  1022     exec_prefix=$ac_optarg ;;
  1023 
  1024   -gas | --gas | --ga | --g)
  1025     # Obsolete; use --with-gas.
  1026     with_gas=yes ;;
  1027 
  1028   -help | --help | --hel | --he | -h)
  1029     ac_init_help=long ;;
  1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1031     ac_init_help=recursive ;;
  1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1033     ac_init_help=short ;;
  1034 
  1035   -host | --host | --hos | --ho)
  1036     ac_prev=host_alias ;;
  1037   -host=* | --host=* | --hos=* | --ho=*)
  1038     host_alias=$ac_optarg ;;
  1039 
  1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1041     ac_prev=htmldir ;;
  1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1043   | --ht=*)
  1044     htmldir=$ac_optarg ;;
  1045 
  1046   -includedir | --includedir | --includedi | --included | --include \
  1047   | --includ | --inclu | --incl | --inc)
  1048     ac_prev=includedir ;;
  1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1051     includedir=$ac_optarg ;;
  1052 
  1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054     ac_prev=infodir ;;
  1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056     infodir=$ac_optarg ;;
  1057 
  1058   -libdir | --libdir | --libdi | --libd)
  1059     ac_prev=libdir ;;
  1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061     libdir=$ac_optarg ;;
  1062 
  1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1064   | --libexe | --libex | --libe)
  1065     ac_prev=libexecdir ;;
  1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1067   | --libexe=* | --libex=* | --libe=*)
  1068     libexecdir=$ac_optarg ;;
  1069 
  1070   -localedir | --localedir | --localedi | --localed | --locale)
  1071     ac_prev=localedir ;;
  1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1073     localedir=$ac_optarg ;;
  1074 
  1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1076   | --localstate | --localstat | --localsta | --localst | --locals)
  1077     ac_prev=localstatedir ;;
  1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1080     localstatedir=$ac_optarg ;;
  1081 
  1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1083     ac_prev=mandir ;;
  1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1085     mandir=$ac_optarg ;;
  1086 
  1087   -nfp | --nfp | --nf)
  1088     # Obsolete; use --without-fp.
  1089     with_fp=no ;;
  1090 
  1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1092   | --no-cr | --no-c | -n)
  1093     no_create=yes ;;
  1094 
  1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1097     no_recursion=yes ;;
  1098 
  1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1101   | --oldin | --oldi | --old | --ol | --o)
  1102     ac_prev=oldincludedir ;;
  1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1106     oldincludedir=$ac_optarg ;;
  1107 
  1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1109     ac_prev=prefix ;;
  1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1111     prefix=$ac_optarg ;;
  1112 
  1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1114   | --program-pre | --program-pr | --program-p)
  1115     ac_prev=program_prefix ;;
  1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1118     program_prefix=$ac_optarg ;;
  1119 
  1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1121   | --program-suf | --program-su | --program-s)
  1122     ac_prev=program_suffix ;;
  1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1125     program_suffix=$ac_optarg ;;
  1126 
  1127   -program-transform-name | --program-transform-name \
  1128   | --program-transform-nam | --program-transform-na \
  1129   | --program-transform-n | --program-transform- \
  1130   | --program-transform | --program-transfor \
  1131   | --program-transfo | --program-transf \
  1132   | --program-trans | --program-tran \
  1133   | --progr-tra | --program-tr | --program-t)
  1134     ac_prev=program_transform_name ;;
  1135   -program-transform-name=* | --program-transform-name=* \
  1136   | --program-transform-nam=* | --program-transform-na=* \
  1137   | --program-transform-n=* | --program-transform-=* \
  1138   | --program-transform=* | --program-transfor=* \
  1139   | --program-transfo=* | --program-transf=* \
  1140   | --program-trans=* | --program-tran=* \
  1141   | --progr-tra=* | --program-tr=* | --program-t=*)
  1142     program_transform_name=$ac_optarg ;;
  1143 
  1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1145     ac_prev=pdfdir ;;
  1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1147     pdfdir=$ac_optarg ;;
  1148 
  1149   -psdir | --psdir | --psdi | --psd | --ps)
  1150     ac_prev=psdir ;;
  1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1152     psdir=$ac_optarg ;;
  1153 
  1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1155   | -silent | --silent | --silen | --sile | --sil)
  1156     silent=yes ;;
  1157 
  1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1159     ac_prev=sbindir ;;
  1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1161   | --sbi=* | --sb=*)
  1162     sbindir=$ac_optarg ;;
  1163 
  1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166   | --sharedst | --shareds | --shared | --share | --shar \
  1167   | --sha | --sh)
  1168     ac_prev=sharedstatedir ;;
  1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172   | --sha=* | --sh=*)
  1173     sharedstatedir=$ac_optarg ;;
  1174 
  1175   -site | --site | --sit)
  1176     ac_prev=site ;;
  1177   -site=* | --site=* | --sit=*)
  1178     site=$ac_optarg ;;
  1179 
  1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1181     ac_prev=srcdir ;;
  1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1183     srcdir=$ac_optarg ;;
  1184 
  1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1186   | --syscon | --sysco | --sysc | --sys | --sy)
  1187     ac_prev=sysconfdir ;;
  1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1190     sysconfdir=$ac_optarg ;;
  1191 
  1192   -target | --target | --targe | --targ | --tar | --ta | --t)
  1193     ac_prev=target_alias ;;
  1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1195     target_alias=$ac_optarg ;;
  1196 
  1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1198     verbose=yes ;;
  1199 
  1200   -version | --version | --versio | --versi | --vers | -V)
  1201     ac_init_version=: ;;
  1202 
  1203   -with-* | --with-*)
  1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205     # Reject names that are not valid shell variable names.
  1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207       as_fn_error $? "invalid package name: $ac_useropt"
  1208     ac_useropt_orig=$ac_useropt
  1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210     case $ac_user_opts in
  1211       *"
  1212 "with_$ac_useropt"
  1213 "*) ;;
  1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1215 	 ac_unrecognized_sep=', ';;
  1216     esac
  1217     eval with_$ac_useropt=\$ac_optarg ;;
  1218 
  1219   -without-* | --without-*)
  1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1221     # Reject names that are not valid shell variable names.
  1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1223       as_fn_error $? "invalid package name: $ac_useropt"
  1224     ac_useropt_orig=$ac_useropt
  1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1226     case $ac_user_opts in
  1227       *"
  1228 "with_$ac_useropt"
  1229 "*) ;;
  1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1231 	 ac_unrecognized_sep=', ';;
  1232     esac
  1233     eval with_$ac_useropt=no ;;
  1234 
  1235   --x)
  1236     # Obsolete; use --with-x.
  1237     with_x=yes ;;
  1238 
  1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1240   | --x-incl | --x-inc | --x-in | --x-i)
  1241     ac_prev=x_includes ;;
  1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1244     x_includes=$ac_optarg ;;
  1245 
  1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1248     ac_prev=x_libraries ;;
  1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1251     x_libraries=$ac_optarg ;;
  1252 
  1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1254 Try \`$0 --help' for more information"
  1255     ;;
  1256 
  1257   *=*)
  1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1259     # Reject names that are not valid shell variable names.
  1260     case $ac_envvar in #(
  1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1263     esac
  1264     eval $ac_envvar=\$ac_optarg
  1265     export $ac_envvar ;;
  1266 
  1267   *)
  1268     # FIXME: should be removed in autoconf 3.0.
  1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1273     ;;
  1274 
  1275   esac
  1276 done
  1277 
  1278 if test -n "$ac_prev"; then
  1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1280   as_fn_error $? "missing argument to $ac_option"
  1281 fi
  1282 
  1283 if test -n "$ac_unrecognized_opts"; then
  1284   case $enable_option_checking in
  1285     no) ;;
  1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1288   esac
  1289 fi
  1290 
  1291 # Check all directory arguments for consistency.
  1292 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1293 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1294 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1295 		libdir localedir mandir
  1296 do
  1297   eval ac_val=\$$ac_var
  1298   # Remove trailing slashes.
  1299   case $ac_val in
  1300     */ )
  1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1302       eval $ac_var=\$ac_val;;
  1303   esac
  1304   # Be sure to have absolute directory names.
  1305   case $ac_val in
  1306     [\\/$]* | ?:[\\/]* )  continue;;
  1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1308   esac
  1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1310 done
  1311 
  1312 # There might be people who depend on the old broken behavior: `$host'
  1313 # used to hold the argument of --host etc.
  1314 # FIXME: To remove some day.
  1315 build=$build_alias
  1316 host=$host_alias
  1317 target=$target_alias
  1318 
  1319 # FIXME: To remove some day.
  1320 if test "x$host_alias" != x; then
  1321   if test "x$build_alias" = x; then
  1322     cross_compiling=maybe
  1323   elif test "x$build_alias" != "x$host_alias"; then
  1324     cross_compiling=yes
  1325   fi
  1326 fi
  1327 
  1328 ac_tool_prefix=
  1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1330 
  1331 test "$silent" = yes && exec 6>/dev/null
  1332 
  1333 
  1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1335 ac_ls_di=`ls -di .` &&
  1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1337   as_fn_error $? "working directory cannot be determined"
  1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1339   as_fn_error $? "pwd does not report name of working directory"
  1340 
  1341 
  1342 # Find the source files, if location was not specified.
  1343 if test -z "$srcdir"; then
  1344   ac_srcdir_defaulted=yes
  1345   # Try the directory containing this script, then the parent directory.
  1346   ac_confdir=`$as_dirname -- "$as_myself" ||
  1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1348 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1349 	 X"$as_myself" : 'X\(//\)$' \| \
  1350 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1351 $as_echo X"$as_myself" |
  1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1353 	    s//\1/
  1354 	    q
  1355 	  }
  1356 	  /^X\(\/\/\)[^/].*/{
  1357 	    s//\1/
  1358 	    q
  1359 	  }
  1360 	  /^X\(\/\/\)$/{
  1361 	    s//\1/
  1362 	    q
  1363 	  }
  1364 	  /^X\(\/\).*/{
  1365 	    s//\1/
  1366 	    q
  1367 	  }
  1368 	  s/.*/./; q'`
  1369   srcdir=$ac_confdir
  1370   if test ! -r "$srcdir/$ac_unique_file"; then
  1371     srcdir=..
  1372   fi
  1373 else
  1374   ac_srcdir_defaulted=no
  1375 fi
  1376 if test ! -r "$srcdir/$ac_unique_file"; then
  1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1378   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1379 fi
  1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1381 ac_abs_confdir=`(
  1382 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1383 	pwd)`
  1384 # When building in place, set srcdir=.
  1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1386   srcdir=.
  1387 fi
  1388 # Remove unnecessary trailing slashes from srcdir.
  1389 # Double slashes in file names in object file debugging info
  1390 # mess up M-x gdb in Emacs.
  1391 case $srcdir in
  1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1393 esac
  1394 for ac_var in $ac_precious_vars; do
  1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1396   eval ac_env_${ac_var}_value=\$${ac_var}
  1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1399 done
  1400 
  1401 #
  1402 # Report the --help message.
  1403 #
  1404 if test "$ac_init_help" = "long"; then
  1405   # Omit some internal or obsolete options to make the list less imposing.
  1406   # This message is too long to be a string in the A/UX 3.1 sh.
  1407   cat <<_ACEOF
  1408 \`configure' configures this package to adapt to many kinds of systems.
  1409 
  1410 Usage: $0 [OPTION]... [VAR=VALUE]...
  1411 
  1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1414 
  1415 Defaults for the options are specified in brackets.
  1416 
  1417 Configuration:
  1418   -h, --help              display this help and exit
  1419       --help=short        display options specific to this package
  1420       --help=recursive    display the short help of all the included packages
  1421   -V, --version           display version information and exit
  1422   -q, --quiet, --silent   do not print \`checking ...' messages
  1423       --cache-file=FILE   cache test results in FILE [disabled]
  1424   -C, --config-cache      alias for \`--cache-file=config.cache'
  1425   -n, --no-create         do not create output files
  1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1427 
  1428 Installation directories:
  1429   --prefix=PREFIX         install architecture-independent files in PREFIX
  1430                           [$ac_default_prefix]
  1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1432                           [PREFIX]
  1433 
  1434 By default, \`make install' will install all the files in
  1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1437 for instance \`--prefix=\$HOME'.
  1438 
  1439 For better control, use the options below.
  1440 
  1441 Fine tuning of the installation directories:
  1442   --bindir=DIR            user executables [EPREFIX/bin]
  1443   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1444   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1445   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1446   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1447   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1448   --libdir=DIR            object code libraries [EPREFIX/lib]
  1449   --includedir=DIR        C header files [PREFIX/include]
  1450   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1451   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1452   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1453   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1454   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1455   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1456   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1457   --htmldir=DIR           html documentation [DOCDIR]
  1458   --dvidir=DIR            dvi documentation [DOCDIR]
  1459   --pdfdir=DIR            pdf documentation [DOCDIR]
  1460   --psdir=DIR             ps documentation [DOCDIR]
  1461 _ACEOF
  1462 
  1463   cat <<\_ACEOF
  1464 
  1465 X features:
  1466   --x-includes=DIR    X include files are in DIR
  1467   --x-libraries=DIR   X library files are in DIR
  1468 
  1469 System types:
  1470   --build=BUILD     configure for building on BUILD [guessed]
  1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1472 _ACEOF
  1473 fi
  1474 
  1475 if test -n "$ac_init_help"; then
  1476 
  1477   cat <<\_ACEOF
  1478 
  1479 Optional Features:
  1480   --disable-option-checking  ignore unrecognized --enable/--with options
  1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1484   --enable-static[=PKGS]  build static libraries [default=yes]
  1485   --enable-fast-install[=PKGS]
  1486                           optimize for fast installation [default=yes]
  1487   --disable-libtool-lock  avoid locking (might break parallel builds)
  1488   --enable-assertions     Enable internal sanity checks
  1489                           (auto/disabled/release/enabled/paranoid)
  1490                           [[default=auto]]
  1491   --enable-dependency-tracking
  1492                           Use gcc -MMD -MT dependency tracking [[default=yes]]
  1493   --enable-libc           Use the system C library [[default=yes]]
  1494   --enable-gcc-atomics    Use gcc builtin atomics [[default=yes]]
  1495   --enable-atomic         Enable the atomic operations subsystem
  1496                           [[default=yes]]
  1497   --enable-audio          Enable the audio subsystem [[default=yes]]
  1498   --enable-video          Enable the video subsystem [[default=yes]]
  1499   --enable-render         Enable the render subsystem [[default=yes]]
  1500   --enable-events         Enable the events subsystem [[default=yes]]
  1501   --enable-joystick       Enable the joystick subsystem [[default=yes]]
  1502   --enable-haptic         Enable the haptic (force feedback) subsystem
  1503                           [[default=yes]]
  1504   --enable-power          Enable the power subsystem [[default=yes]]
  1505   --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
  1506   --enable-threads        Enable the threading subsystem [[default=yes]]
  1507   --enable-timers         Enable the timer subsystem [[default=yes]]
  1508   --enable-file           Enable the file subsystem [[default=yes]]
  1509   --enable-loadso         Enable the shared object loading subsystem
  1510                           [[default=yes]]
  1511   --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
  1512   --enable-assembly       Enable assembly routines [[default=yes]]
  1513   --enable-ssemath        Allow GCC to use SSE floating point math
  1514                           [[default=no]]
  1515   --enable-mmx            use MMX assembly routines [[default=yes]]
  1516   --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
  1517   --enable-sse            use SSE assembly routines [[default=yes]]
  1518   --enable-sse2           use SSE2 assembly routines [[default=no]]
  1519   --enable-altivec        use Altivec assembly routines [[default=yes]]
  1520   --enable-oss            support the OSS audio API [[default=maybe]]
  1521   --enable-alsa           support the ALSA audio API [[default=yes]]
  1522   --disable-alsatest      Do not try to compile and run a test Alsa program
  1523   --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
  1524   --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
  1525   --disable-esdtest       Do not try to compile and run a test ESD program
  1526   --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
  1527   --enable-pulseaudio     use PulseAudio [[default=yes]]
  1528   --enable-pulseaudio-shared
  1529                           dynamically load PulseAudio support [[default=yes]]
  1530   --enable-arts           support the Analog Real Time Synthesizer
  1531                           [[default=yes]]
  1532   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
  1533   --enable-nas            support the NAS audio API [[default=yes]]
  1534   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1535   --enable-sndio          support the sndio audio API [[default=yes]]
  1536   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1537   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1538   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1539   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1540   --enable-video-wayland-qt-touch
  1541                           QtWayland server support for Wayland video driver
  1542                           [[default=yes]]
  1543   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1544   --enable-video-mir      use Mir video driver [[default=yes]]
  1545   --enable-mir-shared     dynamically load Mir support [[default=maybe]]
  1546   --enable-video-x11      use X11 video driver [[default=yes]]
  1547   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1548   --enable-video-x11-xcursor
  1549                           enable X11 Xcursor support [[default=yes]]
  1550   --enable-video-x11-xinerama
  1551                           enable X11 Xinerama support [[default=yes]]
  1552   --enable-video-x11-xinput
  1553                           enable X11 XInput extension for manymouse, tablets,
  1554                           etc [[default=yes]]
  1555   --enable-video-x11-xrandr
  1556                           enable X11 Xrandr extension for fullscreen
  1557                           [[default=yes]]
  1558   --enable-video-x11-scrnsaver
  1559                           enable X11 screensaver extension [[default=yes]]
  1560   --enable-video-x11-xshape
  1561                           enable X11 XShape support [[default=yes]]
  1562   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
  1563   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
  1564   --enable-video-directfb use DirectFB video driver [[default=no]]
  1565   --enable-directfb-shared
  1566                           dynamically load directfb support [[default=yes]]
  1567   --enable-fusionsound    use FusionSound audio driver [[default=no]]
  1568   --enable-fusionsound-shared
  1569                           dynamically load fusionsound audio support
  1570                           [[default=yes]]
  1571   --enable-video-dummy    use dummy video driver [[default=yes]]
  1572   --enable-video-opengl   include OpenGL support [[default=yes]]
  1573   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1574   --enable-libudev        enable libudev support [[default=yes]]
  1575   --enable-dbus           enable D-Bus support [[default=yes]]
  1576   --enable-input-tslib    use the Touchscreen library for input
  1577                           [[default=yes]]
  1578   --enable-pthreads       use POSIX threads for multi-threading
  1579                           [[default=yes]]
  1580   --enable-pthread-sem    use pthread semaphores [[default=yes]]
  1581   --enable-directx        use DirectX for Windows audio/video [[default=yes]]
  1582   --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
  1583   --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
  1584                           UNIX [[default=yes]]
  1585   --enable-rpath          use an rpath when linking SDL [[default=yes]]
  1586   --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
  1587 
  1588 Optional Packages:
  1589   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1590   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1591   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1592                           both]
  1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1594   --with-sysroot=DIR Search for dependent libraries within DIR
  1595                         (or the compiler's sysroot if not specified).
  1596   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
  1597   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
  1598   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
  1599   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1600   --with-x                use the X Window System
  1601 
  1602 Some influential environment variables:
  1603   CC          C compiler command
  1604   CFLAGS      C compiler flags
  1605   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1606               nonstandard directory <lib dir>
  1607   LIBS        libraries to pass to the linker, e.g. -l<library>
  1608   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1609               you have headers in a nonstandard directory <include dir>
  1610   CPP         C preprocessor
  1611   CXX         C++ compiler command
  1612   CXXFLAGS    C++ compiler flags
  1613   CXXCPP      C++ preprocessor
  1614   XMKMF       Path to xmkmf, Makefile generator for X Window System
  1615 
  1616 Use these variables to override the choices made by `configure' or to help
  1617 it to find libraries and programs with nonstandard names/locations.
  1618 
  1619 Report bugs to the package provider.
  1620 _ACEOF
  1621 ac_status=$?
  1622 fi
  1623 
  1624 if test "$ac_init_help" = "recursive"; then
  1625   # If there are subdirs, report their specific --help.
  1626   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1627     test -d "$ac_dir" ||
  1628       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1629       continue
  1630     ac_builddir=.
  1631 
  1632 case "$ac_dir" in
  1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1634 *)
  1635   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1636   # A ".." for each directory in $ac_dir_suffix.
  1637   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1638   case $ac_top_builddir_sub in
  1639   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1640   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1641   esac ;;
  1642 esac
  1643 ac_abs_top_builddir=$ac_pwd
  1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1645 # for backward compatibility:
  1646 ac_top_builddir=$ac_top_build_prefix
  1647 
  1648 case $srcdir in
  1649   .)  # We are building in place.
  1650     ac_srcdir=.
  1651     ac_top_srcdir=$ac_top_builddir_sub
  1652     ac_abs_top_srcdir=$ac_pwd ;;
  1653   [\\/]* | ?:[\\/]* )  # Absolute name.
  1654     ac_srcdir=$srcdir$ac_dir_suffix;
  1655     ac_top_srcdir=$srcdir
  1656     ac_abs_top_srcdir=$srcdir ;;
  1657   *) # Relative name.
  1658     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1659     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1660     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1661 esac
  1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1663 
  1664     cd "$ac_dir" || { ac_status=$?; continue; }
  1665     # Check for guested configure.
  1666     if test -f "$ac_srcdir/configure.gnu"; then
  1667       echo &&
  1668       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1669     elif test -f "$ac_srcdir/configure"; then
  1670       echo &&
  1671       $SHELL "$ac_srcdir/configure" --help=recursive
  1672     else
  1673       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1674     fi || ac_status=$?
  1675     cd "$ac_pwd" || { ac_status=$?; break; }
  1676   done
  1677 fi
  1678 
  1679 test -n "$ac_init_help" && exit $ac_status
  1680 if $ac_init_version; then
  1681   cat <<\_ACEOF
  1682 configure
  1683 generated by GNU Autoconf 2.69
  1684 
  1685 Copyright (C) 2012 Free Software Foundation, Inc.
  1686 This configure script is free software; the Free Software Foundation
  1687 gives unlimited permission to copy, distribute and modify it.
  1688 _ACEOF
  1689   exit
  1690 fi
  1691 
  1692 ## ------------------------ ##
  1693 ## Autoconf initialization. ##
  1694 ## ------------------------ ##
  1695 
  1696 # ac_fn_c_try_compile LINENO
  1697 # --------------------------
  1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1699 ac_fn_c_try_compile ()
  1700 {
  1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1702   rm -f conftest.$ac_objext
  1703   if { { ac_try="$ac_compile"
  1704 case "(($ac_try" in
  1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706   *) ac_try_echo=$ac_try;;
  1707 esac
  1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709 $as_echo "$ac_try_echo"; } >&5
  1710   (eval "$ac_compile") 2>conftest.err
  1711   ac_status=$?
  1712   if test -s conftest.err; then
  1713     grep -v '^ *+' conftest.err >conftest.er1
  1714     cat conftest.er1 >&5
  1715     mv -f conftest.er1 conftest.err
  1716   fi
  1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718   test $ac_status = 0; } && {
  1719 	 test -z "$ac_c_werror_flag" ||
  1720 	 test ! -s conftest.err
  1721        } && test -s conftest.$ac_objext; then :
  1722   ac_retval=0
  1723 else
  1724   $as_echo "$as_me: failed program was:" >&5
  1725 sed 's/^/| /' conftest.$ac_ext >&5
  1726 
  1727 	ac_retval=1
  1728 fi
  1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730   as_fn_set_status $ac_retval
  1731 
  1732 } # ac_fn_c_try_compile
  1733 
  1734 # ac_fn_c_try_link LINENO
  1735 # -----------------------
  1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
  1737 ac_fn_c_try_link ()
  1738 {
  1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740   rm -f conftest.$ac_objext conftest$ac_exeext
  1741   if { { ac_try="$ac_link"
  1742 case "(($ac_try" in
  1743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744   *) ac_try_echo=$ac_try;;
  1745 esac
  1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1747 $as_echo "$ac_try_echo"; } >&5
  1748   (eval "$ac_link") 2>conftest.err
  1749   ac_status=$?
  1750   if test -s conftest.err; then
  1751     grep -v '^ *+' conftest.err >conftest.er1
  1752     cat conftest.er1 >&5
  1753     mv -f conftest.er1 conftest.err
  1754   fi
  1755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756   test $ac_status = 0; } && {
  1757 	 test -z "$ac_c_werror_flag" ||
  1758 	 test ! -s conftest.err
  1759        } && test -s conftest$ac_exeext && {
  1760 	 test "$cross_compiling" = yes ||
  1761 	 test -x conftest$ac_exeext
  1762        }; then :
  1763   ac_retval=0
  1764 else
  1765   $as_echo "$as_me: failed program was:" >&5
  1766 sed 's/^/| /' conftest.$ac_ext >&5
  1767 
  1768 	ac_retval=1
  1769 fi
  1770   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1771   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1772   # interfere with the next link command; also delete a directory that is
  1773   # left behind by Apple's compiler.  We do this before executing the actions.
  1774   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1776   as_fn_set_status $ac_retval
  1777 
  1778 } # ac_fn_c_try_link
  1779 
  1780 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1781 # -------------------------------------------------------
  1782 # Tests whether HEADER exists and can be compiled using the include files in
  1783 # INCLUDES, setting the cache variable VAR accordingly.
  1784 ac_fn_c_check_header_compile ()
  1785 {
  1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1788 $as_echo_n "checking for $2... " >&6; }
  1789 if eval \${$3+:} false; then :
  1790   $as_echo_n "(cached) " >&6
  1791 else
  1792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1793 /* end confdefs.h.  */
  1794 $4
  1795 #include <$2>
  1796 _ACEOF
  1797 if ac_fn_c_try_compile "$LINENO"; then :
  1798   eval "$3=yes"
  1799 else
  1800   eval "$3=no"
  1801 fi
  1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1803 fi
  1804 eval ac_res=\$$3
  1805 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1806 $as_echo "$ac_res" >&6; }
  1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808 
  1809 } # ac_fn_c_check_header_compile
  1810 
  1811 # ac_fn_c_try_cpp LINENO
  1812 # ----------------------
  1813 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1814 ac_fn_c_try_cpp ()
  1815 {
  1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1818 case "(($ac_try" in
  1819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820   *) ac_try_echo=$ac_try;;
  1821 esac
  1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823 $as_echo "$ac_try_echo"; } >&5
  1824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1825   ac_status=$?
  1826   if test -s conftest.err; then
  1827     grep -v '^ *+' conftest.err >conftest.er1
  1828     cat conftest.er1 >&5
  1829     mv -f conftest.er1 conftest.err
  1830   fi
  1831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832   test $ac_status = 0; } > conftest.i && {
  1833 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1834 	 test ! -s conftest.err
  1835        }; then :
  1836   ac_retval=0
  1837 else
  1838   $as_echo "$as_me: failed program was:" >&5
  1839 sed 's/^/| /' conftest.$ac_ext >&5
  1840 
  1841     ac_retval=1
  1842 fi
  1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844   as_fn_set_status $ac_retval
  1845 
  1846 } # ac_fn_c_try_cpp
  1847 
  1848 # ac_fn_c_try_run LINENO
  1849 # ----------------------
  1850 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1851 # that executables *can* be run.
  1852 ac_fn_c_try_run ()
  1853 {
  1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855   if { { ac_try="$ac_link"
  1856 case "(($ac_try" in
  1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858   *) ac_try_echo=$ac_try;;
  1859 esac
  1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861 $as_echo "$ac_try_echo"; } >&5
  1862   (eval "$ac_link") 2>&5
  1863   ac_status=$?
  1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1865   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1866   { { case "(($ac_try" in
  1867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1868   *) ac_try_echo=$ac_try;;
  1869 esac
  1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1871 $as_echo "$ac_try_echo"; } >&5
  1872   (eval "$ac_try") 2>&5
  1873   ac_status=$?
  1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1875   test $ac_status = 0; }; }; then :
  1876   ac_retval=0
  1877 else
  1878   $as_echo "$as_me: program exited with status $ac_status" >&5
  1879        $as_echo "$as_me: failed program was:" >&5
  1880 sed 's/^/| /' conftest.$ac_ext >&5
  1881 
  1882        ac_retval=$ac_status
  1883 fi
  1884   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886   as_fn_set_status $ac_retval
  1887 
  1888 } # ac_fn_c_try_run
  1889 
  1890 # ac_fn_c_check_func LINENO FUNC VAR
  1891 # ----------------------------------
  1892 # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1893 ac_fn_c_check_func ()
  1894 {
  1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897 $as_echo_n "checking for $2... " >&6; }
  1898 if eval \${$3+:} false; then :
  1899   $as_echo_n "(cached) " >&6
  1900 else
  1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902 /* end confdefs.h.  */
  1903 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1905 #define $2 innocuous_$2
  1906 
  1907 /* System header to define __stub macros and hopefully few prototypes,
  1908     which can conflict with char $2 (); below.
  1909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1910     <limits.h> exists even on freestanding compilers.  */
  1911 
  1912 #ifdef __STDC__
  1913 # include <limits.h>
  1914 #else
  1915 # include <assert.h>
  1916 #endif
  1917 
  1918 #undef $2
  1919 
  1920 /* Override any GCC internal prototype to avoid an error.
  1921    Use char because int might match the return type of a GCC
  1922    builtin and then its argument prototype would still apply.  */
  1923 #ifdef __cplusplus
  1924 extern "C"
  1925 #endif
  1926 char $2 ();
  1927 /* The GNU C library defines this for functions which it implements
  1928     to always fail with ENOSYS.  Some functions are actually named
  1929     something starting with __ and the normal name is an alias.  */
  1930 #if defined __stub_$2 || defined __stub___$2
  1931 choke me
  1932 #endif
  1933 
  1934 int
  1935 main ()
  1936 {
  1937 return $2 ();
  1938   ;
  1939   return 0;
  1940 }
  1941 _ACEOF
  1942 if ac_fn_c_try_link "$LINENO"; then :
  1943   eval "$3=yes"
  1944 else
  1945   eval "$3=no"
  1946 fi
  1947 rm -f core conftest.err conftest.$ac_objext \
  1948     conftest$ac_exeext conftest.$ac_ext
  1949 fi
  1950 eval ac_res=\$$3
  1951 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952 $as_echo "$ac_res" >&6; }
  1953   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1954 
  1955 } # ac_fn_c_check_func
  1956 
  1957 # ac_fn_cxx_try_compile LINENO
  1958 # ----------------------------
  1959 # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1960 ac_fn_cxx_try_compile ()
  1961 {
  1962   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963   rm -f conftest.$ac_objext
  1964   if { { ac_try="$ac_compile"
  1965 case "(($ac_try" in
  1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967   *) ac_try_echo=$ac_try;;
  1968 esac
  1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1970 $as_echo "$ac_try_echo"; } >&5
  1971   (eval "$ac_compile") 2>conftest.err
  1972   ac_status=$?
  1973   if test -s conftest.err; then
  1974     grep -v '^ *+' conftest.err >conftest.er1
  1975     cat conftest.er1 >&5
  1976     mv -f conftest.er1 conftest.err
  1977   fi
  1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1979   test $ac_status = 0; } && {
  1980 	 test -z "$ac_cxx_werror_flag" ||
  1981 	 test ! -s conftest.err
  1982        } && test -s conftest.$ac_objext; then :
  1983   ac_retval=0
  1984 else
  1985   $as_echo "$as_me: failed program was:" >&5
  1986 sed 's/^/| /' conftest.$ac_ext >&5
  1987 
  1988 	ac_retval=1
  1989 fi
  1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991   as_fn_set_status $ac_retval
  1992 
  1993 } # ac_fn_cxx_try_compile
  1994 
  1995 # ac_fn_cxx_try_cpp LINENO
  1996 # ------------------------
  1997 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1998 ac_fn_cxx_try_cpp ()
  1999 {
  2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001   if { { ac_try="$ac_cpp conftest.$ac_ext"
  2002 case "(($ac_try" in
  2003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2004   *) ac_try_echo=$ac_try;;
  2005 esac
  2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2007 $as_echo "$ac_try_echo"; } >&5
  2008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2009   ac_status=$?
  2010   if test -s conftest.err; then
  2011     grep -v '^ *+' conftest.err >conftest.er1
  2012     cat conftest.er1 >&5
  2013     mv -f conftest.er1 conftest.err
  2014   fi
  2015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2016   test $ac_status = 0; } > conftest.i && {
  2017 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2018 	 test ! -s conftest.err
  2019        }; then :
  2020   ac_retval=0
  2021 else
  2022   $as_echo "$as_me: failed program was:" >&5
  2023 sed 's/^/| /' conftest.$ac_ext >&5
  2024 
  2025     ac_retval=1
  2026 fi
  2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2028   as_fn_set_status $ac_retval
  2029 
  2030 } # ac_fn_cxx_try_cpp
  2031 
  2032 # ac_fn_cxx_try_link LINENO
  2033 # -------------------------
  2034 # Try to link conftest.$ac_ext, and return whether this succeeded.
  2035 ac_fn_cxx_try_link ()
  2036 {
  2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2038   rm -f conftest.$ac_objext conftest$ac_exeext
  2039   if { { ac_try="$ac_link"
  2040 case "(($ac_try" in
  2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2042   *) ac_try_echo=$ac_try;;
  2043 esac
  2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2045 $as_echo "$ac_try_echo"; } >&5
  2046   (eval "$ac_link") 2>conftest.err
  2047   ac_status=$?
  2048   if test -s conftest.err; then
  2049     grep -v '^ *+' conftest.err >conftest.er1
  2050     cat conftest.er1 >&5
  2051     mv -f conftest.er1 conftest.err
  2052   fi
  2053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2054   test $ac_status = 0; } && {
  2055 	 test -z "$ac_cxx_werror_flag" ||
  2056 	 test ! -s conftest.err
  2057        } && test -s conftest$ac_exeext && {
  2058 	 test "$cross_compiling" = yes ||
  2059 	 test -x conftest$ac_exeext
  2060        }; then :
  2061   ac_retval=0
  2062 else
  2063   $as_echo "$as_me: failed program was:" >&5
  2064 sed 's/^/| /' conftest.$ac_ext >&5
  2065 
  2066 	ac_retval=1
  2067 fi
  2068   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2069   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2070   # interfere with the next link command; also delete a directory that is
  2071   # left behind by Apple's compiler.  We do this before executing the actions.
  2072   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2074   as_fn_set_status $ac_retval
  2075 
  2076 } # ac_fn_cxx_try_link
  2077 
  2078 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2079 # -------------------------------------------------------
  2080 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2081 # the include files in INCLUDES and setting the cache variable VAR
  2082 # accordingly.
  2083 ac_fn_c_check_header_mongrel ()
  2084 {
  2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2086   if eval \${$3+:} false; then :
  2087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2088 $as_echo_n "checking for $2... " >&6; }
  2089 if eval \${$3+:} false; then :
  2090   $as_echo_n "(cached) " >&6
  2091 fi
  2092 eval ac_res=\$$3
  2093 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2094 $as_echo "$ac_res" >&6; }
  2095 else
  2096   # Is the header compilable?
  2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2098 $as_echo_n "checking $2 usability... " >&6; }
  2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100 /* end confdefs.h.  */
  2101 $4
  2102 #include <$2>
  2103 _ACEOF
  2104 if ac_fn_c_try_compile "$LINENO"; then :
  2105   ac_header_compiler=yes
  2106 else
  2107   ac_header_compiler=no
  2108 fi
  2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2111 $as_echo "$ac_header_compiler" >&6; }
  2112 
  2113 # Is the header present?
  2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2115 $as_echo_n "checking $2 presence... " >&6; }
  2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2117 /* end confdefs.h.  */
  2118 #include <$2>
  2119 _ACEOF
  2120 if ac_fn_c_try_cpp "$LINENO"; then :
  2121   ac_header_preproc=yes
  2122 else
  2123   ac_header_preproc=no
  2124 fi
  2125 rm -f conftest.err conftest.i conftest.$ac_ext
  2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2127 $as_echo "$ac_header_preproc" >&6; }
  2128 
  2129 # So?  What about this header?
  2130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2131   yes:no: )
  2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2133 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2136     ;;
  2137   no:yes:* )
  2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2139 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2141 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2143 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2145 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2148     ;;
  2149 esac
  2150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2151 $as_echo_n "checking for $2... " >&6; }
  2152 if eval \${$3+:} false; then :
  2153   $as_echo_n "(cached) " >&6
  2154 else
  2155   eval "$3=\$ac_header_compiler"
  2156 fi
  2157 eval ac_res=\$$3
  2158 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2159 $as_echo "$ac_res" >&6; }
  2160 fi
  2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2162 
  2163 } # ac_fn_c_check_header_mongrel
  2164 
  2165 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2166 # -------------------------------------------
  2167 # Tests whether TYPE exists after having included INCLUDES, setting cache
  2168 # variable VAR accordingly.
  2169 ac_fn_c_check_type ()
  2170 {
  2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2173 $as_echo_n "checking for $2... " >&6; }
  2174 if eval \${$3+:} false; then :
  2175   $as_echo_n "(cached) " >&6
  2176 else
  2177   eval "$3=no"
  2178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179 /* end confdefs.h.  */
  2180 $4
  2181 int
  2182 main ()
  2183 {
  2184 if (sizeof ($2))
  2185 	 return 0;
  2186   ;
  2187   return 0;
  2188 }
  2189 _ACEOF
  2190 if ac_fn_c_try_compile "$LINENO"; then :
  2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2192 /* end confdefs.h.  */
  2193 $4
  2194 int
  2195 main ()
  2196 {
  2197 if (sizeof (($2)))
  2198 	    return 0;
  2199   ;
  2200   return 0;
  2201 }
  2202 _ACEOF
  2203 if ac_fn_c_try_compile "$LINENO"; then :
  2204 
  2205 else
  2206   eval "$3=yes"
  2207 fi
  2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2209 fi
  2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2211 fi
  2212 eval ac_res=\$$3
  2213 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2214 $as_echo "$ac_res" >&6; }
  2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2216 
  2217 } # ac_fn_c_check_type
  2218 
  2219 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2220 # ----------------------------------------------------
  2221 # Tries to find if the field MEMBER exists in type AGGR, after including
  2222 # INCLUDES, setting cache variable VAR accordingly.
  2223 ac_fn_c_check_member ()
  2224 {
  2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2227 $as_echo_n "checking for $2.$3... " >&6; }
  2228 if eval \${$4+:} false; then :
  2229   $as_echo_n "(cached) " >&6
  2230 else
  2231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232 /* end confdefs.h.  */
  2233 $5
  2234 int
  2235 main ()
  2236 {
  2237 static $2 ac_aggr;
  2238 if (ac_aggr.$3)
  2239 return 0;
  2240   ;
  2241   return 0;
  2242 }
  2243 _ACEOF
  2244 if ac_fn_c_try_compile "$LINENO"; then :
  2245   eval "$4=yes"
  2246 else
  2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2248 /* end confdefs.h.  */
  2249 $5
  2250 int
  2251 main ()
  2252 {
  2253 static $2 ac_aggr;
  2254 if (sizeof ac_aggr.$3)
  2255 return 0;
  2256   ;
  2257   return 0;
  2258 }
  2259 _ACEOF
  2260 if ac_fn_c_try_compile "$LINENO"; then :
  2261   eval "$4=yes"
  2262 else
  2263   eval "$4=no"
  2264 fi
  2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266 fi
  2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2268 fi
  2269 eval ac_res=\$$4
  2270 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2271 $as_echo "$ac_res" >&6; }
  2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2273 
  2274 } # ac_fn_c_check_member
  2275 cat >config.log <<_ACEOF
  2276 This file contains any messages produced by compilers while
  2277 running configure, to aid debugging if configure makes a mistake.
  2278 
  2279 It was created by $as_me, which was
  2280 generated by GNU Autoconf 2.69.  Invocation command line was
  2281 
  2282   $ $0 $@
  2283 
  2284 _ACEOF
  2285 exec 5>>config.log
  2286 {
  2287 cat <<_ASUNAME
  2288 ## --------- ##
  2289 ## Platform. ##
  2290 ## --------- ##
  2291 
  2292 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2293 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2294 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2295 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2296 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2297 
  2298 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2299 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2300 
  2301 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2302 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2303 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2304 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2305 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2306 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2307 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2308 
  2309 _ASUNAME
  2310 
  2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312 for as_dir in $PATH
  2313 do
  2314   IFS=$as_save_IFS
  2315   test -z "$as_dir" && as_dir=.
  2316     $as_echo "PATH: $as_dir"
  2317   done
  2318 IFS=$as_save_IFS
  2319 
  2320 } >&5
  2321 
  2322 cat >&5 <<_ACEOF
  2323 
  2324 
  2325 ## ----------- ##
  2326 ## Core tests. ##
  2327 ## ----------- ##
  2328 
  2329 _ACEOF
  2330 
  2331 
  2332 # Keep a trace of the command line.
  2333 # Strip out --no-create and --no-recursion so they do not pile up.
  2334 # Strip out --silent because we don't want to record it for future runs.
  2335 # Also quote any args containing shell meta-characters.
  2336 # Make two passes to allow for proper duplicate-argument suppression.
  2337 ac_configure_args=
  2338 ac_configure_args0=
  2339 ac_configure_args1=
  2340 ac_must_keep_next=false
  2341 for ac_pass in 1 2
  2342 do
  2343   for ac_arg
  2344   do
  2345     case $ac_arg in
  2346     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2347     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2348     | -silent | --silent | --silen | --sile | --sil)
  2349       continue ;;
  2350     *\'*)
  2351       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2352     esac
  2353     case $ac_pass in
  2354     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2355     2)
  2356       as_fn_append ac_configure_args1 " '$ac_arg'"
  2357       if test $ac_must_keep_next = true; then
  2358 	ac_must_keep_next=false # Got value, back to normal.
  2359       else
  2360 	case $ac_arg in
  2361 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  2362 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2363 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2364 	  | -with-* | --with-* | -without-* | --without-* | --x)
  2365 	    case "$ac_configure_args0 " in
  2366 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2367 	    esac
  2368 	    ;;
  2369 	  -* ) ac_must_keep_next=true ;;
  2370 	esac
  2371       fi
  2372       as_fn_append ac_configure_args " '$ac_arg'"
  2373       ;;
  2374     esac
  2375   done
  2376 done
  2377 { ac_configure_args0=; unset ac_configure_args0;}
  2378 { ac_configure_args1=; unset ac_configure_args1;}
  2379 
  2380 # When interrupted or exit'd, cleanup temporary files, and complete
  2381 # config.log.  We remove comments because anyway the quotes in there
  2382 # would cause problems or look ugly.
  2383 # WARNING: Use '\'' to represent an apostrophe within the trap.
  2384 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2385 trap 'exit_status=$?
  2386   # Save into config.log some information that might help in debugging.
  2387   {
  2388     echo
  2389 
  2390     $as_echo "## ---------------- ##
  2391 ## Cache variables. ##
  2392 ## ---------------- ##"
  2393     echo
  2394     # The following way of writing the cache mishandles newlines in values,
  2395 (
  2396   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2397     eval ac_val=\$$ac_var
  2398     case $ac_val in #(
  2399     *${as_nl}*)
  2400       case $ac_var in #(
  2401       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2403       esac
  2404       case $ac_var in #(
  2405       _ | IFS | as_nl) ;; #(
  2406       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2407       *) { eval $ac_var=; unset $ac_var;} ;;
  2408       esac ;;
  2409     esac
  2410   done
  2411   (set) 2>&1 |
  2412     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2413     *${as_nl}ac_space=\ *)
  2414       sed -n \
  2415 	"s/'\''/'\''\\\\'\'''\''/g;
  2416 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2417       ;; #(
  2418     *)
  2419       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2420       ;;
  2421     esac |
  2422     sort
  2423 )
  2424     echo
  2425 
  2426     $as_echo "## ----------------- ##
  2427 ## Output variables. ##
  2428 ## ----------------- ##"
  2429     echo
  2430     for ac_var in $ac_subst_vars
  2431     do
  2432       eval ac_val=\$$ac_var
  2433       case $ac_val in
  2434       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2435       esac
  2436       $as_echo "$ac_var='\''$ac_val'\''"
  2437     done | sort
  2438     echo
  2439 
  2440     if test -n "$ac_subst_files"; then
  2441       $as_echo "## ------------------- ##
  2442 ## File substitutions. ##
  2443 ## ------------------- ##"
  2444       echo
  2445       for ac_var in $ac_subst_files
  2446       do
  2447 	eval ac_val=\$$ac_var
  2448 	case $ac_val in
  2449 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2450 	esac
  2451 	$as_echo "$ac_var='\''$ac_val'\''"
  2452       done | sort
  2453       echo
  2454     fi
  2455 
  2456     if test -s confdefs.h; then
  2457       $as_echo "## ----------- ##
  2458 ## confdefs.h. ##
  2459 ## ----------- ##"
  2460       echo
  2461       cat confdefs.h
  2462       echo
  2463     fi
  2464     test "$ac_signal" != 0 &&
  2465       $as_echo "$as_me: caught signal $ac_signal"
  2466     $as_echo "$as_me: exit $exit_status"
  2467   } >&5
  2468   rm -f core *.core core.conftest.* &&
  2469     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2470     exit $exit_status
  2471 ' 0
  2472 for ac_signal in 1 2 13 15; do
  2473   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2474 done
  2475 ac_signal=0
  2476 
  2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2478 rm -f -r conftest* confdefs.h
  2479 
  2480 $as_echo "/* confdefs.h */" > confdefs.h
  2481 
  2482 # Predefined preprocessor variables.
  2483 
  2484 cat >>confdefs.h <<_ACEOF
  2485 #define PACKAGE_NAME "$PACKAGE_NAME"
  2486 _ACEOF
  2487 
  2488 cat >>confdefs.h <<_ACEOF
  2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2490 _ACEOF
  2491 
  2492 cat >>confdefs.h <<_ACEOF
  2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2494 _ACEOF
  2495 
  2496 cat >>confdefs.h <<_ACEOF
  2497 #define PACKAGE_STRING "$PACKAGE_STRING"
  2498 _ACEOF
  2499 
  2500 cat >>confdefs.h <<_ACEOF
  2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2502 _ACEOF
  2503 
  2504 cat >>confdefs.h <<_ACEOF
  2505 #define PACKAGE_URL "$PACKAGE_URL"
  2506 _ACEOF
  2507 
  2508 
  2509 # Let the site file select an alternate cache file if it wants to.
  2510 # Prefer an explicitly selected file to automatically selected ones.
  2511 ac_site_file1=NONE
  2512 ac_site_file2=NONE
  2513 if test -n "$CONFIG_SITE"; then
  2514   # We do not want a PATH search for config.site.
  2515   case $CONFIG_SITE in #((
  2516     -*)  ac_site_file1=./$CONFIG_SITE;;
  2517     */*) ac_site_file1=$CONFIG_SITE;;
  2518     *)   ac_site_file1=./$CONFIG_SITE;;
  2519   esac
  2520 elif test "x$prefix" != xNONE; then
  2521   ac_site_file1=$prefix/share/config.site
  2522   ac_site_file2=$prefix/etc/config.site
  2523 else
  2524   ac_site_file1=$ac_default_prefix/share/config.site
  2525   ac_site_file2=$ac_default_prefix/etc/config.site
  2526 fi
  2527 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2528 do
  2529   test "x$ac_site_file" = xNONE && continue
  2530   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2531     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2532 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2533     sed 's/^/| /' "$ac_site_file" >&5
  2534     . "$ac_site_file" \
  2535       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2537 as_fn_error $? "failed to load site script $ac_site_file
  2538 See \`config.log' for more details" "$LINENO" 5; }
  2539   fi
  2540 done
  2541 
  2542 if test -r "$cache_file"; then
  2543   # Some versions of bash will fail to source /dev/null (special files
  2544   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2545   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2546     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2547 $as_echo "$as_me: loading cache $cache_file" >&6;}
  2548     case $cache_file in
  2549       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2550       *)                      . "./$cache_file";;
  2551     esac
  2552   fi
  2553 else
  2554   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2555 $as_echo "$as_me: creating cache $cache_file" >&6;}
  2556   >$cache_file
  2557 fi
  2558 
  2559 # Check that the precious variables saved in the cache have kept the same
  2560 # value.
  2561 ac_cache_corrupted=false
  2562 for ac_var in $ac_precious_vars; do
  2563   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2564   eval ac_new_set=\$ac_env_${ac_var}_set
  2565   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2566   eval ac_new_val=\$ac_env_${ac_var}_value
  2567   case $ac_old_set,$ac_new_set in
  2568     set,)
  2569       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2570 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2571       ac_cache_corrupted=: ;;
  2572     ,set)
  2573       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2574 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2575       ac_cache_corrupted=: ;;
  2576     ,);;
  2577     *)
  2578       if test "x$ac_old_val" != "x$ac_new_val"; then
  2579 	# differences in whitespace do not lead to failure.
  2580 	ac_old_val_w=`echo x $ac_old_val`
  2581 	ac_new_val_w=`echo x $ac_new_val`
  2582 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2583 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2584 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2585 	  ac_cache_corrupted=:
  2586 	else
  2587 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2588 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2589 	  eval $ac_var=\$ac_old_val
  2590 	fi
  2591 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2592 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2593 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2594 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2595       fi;;
  2596   esac
  2597   # Pass precious variables to config.status.
  2598   if test "$ac_new_set" = set; then
  2599     case $ac_new_val in
  2600     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2601     *) ac_arg=$ac_var=$ac_new_val ;;
  2602     esac
  2603     case " $ac_configure_args " in
  2604       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2605       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2606     esac
  2607   fi
  2608 done
  2609 if $ac_cache_corrupted; then
  2610   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2612   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2613 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2614   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2615 fi
  2616 ## -------------------- ##
  2617 ## Main body of script. ##
  2618 ## -------------------- ##
  2619 
  2620 ac_ext=c
  2621 ac_cpp='$CPP $CPPFLAGS'
  2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2625 
  2626 
  2627 ac_config_headers="$ac_config_headers include/SDL_config.h"
  2628 
  2629 ac_aux_dir=
  2630 for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2631   if test -f "$ac_dir/install-sh"; then
  2632     ac_aux_dir=$ac_dir
  2633     ac_install_sh="$ac_aux_dir/install-sh -c"
  2634     break
  2635   elif test -f "$ac_dir/install.sh"; then
  2636     ac_aux_dir=$ac_dir
  2637     ac_install_sh="$ac_aux_dir/install.sh -c"
  2638     break
  2639   elif test -f "$ac_dir/shtool"; then
  2640     ac_aux_dir=$ac_dir
  2641     ac_install_sh="$ac_aux_dir/shtool install -c"
  2642     break
  2643   fi
  2644 done
  2645 if test -z "$ac_aux_dir"; then
  2646   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2647 fi
  2648 
  2649 # These three variables are undocumented and unsupported,
  2650 # and are intended to be withdrawn in a future Autoconf release.
  2651 # They can cause serious problems if a builder's source tree is in a directory
  2652 # whose full name contains unusual characters.
  2653 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2654 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2655 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2656 
  2657 
  2658 
  2659 
  2660 orig_CFLAGS="$CFLAGS"
  2661 
  2662 #
  2663 # Making releases:
  2664 # Edit include/SDL_version.h and change the version, then:
  2665 #   SDL_MICRO_VERSION += 1;
  2666 #   SDL_INTERFACE_AGE += 1;
  2667 #   SDL_BINARY_AGE += 1;
  2668 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2669 # if backwards compatibility has been broken,
  2670 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2671 #
  2672 SDL_MAJOR_VERSION=2
  2673 SDL_MINOR_VERSION=0
  2674 SDL_MICRO_VERSION=3
  2675 SDL_INTERFACE_AGE=1
  2676 SDL_BINARY_AGE=3
  2677 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2678 
  2679 
  2680 
  2681 
  2682 
  2683 
  2684 
  2685 
  2686 # libtool versioning
  2687 case `pwd` in
  2688   *\ * | *\	*)
  2689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2690 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2691 esac
  2692 
  2693 
  2694 
  2695 macro_version='2.4.2'
  2696 macro_revision='1.3337'
  2697 
  2698 
  2699 
  2700 
  2701 
  2702 
  2703 
  2704 
  2705 
  2706 
  2707 
  2708 
  2709 
  2710 ltmain="$ac_aux_dir/ltmain.sh"
  2711 
  2712 # Make sure we can run config.sub.
  2713 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2714   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2715 
  2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2717 $as_echo_n "checking build system type... " >&6; }
  2718 if ${ac_cv_build+:} false; then :
  2719   $as_echo_n "(cached) " >&6
  2720 else
  2721   ac_build_alias=$build_alias
  2722 test "x$ac_build_alias" = x &&
  2723   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2724 test "x$ac_build_alias" = x &&
  2725   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2726 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2727   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2728 
  2729 fi
  2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2731 $as_echo "$ac_cv_build" >&6; }
  2732 case $ac_cv_build in
  2733 *-*-*) ;;
  2734 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2735 esac
  2736 build=$ac_cv_build
  2737 ac_save_IFS=$IFS; IFS='-'
  2738 set x $ac_cv_build
  2739 shift
  2740 build_cpu=$1
  2741 build_vendor=$2
  2742 shift; shift
  2743 # Remember, the first character of IFS is used to create $*,
  2744 # except with old shells:
  2745 build_os=$*
  2746 IFS=$ac_save_IFS
  2747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2748 
  2749 
  2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2751 $as_echo_n "checking host system type... " >&6; }
  2752 if ${ac_cv_host+:} false; then :
  2753   $as_echo_n "(cached) " >&6
  2754 else
  2755   if test "x$host_alias" = x; then
  2756   ac_cv_host=$ac_cv_build
  2757 else
  2758   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2759     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2760 fi
  2761 
  2762 fi
  2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2764 $as_echo "$ac_cv_host" >&6; }
  2765 case $ac_cv_host in
  2766 *-*-*) ;;
  2767 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2768 esac
  2769 host=$ac_cv_host
  2770 ac_save_IFS=$IFS; IFS='-'
  2771 set x $ac_cv_host
  2772 shift
  2773 host_cpu=$1
  2774 host_vendor=$2
  2775 shift; shift
  2776 # Remember, the first character of IFS is used to create $*,
  2777 # except with old shells:
  2778 host_os=$*
  2779 IFS=$ac_save_IFS
  2780 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2781 
  2782 
  2783 # Backslashify metacharacters that are still active within
  2784 # double-quoted strings.
  2785 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2786 
  2787 # Same as above, but do not quote variable references.
  2788 double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2789 
  2790 # Sed substitution to delay expansion of an escaped shell variable in a
  2791 # double_quote_subst'ed string.
  2792 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2793 
  2794 # Sed substitution to delay expansion of an escaped single quote.
  2795 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2796 
  2797 # Sed substitution to avoid accidental globbing in evaled expressions
  2798 no_glob_subst='s/\*/\\\*/g'
  2799 
  2800 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2803 
  2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2805 $as_echo_n "checking how to print strings... " >&6; }
  2806 # Test print first, because it will be a builtin if present.
  2807 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2808    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2809   ECHO='print -r --'
  2810 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2811   ECHO='printf %s\n'
  2812 else
  2813   # Use this function as a fallback that always works.
  2814   func_fallback_echo ()
  2815   {
  2816     eval 'cat <<_LTECHO_EOF
  2817 $1
  2818 _LTECHO_EOF'
  2819   }
  2820   ECHO='func_fallback_echo'
  2821 fi
  2822 
  2823 # func_echo_all arg...
  2824 # Invoke $ECHO with all args, space-separated.
  2825 func_echo_all ()
  2826 {
  2827     $ECHO ""
  2828 }
  2829 
  2830 case "$ECHO" in
  2831   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2832 $as_echo "printf" >&6; } ;;
  2833   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2834 $as_echo "print -r" >&6; } ;;
  2835   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2836 $as_echo "cat" >&6; } ;;
  2837 esac
  2838 
  2839 
  2840 
  2841 
  2842 
  2843 
  2844 
  2845 
  2846 
  2847 
  2848 
  2849 
  2850 
  2851 
  2852 ac_ext=c
  2853 ac_cpp='$CPP $CPPFLAGS'
  2854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2857 if test -n "$ac_tool_prefix"; then
  2858   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2861 $as_echo_n "checking for $ac_word... " >&6; }
  2862 if ${ac_cv_prog_CC+:} false; then :
  2863   $as_echo_n "(cached) " >&6
  2864 else
  2865   if test -n "$CC"; then
  2866   ac_cv_prog_CC="$CC" # Let the user override the test.
  2867 else
  2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869 for as_dir in $PATH
  2870 do
  2871   IFS=$as_save_IFS
  2872   test -z "$as_dir" && as_dir=.
  2873     for ac_exec_ext in '' $ac_executable_extensions; do
  2874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877     break 2
  2878   fi
  2879 done
  2880   done
  2881 IFS=$as_save_IFS
  2882 
  2883 fi
  2884 fi
  2885 CC=$ac_cv_prog_CC
  2886 if test -n "$CC"; then
  2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2888 $as_echo "$CC" >&6; }
  2889 else
  2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891 $as_echo "no" >&6; }
  2892 fi
  2893 
  2894 
  2895 fi
  2896 if test -z "$ac_cv_prog_CC"; then
  2897   ac_ct_CC=$CC
  2898   # Extract the first word of "gcc", so it can be a program name with args.
  2899 set dummy gcc; ac_word=$2
  2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901 $as_echo_n "checking for $ac_word... " >&6; }
  2902 if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2903   $as_echo_n "(cached) " >&6
  2904 else
  2905   if test -n "$ac_ct_CC"; then
  2906   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2907 else
  2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909 for as_dir in $PATH
  2910 do
  2911   IFS=$as_save_IFS
  2912   test -z "$as_dir" && as_dir=.
  2913     for ac_exec_ext in '' $ac_executable_extensions; do
  2914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2915     ac_cv_prog_ac_ct_CC="gcc"
  2916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917     break 2
  2918   fi
  2919 done
  2920   done
  2921 IFS=$as_save_IFS
  2922 
  2923 fi
  2924 fi
  2925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2926 if test -n "$ac_ct_CC"; then
  2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2928 $as_echo "$ac_ct_CC" >&6; }
  2929 else
  2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931 $as_echo "no" >&6; }
  2932 fi
  2933 
  2934   if test "x$ac_ct_CC" = x; then
  2935     CC=""
  2936   else
  2937     case $cross_compiling:$ac_tool_warned in
  2938 yes:)
  2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2941 ac_tool_warned=yes ;;
  2942 esac
  2943     CC=$ac_ct_CC
  2944   fi
  2945 else
  2946   CC="$ac_cv_prog_CC"
  2947 fi
  2948 
  2949 if test -z "$CC"; then
  2950           if test -n "$ac_tool_prefix"; then
  2951     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2952 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2954 $as_echo_n "checking for $ac_word... " >&6; }
  2955 if ${ac_cv_prog_CC+:} false; then :
  2956   $as_echo_n "(cached) " >&6
  2957 else
  2958   if test -n "$CC"; then
  2959   ac_cv_prog_CC="$CC" # Let the user override the test.
  2960 else
  2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2962 for as_dir in $PATH
  2963 do
  2964   IFS=$as_save_IFS
  2965   test -z "$as_dir" && as_dir=.
  2966     for ac_exec_ext in '' $ac_executable_extensions; do
  2967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2968     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2970     break 2
  2971   fi
  2972 done
  2973   done
  2974 IFS=$as_save_IFS
  2975 
  2976 fi
  2977 fi
  2978 CC=$ac_cv_prog_CC
  2979 if test -n "$CC"; then
  2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2981 $as_echo "$CC" >&6; }
  2982 else
  2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2984 $as_echo "no" >&6; }
  2985 fi
  2986 
  2987 
  2988   fi
  2989 fi
  2990 if test -z "$CC"; then
  2991   # Extract the first word of "cc", so it can be a program name with args.
  2992 set dummy cc; ac_word=$2
  2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2994 $as_echo_n "checking for $ac_word... " >&6; }
  2995 if ${ac_cv_prog_CC+:} false; then :
  2996   $as_echo_n "(cached) " >&6
  2997 else
  2998   if test -n "$CC"; then
  2999   ac_cv_prog_CC="$CC" # Let the user override the test.
  3000 else
  3001   ac_prog_rejected=no
  3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003 for as_dir in $PATH
  3004 do
  3005   IFS=$as_save_IFS
  3006   test -z "$as_dir" && as_dir=.
  3007     for ac_exec_ext in '' $ac_executable_extensions; do
  3008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3010        ac_prog_rejected=yes
  3011        continue
  3012      fi
  3013     ac_cv_prog_CC="cc"
  3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3015     break 2
  3016   fi
  3017 done
  3018   done
  3019 IFS=$as_save_IFS
  3020 
  3021 if test $ac_prog_rejected = yes; then
  3022   # We found a bogon in the path, so make sure we never use it.
  3023   set dummy $ac_cv_prog_CC
  3024   shift
  3025   if test $# != 0; then
  3026     # We chose a different compiler from the bogus one.
  3027     # However, it has the same basename, so the bogon will be chosen
  3028     # first if we set CC to just the basename; use the full file name.
  3029     shift
  3030     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3031   fi
  3032 fi
  3033 fi
  3034 fi
  3035 CC=$ac_cv_prog_CC
  3036 if test -n "$CC"; then
  3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3038 $as_echo "$CC" >&6; }
  3039 else
  3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3041 $as_echo "no" >&6; }
  3042 fi
  3043 
  3044 
  3045 fi
  3046 if test -z "$CC"; then
  3047   if test -n "$ac_tool_prefix"; then
  3048   for ac_prog in cl.exe
  3049   do
  3050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3053 $as_echo_n "checking for $ac_word... " >&6; }
  3054 if ${ac_cv_prog_CC+:} false; then :
  3055   $as_echo_n "(cached) " >&6
  3056 else
  3057   if test -n "$CC"; then
  3058   ac_cv_prog_CC="$CC" # Let the user override the test.
  3059 else
  3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061 for as_dir in $PATH
  3062 do
  3063   IFS=$as_save_IFS
  3064   test -z "$as_dir" && as_dir=.
  3065     for ac_exec_ext in '' $ac_executable_extensions; do
  3066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3069     break 2
  3070   fi
  3071 done
  3072   done
  3073 IFS=$as_save_IFS
  3074 
  3075 fi
  3076 fi
  3077 CC=$ac_cv_prog_CC
  3078 if test -n "$CC"; then
  3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3080 $as_echo "$CC" >&6; }
  3081 else
  3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3083 $as_echo "no" >&6; }
  3084 fi
  3085 
  3086 
  3087     test -n "$CC" && break
  3088   done
  3089 fi
  3090 if test -z "$CC"; then
  3091   ac_ct_CC=$CC
  3092   for ac_prog in cl.exe
  3093 do
  3094   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3095 set dummy $ac_prog; ac_word=$2
  3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3097 $as_echo_n "checking for $ac_word... " >&6; }
  3098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3099   $as_echo_n "(cached) " >&6
  3100 else
  3101   if test -n "$ac_ct_CC"; then
  3102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3103 else
  3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3105 for as_dir in $PATH
  3106 do
  3107   IFS=$as_save_IFS
  3108   test -z "$as_dir" && as_dir=.
  3109     for ac_exec_ext in '' $ac_executable_extensions; do
  3110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3111     ac_cv_prog_ac_ct_CC="$ac_prog"
  3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3113     break 2
  3114   fi
  3115 done
  3116   done
  3117 IFS=$as_save_IFS
  3118 
  3119 fi
  3120 fi
  3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3122 if test -n "$ac_ct_CC"; then
  3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3124 $as_echo "$ac_ct_CC" >&6; }
  3125 else
  3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3127 $as_echo "no" >&6; }
  3128 fi
  3129 
  3130 
  3131   test -n "$ac_ct_CC" && break
  3132 done
  3133 
  3134   if test "x$ac_ct_CC" = x; then
  3135     CC=""
  3136   else
  3137     case $cross_compiling:$ac_tool_warned in
  3138 yes:)
  3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3141 ac_tool_warned=yes ;;
  3142 esac
  3143     CC=$ac_ct_CC
  3144   fi
  3145 fi
  3146 
  3147 fi
  3148 
  3149 
  3150 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3152 as_fn_error $? "no acceptable C compiler found in \$PATH
  3153 See \`config.log' for more details" "$LINENO" 5; }
  3154 
  3155 # Provide some information about the compiler.
  3156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3157 set X $ac_compile
  3158 ac_compiler=$2
  3159 for ac_option in --version -v -V -qversion; do
  3160   { { ac_try="$ac_compiler $ac_option >&5"
  3161 case "(($ac_try" in
  3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3163   *) ac_try_echo=$ac_try;;
  3164 esac
  3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3166 $as_echo "$ac_try_echo"; } >&5
  3167   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3168   ac_status=$?
  3169   if test -s conftest.err; then
  3170     sed '10a\
  3171 ... rest of stderr output deleted ...
  3172          10q' conftest.err >conftest.er1
  3173     cat conftest.er1 >&5
  3174   fi
  3175   rm -f conftest.er1 conftest.err
  3176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3177   test $ac_status = 0; }
  3178 done
  3179 
  3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181 /* end confdefs.h.  */
  3182 
  3183 int
  3184 main ()
  3185 {
  3186 
  3187   ;
  3188   return 0;
  3189 }
  3190 _ACEOF
  3191 ac_clean_files_save=$ac_clean_files
  3192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3193 # Try to create an executable without -o first, disregard a.out.
  3194 # It will help us diagnose broken compilers, and finding out an intuition
  3195 # of exeext.
  3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3197 $as_echo_n "checking whether the C compiler works... " >&6; }
  3198 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3199 
  3200 # The possible output files:
  3201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3202 
  3203 ac_rmfiles=
  3204 for ac_file in $ac_files
  3205 do
  3206   case $ac_file in
  3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3208     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3209   esac
  3210 done
  3211 rm -f $ac_rmfiles
  3212 
  3213 if { { ac_try="$ac_link_default"
  3214 case "(($ac_try" in
  3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216   *) ac_try_echo=$ac_try;;
  3217 esac
  3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3219 $as_echo "$ac_try_echo"; } >&5
  3220   (eval "$ac_link_default") 2>&5
  3221   ac_status=$?
  3222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3223   test $ac_status = 0; }; then :
  3224   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3226 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3227 # so that the user can short-circuit this test for compilers unknown to
  3228 # Autoconf.
  3229 for ac_file in $ac_files ''
  3230 do
  3231   test -f "$ac_file" || continue
  3232   case $ac_file in
  3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3234 	;;
  3235     [ab].out )
  3236 	# We found the default executable, but exeext='' is most
  3237 	# certainly right.
  3238 	break;;
  3239     *.* )
  3240 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3241 	then :; else
  3242 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3243 	fi
  3244 	# We set ac_cv_exeext here because the later test for it is not
  3245 	# safe: cross compilers may not add the suffix if given an `-o'
  3246 	# argument, so we may need to know it at that point already.
  3247 	# Even if this section looks crufty: it has the advantage of
  3248 	# actually working.
  3249 	break;;
  3250     * )
  3251 	break;;
  3252   esac
  3253 done
  3254 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3255 
  3256 else
  3257   ac_file=''
  3258 fi
  3259 if test -z "$ac_file"; then :
  3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3261 $as_echo "no" >&6; }
  3262 $as_echo "$as_me: failed program was:" >&5
  3263 sed 's/^/| /' conftest.$ac_ext >&5
  3264 
  3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3267 as_fn_error 77 "C compiler cannot create executables
  3268 See \`config.log' for more details" "$LINENO" 5; }
  3269 else
  3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3271 $as_echo "yes" >&6; }
  3272 fi
  3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3274 $as_echo_n "checking for C compiler default output file name... " >&6; }
  3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3276 $as_echo "$ac_file" >&6; }
  3277 ac_exeext=$ac_cv_exeext
  3278 
  3279 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3280 ac_clean_files=$ac_clean_files_save
  3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3282 $as_echo_n "checking for suffix of executables... " >&6; }
  3283 if { { ac_try="$ac_link"
  3284 case "(($ac_try" in
  3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286   *) ac_try_echo=$ac_try;;
  3287 esac
  3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3289 $as_echo "$ac_try_echo"; } >&5
  3290   (eval "$ac_link") 2>&5
  3291   ac_status=$?
  3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3293   test $ac_status = 0; }; then :
  3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3297 # `rm'.
  3298 for ac_file in conftest.exe conftest conftest.*; do
  3299   test -f "$ac_file" || continue
  3300   case $ac_file in
  3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3303 	  break;;
  3304     * ) break;;
  3305   esac
  3306 done
  3307 else
  3308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3310 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3311 See \`config.log' for more details" "$LINENO" 5; }
  3312 fi
  3313 rm -f conftest conftest$ac_cv_exeext
  3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3315 $as_echo "$ac_cv_exeext" >&6; }
  3316 
  3317 rm -f conftest.$ac_ext
  3318 EXEEXT=$ac_cv_exeext
  3319 ac_exeext=$EXEEXT
  3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321 /* end confdefs.h.  */
  3322 #include <stdio.h>
  3323 int
  3324 main ()
  3325 {
  3326 FILE *f = fopen ("conftest.out", "w");
  3327  return ferror (f) || fclose (f) != 0;
  3328 
  3329   ;
  3330   return 0;
  3331 }
  3332 _ACEOF
  3333 ac_clean_files="$ac_clean_files conftest.out"
  3334 # Check that the compiler produces executables we can run.  If not, either
  3335 # the compiler is broken, or we cross compile.
  3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3337 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3338 if test "$cross_compiling" != yes; then
  3339   { { ac_try="$ac_link"
  3340 case "(($ac_try" in
  3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3342   *) ac_try_echo=$ac_try;;
  3343 esac
  3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3345 $as_echo "$ac_try_echo"; } >&5
  3346   (eval "$ac_link") 2>&5
  3347   ac_status=$?
  3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3349   test $ac_status = 0; }
  3350   if { ac_try='./conftest$ac_cv_exeext'
  3351   { { case "(($ac_try" in
  3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353   *) ac_try_echo=$ac_try;;
  3354 esac
  3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3356 $as_echo "$ac_try_echo"; } >&5
  3357   (eval "$ac_try") 2>&5
  3358   ac_status=$?
  3359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360   test $ac_status = 0; }; }; then
  3361     cross_compiling=no
  3362   else
  3363     if test "$cross_compiling" = maybe; then
  3364 	cross_compiling=yes
  3365     else
  3366 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3368 as_fn_error $? "cannot run C compiled programs.
  3369 If you meant to cross compile, use \`--host'.
  3370 See \`config.log' for more details" "$LINENO" 5; }
  3371     fi
  3372   fi
  3373 fi
  3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3375 $as_echo "$cross_compiling" >&6; }
  3376 
  3377 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3378 ac_clean_files=$ac_clean_files_save
  3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3380 $as_echo_n "checking for suffix of object files... " >&6; }
  3381 if ${ac_cv_objext+:} false; then :
  3382   $as_echo_n "(cached) " >&6
  3383 else
  3384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385 /* end confdefs.h.  */
  3386 
  3387 int
  3388 main ()
  3389 {
  3390 
  3391   ;
  3392   return 0;
  3393 }
  3394 _ACEOF
  3395 rm -f conftest.o conftest.obj
  3396 if { { ac_try="$ac_compile"
  3397 case "(($ac_try" in
  3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3399   *) ac_try_echo=$ac_try;;
  3400 esac
  3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3402 $as_echo "$ac_try_echo"; } >&5
  3403   (eval "$ac_compile") 2>&5
  3404   ac_status=$?
  3405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3406   test $ac_status = 0; }; then :
  3407   for ac_file in conftest.o conftest.obj conftest.*; do
  3408   test -f "$ac_file" || continue;
  3409   case $ac_file in
  3410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3411     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3412        break;;
  3413   esac
  3414 done
  3415 else
  3416   $as_echo "$as_me: failed program was:" >&5
  3417 sed 's/^/| /' conftest.$ac_ext >&5
  3418 
  3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3421 as_fn_error $? "cannot compute suffix of object files: cannot compile
  3422 See \`config.log' for more details" "$LINENO" 5; }
  3423 fi
  3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3425 fi
  3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3427 $as_echo "$ac_cv_objext" >&6; }
  3428 OBJEXT=$ac_cv_objext
  3429 ac_objext=$OBJEXT
  3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3431 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3432 if ${ac_cv_c_compiler_gnu+:} false; then :
  3433   $as_echo_n "(cached) " >&6
  3434 else
  3435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436 /* end confdefs.h.  */
  3437 
  3438 int
  3439 main ()
  3440 {
  3441 #ifndef __GNUC__
  3442        choke me
  3443 #endif
  3444 
  3445   ;
  3446   return 0;
  3447 }
  3448 _ACEOF
  3449 if ac_fn_c_try_compile "$LINENO"; then :
  3450   ac_compiler_gnu=yes
  3451 else
  3452   ac_compiler_gnu=no
  3453 fi
  3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3456 
  3457 fi
  3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3459 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3460 if test $ac_compiler_gnu = yes; then
  3461   GCC=yes
  3462 else
  3463   GCC=
  3464 fi
  3465 ac_test_CFLAGS=${CFLAGS+set}
  3466 ac_save_CFLAGS=$CFLAGS
  3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3468 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3469 if ${ac_cv_prog_cc_g+:} false; then :
  3470   $as_echo_n "(cached) " >&6
  3471 else
  3472   ac_save_c_werror_flag=$ac_c_werror_flag
  3473    ac_c_werror_flag=yes
  3474    ac_cv_prog_cc_g=no
  3475    CFLAGS="-g"
  3476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477 /* end confdefs.h.  */
  3478 
  3479 int
  3480 main ()
  3481 {
  3482 
  3483   ;
  3484   return 0;
  3485 }
  3486 _ACEOF
  3487 if ac_fn_c_try_compile "$LINENO"; then :
  3488   ac_cv_prog_cc_g=yes
  3489 else
  3490   CFLAGS=""
  3491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492 /* end confdefs.h.  */
  3493 
  3494 int
  3495 main ()
  3496 {
  3497 
  3498   ;
  3499   return 0;
  3500 }
  3501 _ACEOF
  3502 if ac_fn_c_try_compile "$LINENO"; then :
  3503 
  3504 else
  3505   ac_c_werror_flag=$ac_save_c_werror_flag
  3506 	 CFLAGS="-g"
  3507 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3508 /* end confdefs.h.  */
  3509 
  3510 int
  3511 main ()
  3512 {
  3513 
  3514   ;
  3515   return 0;
  3516 }
  3517 _ACEOF
  3518 if ac_fn_c_try_compile "$LINENO"; then :
  3519   ac_cv_prog_cc_g=yes
  3520 fi
  3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3522 fi
  3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3524 fi
  3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526    ac_c_werror_flag=$ac_save_c_werror_flag
  3527 fi
  3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3529 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3530 if test "$ac_test_CFLAGS" = set; then
  3531   CFLAGS=$ac_save_CFLAGS
  3532 elif test $ac_cv_prog_cc_g = yes; then
  3533   if test "$GCC" = yes; then
  3534     CFLAGS="-g -O2"
  3535   else
  3536     CFLAGS="-g"
  3537   fi
  3538 else
  3539   if test "$GCC" = yes; then
  3540     CFLAGS="-O2"
  3541   else
  3542     CFLAGS=
  3543   fi
  3544 fi
  3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3547 if ${ac_cv_prog_cc_c89+:} false; then :
  3548   $as_echo_n "(cached) " >&6
  3549 else
  3550   ac_cv_prog_cc_c89=no
  3551 ac_save_CC=$CC
  3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3553 /* end confdefs.h.  */
  3554 #include <stdarg.h>
  3555 #include <stdio.h>
  3556 struct stat;
  3557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3558 struct buf { int x; };
  3559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3560 static char *e (p, i)
  3561      char **p;
  3562      int i;
  3563 {
  3564   return p[i];
  3565 }
  3566 static char *f (char * (*g) (char **, int), char **p, ...)
  3567 {
  3568   char *s;
  3569   va_list v;
  3570   va_start (v,p);
  3571   s = g (p, va_arg (v,int));
  3572   va_end (v);
  3573   return s;
  3574 }
  3575 
  3576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3577    function prototypes and stuff, but not '\xHH' hex character constants.
  3578    These don't provoke an error unfortunately, instead are silently treated
  3579    as 'x'.  The following induces an error, until -std is added to get
  3580    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3581    array size at least.  It's necessary to write '\x00'==0 to get something
  3582    that's true only with -std.  */
  3583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3584 
  3585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3586    inside strings and character constants.  */
  3587 #define FOO(x) 'x'
  3588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3589 
  3590 int test (int i, double x);
  3591 struct s1 {int (*f) (int a);};
  3592 struct s2 {int (*f) (double a);};
  3593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3594 int argc;
  3595 char **argv;
  3596 int
  3597 main ()
  3598 {
  3599 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3600   ;
  3601   return 0;
  3602 }
  3603 _ACEOF
  3604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3605 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3606 do
  3607   CC="$ac_save_CC $ac_arg"
  3608   if ac_fn_c_try_compile "$LINENO"; then :
  3609   ac_cv_prog_cc_c89=$ac_arg
  3610 fi
  3611 rm -f core conftest.err conftest.$ac_objext
  3612   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3613 done
  3614 rm -f conftest.$ac_ext
  3615 CC=$ac_save_CC
  3616 
  3617 fi
  3618 # AC_CACHE_VAL
  3619 case "x$ac_cv_prog_cc_c89" in
  3620   x)
  3621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3622 $as_echo "none needed" >&6; } ;;
  3623   xno)
  3624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3625 $as_echo "unsupported" >&6; } ;;
  3626   *)
  3627     CC="$CC $ac_cv_prog_cc_c89"
  3628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3629 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3630 esac
  3631 if test "x$ac_cv_prog_cc_c89" != xno; then :
  3632 
  3633 fi
  3634 
  3635 ac_ext=c
  3636 ac_cpp='$CPP $CPPFLAGS'
  3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3640 
  3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3643 if ${ac_cv_path_SED+:} false; then :
  3644   $as_echo_n "(cached) " >&6
  3645 else
  3646             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3647      for ac_i in 1 2 3 4 5 6 7; do
  3648        ac_script="$ac_script$as_nl$ac_script"
  3649      done
  3650      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3651      { ac_script=; unset ac_script;}
  3652      if test -z "$SED"; then
  3653   ac_path_SED_found=false
  3654   # Loop through the user's path and test for each of PROGNAME-LIST
  3655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3656 for as_dir in $PATH
  3657 do
  3658   IFS=$as_save_IFS
  3659   test -z "$as_dir" && as_dir=.
  3660     for ac_prog in sed gsed; do
  3661     for ac_exec_ext in '' $ac_executable_extensions; do
  3662       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3663       as_fn_executable_p "$ac_path_SED" || continue
  3664 # Check for GNU ac_path_SED and select it if it is found.
  3665   # Check for GNU $ac_path_SED
  3666 case `"$ac_path_SED" --version 2>&1` in
  3667 *GNU*)
  3668   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3669 *)
  3670   ac_count=0
  3671   $as_echo_n 0123456789 >"conftest.in"
  3672   while :
  3673   do
  3674     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3675     mv "conftest.tmp" "conftest.in"
  3676     cp "conftest.in" "conftest.nl"
  3677     $as_echo '' >> "conftest.nl"
  3678     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3679     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3680     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3681     if test $ac_count -gt ${ac_path_SED_max-0}; then
  3682       # Best one so far, save it but keep looking for a better one
  3683       ac_cv_path_SED="$ac_path_SED"
  3684       ac_path_SED_max=$ac_count
  3685     fi
  3686     # 10*(2^10) chars as input seems more than enough
  3687     test $ac_count -gt 10 && break
  3688   done
  3689   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3690 esac
  3691 
  3692       $ac_path_SED_found && break 3
  3693     done
  3694   done
  3695   done
  3696 IFS=$as_save_IFS
  3697   if test -z "$ac_cv_path_SED"; then
  3698     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3699   fi
  3700 else
  3701   ac_cv_path_SED=$SED
  3702 fi
  3703 
  3704 fi
  3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3706 $as_echo "$ac_cv_path_SED" >&6; }
  3707  SED="$ac_cv_path_SED"
  3708   rm -f conftest.sed
  3709 
  3710 test -z "$SED" && SED=sed
  3711 Xsed="$SED -e 1s/^X//"
  3712 
  3713 
  3714 
  3715 
  3716 
  3717 
  3718 
  3719 
  3720 
  3721 
  3722 
  3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3725 if ${ac_cv_path_GREP+:} false; then :
  3726   $as_echo_n "(cached) " >&6
  3727 else
  3728   if test -z "$GREP"; then
  3729   ac_path_GREP_found=false
  3730   # Loop through the user's path and test for each of PROGNAME-LIST
  3731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3733 do
  3734   IFS=$as_save_IFS
  3735   test -z "$as_dir" && as_dir=.
  3736     for ac_prog in grep ggrep; do
  3737     for ac_exec_ext in '' $ac_executable_extensions; do
  3738       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3739       as_fn_executable_p "$ac_path_GREP" || continue
  3740 # Check for GNU ac_path_GREP and select it if it is found.
  3741   # Check for GNU $ac_path_GREP
  3742 case `"$ac_path_GREP" --version 2>&1` in
  3743 *GNU*)
  3744   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3745 *)
  3746   ac_count=0
  3747   $as_echo_n 0123456789 >"conftest.in"
  3748   while :
  3749   do
  3750     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3751     mv "conftest.tmp" "conftest.in"
  3752     cp "conftest.in" "conftest.nl"
  3753     $as_echo 'GREP' >> "conftest.nl"
  3754     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3755     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3756     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3757     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3758       # Best one so far, save it but keep looking for a better one
  3759       ac_cv_path_GREP="$ac_path_GREP"
  3760       ac_path_GREP_max=$ac_count
  3761     fi
  3762     # 10*(2^10) chars as input seems more than enough
  3763     test $ac_count -gt 10 && break
  3764   done
  3765   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3766 esac
  3767 
  3768       $ac_path_GREP_found && break 3
  3769     done
  3770   done
  3771   done
  3772 IFS=$as_save_IFS
  3773   if test -z "$ac_cv_path_GREP"; then
  3774     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3775   fi
  3776 else
  3777   ac_cv_path_GREP=$GREP
  3778 fi
  3779 
  3780 fi
  3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3782 $as_echo "$ac_cv_path_GREP" >&6; }
  3783  GREP="$ac_cv_path_GREP"
  3784 
  3785 
  3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3787 $as_echo_n "checking for egrep... " >&6; }
  3788 if ${ac_cv_path_EGREP+:} false; then :
  3789   $as_echo_n "(cached) " >&6
  3790 else
  3791   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3792    then ac_cv_path_EGREP="$GREP -E"
  3793    else
  3794      if test -z "$EGREP"; then
  3795   ac_path_EGREP_found=false
  3796   # Loop through the user's path and test for each of PROGNAME-LIST
  3797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3799 do
  3800   IFS=$as_save_IFS
  3801   test -z "$as_dir" && as_dir=.
  3802     for ac_prog in egrep; do
  3803     for ac_exec_ext in '' $ac_executable_extensions; do
  3804       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3805       as_fn_executable_p "$ac_path_EGREP" || continue
  3806 # Check for GNU ac_path_EGREP and select it if it is found.
  3807   # Check for GNU $ac_path_EGREP
  3808 case `"$ac_path_EGREP" --version 2>&1` in
  3809 *GNU*)
  3810   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3811 *)
  3812   ac_count=0
  3813   $as_echo_n 0123456789 >"conftest.in"
  3814   while :
  3815   do
  3816     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3817     mv "conftest.tmp" "conftest.in"
  3818     cp "conftest.in" "conftest.nl"
  3819     $as_echo 'EGREP' >> "conftest.nl"
  3820     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3822     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3823     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3824       # Best one so far, save it but keep looking for a better one
  3825       ac_cv_path_EGREP="$ac_path_EGREP"
  3826       ac_path_EGREP_max=$ac_count
  3827     fi
  3828     # 10*(2^10) chars as input seems more than enough
  3829     test $ac_count -gt 10 && break
  3830   done
  3831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3832 esac
  3833 
  3834       $ac_path_EGREP_found && break 3
  3835     done
  3836   done
  3837   done
  3838 IFS=$as_save_IFS
  3839   if test -z "$ac_cv_path_EGREP"; then
  3840     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3841   fi
  3842 else
  3843   ac_cv_path_EGREP=$EGREP
  3844 fi
  3845 
  3846    fi
  3847 fi
  3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3849 $as_echo "$ac_cv_path_EGREP" >&6; }
  3850  EGREP="$ac_cv_path_EGREP"
  3851 
  3852 
  3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3854 $as_echo_n "checking for fgrep... " >&6; }
  3855 if ${ac_cv_path_FGREP+:} false; then :
  3856   $as_echo_n "(cached) " >&6
  3857 else
  3858   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3859    then ac_cv_path_FGREP="$GREP -F"
  3860    else
  3861      if test -z "$FGREP"; then
  3862   ac_path_FGREP_found=false
  3863   # Loop through the user's path and test for each of PROGNAME-LIST
  3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3866 do
  3867   IFS=$as_save_IFS
  3868   test -z "$as_dir" && as_dir=.
  3869     for ac_prog in fgrep; do
  3870     for ac_exec_ext in '' $ac_executable_extensions; do
  3871       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3872       as_fn_executable_p "$ac_path_FGREP" || continue
  3873 # Check for GNU ac_path_FGREP and select it if it is found.
  3874   # Check for GNU $ac_path_FGREP
  3875 case `"$ac_path_FGREP" --version 2>&1` in
  3876 *GNU*)
  3877   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3878 *)
  3879   ac_count=0
  3880   $as_echo_n 0123456789 >"conftest.in"
  3881   while :
  3882   do
  3883     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3884     mv "conftest.tmp" "conftest.in"
  3885     cp "conftest.in" "conftest.nl"
  3886     $as_echo 'FGREP' >> "conftest.nl"
  3887     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3888     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3889     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3890     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3891       # Best one so far, save it but keep looking for a better one
  3892       ac_cv_path_FGREP="$ac_path_FGREP"
  3893       ac_path_FGREP_max=$ac_count
  3894     fi
  3895     # 10*(2^10) chars as input seems more than enough
  3896     test $ac_count -gt 10 && break
  3897   done
  3898   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3899 esac
  3900 
  3901       $ac_path_FGREP_found && break 3
  3902     done
  3903   done
  3904   done
  3905 IFS=$as_save_IFS
  3906   if test -z "$ac_cv_path_FGREP"; then
  3907     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3908   fi
  3909 else
  3910   ac_cv_path_FGREP=$FGREP
  3911 fi
  3912 
  3913    fi
  3914 fi
  3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3916 $as_echo "$ac_cv_path_FGREP" >&6; }
  3917  FGREP="$ac_cv_path_FGREP"
  3918 
  3919 
  3920 test -z "$GREP" && GREP=grep
  3921 
  3922 
  3923 
  3924 
  3925 
  3926 
  3927 
  3928 
  3929 
  3930 
  3931 
  3932 
  3933 
  3934 
  3935 
  3936 
  3937 
  3938 
  3939 
  3940 # Check whether --with-gnu-ld was given.
  3941 if test "${with_gnu_ld+set}" = set; then :
  3942   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3943 else
  3944   with_gnu_ld=no
  3945 fi
  3946 
  3947 ac_prog=ld
  3948 if test "$GCC" = yes; then
  3949   # Check if gcc -print-prog-name=ld gives a path.
  3950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3951 $as_echo_n "checking for ld used by $CC... " >&6; }
  3952   case $host in
  3953   *-*-mingw*)
  3954     # gcc leaves a trailing carriage return which upsets mingw
  3955     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3956   *)
  3957     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3958   esac
  3959   case $ac_prog in
  3960     # Accept absolute paths.
  3961     [\\/]* | ?:[\\/]*)
  3962       re_direlt='/[^/][^/]*/\.\./'
  3963       # Canonicalize the pathname of ld
  3964       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3965       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3966 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3967       done
  3968       test -z "$LD" && LD="$ac_prog"
  3969       ;;
  3970   "")
  3971     # If it fails, then pretend we aren't using GCC.
  3972     ac_prog=ld
  3973     ;;
  3974   *)
  3975     # If it is relative, then search for the first ld in PATH.
  3976     with_gnu_ld=unknown
  3977     ;;
  3978   esac
  3979 elif test "$with_gnu_ld" = yes; then
  3980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3981 $as_echo_n "checking for GNU ld... " >&6; }
  3982 else
  3983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3984 $as_echo_n "checking for non-GNU ld... " >&6; }
  3985 fi
  3986 if ${lt_cv_path_LD+:} false; then :
  3987   $as_echo_n "(cached) " >&6
  3988 else
  3989   if test -z "$LD"; then
  3990   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3991   for ac_dir in $PATH; do
  3992     IFS="$lt_save_ifs"
  3993     test -z "$ac_dir" && ac_dir=.
  3994     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3995       lt_cv_path_LD="$ac_dir/$ac_prog"
  3996       # Check to see if the program is GNU ld.  I'd rather use --version,
  3997       # but apparently some variants of GNU ld only accept -v.
  3998       # Break only if it was the GNU/non-GNU ld that we prefer.
  3999       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4000       *GNU* | *'with BFD'*)
  4001 	test "$with_gnu_ld" != no && break
  4002 	;;
  4003       *)
  4004 	test "$with_gnu_ld" != yes && break
  4005 	;;
  4006       esac
  4007     fi
  4008   done
  4009   IFS="$lt_save_ifs"
  4010 else
  4011   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4012 fi
  4013 fi
  4014 
  4015 LD="$lt_cv_path_LD"
  4016 if test -n "$LD"; then
  4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4018 $as_echo "$LD" >&6; }
  4019 else
  4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4021 $as_echo "no" >&6; }
  4022 fi
  4023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4026 if ${lt_cv_prog_gnu_ld+:} false; then :
  4027   $as_echo_n "(cached) " >&6
  4028 else
  4029   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4030 case `$LD -v 2>&1 </dev/null` in
  4031 *GNU* | *'with BFD'*)
  4032   lt_cv_prog_gnu_ld=yes
  4033   ;;
  4034 *)
  4035   lt_cv_prog_gnu_ld=no
  4036   ;;
  4037 esac
  4038 fi
  4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4040 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4041 with_gnu_ld=$lt_cv_prog_gnu_ld
  4042 
  4043 
  4044 
  4045 
  4046 
  4047 
  4048 
  4049 
  4050 
  4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4052 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4053 if ${lt_cv_path_NM+:} false; then :
  4054   $as_echo_n "(cached) " >&6
  4055 else
  4056   if test -n "$NM"; then
  4057   # Let the user override the test.
  4058   lt_cv_path_NM="$NM"
  4059 else
  4060   lt_nm_to_check="${ac_tool_prefix}nm"
  4061   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4062     lt_nm_to_check="$lt_nm_to_check nm"
  4063   fi
  4064   for lt_tmp_nm in $lt_nm_to_check; do
  4065     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4066     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4067       IFS="$lt_save_ifs"
  4068       test -z "$ac_dir" && ac_dir=.
  4069       tmp_nm="$ac_dir/$lt_tmp_nm"
  4070       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4071 	# Check to see if the nm accepts a BSD-compat flag.
  4072 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4073 	#   nm: unknown option "B" ignored
  4074 	# Tru64's nm complains that /dev/null is an invalid object file
  4075 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4076 	*/dev/null* | *'Invalid file or object type'*)
  4077 	  lt_cv_path_NM="$tmp_nm -B"
  4078 	  break
  4079 	  ;;
  4080 	*)
  4081 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4082 	  */dev/null*)
  4083 	    lt_cv_path_NM="$tmp_nm -p"
  4084 	    break
  4085 	    ;;
  4086 	  *)
  4087 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4088 	    continue # so that we can try to find one that supports BSD flags
  4089 	    ;;
  4090 	  esac
  4091 	  ;;
  4092 	esac
  4093       fi
  4094     done
  4095     IFS="$lt_save_ifs"
  4096   done
  4097   : ${lt_cv_path_NM=no}
  4098 fi
  4099 fi
  4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4101 $as_echo "$lt_cv_path_NM" >&6; }
  4102 if test "$lt_cv_path_NM" != "no"; then
  4103   NM="$lt_cv_path_NM"
  4104 else
  4105   # Didn't find any BSD compatible name lister, look for dumpbin.
  4106   if test -n "$DUMPBIN"; then :
  4107     # Let the user override the test.
  4108   else
  4109     if test -n "$ac_tool_prefix"; then
  4110   for ac_prog in dumpbin "link -dump"
  4111   do
  4112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4115 $as_echo_n "checking for $ac_word... " >&6; }
  4116 if ${ac_cv_prog_DUMPBIN+:} false; then :
  4117   $as_echo_n "(cached) " >&6
  4118 else
  4119   if test -n "$DUMPBIN"; then
  4120   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4121 else
  4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4123 for as_dir in $PATH
  4124 do
  4125   IFS=$as_save_IFS
  4126   test -z "$as_dir" && as_dir=.
  4127     for ac_exec_ext in '' $ac_executable_extensions; do
  4128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4129     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4131     break 2
  4132   fi
  4133 done
  4134   done
  4135 IFS=$as_save_IFS
  4136 
  4137 fi
  4138 fi
  4139 DUMPBIN=$ac_cv_prog_DUMPBIN
  4140 if test -n "$DUMPBIN"; then
  4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4142 $as_echo "$DUMPBIN" >&6; }
  4143 else
  4144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4145 $as_echo "no" >&6; }
  4146 fi
  4147 
  4148 
  4149     test -n "$DUMPBIN" && break
  4150   done
  4151 fi
  4152 if test -z "$DUMPBIN"; then
  4153   ac_ct_DUMPBIN=$DUMPBIN
  4154   for ac_prog in dumpbin "link -dump"
  4155 do
  4156   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4157 set dummy $ac_prog; ac_word=$2
  4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4159 $as_echo_n "checking for $ac_word... " >&6; }
  4160 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4161   $as_echo_n "(cached) " >&6
  4162 else
  4163   if test -n "$ac_ct_DUMPBIN"; then
  4164   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4165 else
  4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4167 for as_dir in $PATH
  4168 do
  4169   IFS=$as_save_IFS
  4170   test -z "$as_dir" && as_dir=.
  4171     for ac_exec_ext in '' $ac_executable_extensions; do
  4172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4173     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4175     break 2
  4176   fi
  4177 done
  4178   done
  4179 IFS=$as_save_IFS
  4180 
  4181 fi
  4182 fi
  4183 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4184 if test -n "$ac_ct_DUMPBIN"; then
  4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4186 $as_echo "$ac_ct_DUMPBIN" >&6; }
  4187 else
  4188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189 $as_echo "no" >&6; }
  4190 fi
  4191 
  4192 
  4193   test -n "$ac_ct_DUMPBIN" && break
  4194 done
  4195 
  4196   if test "x$ac_ct_DUMPBIN" = x; then
  4197     DUMPBIN=":"
  4198   else
  4199     case $cross_compiling:$ac_tool_warned in
  4200 yes:)
  4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4203 ac_tool_warned=yes ;;
  4204 esac
  4205     DUMPBIN=$ac_ct_DUMPBIN
  4206   fi
  4207 fi
  4208 
  4209     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4210     *COFF*)
  4211       DUMPBIN="$DUMPBIN -symbols"
  4212       ;;
  4213     *)
  4214       DUMPBIN=:
  4215       ;;
  4216     esac
  4217   fi
  4218 
  4219   if test "$DUMPBIN" != ":"; then
  4220     NM="$DUMPBIN"
  4221   fi
  4222 fi
  4223 test -z "$NM" && NM=nm
  4224 
  4225 
  4226 
  4227 
  4228 
  4229 
  4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4231 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4232 if ${lt_cv_nm_interface+:} false; then :
  4233   $as_echo_n "(cached) " >&6
  4234 else
  4235   lt_cv_nm_interface="BSD nm"
  4236   echo "int some_variable = 0;" > conftest.$ac_ext
  4237   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4238   (eval "$ac_compile" 2>conftest.err)
  4239   cat conftest.err >&5
  4240   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4241   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4242   cat conftest.err >&5
  4243   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4244   cat conftest.out >&5
  4245   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4246     lt_cv_nm_interface="MS dumpbin"
  4247   fi
  4248   rm -f conftest*
  4249 fi
  4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4251 $as_echo "$lt_cv_nm_interface" >&6; }
  4252 
  4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4254 $as_echo_n "checking whether ln -s works... " >&6; }
  4255 LN_S=$as_ln_s
  4256 if test "$LN_S" = "ln -s"; then
  4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4258 $as_echo "yes" >&6; }
  4259 else
  4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4261 $as_echo "no, using $LN_S" >&6; }
  4262 fi
  4263 
  4264 # find the maximum length of command line arguments
  4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4266 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4267 if ${lt_cv_sys_max_cmd_len+:} false; then :
  4268   $as_echo_n "(cached) " >&6
  4269 else
  4270     i=0
  4271   teststring="ABCD"
  4272 
  4273   case $build_os in
  4274   msdosdjgpp*)
  4275     # On DJGPP, this test can blow up pretty badly due to problems in libc
  4276     # (any single argument exceeding 2000 bytes causes a buffer overrun
  4277     # during glob expansion).  Even if it were fixed, the result of this
  4278     # check would be larger than it should be.
  4279     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  4280     ;;
  4281 
  4282   gnu*)
  4283     # Under GNU Hurd, this test is not required because there is
  4284     # no limit to the length of command line arguments.
  4285     # Libtool will interpret -1 as no limit whatsoever
  4286     lt_cv_sys_max_cmd_len=-1;
  4287     ;;
  4288 
  4289   cygwin* | mingw* | cegcc*)
  4290     # On Win9x/ME, this test blows up -- it succeeds, but takes
  4291     # about 5 minutes as the teststring grows exponentially.
  4292     # Worse, since 9x/ME are not pre-emptively multitasking,
  4293     # you end up with a "frozen" computer, even though with patience
  4294     # the test eventually succeeds (with a max line length of 256k).
  4295     # Instead, let's just punt: use the minimum linelength reported by
  4296     # all of the supported platforms: 8192 (on NT/2K/XP).
  4297     lt_cv_sys_max_cmd_len=8192;
  4298     ;;
  4299 
  4300   mint*)
  4301     # On MiNT this can take a long time and run out of memory.
  4302     lt_cv_sys_max_cmd_len=8192;
  4303     ;;
  4304 
  4305   amigaos*)
  4306     # On AmigaOS with pdksh, this test takes hours, literally.
  4307     # So we just punt and use a minimum line length of 8192.
  4308     lt_cv_sys_max_cmd_len=8192;
  4309     ;;
  4310 
  4311   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4312     # This has been around since 386BSD, at least.  Likely further.
  4313     if test -x /sbin/sysctl; then
  4314       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4315     elif test -x /usr/sbin/sysctl; then
  4316       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4317     else
  4318       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
  4319     fi
  4320     # And add a safety zone
  4321     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4322     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4323     ;;
  4324 
  4325   interix*)
  4326     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4327     lt_cv_sys_max_cmd_len=196608
  4328     ;;
  4329 
  4330   os2*)
  4331     # The test takes a long time on OS/2.
  4332     lt_cv_sys_max_cmd_len=8192
  4333     ;;
  4334 
  4335   osf*)
  4336     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4337     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4338     # nice to cause kernel panics so lets avoid the loop below.
  4339     # First set a reasonable default.
  4340     lt_cv_sys_max_cmd_len=16384
  4341     #
  4342     if test -x /sbin/sysconfig; then
  4343       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4344         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4345       esac
  4346     fi
  4347     ;;
  4348   sco3.2v5*)
  4349     lt_cv_sys_max_cmd_len=102400
  4350     ;;
  4351   sysv5* | sco5v6* | sysv4.2uw2*)
  4352     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4353     if test -n "$kargmax"; then
  4354       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
  4355     else
  4356       lt_cv_sys_max_cmd_len=32768
  4357     fi
  4358     ;;
  4359   *)
  4360     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4361     if test -n "$lt_cv_sys_max_cmd_len"; then
  4362       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4363       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4364     else
  4365       # Make teststring a little bigger before we do anything with it.
  4366       # a 1K string should be a reasonable start.
  4367       for i in 1 2 3 4 5 6 7 8 ; do
  4368         teststring=$teststring$teststring
  4369       done
  4370       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4371       # If test is not a shell built-in, we'll probably end up computing a
  4372       # maximum length that is only half of the actual maximum length, but
  4373       # we can't tell.
  4374       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4375 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4376 	      test $i != 17 # 1/2 MB should be enough
  4377       do
  4378         i=`expr $i + 1`
  4379         teststring=$teststring$teststring
  4380       done
  4381       # Only check the string length outside the loop.
  4382       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4383       teststring=
  4384       # Add a significant safety factor because C++ compilers can tack on
  4385       # massive amounts of additional arguments before passing them to the
  4386       # linker.  It appears as though 1/2 is a usable value.
  4387       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4388     fi
  4389     ;;
  4390   esac
  4391 
  4392 fi
  4393 
  4394 if test -n $lt_cv_sys_max_cmd_len ; then
  4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4396 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4397 else
  4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4399 $as_echo "none" >&6; }
  4400 fi
  4401 max_cmd_len=$lt_cv_sys_max_cmd_len
  4402 
  4403 
  4404 
  4405 
  4406 
  4407 
  4408 : ${CP="cp -f"}
  4409 : ${MV="mv -f"}
  4410 : ${RM="rm -f"}
  4411 
  4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4413 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4414 # Try some XSI features
  4415 xsi_shell=no
  4416 ( _lt_dummy="a/b/c"
  4417   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4418       = c,a/b,b/c, \
  4419     && eval 'test $(( 1 + 1 )) -eq 2 \
  4420     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4421   && xsi_shell=yes
  4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4423 $as_echo "$xsi_shell" >&6; }
  4424 
  4425 
  4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4427 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4428 lt_shell_append=no
  4429 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4430     >/dev/null 2>&1 \
  4431   && lt_shell_append=yes
  4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4433 $as_echo "$lt_shell_append" >&6; }
  4434 
  4435 
  4436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4437   lt_unset=unset
  4438 else
  4439   lt_unset=false
  4440 fi
  4441 
  4442 
  4443 
  4444 
  4445 
  4446 # test EBCDIC or ASCII
  4447 case `echo X|tr X '\101'` in
  4448  A) # ASCII based system
  4449     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4450   lt_SP2NL='tr \040 \012'
  4451   lt_NL2SP='tr \015\012 \040\040'
  4452   ;;
  4453  *) # EBCDIC based system
  4454   lt_SP2NL='tr \100 \n'
  4455   lt_NL2SP='tr \r\n \100\100'
  4456   ;;
  4457 esac
  4458 
  4459 
  4460 
  4461 
  4462 
  4463 
  4464 
  4465 
  4466 
  4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4468 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4469 if ${lt_cv_to_host_file_cmd+:} false; then :
  4470   $as_echo_n "(cached) " >&6
  4471 else
  4472   case $host in
  4473   *-*-mingw* )
  4474     case $build in
  4475       *-*-mingw* ) # actually msys
  4476         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4477         ;;
  4478       *-*-cygwin* )
  4479         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4480         ;;
  4481       * ) # otherwise, assume *nix
  4482         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4483         ;;
  4484     esac
  4485     ;;
  4486   *-*-cygwin* )
  4487     case $build in
  4488       *-*-mingw* ) # actually msys
  4489         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4490         ;;
  4491       *-*-cygwin* )
  4492         lt_cv_to_host_file_cmd=func_convert_file_noop
  4493         ;;
  4494       * ) # otherwise, assume *nix
  4495         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4496         ;;
  4497     esac
  4498     ;;
  4499   * ) # unhandled hosts (and "normal" native builds)
  4500     lt_cv_to_host_file_cmd=func_convert_file_noop
  4501     ;;
  4502 esac
  4503 
  4504 fi
  4505 
  4506 to_host_file_cmd=$lt_cv_to_host_file_cmd
  4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4508 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4509 
  4510 
  4511 
  4512 
  4513 
  4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4515 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4516 if ${lt_cv_to_tool_file_cmd+:} false; then :
  4517   $as_echo_n "(cached) " >&6
  4518 else
  4519   #assume ordinary cross tools, or native build.
  4520 lt_cv_to_tool_file_cmd=func_convert_file_noop
  4521 case $host in
  4522   *-*-mingw* )
  4523     case $build in
  4524       *-*-mingw* ) # actually msys
  4525         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4526         ;;
  4527     esac
  4528     ;;
  4529 esac
  4530 
  4531 fi
  4532 
  4533 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4535 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4536 
  4537 
  4538 
  4539 
  4540 
  4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4542 $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4543 if ${lt_cv_ld_reload_flag+:} false; then :
  4544   $as_echo_n "(cached) " >&6
  4545 else
  4546   lt_cv_ld_reload_flag='-r'
  4547 fi
  4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4550 reload_flag=$lt_cv_ld_reload_flag
  4551 case $reload_flag in
  4552 "" | " "*) ;;
  4553 *) reload_flag=" $reload_flag" ;;
  4554 esac
  4555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4556 case $host_os in
  4557   cygwin* | mingw* | pw32* | cegcc*)
  4558     if test "$GCC" != yes; then
  4559       reload_cmds=false
  4560     fi
  4561     ;;
  4562   darwin*)
  4563     if test "$GCC" = yes; then
  4564       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4565     else
  4566       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4567     fi
  4568     ;;
  4569 esac
  4570 
  4571 
  4572 
  4573 
  4574 
  4575 
  4576 
  4577 
  4578 
  4579 if test -n "$ac_tool_prefix"; then
  4580   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4581 set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4583 $as_echo_n "checking for $ac_word... " >&6; }
  4584 if ${ac_cv_prog_OBJDUMP+:} false; then :
  4585   $as_echo_n "(cached) " >&6
  4586 else
  4587   if test -n "$OBJDUMP"; then
  4588   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4589 else
  4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591 for as_dir in $PATH
  4592 do
  4593   IFS=$as_save_IFS
  4594   test -z "$as_dir" && as_dir=.
  4595     for ac_exec_ext in '' $ac_executable_extensions; do
  4596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4597     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4599     break 2
  4600   fi
  4601 done
  4602   done
  4603 IFS=$as_save_IFS
  4604 
  4605 fi
  4606 fi
  4607 OBJDUMP=$ac_cv_prog_OBJDUMP
  4608 if test -n "$OBJDUMP"; then
  4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4610 $as_echo "$OBJDUMP" >&6; }
  4611 else
  4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613 $as_echo "no" >&6; }
  4614 fi
  4615 
  4616 
  4617 fi
  4618 if test -z "$ac_cv_prog_OBJDUMP"; then
  4619   ac_ct_OBJDUMP=$OBJDUMP
  4620   # Extract the first word of "objdump", so it can be a program name with args.
  4621 set dummy objdump; ac_word=$2
  4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4623 $as_echo_n "checking for $ac_word... " >&6; }
  4624 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4625   $as_echo_n "(cached) " >&6
  4626 else
  4627   if test -n "$ac_ct_OBJDUMP"; then
  4628   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4629 else
  4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4631 for as_dir in $PATH
  4632 do
  4633   IFS=$as_save_IFS
  4634   test -z "$as_dir" && as_dir=.
  4635     for ac_exec_ext in '' $ac_executable_extensions; do
  4636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4637     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4639     break 2
  4640   fi
  4641 done
  4642   done
  4643 IFS=$as_save_IFS
  4644 
  4645 fi
  4646 fi
  4647 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4648 if test -n "$ac_ct_OBJDUMP"; then
  4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4650 $as_echo "$ac_ct_OBJDUMP" >&6; }
  4651 else
  4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4653 $as_echo "no" >&6; }
  4654 fi
  4655 
  4656   if test "x$ac_ct_OBJDUMP" = x; then
  4657     OBJDUMP="false"
  4658   else
  4659     case $cross_compiling:$ac_tool_warned in
  4660 yes:)
  4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4663 ac_tool_warned=yes ;;
  4664 esac
  4665     OBJDUMP=$ac_ct_OBJDUMP
  4666   fi
  4667 else
  4668   OBJDUMP="$ac_cv_prog_OBJDUMP"
  4669 fi
  4670 
  4671 test -z "$OBJDUMP" && OBJDUMP=objdump
  4672 
  4673 
  4674 
  4675 
  4676 
  4677 
  4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4679 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4680 if ${lt_cv_deplibs_check_method+:} false; then :
  4681   $as_echo_n "(cached) " >&6
  4682 else
  4683   lt_cv_file_magic_cmd='$MAGIC_CMD'
  4684 lt_cv_file_magic_test_file=
  4685 lt_cv_deplibs_check_method='unknown'
  4686 # Need to set the preceding variable on all platforms that support
  4687 # interlibrary dependencies.
  4688 # 'none' -- dependencies not supported.
  4689 # `unknown' -- same as none, but documents that we really don't know.
  4690 # 'pass_all' -- all dependencies passed with no checks.
  4691 # 'test_compile' -- check by making test program.
  4692 # 'file_magic [[regex]]' -- check by looking for files in library path
  4693 # which responds to the $file_magic_cmd with a given extended regex.
  4694 # If you have `file' or equivalent on your system and you're not sure
  4695 # whether `pass_all' will *always* work, you probably want this one.
  4696 
  4697 case $host_os in
  4698 aix[4-9]*)
  4699   lt_cv_deplibs_check_method=pass_all
  4700   ;;
  4701 
  4702 beos*)
  4703   lt_cv_deplibs_check_method=pass_all
  4704   ;;
  4705 
  4706 bsdi[45]*)
  4707   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4708   lt_cv_file_magic_cmd='/usr/bin/file -L'
  4709   lt_cv_file_magic_test_file=/shlib/libc.so
  4710   ;;
  4711 
  4712 cygwin*)
  4713   # func_win32_libid is a shell function defined in ltmain.sh
  4714   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4715   lt_cv_file_magic_cmd='func_win32_libid'
  4716   lt_cv_deplibs_check_method=pass_all
  4717   ;;
  4718 
  4719 mingw* | pw32*)
  4720   # Base MSYS/MinGW do not provide the 'file' command needed by
  4721   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4722   # unless we find 'file', for example because we are cross-compiling.
  4723   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4724   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4725     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4726     lt_cv_file_magic_cmd='func_win32_libid'
  4727   else
  4728     # Keep this pattern in sync with the one in func_win32_libid.
  4729     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4730     lt_cv_file_magic_cmd='$OBJDUMP -f'
  4731   fi
  4732   lt_cv_deplibs_check_method=pass_all
  4733   ;;
  4734 
  4735 cegcc*)
  4736   # use the weaker test based on 'objdump'. See mingw*.
  4737   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4738   lt_cv_file_magic_cmd='$OBJDUMP -f'
  4739   ;;
  4740 
  4741 darwin* | rhapsody*)
  4742   lt_cv_deplibs_check_method=pass_all
  4743   ;;
  4744 
  4745 freebsd* | dragonfly*)
  4746   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4747     case $host_cpu in
  4748     i*86 )
  4749       # Not sure whether the presence of OpenBSD here was a mistake.
  4750       # Let's accept both of them until this is cleared up.
  4751       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4752       lt_cv_file_magic_cmd=/usr/bin/file
  4753       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4754       ;;
  4755     esac
  4756   else
  4757     lt_cv_deplibs_check_method=pass_all
  4758   fi
  4759   ;;
  4760 
  4761 gnu*)
  4762   lt_cv_deplibs_check_method=pass_all
  4763   ;;
  4764 
  4765 haiku*)
  4766   lt_cv_deplibs_check_method=pass_all
  4767   ;;
  4768 
  4769 hpux10.20* | hpux11*)
  4770   lt_cv_file_magic_cmd=/usr/bin/file
  4771   case $host_cpu in
  4772   ia64*)
  4773     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4774     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4775     ;;
  4776   hppa*64*)
  4777     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4778     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4779     ;;
  4780   *)
  4781     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4782     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4783     ;;
  4784   esac
  4785   ;;
  4786 
  4787 interix[3-9]*)
  4788   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4789   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4790   ;;
  4791 
  4792 irix5* | irix6* | nonstopux*)
  4793   case $LD in
  4794   *-32|*"-32 ") libmagic=32-bit;;
  4795   *-n32|*"-n32 ") libmagic=N32;;
  4796   *-64|*"-64 ") libmagic=64-bit;;
  4797   *) libmagic=never-match;;
  4798   esac
  4799   lt_cv_deplibs_check_method=pass_all
  4800   ;;
  4801 
  4802 # This must be glibc/ELF.
  4803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4804   lt_cv_deplibs_check_method=pass_all
  4805   ;;
  4806 
  4807 netbsd*)
  4808   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4809     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4810   else
  4811     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4812   fi
  4813   ;;
  4814 
  4815 newos6*)
  4816   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4817   lt_cv_file_magic_cmd=/usr/bin/file
  4818   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4819   ;;
  4820 
  4821 *nto* | *qnx*)
  4822   lt_cv_deplibs_check_method=pass_all
  4823   ;;
  4824 
  4825 openbsd*)
  4826   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4828   else
  4829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4830   fi
  4831   ;;
  4832 
  4833 osf3* | osf4* | osf5*)
  4834   lt_cv_deplibs_check_method=pass_all
  4835   ;;
  4836 
  4837 rdos*)
  4838   lt_cv_deplibs_check_method=pass_all
  4839   ;;
  4840 
  4841 solaris*)
  4842   lt_cv_deplibs_check_method=pass_all
  4843   ;;
  4844 
  4845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4846   lt_cv_deplibs_check_method=pass_all
  4847   ;;
  4848 
  4849 sysv4 | sysv4.3*)
  4850   case $host_vendor in
  4851   motorola)
  4852     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4853     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4854     ;;
  4855   ncr)
  4856     lt_cv_deplibs_check_method=pass_all
  4857     ;;
  4858   sequent)
  4859     lt_cv_file_magic_cmd='/bin/file'
  4860     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4861     ;;
  4862   sni)
  4863     lt_cv_file_magic_cmd='/bin/file'
  4864     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4865     lt_cv_file_magic_test_file=/lib/libc.so
  4866     ;;
  4867   siemens)
  4868     lt_cv_deplibs_check_method=pass_all
  4869     ;;
  4870   pc)
  4871     lt_cv_deplibs_check_method=pass_all
  4872     ;;
  4873   esac
  4874   ;;
  4875 
  4876 tpf*)
  4877   lt_cv_deplibs_check_method=pass_all
  4878   ;;
  4879 esac
  4880 
  4881 fi
  4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4884 
  4885 file_magic_glob=
  4886 want_nocaseglob=no
  4887 if test "$build" = "$host"; then
  4888   case $host_os in
  4889   mingw* | pw32*)
  4890     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4891       want_nocaseglob=yes
  4892     else
  4893       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4894     fi
  4895     ;;
  4896   esac
  4897 fi
  4898 
  4899 file_magic_cmd=$lt_cv_file_magic_cmd
  4900 deplibs_check_method=$lt_cv_deplibs_check_method
  4901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4902 
  4903 
  4904 
  4905 
  4906 
  4907 
  4908 
  4909 
  4910 
  4911 
  4912 
  4913 
  4914 
  4915 
  4916 
  4917 
  4918 
  4919 
  4920 
  4921 
  4922 
  4923 
  4924 if test -n "$ac_tool_prefix"; then
  4925   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4928 $as_echo_n "checking for $ac_word... " >&6; }
  4929 if ${ac_cv_prog_DLLTOOL+:} false; then :
  4930   $as_echo_n "(cached) " >&6
  4931 else
  4932   if test -n "$DLLTOOL"; then
  4933   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4934 else
  4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4936 for as_dir in $PATH
  4937 do
  4938   IFS=$as_save_IFS
  4939   test -z "$as_dir" && as_dir=.
  4940     for ac_exec_ext in '' $ac_executable_extensions; do
  4941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4942     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4944     break 2
  4945   fi
  4946 done
  4947   done
  4948 IFS=$as_save_IFS
  4949 
  4950 fi
  4951 fi
  4952 DLLTOOL=$ac_cv_prog_DLLTOOL
  4953 if test -n "$DLLTOOL"; then
  4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4955 $as_echo "$DLLTOOL" >&6; }
  4956 else
  4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4958 $as_echo "no" >&6; }
  4959 fi
  4960 
  4961 
  4962 fi
  4963 if test -z "$ac_cv_prog_DLLTOOL"; then
  4964   ac_ct_DLLTOOL=$DLLTOOL
  4965   # Extract the first word of "dlltool", so it can be a program name with args.
  4966 set dummy dlltool; ac_word=$2
  4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4968 $as_echo_n "checking for $ac_word... " >&6; }
  4969 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4970   $as_echo_n "(cached) " >&6
  4971 else
  4972   if test -n "$ac_ct_DLLTOOL"; then
  4973   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4974 else
  4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976 for as_dir in $PATH
  4977 do
  4978   IFS=$as_save_IFS
  4979   test -z "$as_dir" && as_dir=.
  4980     for ac_exec_ext in '' $ac_executable_extensions; do
  4981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4982     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984     break 2
  4985   fi
  4986 done
  4987   done
  4988 IFS=$as_save_IFS
  4989 
  4990 fi
  4991 fi
  4992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4993 if test -n "$ac_ct_DLLTOOL"; then
  4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4995 $as_echo "$ac_ct_DLLTOOL" >&6; }
  4996 else
  4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4998 $as_echo "no" >&6; }
  4999 fi
  5000 
  5001   if test "x$ac_ct_DLLTOOL" = x; then
  5002     DLLTOOL="false"
  5003   else
  5004     case $cross_compiling:$ac_tool_warned in
  5005 yes:)
  5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5008 ac_tool_warned=yes ;;
  5009 esac
  5010     DLLTOOL=$ac_ct_DLLTOOL
  5011   fi
  5012 else
  5013   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5014 fi
  5015 
  5016 test -z "$DLLTOOL" && DLLTOOL=dlltool
  5017 
  5018 
  5019 
  5020 
  5021 
  5022 
  5023 
  5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5025 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5026 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5027   $as_echo_n "(cached) " >&6
  5028 else
  5029   lt_cv_sharedlib_from_linklib_cmd='unknown'
  5030 
  5031 case $host_os in
  5032 cygwin* | mingw* | pw32* | cegcc*)
  5033   # two different shell functions defined in ltmain.sh
  5034   # decide which to use based on capabilities of $DLLTOOL
  5035   case `$DLLTOOL --help 2>&1` in
  5036   *--identify-strict*)
  5037     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5038     ;;
  5039   *)
  5040     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5041     ;;
  5042   esac
  5043   ;;
  5044 *)
  5045   # fallback: assume linklib IS sharedlib
  5046   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5047   ;;
  5048 esac
  5049 
  5050 fi
  5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5052 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5053 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5054 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5055 
  5056 
  5057 
  5058 
  5059 
  5060 
  5061 
  5062 
  5063 if test -n "$ac_tool_prefix"; then
  5064   for ac_prog in ar
  5065   do
  5066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5069 $as_echo_n "checking for $ac_word... " >&6; }
  5070 if ${ac_cv_prog_AR+:} false; then :
  5071   $as_echo_n "(cached) " >&6
  5072 else
  5073   if test -n "$AR"; then
  5074   ac_cv_prog_AR="$AR" # Let the user override the test.
  5075 else
  5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5077 for as_dir in $PATH
  5078 do
  5079   IFS=$as_save_IFS
  5080   test -z "$as_dir" && as_dir=.
  5081     for ac_exec_ext in '' $ac_executable_extensions; do
  5082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5083     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5085     break 2
  5086   fi
  5087 done
  5088   done
  5089 IFS=$as_save_IFS
  5090 
  5091 fi
  5092 fi
  5093 AR=$ac_cv_prog_AR
  5094 if test -n "$AR"; then
  5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5096 $as_echo "$AR" >&6; }
  5097 else
  5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5099 $as_echo "no" >&6; }
  5100 fi
  5101 
  5102 
  5103     test -n "$AR" && break
  5104   done
  5105 fi
  5106 if test -z "$AR"; then
  5107   ac_ct_AR=$AR
  5108   for ac_prog in ar
  5109 do
  5110   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5111 set dummy $ac_prog; ac_word=$2
  5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5113 $as_echo_n "checking for $ac_word... " >&6; }
  5114 if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5115   $as_echo_n "(cached) " >&6
  5116 else
  5117   if test -n "$ac_ct_AR"; then
  5118   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5119 else
  5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5121 for as_dir in $PATH
  5122 do
  5123   IFS=$as_save_IFS
  5124   test -z "$as_dir" && as_dir=.
  5125     for ac_exec_ext in '' $ac_executable_extensions; do
  5126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5127     ac_cv_prog_ac_ct_AR="$ac_prog"
  5128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5129     break 2
  5130   fi
  5131 done
  5132   done
  5133 IFS=$as_save_IFS
  5134 
  5135 fi
  5136 fi
  5137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5138 if test -n "$ac_ct_AR"; then
  5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5140 $as_echo "$ac_ct_AR" >&6; }
  5141 else
  5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5143 $as_echo "no" >&6; }
  5144 fi
  5145 
  5146 
  5147   test -n "$ac_ct_AR" && break
  5148 done
  5149 
  5150   if test "x$ac_ct_AR" = x; then
  5151     AR="false"
  5152   else
  5153     case $cross_compiling:$ac_tool_warned in
  5154 yes:)
  5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5157 ac_tool_warned=yes ;;
  5158 esac
  5159     AR=$ac_ct_AR
  5160   fi
  5161 fi
  5162 
  5163 : ${AR=ar}
  5164 : ${AR_FLAGS=cru}
  5165 
  5166 
  5167 
  5168 
  5169 
  5170 
  5171 
  5172 
  5173 
  5174 
  5175 
  5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5177 $as_echo_n "checking for archiver @FILE support... " >&6; }
  5178 if ${lt_cv_ar_at_file+:} false; then :
  5179   $as_echo_n "(cached) " >&6
  5180 else
  5181   lt_cv_ar_at_file=no
  5182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5183 /* end confdefs.h.  */
  5184 
  5185 int
  5186 main ()
  5187 {
  5188 
  5189   ;
  5190   return 0;
  5191 }
  5192 _ACEOF
  5193 if ac_fn_c_try_compile "$LINENO"; then :
  5194   echo conftest.$ac_objext > conftest.lst
  5195       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5196       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5197   (eval $lt_ar_try) 2>&5
  5198   ac_status=$?
  5199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5200   test $ac_status = 0; }
  5201       if test "$ac_status" -eq 0; then
  5202 	# Ensure the archiver fails upon bogus file names.
  5203 	rm -f conftest.$ac_objext libconftest.a
  5204 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5205   (eval $lt_ar_try) 2>&5
  5206   ac_status=$?
  5207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5208   test $ac_status = 0; }
  5209 	if test "$ac_status" -ne 0; then
  5210           lt_cv_ar_at_file=@
  5211         fi
  5212       fi
  5213       rm -f conftest.* libconftest.a
  5214 
  5215 fi
  5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5217 
  5218 fi
  5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5220 $as_echo "$lt_cv_ar_at_file" >&6; }
  5221 
  5222 if test "x$lt_cv_ar_at_file" = xno; then
  5223   archiver_list_spec=
  5224 else
  5225   archiver_list_spec=$lt_cv_ar_at_file
  5226 fi
  5227 
  5228 
  5229 
  5230 
  5231 
  5232 
  5233 
  5234 if test -n "$ac_tool_prefix"; then
  5235   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5236 set dummy ${ac_tool_prefix}strip; ac_word=$2
  5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5238 $as_echo_n "checking for $ac_word... " >&6; }
  5239 if ${ac_cv_prog_STRIP+:} false; then :
  5240   $as_echo_n "(cached) " >&6
  5241 else
  5242   if test -n "$STRIP"; then
  5243   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5244 else
  5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5246 for as_dir in $PATH
  5247 do
  5248   IFS=$as_save_IFS
  5249   test -z "$as_dir" && as_dir=.
  5250     for ac_exec_ext in '' $ac_executable_extensions; do
  5251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5252     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5254     break 2
  5255   fi
  5256 done
  5257   done
  5258 IFS=$as_save_IFS
  5259 
  5260 fi
  5261 fi
  5262 STRIP=$ac_cv_prog_STRIP
  5263 if test -n "$STRIP"; then
  5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5265 $as_echo "$STRIP" >&6; }
  5266 else
  5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5268 $as_echo "no" >&6; }
  5269 fi
  5270 
  5271 
  5272 fi
  5273 if test -z "$ac_cv_prog_STRIP"; then
  5274   ac_ct_STRIP=$STRIP
  5275   # Extract the first word of "strip", so it can be a program name with args.
  5276 set dummy strip; ac_word=$2
  5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5278 $as_echo_n "checking for $ac_word... " >&6; }
  5279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5280   $as_echo_n "(cached) " >&6
  5281 else
  5282   if test -n "$ac_ct_STRIP"; then
  5283   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5284 else
  5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5286 for as_dir in $PATH
  5287 do
  5288   IFS=$as_save_IFS
  5289   test -z "$as_dir" && as_dir=.
  5290     for ac_exec_ext in '' $ac_executable_extensions; do
  5291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5292     ac_cv_prog_ac_ct_STRIP="strip"
  5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5294     break 2
  5295   fi
  5296 done
  5297   done
  5298 IFS=$as_save_IFS
  5299 
  5300 fi
  5301 fi
  5302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5303 if test -n "$ac_ct_STRIP"; then
  5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5305 $as_echo "$ac_ct_STRIP" >&6; }
  5306 else
  5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5308 $as_echo "no" >&6; }
  5309 fi
  5310 
  5311   if test "x$ac_ct_STRIP" = x; then
  5312     STRIP=":"
  5313   else
  5314     case $cross_compiling:$ac_tool_warned in
  5315 yes:)
  5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5318 ac_tool_warned=yes ;;
  5319 esac
  5320     STRIP=$ac_ct_STRIP
  5321   fi
  5322 else
  5323   STRIP="$ac_cv_prog_STRIP"
  5324 fi
  5325 
  5326 test -z "$STRIP" && STRIP=:
  5327 
  5328 
  5329 
  5330 
  5331 
  5332 
  5333 if test -n "$ac_tool_prefix"; then
  5334   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5337 $as_echo_n "checking for $ac_word... " >&6; }
  5338 if ${ac_cv_prog_RANLIB+:} false; then :
  5339   $as_echo_n "(cached) " >&6
  5340 else
  5341   if test -n "$RANLIB"; then
  5342   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5343 else
  5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345 for as_dir in $PATH
  5346 do
  5347   IFS=$as_save_IFS
  5348   test -z "$as_dir" && as_dir=.
  5349     for ac_exec_ext in '' $ac_executable_extensions; do
  5350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5351     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5353     break 2
  5354   fi
  5355 done
  5356   done
  5357 IFS=$as_save_IFS
  5358 
  5359 fi
  5360 fi
  5361 RANLIB=$ac_cv_prog_RANLIB
  5362 if test -n "$RANLIB"; then
  5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5364 $as_echo "$RANLIB" >&6; }
  5365 else
  5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5367 $as_echo "no" >&6; }
  5368 fi
  5369 
  5370 
  5371 fi
  5372 if test -z "$ac_cv_prog_RANLIB"; then
  5373   ac_ct_RANLIB=$RANLIB
  5374   # Extract the first word of "ranlib", so it can be a program name with args.
  5375 set dummy ranlib; ac_word=$2
  5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5377 $as_echo_n "checking for $ac_word... " >&6; }
  5378 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5379   $as_echo_n "(cached) " >&6
  5380 else
  5381   if test -n "$ac_ct_RANLIB"; then
  5382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5383 else
  5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5385 for as_dir in $PATH
  5386 do
  5387   IFS=$as_save_IFS
  5388   test -z "$as_dir" && as_dir=.
  5389     for ac_exec_ext in '' $ac_executable_extensions; do
  5390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5391     ac_cv_prog_ac_ct_RANLIB="ranlib"
  5392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5393     break 2
  5394   fi
  5395 done
  5396   done
  5397 IFS=$as_save_IFS
  5398 
  5399 fi
  5400 fi
  5401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5402 if test -n "$ac_ct_RANLIB"; then
  5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5404 $as_echo "$ac_ct_RANLIB" >&6; }
  5405 else
  5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5407 $as_echo "no" >&6; }
  5408 fi
  5409 
  5410   if test "x$ac_ct_RANLIB" = x; then
  5411     RANLIB=":"
  5412   else
  5413     case $cross_compiling:$ac_tool_warned in
  5414 yes:)
  5415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5417 ac_tool_warned=yes ;;
  5418 esac
  5419     RANLIB=$ac_ct_RANLIB
  5420   fi
  5421 else
  5422   RANLIB="$ac_cv_prog_RANLIB"
  5423 fi
  5424 
  5425 test -z "$RANLIB" && RANLIB=:
  5426 
  5427 
  5428 
  5429 
  5430 
  5431 
  5432 # Determine commands to create old-style static archives.
  5433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5434 old_postinstall_cmds='chmod 644 $oldlib'
  5435 old_postuninstall_cmds=
  5436 
  5437 if test -n "$RANLIB"; then
  5438   case $host_os in
  5439   openbsd*)
  5440     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5441     ;;
  5442   *)
  5443     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5444     ;;
  5445   esac
  5446   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5447 fi
  5448 
  5449 case $host_os in
  5450   darwin*)
  5451     lock_old_archive_extraction=yes ;;
  5452   *)
  5453     lock_old_archive_extraction=no ;;
  5454 esac
  5455 
  5456 
  5457 
  5458 
  5459 
  5460 
  5461 
  5462 
  5463 
  5464 
  5465 
  5466 
  5467 
  5468 
  5469 
  5470 
  5471 
  5472 
  5473 
  5474 
  5475 
  5476 for ac_prog in gawk mawk nawk awk
  5477 do
  5478   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5479 set dummy $ac_prog; ac_word=$2
  5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5481 $as_echo_n "checking for $ac_word... " >&6; }
  5482 if ${ac_cv_prog_AWK+:} false; then :
  5483   $as_echo_n "(cached) " >&6
  5484 else
  5485   if test -n "$AWK"; then
  5486   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5487 else
  5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5489 for as_dir in $PATH
  5490 do
  5491   IFS=$as_save_IFS
  5492   test -z "$as_dir" && as_dir=.
  5493     for ac_exec_ext in '' $ac_executable_extensions; do
  5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5495     ac_cv_prog_AWK="$ac_prog"
  5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5497     break 2
  5498   fi
  5499 done
  5500   done
  5501 IFS=$as_save_IFS
  5502 
  5503 fi
  5504 fi
  5505 AWK=$ac_cv_prog_AWK
  5506 if test -n "$AWK"; then
  5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5508 $as_echo "$AWK" >&6; }
  5509 else
  5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511 $as_echo "no" >&6; }
  5512 fi
  5513 
  5514 
  5515   test -n "$AWK" && break
  5516 done
  5517 
  5518 
  5519 
  5520 
  5521 
  5522 
  5523 
  5524 
  5525 
  5526 
  5527 
  5528 
  5529 
  5530 
  5531 
  5532 
  5533 
  5534 
  5535 
  5536 # If no C compiler was specified, use CC.
  5537 LTCC=${LTCC-"$CC"}
  5538 
  5539 # If no C compiler flags were specified, use CFLAGS.
  5540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5541 
  5542 # Allow CC to be a program name with arguments.
  5543 compiler=$CC
  5544 
  5545 
  5546 # Check for command to grab the raw symbol name followed by C symbol from nm.
  5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5550   $as_echo_n "(cached) " >&6
  5551 else
  5552 
  5553 # These are sane defaults that work on at least a few old systems.
  5554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  5555 
  5556 # Character class describing NM global symbol codes.
  5557 symcode='[BCDEGRST]'
  5558 
  5559 # Regexp to match symbols that can be accessed directly from C.
  5560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5561 
  5562 # Define system-specific variables.
  5563 case $host_os in
  5564 aix*)
  5565   symcode='[BCDT]'
  5566   ;;
  5567 cygwin* | mingw* | pw32* | cegcc*)
  5568   symcode='[ABCDGISTW]'
  5569   ;;
  5570 hpux*)
  5571   if test "$host_cpu" = ia64; then
  5572     symcode='[ABCDEGRST]'
  5573   fi
  5574   ;;
  5575 irix* | nonstopux*)
  5576   symcode='[BCDEGRST]'
  5577   ;;
  5578 osf*)
  5579   symcode='[BCDEGQRST]'
  5580   ;;
  5581 solaris*)
  5582   symcode='[BDRT]'
  5583   ;;
  5584 sco3.2v5*)
  5585   symcode='[DT]'
  5586   ;;
  5587 sysv4.2uw2*)
  5588   symcode='[DT]'
  5589   ;;
  5590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5591   symcode='[ABDT]'
  5592   ;;
  5593 sysv4)
  5594   symcode='[DFNSTU]'
  5595   ;;
  5596 esac
  5597 
  5598 # If we're using GNU nm, then use its standard symbol codes.
  5599 case `$NM -V 2>&1` in
  5600 *GNU* | *'with BFD'*)
  5601   symcode='[ABCDGIRSTW]' ;;
  5602 esac
  5603 
  5604 # Transform an extracted symbol line into a proper C declaration.
  5605 # Some systems (esp. on ia64) link data and code symbols differently,
  5606 # so use this general approach.
  5607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5608 
  5609 # Transform an extracted symbol line into symbol name and symbol address
  5610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  5611 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  5612 
  5613 # Handle CRLF in mingw tool chain
  5614 opt_cr=
  5615 case $build_os in
  5616 mingw*)
  5617   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5618   ;;
  5619 esac
  5620 
  5621 # Try without a prefix underscore, then with it.
  5622 for ac_symprfx in "" "_"; do
  5623 
  5624   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5625   symxfrm="\\1 $ac_symprfx\\2 \\2"
  5626 
  5627   # Write the raw and C identifiers.
  5628   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5629     # Fake it for dumpbin and say T for any non-static function
  5630     # and D for any global variable.
  5631     # Also find C++ and __fastcall symbols from MSVC++,
  5632     # which start with @ or ?.
  5633     lt_cv_sys_global_symbol_pipe="$AWK '"\
  5634 "     {last_section=section; section=\$ 3};"\
  5635 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5636 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5637 "     \$ 0!~/External *\|/{next};"\
  5638 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5639 "     {if(hide[section]) next};"\
  5640 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5641 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5642 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5643 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5644 "     ' prfx=^$ac_symprfx"
  5645   else
  5646     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5647   fi
  5648   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5649 
  5650   # Check to see that the pipe works correctly.
  5651   pipe_works=no
  5652 
  5653   rm -f conftest*
  5654   cat > conftest.$ac_ext <<_LT_EOF
  5655 #ifdef __cplusplus
  5656 extern "C" {
  5657 #endif
  5658 char nm_test_var;
  5659 void nm_test_func(void);
  5660 void nm_test_func(void){}
  5661 #ifdef __cplusplus
  5662 }
  5663 #endif
  5664 int main(){nm_test_var='a';nm_test_func();return(0);}
  5665 _LT_EOF
  5666 
  5667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5668   (eval $ac_compile) 2>&5
  5669   ac_status=$?
  5670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5671   test $ac_status = 0; }; then
  5672     # Now try to grab the symbols.
  5673     nlist=conftest.nm
  5674     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5675   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5676   ac_status=$?
  5677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5678   test $ac_status = 0; } && test -s "$nlist"; then
  5679       # Try sorting and uniquifying the output.
  5680       if sort "$nlist" | uniq > "$nlist"T; then
  5681 	mv -f "$nlist"T "$nlist"
  5682       else
  5683 	rm -f "$nlist"T
  5684       fi
  5685 
  5686       # Make sure that we snagged all the symbols we need.
  5687       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5688 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5689 	  cat <<_LT_EOF > conftest.$ac_ext
  5690 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  5691 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5692 /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5693    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  5694 # define LT_DLSYM_CONST
  5695 #elif defined(__osf__)
  5696 /* This system does not cope well with relocations in const data.  */
  5697 # define LT_DLSYM_CONST
  5698 #else
  5699 # define LT_DLSYM_CONST const
  5700 #endif
  5701 
  5702 #ifdef __cplusplus
  5703 extern "C" {
  5704 #endif
  5705 
  5706 _LT_EOF
  5707 	  # Now generate the symbol file.
  5708 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5709 
  5710 	  cat <<_LT_EOF >> conftest.$ac_ext
  5711 
  5712 /* The mapping between symbol names and symbols.  */
  5713 LT_DLSYM_CONST struct {
  5714   const char *name;
  5715   void       *address;
  5716 }
  5717 lt__PROGRAM__LTX_preloaded_symbols[] =
  5718 {
  5719   { "@PROGRAM@", (void *) 0 },
  5720 _LT_EOF
  5721 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5722 	  cat <<\_LT_EOF >> conftest.$ac_ext
  5723   {0, (void *) 0}
  5724 };
  5725 
  5726 /* This works around a problem in FreeBSD linker */
  5727 #ifdef FREEBSD_WORKAROUND
  5728 static const void *lt_preloaded_setup() {
  5729   return lt__PROGRAM__LTX_preloaded_symbols;
  5730 }
  5731 #endif
  5732 
  5733 #ifdef __cplusplus
  5734 }
  5735 #endif
  5736 _LT_EOF
  5737 	  # Now try linking the two files.
  5738 	  mv conftest.$ac_objext conftstm.$ac_objext
  5739 	  lt_globsym_save_LIBS=$LIBS
  5740 	  lt_globsym_save_CFLAGS=$CFLAGS
  5741 	  LIBS="conftstm.$ac_objext"
  5742 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5743 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5744   (eval $ac_link) 2>&5
  5745   ac_status=$?
  5746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5747   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5748 	    pipe_works=yes
  5749 	  fi
  5750 	  LIBS=$lt_globsym_save_LIBS
  5751 	  CFLAGS=$lt_globsym_save_CFLAGS
  5752 	else
  5753 	  echo "cannot find nm_test_func in $nlist" >&5
  5754 	fi
  5755       else
  5756 	echo "cannot find nm_test_var in $nlist" >&5
  5757       fi
  5758     else
  5759       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5760     fi
  5761   else
  5762     echo "$progname: failed program was:" >&5
  5763     cat conftest.$ac_ext >&5
  5764   fi
  5765   rm -rf conftest* conftst*
  5766 
  5767   # Do not use the global_symbol_pipe unless it works.
  5768   if test "$pipe_works" = yes; then
  5769     break
  5770   else
  5771     lt_cv_sys_global_symbol_pipe=
  5772   fi
  5773 done
  5774 
  5775 fi
  5776 
  5777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5778   lt_cv_sys_global_symbol_to_cdecl=
  5779 fi
  5780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5782 $as_echo "failed" >&6; }
  5783 else
  5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5785 $as_echo "ok" >&6; }
  5786 fi
  5787 
  5788 # Response file support.
  5789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5790   nm_file_list_spec='@'
  5791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5792   nm_file_list_spec='@'
  5793 fi
  5794 
  5795 
  5796 
  5797 
  5798 
  5799 
  5800 
  5801 
  5802 
  5803 
  5804 
  5805 
  5806 
  5807 
  5808 
  5809 
  5810 
  5811 
  5812 
  5813 
  5814 
  5815 
  5816 
  5817 
  5818 
  5819 
  5820 
  5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5822 $as_echo_n "checking for sysroot... " >&6; }
  5823 
  5824 # Check whether --with-sysroot was given.
  5825 if test "${with_sysroot+set}" = set; then :
  5826   withval=$with_sysroot;
  5827 else
  5828   with_sysroot=no
  5829 fi
  5830 
  5831 
  5832 lt_sysroot=
  5833 case ${with_sysroot} in #(
  5834  yes)
  5835    if test "$GCC" = yes; then
  5836      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5837    fi
  5838    ;; #(
  5839  /*)
  5840    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5841    ;; #(
  5842  no|'')
  5843    ;; #(
  5844  *)
  5845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5846 $as_echo "${with_sysroot}" >&6; }
  5847    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5848    ;;
  5849 esac
  5850 
  5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5852 $as_echo "${lt_sysroot:-no}" >&6; }
  5853 
  5854 
  5855 
  5856 
  5857 
  5858 # Check whether --enable-libtool-lock was given.
  5859 if test "${enable_libtool_lock+set}" = set; then :
  5860   enableval=$enable_libtool_lock;
  5861 fi
  5862 
  5863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5864 
  5865 # Some flags need to be propagated to the compiler or linker for good
  5866 # libtool support.
  5867 case $host in
  5868 ia64-*-hpux*)
  5869   # Find out which ABI we are using.
  5870   echo 'int i;' > conftest.$ac_ext
  5871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5872   (eval $ac_compile) 2>&5
  5873   ac_status=$?
  5874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5875   test $ac_status = 0; }; then
  5876     case `/usr/bin/file conftest.$ac_objext` in
  5877       *ELF-32*)
  5878 	HPUX_IA64_MODE="32"
  5879 	;;
  5880       *ELF-64*)
  5881 	HPUX_IA64_MODE="64"
  5882 	;;
  5883     esac
  5884   fi
  5885   rm -rf conftest*
  5886   ;;
  5887 *-*-irix6*)
  5888   # Find out which ABI we are using.
  5889   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5891   (eval $ac_compile) 2>&5
  5892   ac_status=$?
  5893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5894   test $ac_status = 0; }; then
  5895     if test "$lt_cv_prog_gnu_ld" = yes; then
  5896       case `/usr/bin/file conftest.$ac_objext` in
  5897 	*32-bit*)
  5898 	  LD="${LD-ld} -melf32bsmip"
  5899 	  ;;
  5900 	*N32*)
  5901 	  LD="${LD-ld} -melf32bmipn32"
  5902 	  ;;
  5903 	*64-bit*)
  5904 	  LD="${LD-ld} -melf64bmip"
  5905 	;;
  5906       esac
  5907     else
  5908       case `/usr/bin/file conftest.$ac_objext` in
  5909 	*32-bit*)
  5910 	  LD="${LD-ld} -32"
  5911 	  ;;
  5912 	*N32*)
  5913 	  LD="${LD-ld} -n32"
  5914 	  ;;
  5915 	*64-bit*)
  5916 	  LD="${LD-ld} -64"
  5917 	  ;;
  5918       esac
  5919     fi
  5920   fi
  5921   rm -rf conftest*
  5922   ;;
  5923 
  5924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5926   # Find out which ABI we are using.
  5927   echo 'int i;' > conftest.$ac_ext
  5928   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5929   (eval $ac_compile) 2>&5
  5930   ac_status=$?
  5931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5932   test $ac_status = 0; }; then
  5933     case `/usr/bin/file conftest.o` in
  5934       *32-bit*)
  5935 	case $host in
  5936 	  x86_64-*kfreebsd*-gnu)
  5937 	    LD="${LD-ld} -m elf_i386_fbsd"
  5938 	    ;;
  5939 	  x86_64-*linux*)
  5940 	    LD="${LD-ld} -m elf_i386"
  5941 	    ;;
  5942 	  ppc64-*linux*|powerpc64-*linux*)
  5943 	    LD="${LD-ld} -m elf32ppclinux"
  5944 	    ;;
  5945 	  s390x-*linux*)
  5946 	    LD="${LD-ld} -m elf_s390"
  5947 	    ;;
  5948 	  sparc64-*linux*)
  5949 	    LD="${LD-ld} -m elf32_sparc"
  5950 	    ;;
  5951 	esac
  5952 	;;
  5953       *64-bit*)
  5954 	case $host in
  5955 	  x86_64-*kfreebsd*-gnu)
  5956 	    LD="${LD-ld} -m elf_x86_64_fbsd"
  5957 	    ;;
  5958 	  x86_64-*linux*)
  5959 	    LD="${LD-ld} -m elf_x86_64"
  5960 	    ;;
  5961 	  ppc*-*linux*|powerpc*-*linux*)
  5962 	    LD="${LD-ld} -m elf64ppc"
  5963 	    ;;
  5964 	  s390*-*linux*|s390*-*tpf*)
  5965 	    LD="${LD-ld} -m elf64_s390"
  5966 	    ;;
  5967 	  sparc*-*linux*)
  5968 	    LD="${LD-ld} -m elf64_sparc"
  5969 	    ;;
  5970 	esac
  5971 	;;
  5972     esac
  5973   fi
  5974   rm -rf conftest*
  5975   ;;
  5976 
  5977 *-*-sco3.2v5*)
  5978   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5979   SAVE_CFLAGS="$CFLAGS"
  5980   CFLAGS="$CFLAGS -belf"
  5981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5982 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5983 if ${lt_cv_cc_needs_belf+:} false; then :
  5984   $as_echo_n "(cached) " >&6
  5985 else
  5986   ac_ext=c
  5987 ac_cpp='$CPP $CPPFLAGS'
  5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5991 
  5992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5993 /* end confdefs.h.  */
  5994 
  5995 int
  5996 main ()
  5997 {
  5998 
  5999   ;
  6000   return 0;
  6001 }
  6002 _ACEOF
  6003 if ac_fn_c_try_link "$LINENO"; then :
  6004   lt_cv_cc_needs_belf=yes
  6005 else
  6006   lt_cv_cc_needs_belf=no
  6007 fi
  6008 rm -f core conftest.err conftest.$ac_objext \
  6009     conftest$ac_exeext conftest.$ac_ext
  6010      ac_ext=c
  6011 ac_cpp='$CPP $CPPFLAGS'
  6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6015 
  6016 fi
  6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6018 $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6019   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6020     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6021     CFLAGS="$SAVE_CFLAGS"
  6022   fi
  6023   ;;
  6024 *-*solaris*)
  6025   # Find out which ABI we are using.
  6026   echo 'int i;' > conftest.$ac_ext
  6027   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6028   (eval $ac_compile) 2>&5
  6029   ac_status=$?
  6030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031   test $ac_status = 0; }; then
  6032     case `/usr/bin/file conftest.o` in
  6033     *64-bit*)
  6034       case $lt_cv_prog_gnu_ld in
  6035       yes*)
  6036         case $host in
  6037         i?86-*-solaris*)
  6038           LD="${LD-ld} -m elf_x86_64"
  6039           ;;
  6040         sparc*-*-solaris*)
  6041           LD="${LD-ld} -m elf64_sparc"
  6042           ;;
  6043         esac
  6044         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  6045         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6046           LD="${LD-ld}_sol2"
  6047         fi
  6048         ;;
  6049       *)
  6050 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6051 	  LD="${LD-ld} -64"
  6052 	fi
  6053 	;;
  6054       esac
  6055       ;;
  6056     esac
  6057   fi
  6058   rm -rf conftest*
  6059   ;;
  6060 esac
  6061 
  6062 need_locks="$enable_libtool_lock"
  6063 
  6064 if test -n "$ac_tool_prefix"; then
  6065   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6066 set dummy ${ac_tool_prefix}mt; ac_word=$2
  6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6068 $as_echo_n "checking for $ac_word... " >&6; }
  6069 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6070   $as_echo_n "(cached) " >&6
  6071 else
  6072   if test -n "$MANIFEST_TOOL"; then
  6073   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6074 else
  6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6076 for as_dir in $PATH
  6077 do
  6078   IFS=$as_save_IFS
  6079   test -z "$as_dir" && as_dir=.
  6080     for ac_exec_ext in '' $ac_executable_extensions; do
  6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6082     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6084     break 2
  6085   fi
  6086 done
  6087   done
  6088 IFS=$as_save_IFS
  6089 
  6090 fi
  6091 fi
  6092 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6093 if test -n "$MANIFEST_TOOL"; then
  6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6095 $as_echo "$MANIFEST_TOOL" >&6; }
  6096 else
  6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098 $as_echo "no" >&6; }
  6099 fi
  6100 
  6101 
  6102 fi
  6103 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6104   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6105   # Extract the first word of "mt", so it can be a program name with args.
  6106 set dummy mt; ac_word=$2
  6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6108 $as_echo_n "checking for $ac_word... " >&6; }
  6109 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6110   $as_echo_n "(cached) " >&6
  6111 else
  6112   if test -n "$ac_ct_MANIFEST_TOOL"; then
  6113   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6114 else
  6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6116 for as_dir in $PATH
  6117 do
  6118   IFS=$as_save_IFS
  6119   test -z "$as_dir" && as_dir=.
  6120     for ac_exec_ext in '' $ac_executable_extensions; do
  6121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6122     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6124     break 2
  6125   fi
  6126 done
  6127   done
  6128 IFS=$as_save_IFS
  6129 
  6130 fi
  6131 fi
  6132 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6133 if test -n "$ac_ct_MANIFEST_TOOL"; then
  6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6135 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6136 else
  6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6138 $as_echo "no" >&6; }
  6139 fi
  6140 
  6141   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6142     MANIFEST_TOOL=":"
  6143   else
  6144     case $cross_compiling:$ac_tool_warned in
  6145 yes:)
  6146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6148 ac_tool_warned=yes ;;
  6149 esac
  6150     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6151   fi
  6152 else
  6153   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6154 fi
  6155 
  6156 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6158 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6159 if ${lt_cv_path_mainfest_tool+:} false; then :
  6160   $as_echo_n "(cached) " >&6
  6161 else
  6162   lt_cv_path_mainfest_tool=no
  6163   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6164   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6165   cat conftest.err >&5
  6166   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6167     lt_cv_path_mainfest_tool=yes
  6168   fi
  6169   rm -f conftest*
  6170 fi
  6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6172 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6173 if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6174   MANIFEST_TOOL=:
  6175 fi
  6176 
  6177 
  6178 
  6179 
  6180 
  6181 
  6182   case $host_os in
  6183     rhapsody* | darwin*)
  6184     if test -n "$ac_tool_prefix"; then
  6185   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6186 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6188 $as_echo_n "checking for $ac_word... " >&6; }
  6189 if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6190   $as_echo_n "(cached) " >&6
  6191 else
  6192   if test -n "$DSYMUTIL"; then
  6193   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6194 else
  6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6196 for as_dir in $PATH
  6197 do
  6198   IFS=$as_save_IFS
  6199   test -z "$as_dir" && as_dir=.
  6200     for ac_exec_ext in '' $ac_executable_extensions; do
  6201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6202     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6204     break 2
  6205   fi
  6206 done
  6207   done
  6208 IFS=$as_save_IFS
  6209 
  6210 fi
  6211 fi
  6212 DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6213 if test -n "$DSYMUTIL"; then
  6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6215 $as_echo "$DSYMUTIL" >&6; }
  6216 else
  6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218 $as_echo "no" >&6; }
  6219 fi
  6220 
  6221 
  6222 fi
  6223 if test -z "$ac_cv_prog_DSYMUTIL"; then
  6224   ac_ct_DSYMUTIL=$DSYMUTIL
  6225   # Extract the first word of "dsymutil", so it can be a program name with args.
  6226 set dummy dsymutil; ac_word=$2
  6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6228 $as_echo_n "checking for $ac_word... " >&6; }
  6229 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6230   $as_echo_n "(cached) " >&6
  6231 else
  6232   if test -n "$ac_ct_DSYMUTIL"; then
  6233   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6234 else
  6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236 for as_dir in $PATH
  6237 do
  6238   IFS=$as_save_IFS
  6239   test -z "$as_dir" && as_dir=.
  6240     for ac_exec_ext in '' $ac_executable_extensions; do
  6241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6242     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244     break 2
  6245   fi
  6246 done
  6247   done
  6248 IFS=$as_save_IFS
  6249 
  6250 fi
  6251 fi
  6252 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6253 if test -n "$ac_ct_DSYMUTIL"; then
  6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6255 $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6256 else
  6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6258 $as_echo "no" >&6; }
  6259 fi
  6260 
  6261   if test "x$ac_ct_DSYMUTIL" = x; then
  6262     DSYMUTIL=":"
  6263   else
  6264     case $cross_compiling:$ac_tool_warned in
  6265 yes:)
  6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6268 ac_tool_warned=yes ;;
  6269 esac
  6270     DSYMUTIL=$ac_ct_DSYMUTIL
  6271   fi
  6272 else
  6273   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6274 fi
  6275 
  6276     if test -n "$ac_tool_prefix"; then
  6277   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6278 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6280 $as_echo_n "checking for $ac_word... " >&6; }
  6281 if ${ac_cv_prog_NMEDIT+:} false; then :
  6282   $as_echo_n "(cached) " >&6
  6283 else
  6284   if test -n "$NMEDIT"; then
  6285   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6286 else
  6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6288 for as_dir in $PATH
  6289 do
  6290   IFS=$as_save_IFS
  6291   test -z "$as_dir" && as_dir=.
  6292     for ac_exec_ext in '' $ac_executable_extensions; do
  6293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6294     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6296     break 2
  6297   fi
  6298 done
  6299   done
  6300 IFS=$as_save_IFS
  6301 
  6302 fi
  6303 fi
  6304 NMEDIT=$ac_cv_prog_NMEDIT
  6305 if test -n "$NMEDIT"; then
  6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6307 $as_echo "$NMEDIT" >&6; }
  6308 else
  6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310 $as_echo "no" >&6; }
  6311 fi
  6312 
  6313 
  6314 fi
  6315 if test -z "$ac_cv_prog_NMEDIT"; then
  6316   ac_ct_NMEDIT=$NMEDIT
  6317   # Extract the first word of "nmedit", so it can be a program name with args.
  6318 set dummy nmedit; ac_word=$2
  6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6320 $as_echo_n "checking for $ac_word... " >&6; }
  6321 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6322   $as_echo_n "(cached) " >&6
  6323 else
  6324   if test -n "$ac_ct_NMEDIT"; then
  6325   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6326 else
  6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6328 for as_dir in $PATH
  6329 do
  6330   IFS=$as_save_IFS
  6331   test -z "$as_dir" && as_dir=.
  6332     for ac_exec_ext in '' $ac_executable_extensions; do
  6333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6334     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6336     break 2
  6337   fi
  6338 done
  6339   done
  6340 IFS=$as_save_IFS
  6341 
  6342 fi
  6343 fi
  6344 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6345 if test -n "$ac_ct_NMEDIT"; then
  6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6347 $as_echo "$ac_ct_NMEDIT" >&6; }
  6348 else
  6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350 $as_echo "no" >&6; }
  6351 fi
  6352 
  6353   if test "x$ac_ct_NMEDIT" = x; then
  6354     NMEDIT=":"
  6355   else
  6356     case $cross_compiling:$ac_tool_warned in
  6357 yes:)
  6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6360 ac_tool_warned=yes ;;
  6361 esac
  6362     NMEDIT=$ac_ct_NMEDIT
  6363   fi
  6364 else
  6365   NMEDIT="$ac_cv_prog_NMEDIT"
  6366 fi
  6367 
  6368     if test -n "$ac_tool_prefix"; then
  6369   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6370 set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6372 $as_echo_n "checking for $ac_word... " >&6; }
  6373 if ${ac_cv_prog_LIPO+:} false; then :
  6374   $as_echo_n "(cached) " >&6
  6375 else
  6376   if test -n "$LIPO"; then
  6377   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6378 else
  6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6380 for as_dir in $PATH
  6381 do
  6382   IFS=$as_save_IFS
  6383   test -z "$as_dir" && as_dir=.
  6384     for ac_exec_ext in '' $ac_executable_extensions; do
  6385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6386     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6388     break 2
  6389   fi
  6390 done
  6391   done
  6392 IFS=$as_save_IFS
  6393 
  6394 fi
  6395 fi
  6396 LIPO=$ac_cv_prog_LIPO
  6397 if test -n "$LIPO"; then
  6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6399 $as_echo "$LIPO" >&6; }
  6400 else
  6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402 $as_echo "no" >&6; }
  6403 fi
  6404 
  6405 
  6406 fi
  6407 if test -z "$ac_cv_prog_LIPO"; then
  6408   ac_ct_LIPO=$LIPO
  6409   # Extract the first word of "lipo", so it can be a program name with args.
  6410 set dummy lipo; ac_word=$2
  6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6412 $as_echo_n "checking for $ac_word... " >&6; }
  6413 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6414   $as_echo_n "(cached) " >&6
  6415 else
  6416   if test -n "$ac_ct_LIPO"; then
  6417   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6418 else
  6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420 for as_dir in $PATH
  6421 do
  6422   IFS=$as_save_IFS
  6423   test -z "$as_dir" && as_dir=.
  6424     for ac_exec_ext in '' $ac_executable_extensions; do
  6425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6426     ac_cv_prog_ac_ct_LIPO="lipo"
  6427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6428     break 2
  6429   fi
  6430 done
  6431   done
  6432 IFS=$as_save_IFS
  6433 
  6434 fi
  6435 fi
  6436 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6437 if test -n "$ac_ct_LIPO"; then
  6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6439 $as_echo "$ac_ct_LIPO" >&6; }
  6440 else
  6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6442 $as_echo "no" >&6; }
  6443 fi
  6444 
  6445   if test "x$ac_ct_LIPO" = x; then
  6446     LIPO=":"
  6447   else
  6448     case $cross_compiling:$ac_tool_warned in
  6449 yes:)
  6450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6452 ac_tool_warned=yes ;;
  6453 esac
  6454     LIPO=$ac_ct_LIPO
  6455   fi
  6456 else
  6457   LIPO="$ac_cv_prog_LIPO"
  6458 fi
  6459 
  6460     if test -n "$ac_tool_prefix"; then
  6461   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6462 set dummy ${ac_tool_prefix}otool; ac_word=$2
  6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464 $as_echo_n "checking for $ac_word... " >&6; }
  6465 if ${ac_cv_prog_OTOOL+:} false; then :
  6466   $as_echo_n "(cached) " >&6
  6467 else
  6468   if test -n "$OTOOL"; then
  6469   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6470 else
  6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472 for as_dir in $PATH
  6473 do
  6474   IFS=$as_save_IFS
  6475   test -z "$as_dir" && as_dir=.
  6476     for ac_exec_ext in '' $ac_executable_extensions; do
  6477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6478     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6480     break 2
  6481   fi
  6482 done
  6483   done
  6484 IFS=$as_save_IFS
  6485 
  6486 fi
  6487 fi
  6488 OTOOL=$ac_cv_prog_OTOOL
  6489 if test -n "$OTOOL"; then
  6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6491 $as_echo "$OTOOL" >&6; }
  6492 else
  6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494 $as_echo "no" >&6; }
  6495 fi
  6496 
  6497 
  6498 fi
  6499 if test -z "$ac_cv_prog_OTOOL"; then
  6500   ac_ct_OTOOL=$OTOOL
  6501   # Extract the first word of "otool", so it can be a program name with args.
  6502 set dummy otool; ac_word=$2
  6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6504 $as_echo_n "checking for $ac_word... " >&6; }
  6505 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6506   $as_echo_n "(cached) " >&6
  6507 else
  6508   if test -n "$ac_ct_OTOOL"; then
  6509   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6510 else
  6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6512 for as_dir in $PATH
  6513 do
  6514   IFS=$as_save_IFS
  6515   test -z "$as_dir" && as_dir=.
  6516     for ac_exec_ext in '' $ac_executable_extensions; do
  6517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6518     ac_cv_prog_ac_ct_OTOOL="otool"
  6519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6520     break 2
  6521   fi
  6522 done
  6523   done
  6524 IFS=$as_save_IFS
  6525 
  6526 fi
  6527 fi
  6528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6529 if test -n "$ac_ct_OTOOL"; then
  6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6531 $as_echo "$ac_ct_OTOOL" >&6; }
  6532 else
  6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534 $as_echo "no" >&6; }
  6535 fi
  6536 
  6537   if test "x$ac_ct_OTOOL" = x; then
  6538     OTOOL=":"
  6539   else
  6540     case $cross_compiling:$ac_tool_warned in
  6541 yes:)
  6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6544 ac_tool_warned=yes ;;
  6545 esac
  6546     OTOOL=$ac_ct_OTOOL
  6547   fi
  6548 else
  6549   OTOOL="$ac_cv_prog_OTOOL"
  6550 fi
  6551 
  6552     if test -n "$ac_tool_prefix"; then
  6553   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6556 $as_echo_n "checking for $ac_word... " >&6; }
  6557 if ${ac_cv_prog_OTOOL64+:} false; then :
  6558   $as_echo_n "(cached) " >&6
  6559 else
  6560   if test -n "$OTOOL64"; then
  6561   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6562 else
  6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6564 for as_dir in $PATH
  6565 do
  6566   IFS=$as_save_IFS
  6567   test -z "$as_dir" && as_dir=.
  6568     for ac_exec_ext in '' $ac_executable_extensions; do
  6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6570     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6572     break 2
  6573   fi
  6574 done
  6575   done
  6576 IFS=$as_save_IFS
  6577 
  6578 fi
  6579 fi
  6580 OTOOL64=$ac_cv_prog_OTOOL64
  6581 if test -n "$OTOOL64"; then
  6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6583 $as_echo "$OTOOL64" >&6; }
  6584 else
  6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586 $as_echo "no" >&6; }
  6587 fi
  6588 
  6589 
  6590 fi
  6591 if test -z "$ac_cv_prog_OTOOL64"; then
  6592   ac_ct_OTOOL64=$OTOOL64
  6593   # Extract the first word of "otool64", so it can be a program name with args.
  6594 set dummy otool64; ac_word=$2
  6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6596 $as_echo_n "checking for $ac_word... " >&6; }
  6597 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6598   $as_echo_n "(cached) " >&6
  6599 else
  6600   if test -n "$ac_ct_OTOOL64"; then
  6601   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6602 else
  6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6604 for as_dir in $PATH
  6605 do
  6606   IFS=$as_save_IFS
  6607   test -z "$as_dir" && as_dir=.
  6608     for ac_exec_ext in '' $ac_executable_extensions; do
  6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6610     ac_cv_prog_ac_ct_OTOOL64="otool64"
  6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6612     break 2
  6613   fi
  6614 done
  6615   done
  6616 IFS=$as_save_IFS
  6617 
  6618 fi
  6619 fi
  6620 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6621 if test -n "$ac_ct_OTOOL64"; then
  6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6623 $as_echo "$ac_ct_OTOOL64" >&6; }
  6624 else
  6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6626 $as_echo "no" >&6; }
  6627 fi
  6628 
  6629   if test "x$ac_ct_OTOOL64" = x; then
  6630     OTOOL64=":"
  6631   else
  6632     case $cross_compiling:$ac_tool_warned in
  6633 yes:)
  6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636 ac_tool_warned=yes ;;
  6637 esac
  6638     OTOOL64=$ac_ct_OTOOL64
  6639   fi
  6640 else
  6641   OTOOL64="$ac_cv_prog_OTOOL64"