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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561case X$lt_ECHO in
562X*--fallback-echo)
563  # Remove one level of quotation (which was required for Make).
564  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565  ;;
566esac
567
568ECHO=${lt_ECHO-echo}
569if test "X$1" = X--no-reexec; then
570  # Discard the --no-reexec flag, and continue.
571  shift
572elif test "X$1" = X--fallback-echo; then
573  # Avoid inline document here, it may be left over
574  :
575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576  # Yippee, $ECHO works!
577  :
578else
579  # Restart under the correct shell.
580  exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584  # used as fallback echo
585  shift
586  cat <<_LT_EOF
587$*
588_LT_EOF
589  exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596if test -z "$lt_ECHO"; then
597  if test "X${echo_test_string+set}" != Xset; then
598    # find a string as large as possible, as long as the shell can cope with it
599    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603      then
604        break
605      fi
606    done
607  fi
608
609  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611     test "X$echo_testing_string" = "X$echo_test_string"; then
612    :
613  else
614    # The Solaris, AIX, and Digital Unix default echo programs unquote
615    # backslashes.  This makes it impossible to quote backslashes using
616    #   echo "$something" | sed 's/\\/\\\\/g'
617    #
618    # So, first we look for a working echo in the user's PATH.
619
620    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621    for dir in $PATH /usr/ucb; do
622      IFS="$lt_save_ifs"
623      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626         test "X$echo_testing_string" = "X$echo_test_string"; then
627        ECHO="$dir/echo"
628        break
629      fi
630    done
631    IFS="$lt_save_ifs"
632
633    if test "X$ECHO" = Xecho; then
634      # We didn't find a better echo, so look for alternatives.
635      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637         test "X$echo_testing_string" = "X$echo_test_string"; then
638        # This shell has a builtin print -r that does the trick.
639        ECHO='print -r'
640      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641	   test "X$CONFIG_SHELL" != X/bin/ksh; then
642        # If we have ksh, try running configure again with it.
643        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644        export ORIGINAL_CONFIG_SHELL
645        CONFIG_SHELL=/bin/ksh
646        export CONFIG_SHELL
647        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648      else
649        # Try using printf.
650        ECHO='printf %s\n'
651        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	  # Cool, printf works
655	  :
656        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	     test "X$echo_testing_string" = 'X\t' &&
658	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	     test "X$echo_testing_string" = "X$echo_test_string"; then
660	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	  export CONFIG_SHELL
662	  SHELL="$CONFIG_SHELL"
663	  export SHELL
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	     test "X$echo_testing_string" = 'X\t' &&
667	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	     test "X$echo_testing_string" = "X$echo_test_string"; then
669	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
670        else
671	  # maybe with a smaller string...
672	  prev=:
673
674	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676	    then
677	      break
678	    fi
679	    prev="$cmd"
680	  done
681
682	  if test "$prev" != 'sed 50q "$0"'; then
683	    echo_test_string=`eval $prev`
684	    export echo_test_string
685	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	  else
687	    # Oops.  We lost completely, so just stick with echo.
688	    ECHO=echo
689	  fi
690        fi
691      fi
692    fi
693  fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
708
709# Name of the host.
710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714#
715# Initializations.
716#
717ac_default_prefix=/usr/local
718ac_clean_files=
719ac_config_libobj_dir=.
720LIBOBJS=
721cross_compiling=no
722subdirs=
723MFLAGS=
724MAKEFLAGS=
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732PACKAGE_URL=
733
734ac_unique_file="README.txt"
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='am__EXEEXT_FALSE
772am__EXEEXT_TRUE
773LTLIBOBJS
774LIBOBJS
775MATHLIB
776GL_LIBS
777X_EXTRA_LIBS
778X_LIBS
779X_PRE_LIBS
780X_CFLAGS
781XMKMF
782SDL2_CONFIG
783SDL_LIBS
784SDL_CFLAGS
785SDL_VERSION
786FT2_CONFIG
787FT2_LIBS
788FT2_CFLAGS
789PKG_CONFIG
790USE_VERSION_RC_FALSE
791USE_VERSION_RC_TRUE
792ALLOCA
793WINDRES
794AM_BACKSLASH
795AM_DEFAULT_VERBOSITY
796AM_DEFAULT_V
797AM_V
798am__fastdepCC_FALSE
799am__fastdepCC_TRUE
800CCDEPMODE
801am__nodep
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__include
806DEPDIR
807am__untar
808am__tar
809AMTAR
810am__leading_dot
811SET_MAKE
812AWK
813mkdir_p
814MKDIR_P
815INSTALL_STRIP_PROGRAM
816install_sh
817MAKEINFO
818AUTOHEADER
819AUTOMAKE
820AUTOCONF
821ACLOCAL
822PACKAGE
823CYGPATH_W
824am__isrc
825INSTALL_DATA
826INSTALL_SCRIPT
827INSTALL_PROGRAM
828LT_AGE
829LT_REVISION
830LT_CURRENT
831LT_RELEASE
832CPP
833OTOOL64
834OTOOL
835LIPO
836NMEDIT
837DSYMUTIL
838lt_ECHO
839RANLIB
840STRIP
841AR
842LN_S
843NM
844ac_ct_DUMPBIN
845DUMPBIN
846LD
847FGREP
848EGREP
849GREP
850SED
851OBJEXT
852EXEEXT
853ac_ct_CC
854CPPFLAGS
855LDFLAGS
856CFLAGS
857CC
858host_os
859host_vendor
860host_cpu
861host
862build_os
863build_vendor
864build_cpu
865build
866LIBTOOL
867OBJDUMP
868DLLTOOL
869AS
870VERSION
871BINARY_AGE
872INTERFACE_AGE
873MICRO_VERSION
874MINOR_VERSION
875MAJOR_VERSION
876target_alias
877host_alias
878build_alias
879LIBS
880ECHO_T
881ECHO_N
882ECHO_C
883DEFS
884mandir
885localedir
886libdir
887psdir
888pdfdir
889dvidir
890htmldir
891infodir
892docdir
893oldincludedir
894includedir
895localstatedir
896sharedstatedir
897sysconfdir
898datadir
899datarootdir
900libexecdir
901sbindir
902bindir
903program_transform_name
904prefix
905exec_prefix
906PACKAGE_URL
907PACKAGE_BUGREPORT
908PACKAGE_STRING
909PACKAGE_VERSION
910PACKAGE_TARNAME
911PACKAGE_NAME
912PATH_SEPARATOR
913SHELL
914am__quote'
915ac_subst_files=''
916ac_user_opts='
917enable_option_checking
918enable_shared
919enable_static
920with_pic
921enable_fast_install
922with_gnu_ld
923enable_libtool_lock
924enable_dependency_tracking
925enable_silent_rules
926with_ft_prefix
927with_ft_exec_prefix
928enable_freetypetest
929with_sdl_prefix
930with_sdl_exec_prefix
931enable_sdltest
932with_x
933'
934      ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940LIBS
941CPPFLAGS
942CPP
943PKG_CONFIG
944FT2_CFLAGS
945FT2_LIBS
946SDL_CFLAGS
947SDL_LIBS
948XMKMF'
949
950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954ac_unrecognized_opts=
955ac_unrecognized_sep=
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
978# (The list follows the same order as the GNU Coding Standards.)
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
987includedir='${prefix}/include'
988oldincludedir='/usr/include'
989docdir='${datarootdir}/doc/${PACKAGE}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
998
999ac_prev=
1000ac_dashdash=
1001for ac_option
1002do
1003  # If the previous option needs an argument, assign it.
1004  if test -n "$ac_prev"; then
1005    eval $ac_prev=\$ac_option
1006    ac_prev=
1007    continue
1008  fi
1009
1010  case $ac_option in
1011  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012  *=)   ac_optarg= ;;
1013  *)    ac_optarg=yes ;;
1014  esac
1015
1016  # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018  case $ac_dashdash$ac_option in
1019  --)
1020    ac_dashdash=yes ;;
1021
1022  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023    ac_prev=bindir ;;
1024  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025    bindir=$ac_optarg ;;
1026
1027  -build | --build | --buil | --bui | --bu)
1028    ac_prev=build_alias ;;
1029  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030    build_alias=$ac_optarg ;;
1031
1032  -cache-file | --cache-file | --cache-fil | --cache-fi \
1033  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034    ac_prev=cache_file ;;
1035  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037    cache_file=$ac_optarg ;;
1038
1039  --config-cache | -C)
1040    cache_file=config.cache ;;
1041
1042  -datadir | --datadir | --datadi | --datad)
1043    ac_prev=datadir ;;
1044  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045    datadir=$ac_optarg ;;
1046
1047  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048  | --dataroo | --dataro | --datar)
1049    ac_prev=datarootdir ;;
1050  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052    datarootdir=$ac_optarg ;;
1053
1054  -disable-* | --disable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=no ;;
1069
1070  -docdir | --docdir | --docdi | --doc | --do)
1071    ac_prev=docdir ;;
1072  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073    docdir=$ac_optarg ;;
1074
1075  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076    ac_prev=dvidir ;;
1077  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078    dvidir=$ac_optarg ;;
1079
1080  -enable-* | --enable-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      as_fn_error $? "invalid feature name: $ac_useropt"
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"enable_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098  | --exec | --exe | --ex)
1099    ac_prev=exec_prefix ;;
1100  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102  | --exec=* | --exe=* | --ex=*)
1103    exec_prefix=$ac_optarg ;;
1104
1105  -gas | --gas | --ga | --g)
1106    # Obsolete; use --with-gas.
1107    with_gas=yes ;;
1108
1109  -help | --help | --hel | --he | -h)
1110    ac_init_help=long ;;
1111  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112    ac_init_help=recursive ;;
1113  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114    ac_init_help=short ;;
1115
1116  -host | --host | --hos | --ho)
1117    ac_prev=host_alias ;;
1118  -host=* | --host=* | --hos=* | --ho=*)
1119    host_alias=$ac_optarg ;;
1120
1121  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122    ac_prev=htmldir ;;
1123  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124  | --ht=*)
1125    htmldir=$ac_optarg ;;
1126
1127  -includedir | --includedir | --includedi | --included | --include \
1128  | --includ | --inclu | --incl | --inc)
1129    ac_prev=includedir ;;
1130  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131  | --includ=* | --inclu=* | --incl=* | --inc=*)
1132    includedir=$ac_optarg ;;
1133
1134  -infodir | --infodir | --infodi | --infod | --info | --inf)
1135    ac_prev=infodir ;;
1136  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137    infodir=$ac_optarg ;;
1138
1139  -libdir | --libdir | --libdi | --libd)
1140    ac_prev=libdir ;;
1141  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142    libdir=$ac_optarg ;;
1143
1144  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145  | --libexe | --libex | --libe)
1146    ac_prev=libexecdir ;;
1147  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148  | --libexe=* | --libex=* | --libe=*)
1149    libexecdir=$ac_optarg ;;
1150
1151  -localedir | --localedir | --localedi | --localed | --locale)
1152    ac_prev=localedir ;;
1153  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154    localedir=$ac_optarg ;;
1155
1156  -localstatedir | --localstatedir | --localstatedi | --localstated \
1157  | --localstate | --localstat | --localsta | --localst | --locals)
1158    ac_prev=localstatedir ;;
1159  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161    localstatedir=$ac_optarg ;;
1162
1163  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164    ac_prev=mandir ;;
1165  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166    mandir=$ac_optarg ;;
1167
1168  -nfp | --nfp | --nf)
1169    # Obsolete; use --without-fp.
1170    with_fp=no ;;
1171
1172  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173  | --no-cr | --no-c | -n)
1174    no_create=yes ;;
1175
1176  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178    no_recursion=yes ;;
1179
1180  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182  | --oldin | --oldi | --old | --ol | --o)
1183    ac_prev=oldincludedir ;;
1184  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187    oldincludedir=$ac_optarg ;;
1188
1189  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190    ac_prev=prefix ;;
1191  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192    prefix=$ac_optarg ;;
1193
1194  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195  | --program-pre | --program-pr | --program-p)
1196    ac_prev=program_prefix ;;
1197  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199    program_prefix=$ac_optarg ;;
1200
1201  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202  | --program-suf | --program-su | --program-s)
1203    ac_prev=program_suffix ;;
1204  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206    program_suffix=$ac_optarg ;;
1207
1208  -program-transform-name | --program-transform-name \
1209  | --program-transform-nam | --program-transform-na \
1210  | --program-transform-n | --program-transform- \
1211  | --program-transform | --program-transfor \
1212  | --program-transfo | --program-transf \
1213  | --program-trans | --program-tran \
1214  | --progr-tra | --program-tr | --program-t)
1215    ac_prev=program_transform_name ;;
1216  -program-transform-name=* | --program-transform-name=* \
1217  | --program-transform-nam=* | --program-transform-na=* \
1218  | --program-transform-n=* | --program-transform-=* \
1219  | --program-transform=* | --program-transfor=* \
1220  | --program-transfo=* | --program-transf=* \
1221  | --program-trans=* | --program-tran=* \
1222  | --progr-tra=* | --program-tr=* | --program-t=*)
1223    program_transform_name=$ac_optarg ;;
1224
1225  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226    ac_prev=pdfdir ;;
1227  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228    pdfdir=$ac_optarg ;;
1229
1230  -psdir | --psdir | --psdi | --psd | --ps)
1231    ac_prev=psdir ;;
1232  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233    psdir=$ac_optarg ;;
1234
1235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236  | -silent | --silent | --silen | --sile | --sil)
1237    silent=yes ;;
1238
1239  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240    ac_prev=sbindir ;;
1241  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242  | --sbi=* | --sb=*)
1243    sbindir=$ac_optarg ;;
1244
1245  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247  | --sharedst | --shareds | --shared | --share | --shar \
1248  | --sha | --sh)
1249    ac_prev=sharedstatedir ;;
1250  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253  | --sha=* | --sh=*)
1254    sharedstatedir=$ac_optarg ;;
1255
1256  -site | --site | --sit)
1257    ac_prev=site ;;
1258  -site=* | --site=* | --sit=*)
1259    site=$ac_optarg ;;
1260
1261  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262    ac_prev=srcdir ;;
1263  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264    srcdir=$ac_optarg ;;
1265
1266  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267  | --syscon | --sysco | --sysc | --sys | --sy)
1268    ac_prev=sysconfdir ;;
1269  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271    sysconfdir=$ac_optarg ;;
1272
1273  -target | --target | --targe | --targ | --tar | --ta | --t)
1274    ac_prev=target_alias ;;
1275  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276    target_alias=$ac_optarg ;;
1277
1278  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279    verbose=yes ;;
1280
1281  -version | --version | --versio | --versi | --vers | -V)
1282    ac_init_version=: ;;
1283
1284  -with-* | --with-*)
1285    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286    # Reject names that are not valid shell variable names.
1287    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288      as_fn_error $? "invalid package name: $ac_useropt"
1289    ac_useropt_orig=$ac_useropt
1290    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291    case $ac_user_opts in
1292      *"
1293"with_$ac_useropt"
1294"*) ;;
1295      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296	 ac_unrecognized_sep=', ';;
1297    esac
1298    eval with_$ac_useropt=\$ac_optarg ;;
1299
1300  -without-* | --without-*)
1301    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304      as_fn_error $? "invalid package name: $ac_useropt"
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=no ;;
1315
1316  --x)
1317    # Obsolete; use --with-x.
1318    with_x=yes ;;
1319
1320  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321  | --x-incl | --x-inc | --x-in | --x-i)
1322    ac_prev=x_includes ;;
1323  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325    x_includes=$ac_optarg ;;
1326
1327  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329    ac_prev=x_libraries ;;
1330  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332    x_libraries=$ac_optarg ;;
1333
1334  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335Try \`$0 --help' for more information"
1336    ;;
1337
1338  *=*)
1339    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340    # Reject names that are not valid shell variable names.
1341    case $ac_envvar in #(
1342      '' | [0-9]* | *[!_$as_cr_alnum]* )
1343      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344    esac
1345    eval $ac_envvar=\$ac_optarg
1346    export $ac_envvar ;;
1347
1348  *)
1349    # FIXME: should be removed in autoconf 3.0.
1350    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1354    ;;
1355
1356  esac
1357done
1358
1359if test -n "$ac_prev"; then
1360  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361  as_fn_error $? "missing argument to $ac_option"
1362fi
1363
1364if test -n "$ac_unrecognized_opts"; then
1365  case $enable_option_checking in
1366    no) ;;
1367    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369  esac
1370fi
1371
1372# Check all directory arguments for consistency.
1373for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374		datadir sysconfdir sharedstatedir localstatedir includedir \
1375		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376		libdir localedir mandir
1377do
1378  eval ac_val=\$$ac_var
1379  # Remove trailing slashes.
1380  case $ac_val in
1381    */ )
1382      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383      eval $ac_var=\$ac_val;;
1384  esac
1385  # Be sure to have absolute directory names.
1386  case $ac_val in
1387    [\\/$]* | ?:[\\/]* )  continue;;
1388    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389  esac
1390  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402  if test "x$build_alias" = x; then
1403    cross_compiling=maybe
1404  elif test "x$build_alias" != "x$host_alias"; then
1405    cross_compiling=yes
1406  fi
1407fi
1408
1409ac_tool_prefix=
1410test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412test "$silent" = yes && exec 6>/dev/null
1413
1414
1415ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416ac_ls_di=`ls -di .` &&
1417ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418  as_fn_error $? "working directory cannot be determined"
1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420  as_fn_error $? "pwd does not report name of working directory"
1421
1422
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425  ac_srcdir_defaulted=yes
1426  # Try the directory containing this script, then the parent directory.
1427  ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429	 X"$as_myself" : 'X\(//\)[^/]' \| \
1430	 X"$as_myself" : 'X\(//\)$' \| \
1431	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)[^/].*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\/\)$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\).*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  s/.*/./; q'`
1450  srcdir=$ac_confdir
1451  if test ! -r "$srcdir/$ac_unique_file"; then
1452    srcdir=..
1453  fi
1454else
1455  ac_srcdir_defaulted=no
1456fi
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460fi
1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464	pwd)`
1465# When building in place, set srcdir=.
1466if test "$ac_abs_confdir" = "$ac_pwd"; then
1467  srcdir=.
1468fi
1469# Remove unnecessary trailing slashes from srcdir.
1470# Double slashes in file names in object file debugging info
1471# mess up M-x gdb in Emacs.
1472case $srcdir in
1473*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474esac
1475for ac_var in $ac_precious_vars; do
1476  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_env_${ac_var}_value=\$${ac_var}
1478  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480done
1481
1482#
1483# Report the --help message.
1484#
1485if test "$ac_init_help" = "long"; then
1486  # Omit some internal or obsolete options to make the list less imposing.
1487  # This message is too long to be a string in the A/UX 3.1 sh.
1488  cat <<_ACEOF
1489\`configure' configures this package to adapt to many kinds of systems.
1490
1491Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
1496Defaults for the options are specified in brackets.
1497
1498Configuration:
1499  -h, --help              display this help and exit
1500      --help=short        display options specific to this package
1501      --help=recursive    display the short help of all the included packages
1502  -V, --version           display version information and exit
1503  -q, --quiet, --silent   do not print \`checking ...' messages
1504      --cache-file=FILE   cache test results in FILE [disabled]
1505  -C, --config-cache      alias for \`--cache-file=config.cache'
1506  -n, --no-create         do not create output files
1507      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
1509Installation directories:
1510  --prefix=PREFIX         install architecture-independent files in PREFIX
1511                          [$ac_default_prefix]
1512  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513                          [PREFIX]
1514
1515By default, \`make install' will install all the files in
1516\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518for instance \`--prefix=\$HOME'.
1519
1520For better control, use the options below.
1521
1522Fine tuning of the installation directories:
1523  --bindir=DIR            user executables [EPREFIX/bin]
1524  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525  --libexecdir=DIR        program executables [EPREFIX/libexec]
1526  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529  --libdir=DIR            object code libraries [EPREFIX/lib]
1530  --includedir=DIR        C header files [PREFIX/include]
1531  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534  --infodir=DIR           info documentation [DATAROOTDIR/info]
1535  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536  --mandir=DIR            man documentation [DATAROOTDIR/man]
1537  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1538  --htmldir=DIR           html documentation [DOCDIR]
1539  --dvidir=DIR            dvi documentation [DOCDIR]
1540  --pdfdir=DIR            pdf documentation [DOCDIR]
1541  --psdir=DIR             ps documentation [DOCDIR]
1542_ACEOF
1543
1544  cat <<\_ACEOF
1545
1546Program names:
1547  --program-prefix=PREFIX            prepend PREFIX to installed program names
1548  --program-suffix=SUFFIX            append SUFFIX to installed program names
1549  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1550
1551X features:
1552  --x-includes=DIR    X include files are in DIR
1553  --x-libraries=DIR   X library files are in DIR
1554
1555System types:
1556  --build=BUILD     configure for building on BUILD [guessed]
1557  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1558_ACEOF
1559fi
1560
1561if test -n "$ac_init_help"; then
1562
1563  cat <<\_ACEOF
1564
1565Optional Features:
1566  --disable-option-checking  ignore unrecognized --enable/--with options
1567  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1568  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1569  --enable-shared[=PKGS]  build shared libraries [default=yes]
1570  --enable-static[=PKGS]  build static libraries [default=yes]
1571  --enable-fast-install[=PKGS]
1572                          optimize for fast installation [default=yes]
1573  --disable-libtool-lock  avoid locking (might break parallel builds)
1574  --enable-dependency-tracking
1575                          do not reject slow dependency extractors
1576  --disable-dependency-tracking
1577                          speeds up one-time build
1578  --enable-silent-rules   less verbose build output (undo: "make V=1")
1579  --disable-silent-rules  verbose build output (undo: "make V=0")
1580       --disable-freetypetest  Do not try to compile and run a test FreeType
1581                          program
1582  --disable-sdltest       Do not try to compile and run a test SDL program
1583
1584Optional Packages:
1585  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1586  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1587  --with-pic              try to use only PIC/non-PIC objects [default=use
1588                          both]
1589  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1590       --with-ft-prefix=PREFIX Prefix where FreeType is installed (optional)
1591       --with-ft-exec-prefix=PREFIX
1592                          Exec prefix where FreeType is installed (optional)
1593  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1594  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1595  --with-x                use the X Window System
1596
1597Some influential environment variables:
1598  CC          C compiler command
1599  CFLAGS      C compiler flags
1600  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1601              nonstandard directory <lib dir>
1602  LIBS        libraries to pass to the linker, e.g. -l<library>
1603  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1604              you have headers in a nonstandard directory <include dir>
1605  CPP         C preprocessor
1606  PKG_CONFIG  path to pkg-config utility
1607  FT2_CFLAGS  C compiler flags for FT2, overriding pkg-config
1608  FT2_LIBS    linker flags for FT2, overriding pkg-config
1609  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1610  SDL_LIBS    linker flags for SDL, overriding pkg-config
1611  XMKMF       Path to xmkmf, Makefile generator for X Window System
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616Report bugs to the package provider.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622  # If there are subdirs, report their specific --help.
1623  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624    test -d "$ac_dir" ||
1625      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626      continue
1627    ac_builddir=.
1628
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633  # A ".." for each directory in $ac_dir_suffix.
1634  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635  case $ac_top_builddir_sub in
1636  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638  esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
1644
1645case $srcdir in
1646  .)  # We are building in place.
1647    ac_srcdir=.
1648    ac_top_srcdir=$ac_top_builddir_sub
1649    ac_abs_top_srcdir=$ac_pwd ;;
1650  [\\/]* | ?:[\\/]* )  # Absolute name.
1651    ac_srcdir=$srcdir$ac_dir_suffix;
1652    ac_top_srcdir=$srcdir
1653    ac_abs_top_srcdir=$srcdir ;;
1654  *) # Relative name.
1655    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656    ac_top_srcdir=$ac_top_build_prefix$srcdir
1657    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658esac
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661    cd "$ac_dir" || { ac_status=$?; continue; }
1662    # Check for guested configure.
1663    if test -f "$ac_srcdir/configure.gnu"; then
1664      echo &&
1665      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666    elif test -f "$ac_srcdir/configure"; then
1667      echo &&
1668      $SHELL "$ac_srcdir/configure" --help=recursive
1669    else
1670      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671    fi || ac_status=$?
1672    cd "$ac_pwd" || { ac_status=$?; break; }
1673  done
1674fi
1675
1676test -n "$ac_init_help" && exit $ac_status
1677if $ac_init_version; then
1678  cat <<\_ACEOF
1679configure
1680generated by GNU Autoconf 2.69
1681
1682Copyright (C) 2012 Free Software Foundation, Inc.
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
1686  exit
1687fi
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  rm -f conftest.$ac_objext
1700  if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_compile") 2>conftest.err
1708  ac_status=$?
1709  if test -s conftest.err; then
1710    grep -v '^ *+' conftest.err >conftest.er1
1711    cat conftest.er1 >&5
1712    mv -f conftest.er1 conftest.err
1713  fi
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && {
1716	 test -z "$ac_c_werror_flag" ||
1717	 test ! -s conftest.err
1718       } && test -s conftest.$ac_objext; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724	ac_retval=1
1725fi
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  rm -f conftest.$ac_objext conftest$ac_exeext
1738  if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_link") 2>conftest.err
1746  ac_status=$?
1747  if test -s conftest.err; then
1748    grep -v '^ *+' conftest.err >conftest.er1
1749    cat conftest.er1 >&5
1750    mv -f conftest.er1 conftest.err
1751  fi
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && {
1754	 test -z "$ac_c_werror_flag" ||
1755	 test ! -s conftest.err
1756       } && test -s conftest$ac_exeext && {
1757	 test "$cross_compiling" = yes ||
1758	 test -x conftest$ac_exeext
1759       }; then :
1760  ac_retval=0
1761else
1762  $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765	ac_retval=1
1766fi
1767  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769  # interfere with the next link command; also delete a directory that is
1770  # left behind by Apple's compiler.  We do this before executing the actions.
1771  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  if { { ac_try="$ac_cpp conftest.$ac_ext"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } > conftest.i && {
1830	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831	 test ! -s conftest.err
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838    ac_retval=1
1839fi
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_cpp
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_link") 2>&5
1860  ac_status=$?
1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863  { { case "(($ac_try" in
1864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865  *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869  (eval "$ac_try") 2>&5
1870  ac_status=$?
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; }; }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: program exited with status $ac_status" >&5
1876       $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879       ac_retval=$ac_status
1880fi
1881  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883  as_fn_set_status $ac_retval
1884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1902#define $2 innocuous_$2
1903
1904/* System header to define __stub macros and hopefully few prototypes,
1905    which can conflict with char $2 (); below.
1906    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907    <limits.h> exists even on freestanding compilers.  */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918   Use char because int might match the return type of a GCC
1919   builtin and then its argument prototype would still apply.  */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925    to always fail with ENOSYS.  Some functions are actually named
1926    something starting with __ and the normal name is an alias.  */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940  eval "$3=yes"
1941else
1942  eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945    conftest$ac_exeext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_func
1953
1954# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1955# -------------------------------------------
1956# Tests whether TYPE exists after having included INCLUDES, setting cache
1957# variable VAR accordingly.
1958ac_fn_c_check_type ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if eval \${$3+:} false; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  eval "$3=no"
1967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969$4
1970int
1971main ()
1972{
1973if (sizeof ($2))
1974	 return 0;
1975  ;
1976  return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int
1984main ()
1985{
1986if (sizeof (($2)))
1987	    return 0;
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993
1994else
1995  eval "$3=yes"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_type
2007cat >config.log <<_ACEOF
2008This file contains any messages produced by compilers while
2009running configure, to aid debugging if configure makes a mistake.
2010
2011It was created by $as_me, which was
2012generated by GNU Autoconf 2.69.  Invocation command line was
2013
2014  $ $0 $@
2015
2016_ACEOF
2017exec 5>>config.log
2018{
2019cat <<_ASUNAME
2020## --------- ##
2021## Platform. ##
2022## --------- ##
2023
2024hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2025uname -m = `(uname -m) 2>/dev/null || echo unknown`
2026uname -r = `(uname -r) 2>/dev/null || echo unknown`
2027uname -s = `(uname -s) 2>/dev/null || echo unknown`
2028uname -v = `(uname -v) 2>/dev/null || echo unknown`
2029
2030/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2031/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2032
2033/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2034/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2035/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2036/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2037/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2038/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2039/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2040
2041_ASUNAME
2042
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048    $as_echo "PATH: $as_dir"
2049  done
2050IFS=$as_save_IFS
2051
2052} >&5
2053
2054cat >&5 <<_ACEOF
2055
2056
2057## ----------- ##
2058## Core tests. ##
2059## ----------- ##
2060
2061_ACEOF
2062
2063
2064# Keep a trace of the command line.
2065# Strip out --no-create and --no-recursion so they do not pile up.
2066# Strip out --silent because we don't want to record it for future runs.
2067# Also quote any args containing shell meta-characters.
2068# Make two passes to allow for proper duplicate-argument suppression.
2069ac_configure_args=
2070ac_configure_args0=
2071ac_configure_args1=
2072ac_must_keep_next=false
2073for ac_pass in 1 2
2074do
2075  for ac_arg
2076  do
2077    case $ac_arg in
2078    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080    | -silent | --silent | --silen | --sile | --sil)
2081      continue ;;
2082    *\'*)
2083      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084    esac
2085    case $ac_pass in
2086    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2087    2)
2088      as_fn_append ac_configure_args1 " '$ac_arg'"
2089      if test $ac_must_keep_next = true; then
2090	ac_must_keep_next=false # Got value, back to normal.
2091      else
2092	case $ac_arg in
2093	  *=* | --config-cache | -C | -disable-* | --disable-* \
2094	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096	  | -with-* | --with-* | -without-* | --without-* | --x)
2097	    case "$ac_configure_args0 " in
2098	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099	    esac
2100	    ;;
2101	  -* ) ac_must_keep_next=true ;;
2102	esac
2103      fi
2104      as_fn_append ac_configure_args " '$ac_arg'"
2105      ;;
2106    esac
2107  done
2108done
2109{ ac_configure_args0=; unset ac_configure_args0;}
2110{ ac_configure_args1=; unset ac_configure_args1;}
2111
2112# When interrupted or exit'd, cleanup temporary files, and complete
2113# config.log.  We remove comments because anyway the quotes in there
2114# would cause problems or look ugly.
2115# WARNING: Use '\'' to represent an apostrophe within the trap.
2116# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117trap 'exit_status=$?
2118  # Save into config.log some information that might help in debugging.
2119  {
2120    echo
2121
2122    $as_echo "## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##"
2125    echo
2126    # The following way of writing the cache mishandles newlines in values,
2127(
2128  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129    eval ac_val=\$$ac_var
2130    case $ac_val in #(
2131    *${as_nl}*)
2132      case $ac_var in #(
2133      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135      esac
2136      case $ac_var in #(
2137      _ | IFS | as_nl) ;; #(
2138      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139      *) { eval $ac_var=; unset $ac_var;} ;;
2140      esac ;;
2141    esac
2142  done
2143  (set) 2>&1 |
2144    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145    *${as_nl}ac_space=\ *)
2146      sed -n \
2147	"s/'\''/'\''\\\\'\'''\''/g;
2148	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149      ;; #(
2150    *)
2151      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152      ;;
2153    esac |
2154    sort
2155)
2156    echo
2157
2158    $as_echo "## ----------------- ##
2159## Output variables. ##
2160## ----------------- ##"
2161    echo
2162    for ac_var in $ac_subst_vars
2163    do
2164      eval ac_val=\$$ac_var
2165      case $ac_val in
2166      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167      esac
2168      $as_echo "$ac_var='\''$ac_val'\''"
2169    done | sort
2170    echo
2171
2172    if test -n "$ac_subst_files"; then
2173      $as_echo "## ------------------- ##
2174## File substitutions. ##
2175## ------------------- ##"
2176      echo
2177      for ac_var in $ac_subst_files
2178      do
2179	eval ac_val=\$$ac_var
2180	case $ac_val in
2181	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182	esac
2183	$as_echo "$ac_var='\''$ac_val'\''"
2184      done | sort
2185      echo
2186    fi
2187
2188    if test -s confdefs.h; then
2189      $as_echo "## ----------- ##
2190## confdefs.h. ##
2191## ----------- ##"
2192      echo
2193      cat confdefs.h
2194      echo
2195    fi
2196    test "$ac_signal" != 0 &&
2197      $as_echo "$as_me: caught signal $ac_signal"
2198    $as_echo "$as_me: exit $exit_status"
2199  } >&5
2200  rm -f core *.core core.conftest.* &&
2201    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202    exit $exit_status
2203' 0
2204for ac_signal in 1 2 13 15; do
2205  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206done
2207ac_signal=0
2208
2209# confdefs.h avoids OS command line length limits that DEFS can exceed.
2210rm -f -r conftest* confdefs.h
2211
2212$as_echo "/* confdefs.h */" > confdefs.h
2213
2214# Predefined preprocessor variables.
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_NAME "$PACKAGE_NAME"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_VERSION "$PACKAGE_VERSION"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_STRING "$PACKAGE_STRING"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_URL "$PACKAGE_URL"
2238_ACEOF
2239
2240
2241# Let the site file select an alternate cache file if it wants to.
2242# Prefer an explicitly selected file to automatically selected ones.
2243ac_site_file1=NONE
2244ac_site_file2=NONE
2245if test -n "$CONFIG_SITE"; then
2246  # We do not want a PATH search for config.site.
2247  case $CONFIG_SITE in #((
2248    -*)  ac_site_file1=./$CONFIG_SITE;;
2249    */*) ac_site_file1=$CONFIG_SITE;;
2250    *)   ac_site_file1=./$CONFIG_SITE;;
2251  esac
2252elif test "x$prefix" != xNONE; then
2253  ac_site_file1=$prefix/share/config.site
2254  ac_site_file2=$prefix/etc/config.site
2255else
2256  ac_site_file1=$ac_default_prefix/share/config.site
2257  ac_site_file2=$ac_default_prefix/etc/config.site
2258fi
2259for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260do
2261  test "x$ac_site_file" = xNONE && continue
2262  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2263    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2264$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2265    sed 's/^/| /' "$ac_site_file" >&5
2266    . "$ac_site_file" \
2267      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269as_fn_error $? "failed to load site script $ac_site_file
2270See \`config.log' for more details" "$LINENO" 5; }
2271  fi
2272done
2273
2274if test -r "$cache_file"; then
2275  # Some versions of bash will fail to source /dev/null (special files
2276  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2277  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279$as_echo "$as_me: loading cache $cache_file" >&6;}
2280    case $cache_file in
2281      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282      *)                      . "./$cache_file";;
2283    esac
2284  fi
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287$as_echo "$as_me: creating cache $cache_file" >&6;}
2288  >$cache_file
2289fi
2290
2291# Check that the precious variables saved in the cache have kept the same
2292# value.
2293ac_cache_corrupted=false
2294for ac_var in $ac_precious_vars; do
2295  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296  eval ac_new_set=\$ac_env_${ac_var}_set
2297  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298  eval ac_new_val=\$ac_env_${ac_var}_value
2299  case $ac_old_set,$ac_new_set in
2300    set,)
2301      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,set)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,);;
2309    *)
2310      if test "x$ac_old_val" != "x$ac_new_val"; then
2311	# differences in whitespace do not lead to failure.
2312	ac_old_val_w=`echo x $ac_old_val`
2313	ac_new_val_w=`echo x $ac_new_val`
2314	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317	  ac_cache_corrupted=:
2318	else
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321	  eval $ac_var=\$ac_old_val
2322	fi
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2324$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2326$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2327      fi;;
2328  esac
2329  # Pass precious variables to config.status.
2330  if test "$ac_new_set" = set; then
2331    case $ac_new_val in
2332    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    *) ac_arg=$ac_var=$ac_new_val ;;
2334    esac
2335    case " $ac_configure_args " in
2336      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338    esac
2339  fi
2340done
2341if $ac_cache_corrupted; then
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2347fi
2348## -------------------- ##
2349## Main body of script. ##
2350## -------------------- ##
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359
2360
2361# Making releases:
2362#   MICRO_VERSION += 1;
2363#   INTERFACE_AGE += 1;
2364#   BINARY_AGE += 1;
2365# if any functions have been added, set INTERFACE_AGE to 0.
2366# if backwards compatibility has been broken,
2367# set BINARY_AGE and INTERFACE_AGE to 0.
2368
2369MAJOR_VERSION=2
2370MINOR_VERSION=0
2371MICRO_VERSION=15
2372INTERFACE_AGE=1
2373BINARY_AGE=15
2374VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2375
2376
2377
2378
2379
2380
2381
2382
2383# libtool versioning
2384case `pwd` in
2385  *\ * | *\	*)
2386    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2387$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2388esac
2389
2390
2391
2392macro_version='2.2.6'
2393macro_revision='1.3012'
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407ltmain="$ac_aux_dir/ltmain.sh"
2408
2409ac_aux_dir=
2410for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2411  if test -f "$ac_dir/install-sh"; then
2412    ac_aux_dir=$ac_dir
2413    ac_install_sh="$ac_aux_dir/install-sh -c"
2414    break
2415  elif test -f "$ac_dir/install.sh"; then
2416    ac_aux_dir=$ac_dir
2417    ac_install_sh="$ac_aux_dir/install.sh -c"
2418    break
2419  elif test -f "$ac_dir/shtool"; then
2420    ac_aux_dir=$ac_dir
2421    ac_install_sh="$ac_aux_dir/shtool install -c"
2422    break
2423  fi
2424done
2425if test -z "$ac_aux_dir"; then
2426  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2427fi
2428
2429# These three variables are undocumented and unsupported,
2430# and are intended to be withdrawn in a future Autoconf release.
2431# They can cause serious problems if a builder's source tree is in a directory
2432# whose full name contains unusual characters.
2433ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2434ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2435ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2436
2437
2438# Make sure we can run config.sub.
2439$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2443$as_echo_n "checking build system type... " >&6; }
2444if ${ac_cv_build+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  ac_build_alias=$build_alias
2448test "x$ac_build_alias" = x &&
2449  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450test "x$ac_build_alias" = x &&
2451  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2452ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2454
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2457$as_echo "$ac_cv_build" >&6; }
2458case $ac_cv_build in
2459*-*-*) ;;
2460*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2461esac
2462build=$ac_cv_build
2463ac_save_IFS=$IFS; IFS='-'
2464set x $ac_cv_build
2465shift
2466build_cpu=$1
2467build_vendor=$2
2468shift; shift
2469# Remember, the first character of IFS is used to create $*,
2470# except with old shells:
2471build_os=$*
2472IFS=$ac_save_IFS
2473case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2474
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2477$as_echo_n "checking host system type... " >&6; }
2478if ${ac_cv_host+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  if test "x$host_alias" = x; then
2482  ac_cv_host=$ac_cv_build
2483else
2484  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2486fi
2487
2488fi
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2490$as_echo "$ac_cv_host" >&6; }
2491case $ac_cv_host in
2492*-*-*) ;;
2493*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2494esac
2495host=$ac_cv_host
2496ac_save_IFS=$IFS; IFS='-'
2497set x $ac_cv_host
2498shift
2499host_cpu=$1
2500host_vendor=$2
2501shift; shift
2502# Remember, the first character of IFS is used to create $*,
2503# except with old shells:
2504host_os=$*
2505IFS=$ac_save_IFS
2506case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2507
2508
2509# Expand $ac_aux_dir to an absolute path.
2510am_aux_dir=`cd "$ac_aux_dir" && pwd`
2511
2512ac_ext=c
2513ac_cpp='$CPP $CPPFLAGS'
2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517if test -n "$ac_tool_prefix"; then
2518  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519set dummy ${ac_tool_prefix}gcc; ac_word=$2
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521$as_echo_n "checking for $ac_word... " >&6; }
2522if ${ac_cv_prog_CC+:} false; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  if test -n "$CC"; then
2526  ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533    for ac_exec_ext in '' $ac_executable_extensions; do
2534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540  done
2541IFS=$as_save_IFS
2542
2543fi
2544fi
2545CC=$ac_cv_prog_CC
2546if test -n "$CC"; then
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548$as_echo "$CC" >&6; }
2549else
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551$as_echo "no" >&6; }
2552fi
2553
2554
2555fi
2556if test -z "$ac_cv_prog_CC"; then
2557  ac_ct_CC=$CC
2558  # Extract the first word of "gcc", so it can be a program name with args.
2559set dummy gcc; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if ${ac_cv_prog_ac_ct_CC+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$ac_ct_CC"; then
2566  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575    ac_cv_prog_ac_ct_CC="gcc"
2576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588$as_echo "$ac_ct_CC" >&6; }
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594  if test "x$ac_ct_CC" = x; then
2595    CC=""
2596  else
2597    case $cross_compiling:$ac_tool_warned in
2598yes:)
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601ac_tool_warned=yes ;;
2602esac
2603    CC=$ac_ct_CC
2604  fi
2605else
2606  CC="$ac_cv_prog_CC"
2607fi
2608
2609if test -z "$CC"; then
2610          if test -n "$ac_tool_prefix"; then
2611    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612set dummy ${ac_tool_prefix}cc; ac_word=$2
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614$as_echo_n "checking for $ac_word... " >&6; }
2615if ${ac_cv_prog_CC+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  if test -n "$CC"; then
2619  ac_cv_prog_CC="$CC" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_exec_ext in '' $ac_executable_extensions; do
2627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628    ac_cv_prog_CC="${ac_tool_prefix}cc"
2629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633  done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641$as_echo "$CC" >&6; }
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
2645fi
2646
2647
2648  fi
2649fi
2650if test -z "$CC"; then
2651  # Extract the first word of "cc", so it can be a program name with args.
2652set dummy cc; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$CC"; then
2659  ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661  ac_prog_rejected=no
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667    for ac_exec_ext in '' $ac_executable_extensions; do
2668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670       ac_prog_rejected=yes
2671       continue
2672     fi
2673    ac_cv_prog_CC="cc"
2674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678  done
2679IFS=$as_save_IFS
2680
2681if test $ac_prog_rejected = yes; then
2682  # We found a bogon in the path, so make sure we never use it.
2683  set dummy $ac_cv_prog_CC
2684  shift
2685  if test $# != 0; then
2686    # We chose a different compiler from the bogus one.
2687    # However, it has the same basename, so the bogon will be chosen
2688    # first if we set CC to just the basename; use the full file name.
2689    shift
2690    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2691  fi
2692fi
2693fi
2694fi
2695CC=$ac_cv_prog_CC
2696if test -n "$CC"; then
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698$as_echo "$CC" >&6; }
2699else
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
2702fi
2703
2704
2705fi
2706if test -z "$CC"; then
2707  if test -n "$ac_tool_prefix"; then
2708  for ac_prog in cl.exe
2709  do
2710    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
2714if ${ac_cv_prog_CC+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  if test -n "$CC"; then
2718  ac_cv_prog_CC="$CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725    for ac_exec_ext in '' $ac_executable_extensions; do
2726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729    break 2
2730  fi
2731done
2732  done
2733IFS=$as_save_IFS
2734
2735fi
2736fi
2737CC=$ac_cv_prog_CC
2738if test -n "$CC"; then
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740$as_echo "$CC" >&6; }
2741else
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
2745
2746
2747    test -n "$CC" && break
2748  done
2749fi
2750if test -z "$CC"; then
2751  ac_ct_CC=$CC
2752  for ac_prog in cl.exe
2753do
2754  # Extract the first word of "$ac_prog", so it can be a program name with args.
2755set dummy $ac_prog; ac_word=$2
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757$as_echo_n "checking for $ac_word... " >&6; }
2758if ${ac_cv_prog_ac_ct_CC+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  if test -n "$ac_ct_CC"; then
2762  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763else
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  test -z "$as_dir" && as_dir=.
2769    for ac_exec_ext in '' $ac_executable_extensions; do
2770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771    ac_cv_prog_ac_ct_CC="$ac_prog"
2772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773    break 2
2774  fi
2775done
2776  done
2777IFS=$as_save_IFS
2778
2779fi
2780fi
2781ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782if test -n "$ac_ct_CC"; then
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784$as_echo "$ac_ct_CC" >&6; }
2785else
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788fi
2789
2790
2791  test -n "$ac_ct_CC" && break
2792done
2793
2794  if test "x$ac_ct_CC" = x; then
2795    CC=""
2796  else
2797    case $cross_compiling:$ac_tool_warned in
2798yes:)
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801ac_tool_warned=yes ;;
2802esac
2803    CC=$ac_ct_CC
2804  fi
2805fi
2806
2807fi
2808
2809
2810test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812as_fn_error $? "no acceptable C compiler found in \$PATH
2813See \`config.log' for more details" "$LINENO" 5; }
2814
2815# Provide some information about the compiler.
2816$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2817set X $ac_compile
2818ac_compiler=$2
2819for ac_option in --version -v -V -qversion; do
2820  { { ac_try="$ac_compiler $ac_option >&5"
2821case "(($ac_try" in
2822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823  *) ac_try_echo=$ac_try;;
2824esac
2825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826$as_echo "$ac_try_echo"; } >&5
2827  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2828  ac_status=$?
2829  if test -s conftest.err; then
2830    sed '10a\
2831... rest of stderr output deleted ...
2832         10q' conftest.err >conftest.er1
2833    cat conftest.er1 >&5
2834  fi
2835  rm -f conftest.er1 conftest.err
2836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837  test $ac_status = 0; }
2838done
2839
2840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851ac_clean_files_save=$ac_clean_files
2852ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2853# Try to create an executable without -o first, disregard a.out.
2854# It will help us diagnose broken compilers, and finding out an intuition
2855# of exeext.
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2857$as_echo_n "checking whether the C compiler works... " >&6; }
2858ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2859
2860# The possible output files:
2861ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2862
2863ac_rmfiles=
2864for ac_file in $ac_files
2865do
2866  case $ac_file in
2867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2868    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2869  esac
2870done
2871rm -f $ac_rmfiles
2872
2873if { { ac_try="$ac_link_default"
2874case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880  (eval "$ac_link_default") 2>&5
2881  ac_status=$?
2882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883  test $ac_status = 0; }; then :
2884  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2885# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2886# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2887# so that the user can short-circuit this test for compilers unknown to
2888# Autoconf.
2889for ac_file in $ac_files ''
2890do
2891  test -f "$ac_file" || continue
2892  case $ac_file in
2893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2894	;;
2895    [ab].out )
2896	# We found the default executable, but exeext='' is most
2897	# certainly right.
2898	break;;
2899    *.* )
2900	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2901	then :; else
2902	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2903	fi
2904	# We set ac_cv_exeext here because the later test for it is not
2905	# safe: cross compilers may not add the suffix if given an `-o'
2906	# argument, so we may need to know it at that point already.
2907	# Even if this section looks crufty: it has the advantage of
2908	# actually working.
2909	break;;
2910    * )
2911	break;;
2912  esac
2913done
2914test "$ac_cv_exeext" = no && ac_cv_exeext=
2915
2916else
2917  ac_file=''
2918fi
2919if test -z "$ac_file"; then :
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922$as_echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927as_fn_error 77 "C compiler cannot create executables
2928See \`config.log' for more details" "$LINENO" 5; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931$as_echo "yes" >&6; }
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2934$as_echo_n "checking for C compiler default output file name... " >&6; }
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2936$as_echo "$ac_file" >&6; }
2937ac_exeext=$ac_cv_exeext
2938
2939rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2940ac_clean_files=$ac_clean_files_save
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2942$as_echo_n "checking for suffix of executables... " >&6; }
2943if { { ac_try="$ac_link"
2944case "(($ac_try" in
2945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946  *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950  (eval "$ac_link") 2>&5
2951  ac_status=$?
2952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953  test $ac_status = 0; }; then :
2954  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2955# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2956# work properly (i.e., refer to `conftest.exe'), while it won't with
2957# `rm'.
2958for ac_file in conftest.exe conftest conftest.*; do
2959  test -f "$ac_file" || continue
2960  case $ac_file in
2961    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963	  break;;
2964    * ) break;;
2965  esac
2966done
2967else
2968  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2971See \`config.log' for more details" "$LINENO" 5; }
2972fi
2973rm -f conftest conftest$ac_cv_exeext
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2975$as_echo "$ac_cv_exeext" >&6; }
2976
2977rm -f conftest.$ac_ext
2978EXEEXT=$ac_cv_exeext
2979ac_exeext=$EXEEXT
2980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981/* end confdefs.h.  */
2982#include <stdio.h>
2983int
2984main ()
2985{
2986FILE *f = fopen ("conftest.out", "w");
2987 return ferror (f) || fclose (f) != 0;
2988
2989  ;
2990  return 0;
2991}
2992_ACEOF
2993ac_clean_files="$ac_clean_files conftest.out"
2994# Check that the compiler produces executables we can run.  If not, either
2995# the compiler is broken, or we cross compile.
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2997$as_echo_n "checking whether we are cross compiling... " >&6; }
2998if test "$cross_compiling" != yes; then
2999  { { ac_try="$ac_link"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006  (eval "$ac_link") 2>&5
3007  ac_status=$?
3008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009  test $ac_status = 0; }
3010  if { ac_try='./conftest$ac_cv_exeext'
3011  { { case "(($ac_try" in
3012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013  *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017  (eval "$ac_try") 2>&5
3018  ac_status=$?
3019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020  test $ac_status = 0; }; }; then
3021    cross_compiling=no
3022  else
3023    if test "$cross_compiling" = maybe; then
3024	cross_compiling=yes
3025    else
3026	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028as_fn_error $? "cannot run C compiled programs.
3029If you meant to cross compile, use \`--host'.
3030See \`config.log' for more details" "$LINENO" 5; }
3031    fi
3032  fi
3033fi
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3035$as_echo "$cross_compiling" >&6; }
3036
3037rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3038ac_clean_files=$ac_clean_files_save
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3040$as_echo_n "checking for suffix of object files... " >&6; }
3041if ${ac_cv_objext+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046
3047int
3048main ()
3049{
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.o conftest.obj
3056if { { ac_try="$ac_compile"
3057case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063  (eval "$ac_compile") 2>&5
3064  ac_status=$?
3065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066  test $ac_status = 0; }; then :
3067  for ac_file in conftest.o conftest.obj conftest.*; do
3068  test -f "$ac_file" || continue;
3069  case $ac_file in
3070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3071    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3072       break;;
3073  esac
3074done
3075else
3076  $as_echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081as_fn_error $? "cannot compute suffix of object files: cannot compile
3082See \`config.log' for more details" "$LINENO" 5; }
3083fi
3084rm -f conftest.$ac_cv_objext conftest.$ac_ext
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3087$as_echo "$ac_cv_objext" >&6; }
3088OBJEXT=$ac_cv_objext
3089ac_objext=$OBJEXT
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3091$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3092if ${ac_cv_c_compiler_gnu+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101#ifndef __GNUC__
3102       choke me
3103#endif
3104
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109if ac_fn_c_try_compile "$LINENO"; then :
3110  ac_compiler_gnu=yes
3111else
3112  ac_compiler_gnu=no
3113fi
3114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115ac_cv_c_compiler_gnu=$ac_compiler_gnu
3116
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3119$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3120if test $ac_compiler_gnu = yes; then
3121  GCC=yes
3122else
3123  GCC=
3124fi
3125ac_test_CFLAGS=${CFLAGS+set}
3126ac_save_CFLAGS=$CFLAGS
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3128$as_echo_n "checking whether $CC accepts -g... " >&6; }
3129if ${ac_cv_prog_cc_g+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  ac_save_c_werror_flag=$ac_c_werror_flag
3133   ac_c_werror_flag=yes
3134   ac_cv_prog_cc_g=no
3135   CFLAGS="-g"
3136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147if ac_fn_c_try_compile "$LINENO"; then :
3148  ac_cv_prog_cc_g=yes
3149else
3150  CFLAGS=""
3151      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162if ac_fn_c_try_compile "$LINENO"; then :
3163
3164else
3165  ac_c_werror_flag=$ac_save_c_werror_flag
3166	 CFLAGS="-g"
3167	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_compile "$LINENO"; then :
3179  ac_cv_prog_cc_g=yes
3180fi
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186   ac_c_werror_flag=$ac_save_c_werror_flag
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3189$as_echo "$ac_cv_prog_cc_g" >&6; }
3190if test "$ac_test_CFLAGS" = set; then
3191  CFLAGS=$ac_save_CFLAGS
3192elif test $ac_cv_prog_cc_g = yes; then
3193  if test "$GCC" = yes; then
3194    CFLAGS="-g -O2"
3195  else
3196    CFLAGS="-g"
3197  fi
3198else
3199  if test "$GCC" = yes; then
3200    CFLAGS="-O2"
3201  else
3202    CFLAGS=
3203  fi
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3206$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3207if ${ac_cv_prog_cc_c89+:} false; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  ac_cv_prog_cc_c89=no
3211ac_save_CC=$CC
3212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214#include <stdarg.h>
3215#include <stdio.h>
3216struct stat;
3217/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3218struct buf { int x; };
3219FILE * (*rcsopen) (struct buf *, struct stat *, int);
3220static char *e (p, i)
3221     char **p;
3222     int i;
3223{
3224  return p[i];
3225}
3226static char *f (char * (*g) (char **, int), char **p, ...)
3227{
3228  char *s;
3229  va_list v;
3230  va_start (v,p);
3231  s = g (p, va_arg (v,int));
3232  va_end (v);
3233  return s;
3234}
3235
3236/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3237   function prototypes and stuff, but not '\xHH' hex character constants.
3238   These don't provoke an error unfortunately, instead are silently treated
3239   as 'x'.  The following induces an error, until -std is added to get
3240   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3241   array size at least.  It's necessary to write '\x00'==0 to get something
3242   that's true only with -std.  */
3243int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3244
3245/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3246   inside strings and character constants.  */
3247#define FOO(x) 'x'
3248int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3249
3250int test (int i, double x);
3251struct s1 {int (*f) (int a);};
3252struct s2 {int (*f) (double a);};
3253int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3254int argc;
3255char **argv;
3256int
3257main ()
3258{
3259return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3265	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3266do
3267  CC="$ac_save_CC $ac_arg"
3268  if ac_fn_c_try_compile "$LINENO"; then :
3269  ac_cv_prog_cc_c89=$ac_arg
3270fi
3271rm -f core conftest.err conftest.$ac_objext
3272  test "x$ac_cv_prog_cc_c89" != "xno" && break
3273done
3274rm -f conftest.$ac_ext
3275CC=$ac_save_CC
3276
3277fi
3278# AC_CACHE_VAL
3279case "x$ac_cv_prog_cc_c89" in
3280  x)
3281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3282$as_echo "none needed" >&6; } ;;
3283  xno)
3284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3285$as_echo "unsupported" >&6; } ;;
3286  *)
3287    CC="$CC $ac_cv_prog_cc_c89"
3288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3289$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3290esac
3291if test "x$ac_cv_prog_cc_c89" != xno; then :
3292
3293fi
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301ac_ext=c
3302ac_cpp='$CPP $CPPFLAGS'
3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3307$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3308if ${am_cv_prog_cc_c_o+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322  # Make sure it works both with $CC and with simple cc.
3323  # Following AC_PROG_CC_C_O, we do the test twice because some
3324  # compilers refuse to overwrite an existing .o file with -o,
3325  # though they will create one.
3326  am_cv_prog_cc_c_o=yes
3327  for am_i in 1 2; do
3328    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3329   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } \
3333         && test -f conftest2.$ac_objext; then
3334      : OK
3335    else
3336      am_cv_prog_cc_c_o=no
3337      break
3338    fi
3339  done
3340  rm -f core conftest*
3341  unset am_i
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3344$as_echo "$am_cv_prog_cc_c_o" >&6; }
3345if test "$am_cv_prog_cc_c_o" != yes; then
3346   # Losing compiler, so override with the script.
3347   # FIXME: It is wrong to rewrite CC.
3348   # But if we don't then we get into trouble of one sort or another.
3349   # A longer-term fix would be to have automake use am__CC in this case,
3350   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3351   CC="$am_aux_dir/compile $CC"
3352fi
3353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3361$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3362if ${ac_cv_path_SED+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3366     for ac_i in 1 2 3 4 5 6 7; do
3367       ac_script="$ac_script$as_nl$ac_script"
3368     done
3369     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3370     { ac_script=; unset ac_script;}
3371     if test -z "$SED"; then
3372  ac_path_SED_found=false
3373  # Loop through the user's path and test for each of PROGNAME-LIST
3374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_prog in sed gsed; do
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3382      as_fn_executable_p "$ac_path_SED" || continue
3383# Check for GNU ac_path_SED and select it if it is found.
3384  # Check for GNU $ac_path_SED
3385case `"$ac_path_SED" --version 2>&1` in
3386*GNU*)
3387  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3388*)
3389  ac_count=0
3390  $as_echo_n 0123456789 >"conftest.in"
3391  while :
3392  do
3393    cat "conftest.in" "conftest.in" >"conftest.tmp"
3394    mv "conftest.tmp" "conftest.in"
3395    cp "conftest.in" "conftest.nl"
3396    $as_echo '' >> "conftest.nl"
3397    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3398    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3399    as_fn_arith $ac_count + 1 && ac_count=$as_val
3400    if test $ac_count -gt ${ac_path_SED_max-0}; then
3401      # Best one so far, save it but keep looking for a better one
3402      ac_cv_path_SED="$ac_path_SED"
3403      ac_path_SED_max=$ac_count
3404    fi
3405    # 10*(2^10) chars as input seems more than enough
3406    test $ac_count -gt 10 && break
3407  done
3408  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3409esac
3410
3411      $ac_path_SED_found && break 3
3412    done
3413  done
3414  done
3415IFS=$as_save_IFS
3416  if test -z "$ac_cv_path_SED"; then
3417    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3418  fi
3419else
3420  ac_cv_path_SED=$SED
3421fi
3422
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3425$as_echo "$ac_cv_path_SED" >&6; }
3426 SED="$ac_cv_path_SED"
3427  rm -f conftest.sed
3428
3429test -z "$SED" && SED=sed
3430Xsed="$SED -e 1s/^X//"
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3443$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3444if ${ac_cv_path_GREP+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  if test -z "$GREP"; then
3448  ac_path_GREP_found=false
3449  # Loop through the user's path and test for each of PROGNAME-LIST
3450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3452do
3453  IFS=$as_save_IFS
3454  test -z "$as_dir" && as_dir=.
3455    for ac_prog in grep ggrep; do
3456    for ac_exec_ext in '' $ac_executable_extensions; do
3457      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3458      as_fn_executable_p "$ac_path_GREP" || continue
3459# Check for GNU ac_path_GREP and select it if it is found.
3460  # Check for GNU $ac_path_GREP
3461case `"$ac_path_GREP" --version 2>&1` in
3462*GNU*)
3463  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3464*)
3465  ac_count=0
3466  $as_echo_n 0123456789 >"conftest.in"
3467  while :
3468  do
3469    cat "conftest.in" "conftest.in" >"conftest.tmp"
3470    mv "conftest.tmp" "conftest.in"
3471    cp "conftest.in" "conftest.nl"
3472    $as_echo 'GREP' >> "conftest.nl"
3473    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3475    as_fn_arith $ac_count + 1 && ac_count=$as_val
3476    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3477      # Best one so far, save it but keep looking for a better one
3478      ac_cv_path_GREP="$ac_path_GREP"
3479      ac_path_GREP_max=$ac_count
3480    fi
3481    # 10*(2^10) chars as input seems more than enough
3482    test $ac_count -gt 10 && break
3483  done
3484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3485esac
3486
3487      $ac_path_GREP_found && break 3
3488    done
3489  done
3490  done
3491IFS=$as_save_IFS
3492  if test -z "$ac_cv_path_GREP"; then
3493    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3494  fi
3495else
3496  ac_cv_path_GREP=$GREP
3497fi
3498
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3501$as_echo "$ac_cv_path_GREP" >&6; }
3502 GREP="$ac_cv_path_GREP"
3503
3504
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3506$as_echo_n "checking for egrep... " >&6; }
3507if ${ac_cv_path_EGREP+:} false; then :
3508  $as_echo_n "(cached) " >&6
3509else
3510  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3511   then ac_cv_path_EGREP="$GREP -E"
3512   else
3513     if test -z "$EGREP"; then
3514  ac_path_EGREP_found=false
3515  # Loop through the user's path and test for each of PROGNAME-LIST
3516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521    for ac_prog in egrep; do
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3524      as_fn_executable_p "$ac_path_EGREP" || continue
3525# Check for GNU ac_path_EGREP and select it if it is found.
3526  # Check for GNU $ac_path_EGREP
3527case `"$ac_path_EGREP" --version 2>&1` in
3528*GNU*)
3529  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3530*)
3531  ac_count=0
3532  $as_echo_n 0123456789 >"conftest.in"
3533  while :
3534  do
3535    cat "conftest.in" "conftest.in" >"conftest.tmp"
3536    mv "conftest.tmp" "conftest.in"
3537    cp "conftest.in" "conftest.nl"
3538    $as_echo 'EGREP' >> "conftest.nl"
3539    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3540    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3541    as_fn_arith $ac_count + 1 && ac_count=$as_val
3542    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3543      # Best one so far, save it but keep looking for a better one
3544      ac_cv_path_EGREP="$ac_path_EGREP"
3545      ac_path_EGREP_max=$ac_count
3546    fi
3547    # 10*(2^10) chars as input seems more than enough
3548    test $ac_count -gt 10 && break
3549  done
3550  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3551esac
3552
3553      $ac_path_EGREP_found && break 3
3554    done
3555  done
3556  done
3557IFS=$as_save_IFS
3558  if test -z "$ac_cv_path_EGREP"; then
3559    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3560  fi
3561else
3562  ac_cv_path_EGREP=$EGREP
3563fi
3564
3565   fi
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3568$as_echo "$ac_cv_path_EGREP" >&6; }
3569 EGREP="$ac_cv_path_EGREP"
3570
3571
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3573$as_echo_n "checking for fgrep... " >&6; }
3574if ${ac_cv_path_FGREP+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3578   then ac_cv_path_FGREP="$GREP -F"
3579   else
3580     if test -z "$FGREP"; then
3581  ac_path_FGREP_found=false
3582  # Loop through the user's path and test for each of PROGNAME-LIST
3583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585do
3586  IFS=$as_save_IFS
3587  test -z "$as_dir" && as_dir=.
3588    for ac_prog in fgrep; do
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3591      as_fn_executable_p "$ac_path_FGREP" || continue
3592# Check for GNU ac_path_FGREP and select it if it is found.
3593  # Check for GNU $ac_path_FGREP
3594case `"$ac_path_FGREP" --version 2>&1` in
3595*GNU*)
3596  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3597*)
3598  ac_count=0
3599  $as_echo_n 0123456789 >"conftest.in"
3600  while :
3601  do
3602    cat "conftest.in" "conftest.in" >"conftest.tmp"
3603    mv "conftest.tmp" "conftest.in"
3604    cp "conftest.in" "conftest.nl"
3605    $as_echo 'FGREP' >> "conftest.nl"
3606    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608    as_fn_arith $ac_count + 1 && ac_count=$as_val
3609    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3610      # Best one so far, save it but keep looking for a better one
3611      ac_cv_path_FGREP="$ac_path_FGREP"
3612      ac_path_FGREP_max=$ac_count
3613    fi
3614    # 10*(2^10) chars as input seems more than enough
3615    test $ac_count -gt 10 && break
3616  done
3617  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618esac
3619
3620      $ac_path_FGREP_found && break 3
3621    done
3622  done
3623  done
3624IFS=$as_save_IFS
3625  if test -z "$ac_cv_path_FGREP"; then
3626    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3627  fi
3628else
3629  ac_cv_path_FGREP=$FGREP
3630fi
3631
3632   fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3635$as_echo "$ac_cv_path_FGREP" >&6; }
3636 FGREP="$ac_cv_path_FGREP"
3637
3638
3639test -z "$GREP" && GREP=grep
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659# Check whether --with-gnu-ld was given.
3660if test "${with_gnu_ld+set}" = set; then :
3661  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3662else
3663  with_gnu_ld=no
3664fi
3665
3666ac_prog=ld
3667if test "$GCC" = yes; then
3668  # Check if gcc -print-prog-name=ld gives a path.
3669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3670$as_echo_n "checking for ld used by $CC... " >&6; }
3671  case $host in
3672  *-*-mingw*)
3673    # gcc leaves a trailing carriage return which upsets mingw
3674    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3675  *)
3676    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3677  esac
3678  case $ac_prog in
3679    # Accept absolute paths.
3680    [\\/]* | ?:[\\/]*)
3681      re_direlt='/[^/][^/]*/\.\./'
3682      # Canonicalize the pathname of ld
3683      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3684      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3685	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3686      done
3687      test -z "$LD" && LD="$ac_prog"
3688      ;;
3689  "")
3690    # If it fails, then pretend we aren't using GCC.
3691    ac_prog=ld
3692    ;;
3693  *)
3694    # If it is relative, then search for the first ld in PATH.
3695    with_gnu_ld=unknown
3696    ;;
3697  esac
3698elif test "$with_gnu_ld" = yes; then
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3700$as_echo_n "checking for GNU ld... " >&6; }
3701else
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3703$as_echo_n "checking for non-GNU ld... " >&6; }
3704fi
3705if ${lt_cv_path_LD+:} false; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  if test -z "$LD"; then
3709  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3710  for ac_dir in $PATH; do
3711    IFS="$lt_save_ifs"
3712    test -z "$ac_dir" && ac_dir=.
3713    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3714      lt_cv_path_LD="$ac_dir/$ac_prog"
3715      # Check to see if the program is GNU ld.  I'd rather use --version,
3716      # but apparently some variants of GNU ld only accept -v.
3717      # Break only if it was the GNU/non-GNU ld that we prefer.
3718      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3719      *GNU* | *'with BFD'*)
3720	test "$with_gnu_ld" != no && break
3721	;;
3722      *)
3723	test "$with_gnu_ld" != yes && break
3724	;;
3725      esac
3726    fi
3727  done
3728  IFS="$lt_save_ifs"
3729else
3730  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3731fi
3732fi
3733
3734LD="$lt_cv_path_LD"
3735if test -n "$LD"; then
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3737$as_echo "$LD" >&6; }
3738else
3739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740$as_echo "no" >&6; }
3741fi
3742test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3744$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3745if ${lt_cv_prog_gnu_ld+:} false; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3749case `$LD -v 2>&1 </dev/null` in
3750*GNU* | *'with BFD'*)
3751  lt_cv_prog_gnu_ld=yes
3752  ;;
3753*)
3754  lt_cv_prog_gnu_ld=no
3755  ;;
3756esac
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3759$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3760with_gnu_ld=$lt_cv_prog_gnu_ld
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3771$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3772if ${lt_cv_path_NM+:} false; then :
3773  $as_echo_n "(cached) " >&6
3774else
3775  if test -n "$NM"; then
3776  # Let the user override the test.
3777  lt_cv_path_NM="$NM"
3778else
3779  lt_nm_to_check="${ac_tool_prefix}nm"
3780  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3781    lt_nm_to_check="$lt_nm_to_check nm"
3782  fi
3783  for lt_tmp_nm in $lt_nm_to_check; do
3784    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3785    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3786      IFS="$lt_save_ifs"
3787      test -z "$ac_dir" && ac_dir=.
3788      tmp_nm="$ac_dir/$lt_tmp_nm"
3789      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3790	# Check to see if the nm accepts a BSD-compat flag.
3791	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3792	#   nm: unknown option "B" ignored
3793	# Tru64's nm complains that /dev/null is an invalid object file
3794	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3795	*/dev/null* | *'Invalid file or object type'*)
3796	  lt_cv_path_NM="$tmp_nm -B"
3797	  break
3798	  ;;
3799	*)
3800	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3801	  */dev/null*)
3802	    lt_cv_path_NM="$tmp_nm -p"
3803	    break
3804	    ;;
3805	  *)
3806	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3807	    continue # so that we can try to find one that supports BSD flags
3808	    ;;
3809	  esac
3810	  ;;
3811	esac
3812      fi
3813    done
3814    IFS="$lt_save_ifs"
3815  done
3816  : ${lt_cv_path_NM=no}
3817fi
3818fi
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3820$as_echo "$lt_cv_path_NM" >&6; }
3821if test "$lt_cv_path_NM" != "no"; then
3822  NM="$lt_cv_path_NM"
3823else
3824  # Didn't find any BSD compatible name lister, look for dumpbin.
3825  if test -n "$ac_tool_prefix"; then
3826  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3827  do
3828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
3832if ${ac_cv_prog_DUMPBIN+:} false; then :
3833  $as_echo_n "(cached) " >&6
3834else
3835  if test -n "$DUMPBIN"; then
3836  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3837else
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841  IFS=$as_save_IFS
3842  test -z "$as_dir" && as_dir=.
3843    for ac_exec_ext in '' $ac_executable_extensions; do
3844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847    break 2
3848  fi
3849done
3850  done
3851IFS=$as_save_IFS
3852
3853fi
3854fi
3855DUMPBIN=$ac_cv_prog_DUMPBIN
3856if test -n "$DUMPBIN"; then
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3858$as_echo "$DUMPBIN" >&6; }
3859else
3860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861$as_echo "no" >&6; }
3862fi
3863
3864
3865    test -n "$DUMPBIN" && break
3866  done
3867fi
3868if test -z "$DUMPBIN"; then
3869  ac_ct_DUMPBIN=$DUMPBIN
3870  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3871do
3872  # Extract the first word of "$ac_prog", so it can be a program name with args.
3873set dummy $ac_prog; ac_word=$2
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
3876if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  if test -n "$ac_ct_DUMPBIN"; then
3880  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3881else
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885  IFS=$as_save_IFS
3886  test -z "$as_dir" && as_dir=.
3887    for ac_exec_ext in '' $ac_executable_extensions; do
3888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891    break 2
3892  fi
3893done
3894  done
3895IFS=$as_save_IFS
3896
3897fi
3898fi
3899ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3900if test -n "$ac_ct_DUMPBIN"; then
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3902$as_echo "$ac_ct_DUMPBIN" >&6; }
3903else
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
3906fi
3907
3908
3909  test -n "$ac_ct_DUMPBIN" && break
3910done
3911
3912  if test "x$ac_ct_DUMPBIN" = x; then
3913    DUMPBIN=":"
3914  else
3915    case $cross_compiling:$ac_tool_warned in
3916yes:)
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3919ac_tool_warned=yes ;;
3920esac
3921    DUMPBIN=$ac_ct_DUMPBIN
3922  fi
3923fi
3924
3925
3926  if test "$DUMPBIN" != ":"; then
3927    NM="$DUMPBIN"
3928  fi
3929fi
3930test -z "$NM" && NM=nm
3931
3932
3933
3934
3935
3936
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3938$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3939if ${lt_cv_nm_interface+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942  lt_cv_nm_interface="BSD nm"
3943  echo "int some_variable = 0;" > conftest.$ac_ext
3944  (eval echo "\"\$as_me:3944: $ac_compile\"" >&5)
3945  (eval "$ac_compile" 2>conftest.err)
3946  cat conftest.err >&5
3947  (eval echo "\"\$as_me:3947: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3948  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3949  cat conftest.err >&5
3950  (eval echo "\"\$as_me:3950: output\"" >&5)
3951  cat conftest.out >&5
3952  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3953    lt_cv_nm_interface="MS dumpbin"
3954  fi
3955  rm -f conftest*
3956fi
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3958$as_echo "$lt_cv_nm_interface" >&6; }
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3961$as_echo_n "checking whether ln -s works... " >&6; }
3962LN_S=$as_ln_s
3963if test "$LN_S" = "ln -s"; then
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965$as_echo "yes" >&6; }
3966else
3967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3968$as_echo "no, using $LN_S" >&6; }
3969fi
3970
3971# find the maximum length of command line arguments
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3973$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3974if ${lt_cv_sys_max_cmd_len+:} false; then :
3975  $as_echo_n "(cached) " >&6
3976else
3977    i=0
3978  teststring="ABCD"
3979
3980  case $build_os in
3981  msdosdjgpp*)
3982    # On DJGPP, this test can blow up pretty badly due to problems in libc
3983    # (any single argument exceeding 2000 bytes causes a buffer overrun
3984    # during glob expansion).  Even if it were fixed, the result of this
3985    # check would be larger than it should be.
3986    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3987    ;;
3988
3989  gnu*)
3990    # Under GNU Hurd, this test is not required because there is
3991    # no limit to the length of command line arguments.
3992    # Libtool will interpret -1 as no limit whatsoever
3993    lt_cv_sys_max_cmd_len=-1;
3994    ;;
3995
3996  cygwin* | mingw* | cegcc*)
3997    # On Win9x/ME, this test blows up -- it succeeds, but takes
3998    # about 5 minutes as the teststring grows exponentially.
3999    # Worse, since 9x/ME are not pre-emptively multitasking,
4000    # you end up with a "frozen" computer, even though with patience
4001    # the test eventually succeeds (with a max line length of 256k).
4002    # Instead, let's just punt: use the minimum linelength reported by
4003    # all of the supported platforms: 8192 (on NT/2K/XP).
4004    lt_cv_sys_max_cmd_len=8192;
4005    ;;
4006
4007  beos*)
4008    # On BeOS, this test takes a really really long time.
4009    # So we just punt and use a minimum line length of 8192.
4010    lt_cv_sys_max_cmd_len=8192;
4011    ;;
4012
4013  amigaos*)
4014    # On AmigaOS with pdksh, this test takes hours, literally.
4015    # So we just punt and use a minimum line length of 8192.
4016    lt_cv_sys_max_cmd_len=8192;
4017    ;;
4018
4019  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4020    # This has been around since 386BSD, at least.  Likely further.
4021    if test -x /sbin/sysctl; then
4022      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4023    elif test -x /usr/sbin/sysctl; then
4024      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4025    else
4026      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4027    fi
4028    # And add a safety zone
4029    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4030    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4031    ;;
4032
4033  interix*)
4034    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4035    lt_cv_sys_max_cmd_len=196608
4036    ;;
4037
4038  osf*)
4039    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4040    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4041    # nice to cause kernel panics so lets avoid the loop below.
4042    # First set a reasonable default.
4043    lt_cv_sys_max_cmd_len=16384
4044    #
4045    if test -x /sbin/sysconfig; then
4046      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4047        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4048      esac
4049    fi
4050    ;;
4051  sco3.2v5*)
4052    lt_cv_sys_max_cmd_len=102400
4053    ;;
4054  sysv5* | sco5v6* | sysv4.2uw2*)
4055    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4056    if test -n "$kargmax"; then
4057      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4058    else
4059      lt_cv_sys_max_cmd_len=32768
4060    fi
4061    ;;
4062  *)
4063    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4064    if test -n "$lt_cv_sys_max_cmd_len"; then
4065      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4066      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4067    else
4068      # Make teststring a little bigger before we do anything with it.
4069      # a 1K string should be a reasonable start.
4070      for i in 1 2 3 4 5 6 7 8 ; do
4071        teststring=$teststring$teststring
4072      done
4073      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4074      # If test is not a shell built-in, we'll probably end up computing a
4075      # maximum length that is only half of the actual maximum length, but
4076      # we can't tell.
4077      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4078	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4079	      test $i != 17 # 1/2 MB should be enough
4080      do
4081        i=`expr $i + 1`
4082        teststring=$teststring$teststring
4083      done
4084      # Only check the string length outside the loop.
4085      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4086      teststring=
4087      # Add a significant safety factor because C++ compilers can tack on
4088      # massive amounts of additional arguments before passing them to the
4089      # linker.  It appears as though 1/2 is a usable value.
4090      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4091    fi
4092    ;;
4093  esac
4094
4095fi
4096
4097if test -n $lt_cv_sys_max_cmd_len ; then
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4099$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4100else
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4102$as_echo "none" >&6; }
4103fi
4104max_cmd_len=$lt_cv_sys_max_cmd_len
4105
4106
4107
4108
4109
4110
4111: ${CP="cp -f"}
4112: ${MV="mv -f"}
4113: ${RM="rm -f"}
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4116$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4117# Try some XSI features
4118xsi_shell=no
4119( _lt_dummy="a/b/c"
4120  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4121      = c,a/b,, \
4122    && eval 'test $(( 1 + 1 )) -eq 2 \
4123    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4124  && xsi_shell=yes
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4126$as_echo "$xsi_shell" >&6; }
4127
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4130$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4131lt_shell_append=no
4132( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4133    >/dev/null 2>&1 \
4134  && lt_shell_append=yes
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4136$as_echo "$lt_shell_append" >&6; }
4137
4138
4139if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4140  lt_unset=unset
4141else
4142  lt_unset=false
4143fi
4144
4145
4146
4147
4148
4149# test EBCDIC or ASCII
4150case `echo X|tr X '\101'` in
4151 A) # ASCII based system
4152    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4153  lt_SP2NL='tr \040 \012'
4154  lt_NL2SP='tr \015\012 \040\040'
4155  ;;
4156 *) # EBCDIC based system
4157  lt_SP2NL='tr \100 \n'
4158  lt_NL2SP='tr \r\n \100\100'
4159  ;;
4160esac
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4171$as_echo_n "checking for $LD option to reload object files... " >&6; }
4172if ${lt_cv_ld_reload_flag+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  lt_cv_ld_reload_flag='-r'
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4178$as_echo "$lt_cv_ld_reload_flag" >&6; }
4179reload_flag=$lt_cv_ld_reload_flag
4180case $reload_flag in
4181"" | " "*) ;;
4182*) reload_flag=" $reload_flag" ;;
4183esac
4184reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185case $host_os in
4186  darwin*)
4187    if test "$GCC" = yes; then
4188      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4189    else
4190      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4191    fi
4192    ;;
4193esac
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203if test -n "$ac_tool_prefix"; then
4204  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}objdump; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if ${ac_cv_prog_OBJDUMP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$OBJDUMP"; then
4212  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226  done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231OBJDUMP=$ac_cv_prog_OBJDUMP
4232if test -n "$OBJDUMP"; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4234$as_echo "$OBJDUMP" >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241fi
4242if test -z "$ac_cv_prog_OBJDUMP"; then
4243  ac_ct_OBJDUMP=$OBJDUMP
4244  # Extract the first word of "objdump", so it can be a program name with args.
4245set dummy objdump; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
4248if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  if test -n "$ac_ct_OBJDUMP"; then
4252  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259    for ac_exec_ext in '' $ac_executable_extensions; do
4260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266  done
4267IFS=$as_save_IFS
4268
4269fi
4270fi
4271ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4272if test -n "$ac_ct_OBJDUMP"; then
4273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4274$as_echo "$ac_ct_OBJDUMP" >&6; }
4275else
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
4278fi
4279
4280  if test "x$ac_ct_OBJDUMP" = x; then
4281    OBJDUMP="false"
4282  else
4283    case $cross_compiling:$ac_tool_warned in
4284yes:)
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289    OBJDUMP=$ac_ct_OBJDUMP
4290  fi
4291else
4292  OBJDUMP="$ac_cv_prog_OBJDUMP"
4293fi
4294
4295test -z "$OBJDUMP" && OBJDUMP=objdump
4296
4297
4298
4299
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4303$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4304if ${lt_cv_deplibs_check_method+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  lt_cv_file_magic_cmd='$MAGIC_CMD'
4308lt_cv_file_magic_test_file=
4309lt_cv_deplibs_check_method='unknown'
4310# Need to set the preceding variable on all platforms that support
4311# interlibrary dependencies.
4312# 'none' -- dependencies not supported.
4313# `unknown' -- same as none, but documents that we really don't know.
4314# 'pass_all' -- all dependencies passed with no checks.
4315# 'test_compile' -- check by making test program.
4316# 'file_magic [[regex]]' -- check by looking for files in library path
4317# which responds to the $file_magic_cmd with a given extended regex.
4318# If you have `file' or equivalent on your system and you're not sure
4319# whether `pass_all' will *always* work, you probably want this one.
4320
4321case $host_os in
4322aix[4-9]*)
4323  lt_cv_deplibs_check_method=pass_all
4324  ;;
4325
4326beos*)
4327  lt_cv_deplibs_check_method=pass_all
4328  ;;
4329
4330bsdi[45]*)
4331  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4332  lt_cv_file_magic_cmd='/usr/bin/file -L'
4333  lt_cv_file_magic_test_file=/shlib/libc.so
4334  ;;
4335
4336cygwin*)
4337  # func_win32_libid is a shell function defined in ltmain.sh
4338  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4339  lt_cv_deplibs_check_method=pass_all
4340  lt_cv_file_magic_cmd='func_win32_libid'
4341  ;;
4342
4343mingw* | pw32*)
4344  # Base MSYS/MinGW do not provide the 'file' command needed by
4345  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4346  # unless we find 'file', for example because we are cross-compiling.
4347  if ( file / ) >/dev/null 2>&1; then
4348    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4349    lt_cv_file_magic_cmd='func_win32_libid'
4350  else
4351    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4352    lt_cv_file_magic_cmd='$OBJDUMP -f'
4353  fi
4354  lt_cv_deplibs_check_method=pass_all
4355  ;;
4356
4357cegcc)
4358  # use the weaker test based on 'objdump'. See mingw*.
4359  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4360  lt_cv_file_magic_cmd='$OBJDUMP -f'
4361  ;;
4362
4363darwin* | rhapsody*)
4364  lt_cv_deplibs_check_method=pass_all
4365  ;;
4366
4367freebsd* | dragonfly*)
4368  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4369    case $host_cpu in
4370    i*86 )
4371      # Not sure whether the presence of OpenBSD here was a mistake.
4372      # Let's accept both of them until this is cleared up.
4373      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4374      lt_cv_file_magic_cmd=/usr/bin/file
4375      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4376      ;;
4377    esac
4378  else
4379    lt_cv_deplibs_check_method=pass_all
4380  fi
4381  ;;
4382
4383gnu*)
4384  lt_cv_deplibs_check_method=pass_all
4385  ;;
4386
4387hpux10.20* | hpux11*)
4388  lt_cv_file_magic_cmd=/usr/bin/file
4389  case $host_cpu in
4390  ia64*)
4391    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4392    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4393    ;;
4394  hppa*64*)
4395    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4396    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4397    ;;
4398  *)
4399    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4400    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4401    ;;
4402  esac
4403  ;;
4404
4405interix[3-9]*)
4406  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4407  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4408  ;;
4409
4410irix5* | irix6* | nonstopux*)
4411  case $LD in
4412  *-32|*"-32 ") libmagic=32-bit;;
4413  *-n32|*"-n32 ") libmagic=N32;;
4414  *-64|*"-64 ") libmagic=64-bit;;
4415  *) libmagic=never-match;;
4416  esac
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419
4420# This must be Linux ELF.
4421linux* | k*bsd*-gnu)
4422  lt_cv_deplibs_check_method=pass_all
4423  ;;
4424
4425netbsd*)
4426  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4427    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4428  else
4429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4430  fi
4431  ;;
4432
4433newos6*)
4434  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4435  lt_cv_file_magic_cmd=/usr/bin/file
4436  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4437  ;;
4438
4439*nto* | *qnx*)
4440  lt_cv_deplibs_check_method=pass_all
4441  ;;
4442
4443openbsd*)
4444  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4445    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4446  else
4447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4448  fi
4449  ;;
4450
4451osf3* | osf4* | osf5*)
4452  lt_cv_deplibs_check_method=pass_all
4453  ;;
4454
4455rdos*)
4456  lt_cv_deplibs_check_method=pass_all
4457  ;;
4458
4459solaris*)
4460  lt_cv_deplibs_check_method=pass_all
4461  ;;
4462
4463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4464  lt_cv_deplibs_check_method=pass_all
4465  ;;
4466
4467sysv4 | sysv4.3*)
4468  case $host_vendor in
4469  motorola)
4470    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]'
4471    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4472    ;;
4473  ncr)
4474    lt_cv_deplibs_check_method=pass_all
4475    ;;
4476  sequent)
4477    lt_cv_file_magic_cmd='/bin/file'
4478    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4479    ;;
4480  sni)
4481    lt_cv_file_magic_cmd='/bin/file'
4482    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4483    lt_cv_file_magic_test_file=/lib/libc.so
4484    ;;
4485  siemens)
4486    lt_cv_deplibs_check_method=pass_all
4487    ;;
4488  pc)
4489    lt_cv_deplibs_check_method=pass_all
4490    ;;
4491  esac
4492  ;;
4493
4494tpf*)
4495  lt_cv_deplibs_check_method=pass_all
4496  ;;
4497esac
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4501$as_echo "$lt_cv_deplibs_check_method" >&6; }
4502file_magic_cmd=$lt_cv_file_magic_cmd
4503deplibs_check_method=$lt_cv_deplibs_check_method
4504test -z "$deplibs_check_method" && deplibs_check_method=unknown
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517if test -n "$ac_tool_prefix"; then
4518  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4519set dummy ${ac_tool_prefix}ar; ac_word=$2
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
4522if ${ac_cv_prog_AR+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  if test -n "$AR"; then
4526  ac_cv_prog_AR="$AR" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531  IFS=$as_save_IFS
4532  test -z "$as_dir" && as_dir=.
4533    for ac_exec_ext in '' $ac_executable_extensions; do
4534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535    ac_cv_prog_AR="${ac_tool_prefix}ar"
4536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537    break 2
4538  fi
4539done
4540  done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545AR=$ac_cv_prog_AR
4546if test -n "$AR"; then
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4548$as_echo "$AR" >&6; }
4549else
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553
4554
4555fi
4556if test -z "$ac_cv_prog_AR"; then
4557  ac_ct_AR=$AR
4558  # Extract the first word of "ar", so it can be a program name with args.
4559set dummy ar; ac_word=$2
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561$as_echo_n "checking for $ac_word... " >&6; }
4562if ${ac_cv_prog_ac_ct_AR+:} false; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565  if test -n "$ac_ct_AR"; then
4566  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573    for ac_exec_ext in '' $ac_executable_extensions; do
4574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575    ac_cv_prog_ac_ct_AR="ar"
4576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577    break 2
4578  fi
4579done
4580  done
4581IFS=$as_save_IFS
4582
4583fi
4584fi
4585ac_ct_AR=$ac_cv_prog_ac_ct_AR
4586if test -n "$ac_ct_AR"; then
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4588$as_echo "$ac_ct_AR" >&6; }
4589else
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593
4594  if test "x$ac_ct_AR" = x; then
4595    AR="false"
4596  else
4597    case $cross_compiling:$ac_tool_warned in
4598yes:)
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601ac_tool_warned=yes ;;
4602esac
4603    AR=$ac_ct_AR
4604  fi
4605else
4606  AR="$ac_cv_prog_AR"
4607fi
4608
4609test -z "$AR" && AR=ar
4610test -z "$AR_FLAGS" && AR_FLAGS=cru
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622if test -n "$ac_tool_prefix"; then
4623  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4624set dummy ${ac_tool_prefix}strip; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_prog_STRIP+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  if test -n "$STRIP"; then
4631  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642    break 2
4643  fi
4644done
4645  done
4646IFS=$as_save_IFS
4647
4648fi
4649fi
4650STRIP=$ac_cv_prog_STRIP
4651if test -n "$STRIP"; then
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4653$as_echo "$STRIP" >&6; }
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660fi
4661if test -z "$ac_cv_prog_STRIP"; then
4662  ac_ct_STRIP=$STRIP
4663  # Extract the first word of "strip", so it can be a program name with args.
4664set dummy strip; ac_word=$2
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666$as_echo_n "checking for $ac_word... " >&6; }
4667if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  if test -n "$ac_ct_STRIP"; then
4671  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678    for ac_exec_ext in '' $ac_executable_extensions; do
4679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680    ac_cv_prog_ac_ct_STRIP="strip"
4681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685  done
4686IFS=$as_save_IFS
4687
4688fi
4689fi
4690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4691if test -n "$ac_ct_STRIP"; then
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4693$as_echo "$ac_ct_STRIP" >&6; }
4694else
4695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696$as_echo "no" >&6; }
4697fi
4698
4699  if test "x$ac_ct_STRIP" = x; then
4700    STRIP=":"
4701  else
4702    case $cross_compiling:$ac_tool_warned in
4703yes:)
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706ac_tool_warned=yes ;;
4707esac
4708    STRIP=$ac_ct_STRIP
4709  fi
4710else
4711  STRIP="$ac_cv_prog_STRIP"
4712fi
4713
4714test -z "$STRIP" && STRIP=:
4715
4716
4717
4718
4719
4720
4721if test -n "$ac_tool_prefix"; then
4722  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725$as_echo_n "checking for $ac_word... " >&6; }
4726if ${ac_cv_prog_RANLIB+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  if test -n "$RANLIB"; then
4730  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737    for ac_exec_ext in '' $ac_executable_extensions; do
4738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741    break 2
4742  fi
4743done
4744  done
4745IFS=$as_save_IFS
4746
4747fi
4748fi
4749RANLIB=$ac_cv_prog_RANLIB
4750if test -n "$RANLIB"; then
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4752$as_echo "$RANLIB" >&6; }
4753else
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755$as_echo "no" >&6; }
4756fi
4757
4758
4759fi
4760if test -z "$ac_cv_prog_RANLIB"; then
4761  ac_ct_RANLIB=$RANLIB
4762  # Extract the first word of "ranlib", so it can be a program name with args.
4763set dummy ranlib; ac_word=$2
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765$as_echo_n "checking for $ac_word... " >&6; }
4766if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  if test -n "$ac_ct_RANLIB"; then
4770  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779    ac_cv_prog_ac_ct_RANLIB="ranlib"
4780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784  done
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4790if test -n "$ac_ct_RANLIB"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4792$as_echo "$ac_ct_RANLIB" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798  if test "x$ac_ct_RANLIB" = x; then
4799    RANLIB=":"
4800  else
4801    case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807    RANLIB=$ac_ct_RANLIB
4808  fi
4809else
4810  RANLIB="$ac_cv_prog_RANLIB"
4811fi
4812
4813test -z "$RANLIB" && RANLIB=:
4814
4815
4816
4817
4818
4819
4820# Determine commands to create old-style static archives.
4821old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4822old_postinstall_cmds='chmod 644 $oldlib'
4823old_postuninstall_cmds=
4824
4825if test -n "$RANLIB"; then
4826  case $host_os in
4827  openbsd*)
4828    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4829    ;;
4830  *)
4831    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4832    ;;
4833  esac
4834  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4835fi
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870# If no C compiler was specified, use CC.
4871LTCC=${LTCC-"$CC"}
4872
4873# If no C compiler flags were specified, use CFLAGS.
4874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4875
4876# Allow CC to be a program name with arguments.
4877compiler=$CC
4878
4879
4880# Check for command to grab the raw symbol name followed by C symbol from nm.
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4882$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4883if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886
4887# These are sane defaults that work on at least a few old systems.
4888# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4889
4890# Character class describing NM global symbol codes.
4891symcode='[BCDEGRST]'
4892
4893# Regexp to match symbols that can be accessed directly from C.
4894sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4895
4896# Define system-specific variables.
4897case $host_os in
4898aix*)
4899  symcode='[BCDT]'
4900  ;;
4901cygwin* | mingw* | pw32* | cegcc*)
4902  symcode='[ABCDGISTW]'
4903  ;;
4904hpux*)
4905  if test "$host_cpu" = ia64; then
4906    symcode='[ABCDEGRST]'
4907  fi
4908  ;;
4909irix* | nonstopux*)
4910  symcode='[BCDEGRST]'
4911  ;;
4912osf*)
4913  symcode='[BCDEGQRST]'
4914  ;;
4915solaris*)
4916  symcode='[BDRT]'
4917  ;;
4918sco3.2v5*)
4919  symcode='[DT]'
4920  ;;
4921sysv4.2uw2*)
4922  symcode='[DT]'
4923  ;;
4924sysv5* | sco5v6* | unixware* | OpenUNIX*)
4925  symcode='[ABDT]'
4926  ;;
4927sysv4)
4928  symcode='[DFNSTU]'
4929  ;;
4930esac
4931
4932# If we're using GNU nm, then use its standard symbol codes.
4933case `$NM -V 2>&1` in
4934*GNU* | *'with BFD'*)
4935  symcode='[ABCDGIRSTW]' ;;
4936esac
4937
4938# Transform an extracted symbol line into a proper C declaration.
4939# Some systems (esp. on ia64) link data and code symbols differently,
4940# so use this general approach.
4941lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4942
4943# Transform an extracted symbol line into symbol name and symbol address
4944lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4945lt_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'"
4946
4947# Handle CRLF in mingw tool chain
4948opt_cr=
4949case $build_os in
4950mingw*)
4951  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4952  ;;
4953esac
4954
4955# Try without a prefix underscore, then with it.
4956for ac_symprfx in "" "_"; do
4957
4958  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4959  symxfrm="\\1 $ac_symprfx\\2 \\2"
4960
4961  # Write the raw and C identifiers.
4962  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4963    # Fake it for dumpbin and say T for any non-static function
4964    # and D for any global variable.
4965    # Also find C++ and __fastcall symbols from MSVC++,
4966    # which start with @ or ?.
4967    lt_cv_sys_global_symbol_pipe="$AWK '"\
4968"     {last_section=section; section=\$ 3};"\
4969"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4970"     \$ 0!~/External *\|/{next};"\
4971"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4972"     {if(hide[section]) next};"\
4973"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4974"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4975"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4976"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4977"     ' prfx=^$ac_symprfx"
4978  else
4979    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4980  fi
4981
4982  # Check to see that the pipe works correctly.
4983  pipe_works=no
4984
4985  rm -f conftest*
4986  cat > conftest.$ac_ext <<_LT_EOF
4987#ifdef __cplusplus
4988extern "C" {
4989#endif
4990char nm_test_var;
4991void nm_test_func(void);
4992void nm_test_func(void){}
4993#ifdef __cplusplus
4994}
4995#endif
4996int main(){nm_test_var='a';nm_test_func();return(0);}
4997_LT_EOF
4998
4999  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5000  (eval $ac_compile) 2>&5
5001  ac_status=$?
5002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003  test $ac_status = 0; }; then
5004    # Now try to grab the symbols.
5005    nlist=conftest.nm
5006    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5007  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5008  ac_status=$?
5009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5010  test $ac_status = 0; } && test -s "$nlist"; then
5011      # Try sorting and uniquifying the output.
5012      if sort "$nlist" | uniq > "$nlist"T; then
5013	mv -f "$nlist"T "$nlist"
5014      else
5015	rm -f "$nlist"T
5016      fi
5017
5018      # Make sure that we snagged all the symbols we need.
5019      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5020	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5021	  cat <<_LT_EOF > conftest.$ac_ext
5022#ifdef __cplusplus
5023extern "C" {
5024#endif
5025
5026_LT_EOF
5027	  # Now generate the symbol file.
5028	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5029
5030	  cat <<_LT_EOF >> conftest.$ac_ext
5031
5032/* The mapping between symbol names and symbols.  */
5033const struct {
5034  const char *name;
5035  void       *address;
5036}
5037lt__PROGRAM__LTX_preloaded_symbols[] =
5038{
5039  { "@PROGRAM@", (void *) 0 },
5040_LT_EOF
5041	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5042	  cat <<\_LT_EOF >> conftest.$ac_ext
5043  {0, (void *) 0}
5044};
5045
5046/* This works around a problem in FreeBSD linker */
5047#ifdef FREEBSD_WORKAROUND
5048static const void *lt_preloaded_setup() {
5049  return lt__PROGRAM__LTX_preloaded_symbols;
5050}
5051#endif
5052
5053#ifdef __cplusplus
5054}
5055#endif
5056_LT_EOF
5057	  # Now try linking the two files.
5058	  mv conftest.$ac_objext conftstm.$ac_objext
5059	  lt_save_LIBS="$LIBS"
5060	  lt_save_CFLAGS="$CFLAGS"
5061	  LIBS="conftstm.$ac_objext"
5062	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5063	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5064  (eval $ac_link) 2>&5
5065  ac_status=$?
5066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5067  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5068	    pipe_works=yes
5069	  fi
5070	  LIBS="$lt_save_LIBS"
5071	  CFLAGS="$lt_save_CFLAGS"
5072	else
5073	  echo "cannot find nm_test_func in $nlist" >&5
5074	fi
5075      else
5076	echo "cannot find nm_test_var in $nlist" >&5
5077      fi
5078    else
5079      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5080    fi
5081  else
5082    echo "$progname: failed program was:" >&5
5083    cat conftest.$ac_ext >&5
5084  fi
5085  rm -rf conftest* conftst*
5086
5087  # Do not use the global_symbol_pipe unless it works.
5088  if test "$pipe_works" = yes; then
5089    break
5090  else
5091    lt_cv_sys_global_symbol_pipe=
5092  fi
5093done
5094
5095fi
5096
5097if test -z "$lt_cv_sys_global_symbol_pipe"; then
5098  lt_cv_sys_global_symbol_to_cdecl=
5099fi
5100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5102$as_echo "failed" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5105$as_echo "ok" >&6; }
5106fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130# Check whether --enable-libtool-lock was given.
5131if test "${enable_libtool_lock+set}" = set; then :
5132  enableval=$enable_libtool_lock;
5133fi
5134
5135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5136
5137# Some flags need to be propagated to the compiler or linker for good
5138# libtool support.
5139case $host in
5140ia64-*-hpux*)
5141  # Find out which ABI we are using.
5142  echo 'int i;' > conftest.$ac_ext
5143  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5144  (eval $ac_compile) 2>&5
5145  ac_status=$?
5146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147  test $ac_status = 0; }; then
5148    case `/usr/bin/file conftest.$ac_objext` in
5149      *ELF-32*)
5150	HPUX_IA64_MODE="32"
5151	;;
5152      *ELF-64*)
5153	HPUX_IA64_MODE="64"
5154	;;
5155    esac
5156  fi
5157  rm -rf conftest*
5158  ;;
5159*-*-irix6*)
5160  # Find out which ABI we are using.
5161  echo '#line 5161 "configure"' > conftest.$ac_ext
5162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5163  (eval $ac_compile) 2>&5
5164  ac_status=$?
5165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166  test $ac_status = 0; }; then
5167    if test "$lt_cv_prog_gnu_ld" = yes; then
5168      case `/usr/bin/file conftest.$ac_objext` in
5169	*32-bit*)
5170	  LD="${LD-ld} -melf32bsmip"
5171	  ;;
5172	*N32*)
5173	  LD="${LD-ld} -melf32bmipn32"
5174	  ;;
5175	*64-bit*)
5176	  LD="${LD-ld} -melf64bmip"
5177	;;
5178      esac
5179    else
5180      case `/usr/bin/file conftest.$ac_objext` in
5181	*32-bit*)
5182	  LD="${LD-ld} -32"
5183	  ;;
5184	*N32*)
5185	  LD="${LD-ld} -n32"
5186	  ;;
5187	*64-bit*)
5188	  LD="${LD-ld} -64"
5189	  ;;
5190      esac
5191    fi
5192  fi
5193  rm -rf conftest*
5194  ;;
5195
5196x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5197s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5198  # Find out which ABI we are using.
5199  echo 'int i;' > conftest.$ac_ext
5200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5201  (eval $ac_compile) 2>&5
5202  ac_status=$?
5203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5204  test $ac_status = 0; }; then
5205    case `/usr/bin/file conftest.o` in
5206      *32-bit*)
5207	case $host in
5208	  x86_64-*kfreebsd*-gnu)
5209	    LD="${LD-ld} -m elf_i386_fbsd"
5210	    ;;
5211	  x86_64-*linux*)
5212	    LD="${LD-ld} -m elf_i386"
5213	    ;;
5214	  ppc64-*linux*|powerpc64-*linux*)
5215	    LD="${LD-ld} -m elf32ppclinux"
5216	    ;;
5217	  s390x-*linux*)
5218	    LD="${LD-ld} -m elf_s390"
5219	    ;;
5220	  sparc64-*linux*)
5221	    LD="${LD-ld} -m elf32_sparc"
5222	    ;;
5223	esac
5224	;;
5225      *64-bit*)
5226	case $host in
5227	  x86_64-*kfreebsd*-gnu)
5228	    LD="${LD-ld} -m elf_x86_64_fbsd"
5229	    ;;
5230	  x86_64-*linux*)
5231	    LD="${LD-ld} -m elf_x86_64"
5232	    ;;
5233	  powerpc64le-*linux*)
5234	    LD="${LD-ld} -m elf64lppc"
5235	    ;;
5236	  powerpc64-*linux*)
5237	    LD="${LD-ld} -m elf64ppc"
5238	    ;;
5239	  s390*-*linux*|s390*-*tpf*)
5240	    LD="${LD-ld} -m elf64_s390"
5241	    ;;
5242	  sparc*-*linux*)
5243	    LD="${LD-ld} -m elf64_sparc"
5244	    ;;
5245	esac
5246	;;
5247    esac
5248  fi
5249  rm -rf conftest*
5250  ;;
5251
5252*-*-sco3.2v5*)
5253  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5254  SAVE_CFLAGS="$CFLAGS"
5255  CFLAGS="$CFLAGS -belf"
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5257$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5258if ${lt_cv_cc_needs_belf+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  ac_ext=c
5262ac_cpp='$CPP $CPPFLAGS'
5263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266
5267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269
5270int
5271main ()
5272{
5273
5274  ;
5275  return 0;
5276}
5277_ACEOF
5278if ac_fn_c_try_link "$LINENO"; then :
5279  lt_cv_cc_needs_belf=yes
5280else
5281  lt_cv_cc_needs_belf=no
5282fi
5283rm -f core conftest.err conftest.$ac_objext \
5284    conftest$ac_exeext conftest.$ac_ext
5285     ac_ext=c
5286ac_cpp='$CPP $CPPFLAGS'
5287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5293$as_echo "$lt_cv_cc_needs_belf" >&6; }
5294  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5295    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5296    CFLAGS="$SAVE_CFLAGS"
5297  fi
5298  ;;
5299sparc*-*solaris*)
5300  # Find out which ABI we are using.
5301  echo 'int i;' > conftest.$ac_ext
5302  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5303  (eval $ac_compile) 2>&5
5304  ac_status=$?
5305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306  test $ac_status = 0; }; then
5307    case `/usr/bin/file conftest.o` in
5308    *64-bit*)
5309      case $lt_cv_prog_gnu_ld in
5310      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5311      *)
5312	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5313	  LD="${LD-ld} -64"
5314	fi
5315	;;
5316      esac
5317      ;;
5318    esac
5319  fi
5320  rm -rf conftest*
5321  ;;
5322esac
5323
5324need_locks="$enable_libtool_lock"
5325
5326
5327  case $host_os in
5328    rhapsody* | darwin*)
5329    if test -n "$ac_tool_prefix"; then
5330  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5331set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333$as_echo_n "checking for $ac_word... " >&6; }
5334if ${ac_cv_prog_DSYMUTIL+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  if test -n "$DSYMUTIL"; then
5338  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5339else
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343  IFS=$as_save_IFS
5344  test -z "$as_dir" && as_dir=.
5345    for ac_exec_ext in '' $ac_executable_extensions; do
5346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349    break 2
5350  fi
5351done
5352  done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357DSYMUTIL=$ac_cv_prog_DSYMUTIL
5358if test -n "$DSYMUTIL"; then
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5360$as_echo "$DSYMUTIL" >&6; }
5361else
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363$as_echo "no" >&6; }
5364fi
5365
5366
5367fi
5368if test -z "$ac_cv_prog_DSYMUTIL"; then
5369  ac_ct_DSYMUTIL=$DSYMUTIL
5370  # Extract the first word of "dsymutil", so it can be a program name with args.
5371set dummy dsymutil; ac_word=$2
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373$as_echo_n "checking for $ac_word... " >&6; }
5374if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  if test -n "$ac_ct_DSYMUTIL"; then
5378  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383  IFS=$as_save_IFS
5384  test -z "$as_dir" && as_dir=.
5385    for ac_exec_ext in '' $ac_executable_extensions; do
5386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389    break 2
5390  fi
5391done
5392  done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5398if test -n "$ac_ct_DSYMUTIL"; then
5399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5400$as_echo "$ac_ct_DSYMUTIL" >&6; }
5401else
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406  if test "x$ac_ct_DSYMUTIL" = x; then
5407    DSYMUTIL=":"
5408  else
5409    case $cross_compiling:$ac_tool_warned in
5410yes:)
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413ac_tool_warned=yes ;;
5414esac
5415    DSYMUTIL=$ac_ct_DSYMUTIL
5416  fi
5417else
5418  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5419fi
5420
5421    if test -n "$ac_tool_prefix"; then
5422  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if ${ac_cv_prog_NMEDIT+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -n "$NMEDIT"; then
5430  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444  done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449NMEDIT=$ac_cv_prog_NMEDIT
5450if test -n "$NMEDIT"; then
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5452$as_echo "$NMEDIT" >&6; }
5453else
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459fi
5460if test -z "$ac_cv_prog_NMEDIT"; then
5461  ac_ct_NMEDIT=$NMEDIT
5462  # Extract the first word of "nmedit", so it can be a program name with args.
5463set dummy nmedit; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -n "$ac_ct_NMEDIT"; then
5470  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_exec_ext in '' $ac_executable_extensions; do
5478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484  done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5490if test -n "$ac_ct_NMEDIT"; then
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5492$as_echo "$ac_ct_NMEDIT" >&6; }
5493else
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498  if test "x$ac_ct_NMEDIT" = x; then
5499    NMEDIT=":"
5500  else
5501    case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    NMEDIT=$ac_ct_NMEDIT
5508  fi
5509else
5510  NMEDIT="$ac_cv_prog_NMEDIT"
5511fi
5512
5513    if test -n "$ac_tool_prefix"; then
5514  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}lipo; ac_word=$2
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if ${ac_cv_prog_LIPO+:} false; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  if test -n "$LIPO"; then
5522  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529    for ac_exec_ext in '' $ac_executable_extensions; do
5530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536  done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541LIPO=$ac_cv_prog_LIPO
5542if test -n "$LIPO"; then
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5544$as_echo "$LIPO" >&6; }
5545else
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550
5551fi
5552if test -z "$ac_cv_prog_LIPO"; then
5553  ac_ct_LIPO=$LIPO
5554  # Extract the first word of "lipo", so it can be a program name with args.
5555set dummy lipo; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  if test -n "$ac_ct_LIPO"; then
5562  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571    ac_cv_prog_ac_ct_LIPO="lipo"
5572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576  done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5582if test -n "$ac_ct_LIPO"; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5584$as_echo "$ac_ct_LIPO" >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590  if test "x$ac_ct_LIPO" = x; then
5591    LIPO=":"
5592  else
5593    case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597ac_tool_warned=yes ;;
5598esac
5599    LIPO=$ac_ct_LIPO
5600  fi
5601else
5602  LIPO="$ac_cv_prog_LIPO"
5603fi
5604
5605    if test -n "$ac_tool_prefix"; then
5606  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5607set dummy ${ac_tool_prefix}otool; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if ${ac_cv_prog_OTOOL+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -n "$OTOOL"; then
5614  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621    for ac_exec_ext in '' $ac_executable_extensions; do
5622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628  done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633OTOOL=$ac_cv_prog_OTOOL
5634if test -n "$OTOOL"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5636$as_echo "$OTOOL" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642
5643fi
5644if test -z "$ac_cv_prog_OTOOL"; then
5645  ac_ct_OTOOL=$OTOOL
5646  # Extract the first word of "otool", so it can be a program name with args.
5647set dummy otool; ac_word=$2
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649$as_echo_n "checking for $ac_word... " >&6; }
5650if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  if test -n "$ac_ct_OTOOL"; then
5654  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5655else
5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH
5658do
5659  IFS=$as_save_IFS
5660  test -z "$as_dir" && as_dir=.
5661    for ac_exec_ext in '' $ac_executable_extensions; do
5662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663    ac_cv_prog_ac_ct_OTOOL="otool"
5664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665    break 2
5666  fi
5667done
5668  done
5669IFS=$as_save_IFS
5670
5671fi
5672fi
5673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5674if test -n "$ac_ct_OTOOL"; then
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5676$as_echo "$ac_ct_OTOOL" >&6; }
5677else
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680fi
5681
5682  if test "x$ac_ct_OTOOL" = x; then
5683    OTOOL=":"
5684  else
5685    case $cross_compiling:$ac_tool_warned in
5686yes:)
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689ac_tool_warned=yes ;;
5690esac
5691    OTOOL=$ac_ct_OTOOL
5692  fi
5693else
5694  OTOOL="$ac_cv_prog_OTOOL"
5695fi
5696
5697    if test -n "$ac_tool_prefix"; then
5698  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}otool64; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if ${ac_cv_prog_OTOOL64+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  if test -n "$OTOOL64"; then
5706  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717    break 2
5718  fi
5719done
5720  done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725OTOOL64=$ac_cv_prog_OTOOL64
5726if test -n "$OTOOL64"; then
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5728$as_echo "$OTOOL64" >&6; }
5729else
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735fi
5736if test -z "$ac_cv_prog_OTOOL64"; then
5737  ac_ct_OTOOL64=$OTOOL64
5738  # Extract the first word of "otool64", so it can be a program name with args.
5739set dummy otool64; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  if test -n "$ac_ct_OTOOL64"; then
5746  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751  IFS=$as_save_IFS
5752  test -z "$as_dir" && as_dir=.
5753    for ac_exec_ext in '' $ac_executable_extensions; do
5754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755    ac_cv_prog_ac_ct_OTOOL64="otool64"
5756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757    break 2
5758  fi
5759done
5760  done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5766if test -n "$ac_ct_OTOOL64"; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5768$as_echo "$ac_ct_OTOOL64" >&6; }
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774  if test "x$ac_ct_OTOOL64" = x; then
5775    OTOOL64=":"
5776  else
5777    case $cross_compiling:$ac_tool_warned in
5778yes:)
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781ac_tool_warned=yes ;;
5782esac
5783    OTOOL64=$ac_ct_OTOOL64
5784  fi
5785else
5786  OTOOL64="$ac_cv_prog_OTOOL64"
5787fi
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5816$as_echo_n "checking for -single_module linker flag... " >&6; }
5817if ${lt_cv_apple_cc_single_mod+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  lt_cv_apple_cc_single_mod=no
5821      if test -z "${LT_MULTI_MODULE}"; then
5822	# By default we will add the -single_module flag. You can override
5823	# by either setting the environment variable LT_MULTI_MODULE
5824	# non-empty at configure time, or by adding -multi_module to the
5825	# link flags.
5826	rm -rf libconftest.dylib*
5827	echo "int foo(void){return 1;}" > conftest.c
5828	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5829-dynamiclib -Wl,-single_module conftest.c" >&5
5830	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5831	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5832        _lt_result=$?
5833	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5834	  lt_cv_apple_cc_single_mod=yes
5835	else
5836	  cat conftest.err >&5
5837	fi
5838	rm -rf libconftest.dylib*
5839	rm -f conftest.*
5840      fi
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5843$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5845$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5846if ${lt_cv_ld_exported_symbols_list+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  lt_cv_ld_exported_symbols_list=no
5850      save_LDFLAGS=$LDFLAGS
5851      echo "_main" > conftest.sym
5852      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5853      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_link "$LINENO"; then :
5865  lt_cv_ld_exported_symbols_list=yes
5866else
5867  lt_cv_ld_exported_symbols_list=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870    conftest$ac_exeext conftest.$ac_ext
5871	LDFLAGS="$save_LDFLAGS"
5872
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5875$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5876    case $host_os in
5877    rhapsody* | darwin1.[012])
5878      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5879    darwin1.*)
5880      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5881    darwin*) # darwin 5.x on
5882      # if running on 10.5 or later, the deployment target defaults
5883      # to the OS version, if on x86, and 10.4, the deployment
5884      # target defaults to 10.4. Don't you love it?
5885      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5886	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5887	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5888	10.[012]*)
5889	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5890	10.*)
5891	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5892      esac
5893    ;;
5894  esac
5895    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5896      _lt_dar_single_mod='$single_module'
5897    fi
5898    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5899      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5900    else
5901      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5902    fi
5903    if test "$DSYMUTIL" != ":"; then
5904      _lt_dsymutil='~$DSYMUTIL $lib || :'
5905    else
5906      _lt_dsymutil=
5907    fi
5908    ;;
5909  esac
5910
5911ac_ext=c
5912ac_cpp='$CPP $CPPFLAGS'
5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5917$as_echo_n "checking how to run the C preprocessor... " >&6; }
5918# On Suns, sometimes $CPP names a directory.
5919if test -n "$CPP" && test -d "$CPP"; then
5920  CPP=
5921fi
5922if test -z "$CPP"; then
5923  if ${ac_cv_prog_CPP+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926      # Double quotes because CPP needs to be expanded
5927    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5928    do
5929      ac_preproc_ok=false
5930for ac_c_preproc_warn_flag in '' yes
5931do
5932  # Use a header file that comes with gcc, so configuring glibc
5933  # with a fresh cross-compiler works.
5934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935  # <limits.h> exists even on freestanding compilers.
5936  # On the NeXT, cc -E runs the code through the compiler's parser,
5937  # not just through cpp. "Syntax error" is here to catch this case.
5938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939/* end confdefs.h.  */
5940#ifdef __STDC__
5941# include <limits.h>
5942#else
5943# include <assert.h>
5944#endif
5945		     Syntax error
5946_ACEOF
5947if ac_fn_c_try_cpp "$LINENO"; then :
5948
5949else
5950  # Broken: fails on valid input.
5951continue
5952fi
5953rm -f conftest.err conftest.i conftest.$ac_ext
5954
5955  # OK, works on sane cases.  Now check whether nonexistent headers
5956  # can be detected and how.
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959#include <ac_nonexistent.h>
5960_ACEOF
5961if ac_fn_c_try_cpp "$LINENO"; then :
5962  # Broken: success on invalid input.
5963continue
5964else
5965  # Passes both tests.
5966ac_preproc_ok=:
5967break
5968fi
5969rm -f conftest.err conftest.i conftest.$ac_ext
5970
5971done
5972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5973rm -f conftest.i conftest.err conftest.$ac_ext
5974if $ac_preproc_ok; then :
5975  break
5976fi
5977
5978    done
5979    ac_cv_prog_CPP=$CPP
5980
5981fi
5982  CPP=$ac_cv_prog_CPP
5983else
5984  ac_cv_prog_CPP=$CPP
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5987$as_echo "$CPP" >&6; }
5988ac_preproc_ok=false
5989for ac_c_preproc_warn_flag in '' yes
5990do
5991  # Use a header file that comes with gcc, so configuring glibc
5992  # with a fresh cross-compiler works.
5993  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994  # <limits.h> exists even on freestanding compilers.
5995  # On the NeXT, cc -E runs the code through the compiler's parser,
5996  # not just through cpp. "Syntax error" is here to catch this case.
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999#ifdef __STDC__
6000# include <limits.h>
6001#else
6002# include <assert.h>
6003#endif
6004		     Syntax error
6005_ACEOF
6006if ac_fn_c_try_cpp "$LINENO"; then :
6007
6008else
6009  # Broken: fails on valid input.
6010continue
6011fi
6012rm -f conftest.err conftest.i conftest.$ac_ext
6013
6014  # OK, works on sane cases.  Now check whether nonexistent headers
6015  # can be detected and how.
6016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h.  */
6018#include <ac_nonexistent.h>
6019_ACEOF
6020if ac_fn_c_try_cpp "$LINENO"; then :
6021  # Broken: success on invalid input.
6022continue
6023else
6024  # Passes both tests.
6025ac_preproc_ok=:
6026break
6027fi
6028rm -f conftest.err conftest.i conftest.$ac_ext
6029
6030done
6031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6032rm -f conftest.i conftest.err conftest.$ac_ext
6033if $ac_preproc_ok; then :
6034
6035else
6036  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6039See \`config.log' for more details" "$LINENO" 5; }
6040fi
6041
6042ac_ext=c
6043ac_cpp='$CPP $CPPFLAGS'
6044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047
6048
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6050$as_echo_n "checking for ANSI C header files... " >&6; }
6051if ${ac_cv_header_stdc+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056#include <stdlib.h>
6057#include <stdarg.h>
6058#include <string.h>
6059#include <float.h>
6060
6061int
6062main ()
6063{
6064
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"; then :
6070  ac_cv_header_stdc=yes
6071else
6072  ac_cv_header_stdc=no
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075
6076if test $ac_cv_header_stdc = yes; then
6077  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080#include <string.h>
6081
6082_ACEOF
6083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6084  $EGREP "memchr" >/dev/null 2>&1; then :
6085
6086else
6087  ac_cv_header_stdc=no
6088fi
6089rm -f conftest*
6090
6091fi
6092
6093if test $ac_cv_header_stdc = yes; then
6094  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h.  */
6097#include <stdlib.h>
6098
6099_ACEOF
6100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101  $EGREP "free" >/dev/null 2>&1; then :
6102
6103else
6104  ac_cv_header_stdc=no
6105fi
6106rm -f conftest*
6107
6108fi
6109
6110if test $ac_cv_header_stdc = yes; then
6111  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6112  if test "$cross_compiling" = yes; then :
6113  :
6114else
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117#include <ctype.h>
6118#include <stdlib.h>
6119#if ((' ' & 0x0FF) == 0x020)
6120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6122#else
6123# define ISLOWER(c) \
6124		   (('a' <= (c) && (c) <= 'i') \
6125		     || ('j' <= (c) && (c) <= 'r') \
6126		     || ('s' <= (c) && (c) <= 'z'))
6127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6128#endif
6129
6130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6131int
6132main ()
6133{
6134  int i;
6135  for (i = 0; i < 256; i++)
6136    if (XOR (islower (i), ISLOWER (i))
6137	|| toupper (i) != TOUPPER (i))
6138      return 2;
6139  return 0;
6140}
6141_ACEOF
6142if ac_fn_c_try_run "$LINENO"; then :
6143
6144else
6145  ac_cv_header_stdc=no
6146fi
6147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6148  conftest.$ac_objext conftest.beam conftest.$ac_ext
6149fi
6150
6151fi
6152fi
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6154$as_echo "$ac_cv_header_stdc" >&6; }
6155if test $ac_cv_header_stdc = yes; then
6156
6157$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6158
6159fi
6160
6161# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6162for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6163		  inttypes.h stdint.h unistd.h
6164do :
6165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6167"
6168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6169  cat >>confdefs.h <<_ACEOF
6170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6171_ACEOF
6172
6173fi
6174
6175done
6176
6177
6178for ac_header in dlfcn.h
6179do :
6180  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6181"
6182if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6183  cat >>confdefs.h <<_ACEOF
6184#define HAVE_DLFCN_H 1
6185_ACEOF
6186
6187fi
6188
6189done
6190
6191
6192
6193# Set options
6194enable_win32_dll=yes
6195
6196case $host in
6197*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6198  if test -n "$ac_tool_prefix"; then
6199  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}as; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_AS+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$AS"; then
6207  ac_cv_prog_AS="$AS" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_AS="${ac_tool_prefix}as"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226AS=$ac_cv_prog_AS
6227if test -n "$AS"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6229$as_echo "$AS" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236fi
6237if test -z "$ac_cv_prog_AS"; then
6238  ac_ct_AS=$AS
6239  # Extract the first word of "as", so it can be a program name with args.
6240set dummy as; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_prog_ac_ct_AS+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  if test -n "$ac_ct_AS"; then
6247  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252  IFS=$as_save_IFS
6253  test -z "$as_dir" && as_dir=.
6254    for ac_exec_ext in '' $ac_executable_extensions; do
6255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256    ac_cv_prog_ac_ct_AS="as"
6257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258    break 2
6259  fi
6260done
6261  done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266ac_ct_AS=$ac_cv_prog_ac_ct_AS
6267if test -n "$ac_ct_AS"; then
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6269$as_echo "$ac_ct_AS" >&6; }
6270else
6271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275  if test "x$ac_ct_AS" = x; then
6276    AS="false"
6277  else
6278    case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284    AS=$ac_ct_AS
6285  fi
6286else
6287  AS="$ac_cv_prog_AS"
6288fi
6289
6290  if test -n "$ac_tool_prefix"; then
6291  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6292set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294$as_echo_n "checking for $ac_word... " >&6; }
6295if ${ac_cv_prog_DLLTOOL+:} false; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298  if test -n "$DLLTOOL"; then
6299  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306    for ac_exec_ext in '' $ac_executable_extensions; do
6307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313  done
6314IFS=$as_save_IFS
6315
6316fi
6317fi
6318DLLTOOL=$ac_cv_prog_DLLTOOL
6319if test -n "$DLLTOOL"; then
6320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6321$as_echo "$DLLTOOL" >&6; }
6322else
6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324$as_echo "no" >&6; }
6325fi
6326
6327
6328fi
6329if test -z "$ac_cv_prog_DLLTOOL"; then
6330  ac_ct_DLLTOOL=$DLLTOOL
6331  # Extract the first word of "dlltool", so it can be a program name with args.
6332set dummy dlltool; ac_word=$2
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334$as_echo_n "checking for $ac_word... " >&6; }
6335if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  if test -n "$ac_ct_DLLTOOL"; then
6339  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346    for ac_exec_ext in '' $ac_executable_extensions; do
6347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353  done
6354IFS=$as_save_IFS
6355
6356fi
6357fi
6358ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6359if test -n "$ac_ct_DLLTOOL"; then
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6361$as_echo "$ac_ct_DLLTOOL" >&6; }
6362else
6363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364$as_echo "no" >&6; }
6365fi
6366
6367  if test "x$ac_ct_DLLTOOL" = x; then
6368    DLLTOOL="false"
6369  else
6370    case $cross_compiling:$ac_tool_warned in
6371yes:)
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374ac_tool_warned=yes ;;
6375esac
6376    DLLTOOL=$ac_ct_DLLTOOL
6377  fi
6378else
6379  DLLTOOL="$ac_cv_prog_DLLTOOL"
6380fi
6381
6382  if test -n "$ac_tool_prefix"; then
6383  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}objdump; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if ${ac_cv_prog_OBJDUMP+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  if test -n "$OBJDUMP"; then
6391  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398    for ac_exec_ext in '' $ac_executable_extensions; do
6399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405  done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410OBJDUMP=$ac_cv_prog_OBJDUMP
6411if test -n "$OBJDUMP"; then
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6413$as_echo "$OBJDUMP" >&6; }
6414else
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419
6420fi
6421if test -z "$ac_cv_prog_OBJDUMP"; then
6422  ac_ct_OBJDUMP=$OBJDUMP
6423  # Extract the first word of "objdump", so it can be a program name with args.
6424set dummy objdump; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$ac_ct_OBJDUMP"; then
6431  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6451if test -n "$ac_ct_OBJDUMP"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6453$as_echo "$ac_ct_OBJDUMP" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459  if test "x$ac_ct_OBJDUMP" = x; then
6460    OBJDUMP="false"
6461  else
6462    case $cross_compiling:$ac_tool_warned in
6463yes:)
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468    OBJDUMP=$ac_ct_OBJDUMP
6469  fi
6470else
6471  OBJDUMP="$ac_cv_prog_OBJDUMP"
6472fi
6473
6474  ;;
6475esac
6476
6477test -z "$AS" && AS=as
6478
6479
6480
6481
6482
6483test -z "$DLLTOOL" && DLLTOOL=dlltool
6484
6485
6486
6487
6488
6489test -z "$OBJDUMP" && OBJDUMP=objdump
6490
6491
6492
6493
6494
6495
6496
6497        enable_dlopen=no
6498
6499
6500
6501            # Check whether --enable-shared was given.
6502if test "${enable_shared+set}" = set; then :
6503  enableval=$enable_shared; p=${PACKAGE-default}
6504    case $enableval in
6505    yes) enable_shared=yes ;;
6506    no) enable_shared=no ;;
6507    *)
6508      enable_shared=no
6509      # Look at the argument we got.  We use all the common list separators.
6510      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6511      for pkg in $enableval; do
6512	IFS="$lt_save_ifs"
6513	if test "X$pkg" = "X$p"; then
6514	  enable_shared=yes
6515	fi
6516      done
6517      IFS="$lt_save_ifs"
6518      ;;
6519    esac
6520else
6521  enable_shared=yes
6522fi
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532  # Check whether --enable-static was given.
6533if test "${enable_static+set}" = set; then :
6534  enableval=$enable_static; p=${PACKAGE-default}
6535    case $enableval in
6536    yes) enable_static=yes ;;
6537    no) enable_static=no ;;
6538    *)
6539     enable_static=no
6540      # Look at the argument we got.  We use all the common list separators.
6541      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6542      for pkg in $enableval; do
6543	IFS="$lt_save_ifs"
6544	if test "X$pkg" = "X$p"; then
6545	  enable_static=yes
6546	fi
6547      done
6548      IFS="$lt_save_ifs"
6549      ;;
6550    esac
6551else
6552  enable_static=yes
6553fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564# Check whether --with-pic was given.
6565if test "${with_pic+set}" = set; then :
6566  withval=$with_pic; pic_mode="$withval"
6567else
6568  pic_mode=default
6569fi
6570
6571
6572test -z "$pic_mode" && pic_mode=default
6573
6574
6575
6576
6577
6578
6579
6580  # Check whether --enable-fast-install was given.
6581if test "${enable_fast_install+set}" = set; then :
6582  enableval=$enable_fast_install; p=${PACKAGE-default}
6583    case $enableval in
6584    yes) enable_fast_install=yes ;;
6585    no) enable_fast_install=no ;;
6586    *)
6587      enable_fast_install=no
6588      # Look at the argument we got.  We use all the common list separators.
6589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6590      for pkg in $enableval; do
6591	IFS="$lt_save_ifs"
6592	if test "X$pkg" = "X$p"; then
6593	  enable_fast_install=yes
6594	fi
6595      done
6596      IFS="$lt_save_ifs"
6597      ;;
6598    esac
6599else
6600  enable_fast_install=yes
6601fi
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613# This can be used to rebuild libtool when needed
6614LIBTOOL_DEPS="$ltmain"
6615
6616# Always use our own libtool.
6617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643test -z "$LN_S" && LN_S="ln -s"
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658if test -n "${ZSH_VERSION+set}" ; then
6659   setopt NO_GLOB_SUBST
6660fi
6661
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6663$as_echo_n "checking for objdir... " >&6; }
6664if ${lt_cv_objdir+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  rm -f .libs 2>/dev/null
6668mkdir .libs 2>/dev/null
6669if test -d .libs; then
6670  lt_cv_objdir=.libs
6671else
6672  # MS-DOS does not allow filenames that begin with a dot.
6673  lt_cv_objdir=_libs
6674fi
6675rmdir .libs 2>/dev/null
6676fi
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6678$as_echo "$lt_cv_objdir" >&6; }
6679objdir=$lt_cv_objdir
6680
6681
6682
6683
6684
6685cat >>confdefs.h <<_ACEOF
6686#define LT_OBJDIR "$lt_cv_objdir/"
6687_ACEOF
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705case $host_os in
6706aix3*)
6707  # AIX sometimes has problems with the GCC collect2 program.  For some
6708  # reason, if we set the COLLECT_NAMES environment variable, the problems
6709  # vanish in a puff of smoke.
6710  if test "X${COLLECT_NAMES+set}" != Xset; then
6711    COLLECT_NAMES=
6712    export COLLECT_NAMES
6713  fi
6714  ;;
6715esac
6716
6717# Sed substitution that helps us do robust quoting.  It backslashifies
6718# metacharacters that are still active within double-quoted strings.
6719sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6720
6721# Same as above, but do not quote variable references.
6722double_quote_subst='s/\(["`\\]\)/\\\1/g'
6723
6724# Sed substitution to delay expansion of an escaped shell variable in a
6725# double_quote_subst'ed string.
6726delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6727
6728# Sed substitution to delay expansion of an escaped single quote.
6729delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6730
6731# Sed substitution to avoid accidental globbing in evaled expressions
6732no_glob_subst='s/\*/\\\*/g'
6733
6734# Global variables:
6735ofile=libtool
6736can_build_shared=yes
6737
6738# All known linkers require a `.a' archive for static linking (except MSVC,
6739# which needs '.lib').
6740libext=a
6741
6742with_gnu_ld="$lt_cv_prog_gnu_ld"
6743
6744old_CC="$CC"
6745old_CFLAGS="$CFLAGS"
6746
6747# Set sane defaults for various variables
6748test -z "$CC" && CC=cc
6749test -z "$LTCC" && LTCC=$CC
6750test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6751test -z "$LD" && LD=ld
6752test -z "$ac_objext" && ac_objext=o
6753
6754for cc_temp in $compiler""; do
6755  case $cc_temp in
6756    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6757    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6758    \-*) ;;
6759    *) break;;
6760  esac
6761done
6762cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6763
6764
6765# Only perform the check for file, if the check method requires it
6766test -z "$MAGIC_CMD" && MAGIC_CMD=file
6767case $deplibs_check_method in
6768file_magic*)
6769  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6771$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6772if ${lt_cv_path_MAGIC_CMD+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  case $MAGIC_CMD in
6776[\\/*] |  ?:[\\/]*)
6777  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6778  ;;
6779*)
6780  lt_save_MAGIC_CMD="$MAGIC_CMD"
6781  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6782  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6783  for ac_dir in $ac_dummy; do
6784    IFS="$lt_save_ifs"
6785    test -z "$ac_dir" && ac_dir=.
6786    if test -f $ac_dir/${ac_tool_prefix}file; then
6787      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6788      if test -n "$file_magic_test_file"; then
6789	case $deplibs_check_method in
6790	"file_magic "*)
6791	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6792	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6793	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6794	    $EGREP "$file_magic_regex" > /dev/null; then
6795	    :
6796	  else
6797	    cat <<_LT_EOF 1>&2
6798
6799*** Warning: the command libtool uses to detect shared libraries,
6800*** $file_magic_cmd, produces output that libtool cannot recognize.
6801*** The result is that libtool may fail to recognize shared libraries
6802*** as such.  This will affect the creation of libtool libraries that
6803*** depend on shared libraries, but programs linked with such libtool
6804*** libraries will work regardless of this problem.  Nevertheless, you
6805*** may want to report the problem to your system manager and/or to
6806*** bug-libtool@gnu.org
6807
6808_LT_EOF
6809	  fi ;;
6810	esac
6811      fi
6812      break
6813    fi
6814  done
6815  IFS="$lt_save_ifs"
6816  MAGIC_CMD="$lt_save_MAGIC_CMD"
6817  ;;
6818esac
6819fi
6820
6821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6822if test -n "$MAGIC_CMD"; then
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6824$as_echo "$MAGIC_CMD" >&6; }
6825else
6826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827$as_echo "no" >&6; }
6828fi
6829
6830
6831
6832
6833
6834if test -z "$lt_cv_path_MAGIC_CMD"; then
6835  if test -n "$ac_tool_prefix"; then
6836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6837$as_echo_n "checking for file... " >&6; }
6838if ${lt_cv_path_MAGIC_CMD+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  case $MAGIC_CMD in
6842[\\/*] |  ?:[\\/]*)
6843  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6844  ;;
6845*)
6846  lt_save_MAGIC_CMD="$MAGIC_CMD"
6847  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6848  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6849  for ac_dir in $ac_dummy; do
6850    IFS="$lt_save_ifs"
6851    test -z "$ac_dir" && ac_dir=.
6852    if test -f $ac_dir/file; then
6853      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6854      if test -n "$file_magic_test_file"; then
6855	case $deplibs_check_method in
6856	"file_magic "*)
6857	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6858	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6859	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6860	    $EGREP "$file_magic_regex" > /dev/null; then
6861	    :
6862	  else
6863	    cat <<_LT_EOF 1>&2
6864
6865*** Warning: the command libtool uses to detect shared libraries,
6866*** $file_magic_cmd, produces output that libtool cannot recognize.
6867*** The result is that libtool may fail to recognize shared libraries
6868*** as such.  This will affect the creation of libtool libraries that
6869*** depend on shared libraries, but programs linked with such libtool
6870*** libraries will work regardless of this problem.  Nevertheless, you
6871*** may want to report the problem to your system manager and/or to
6872*** bug-libtool@gnu.org
6873
6874_LT_EOF
6875	  fi ;;
6876	esac
6877      fi
6878      break
6879    fi
6880  done
6881  IFS="$lt_save_ifs"
6882  MAGIC_CMD="$lt_save_MAGIC_CMD"
6883  ;;
6884esac
6885fi
6886
6887MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6888if test -n "$MAGIC_CMD"; then
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6890$as_echo "$MAGIC_CMD" >&6; }
6891else
6892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896
6897  else
6898    MAGIC_CMD=:
6899  fi
6900fi
6901
6902  fi
6903  ;;
6904esac
6905
6906# Use C for the default configuration in the libtool script
6907
6908lt_save_CC="$CC"
6909ac_ext=c
6910ac_cpp='$CPP $CPPFLAGS'
6911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915
6916# Source file extension for C test sources.
6917ac_ext=c
6918
6919# Object file extension for compiled C test sources.
6920objext=o
6921objext=$objext
6922
6923# Code to be used in simple compile tests
6924lt_simple_compile_test_code="int some_variable = 0;"
6925
6926# Code to be used in simple link tests
6927lt_simple_link_test_code='int main(){return(0);}'
6928
6929
6930
6931
6932
6933
6934
6935# If no C compiler was specified, use CC.
6936LTCC=${LTCC-"$CC"}
6937
6938# If no C compiler flags were specified, use CFLAGS.
6939LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940
6941# Allow CC to be a program name with arguments.
6942compiler=$CC
6943
6944# Save the default compiler, since it gets overwritten when the other
6945# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6946compiler_DEFAULT=$CC
6947
6948# save warnings/boilerplate of simple test code
6949ac_outfile=conftest.$ac_objext
6950echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6952_lt_compiler_boilerplate=`cat conftest.err`
6953$RM conftest*
6954
6955ac_outfile=conftest.$ac_objext
6956echo "$lt_simple_link_test_code" >conftest.$ac_ext
6957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6958_lt_linker_boilerplate=`cat conftest.err`
6959$RM -r conftest*
6960
6961
6962## CAVEAT EMPTOR:
6963## There is no encapsulation within the following macros, do not change
6964## the running order or otherwise move them around unless you know exactly
6965## what you are doing...
6966if test -n "$compiler"; then
6967
6968lt_prog_compiler_no_builtin_flag=
6969
6970if test "$GCC" = yes; then
6971  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6972
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6974$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6975if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  lt_cv_prog_compiler_rtti_exceptions=no
6979   ac_outfile=conftest.$ac_objext
6980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6981   lt_compiler_flag="-fno-rtti -fno-exceptions"
6982   # Insert the option either (1) after the last *FLAGS variable, or
6983   # (2) before a word containing "conftest.", or (3) at the end.
6984   # Note that $ac_compile itself does not contain backslashes and begins
6985   # with a dollar sign (not a hyphen), so the echo should work correctly.
6986   # The option is referenced via a variable to avoid confusing sed.
6987   lt_compile=`echo "$ac_compile" | $SED \
6988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6990   -e 's:$: $lt_compiler_flag:'`
6991   (eval echo "\"\$as_me:6991: $lt_compile\"" >&5)
6992   (eval "$lt_compile" 2>conftest.err)
6993   ac_status=$?
6994   cat conftest.err >&5
6995   echo "$as_me:6995: \$? = $ac_status" >&5
6996   if (exit $ac_status) && test -s "$ac_outfile"; then
6997     # The compiler can only warn and ignore the option if not recognized
6998     # So say no if there are warnings other than the usual output.
6999     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7000     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7001     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7002       lt_cv_prog_compiler_rtti_exceptions=yes
7003     fi
7004   fi
7005   $RM conftest*
7006
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7009$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7010
7011if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7012    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7013else
7014    :
7015fi
7016
7017fi
7018
7019
7020
7021
7022
7023
7024  lt_prog_compiler_wl=
7025lt_prog_compiler_pic=
7026lt_prog_compiler_static=
7027
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7029$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7030
7031  if test "$GCC" = yes; then
7032    lt_prog_compiler_wl='-Wl,'
7033    lt_prog_compiler_static='-static'
7034
7035    case $host_os in
7036      aix*)
7037      # All AIX code is PIC.
7038      if test "$host_cpu" = ia64; then
7039	# AIX 5 now supports IA64 processor
7040	lt_prog_compiler_static='-Bstatic'
7041      fi
7042      ;;
7043
7044    amigaos*)
7045      case $host_cpu in
7046      powerpc)
7047            # see comment about AmigaOS4 .so support
7048            lt_prog_compiler_pic='-fPIC'
7049        ;;
7050      m68k)
7051            # FIXME: we need at least 68020 code to build shared libraries, but
7052            # adding the `-m68020' flag to GCC prevents building anything better,
7053            # like `-m68040'.
7054            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7055        ;;
7056      esac
7057      ;;
7058
7059    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7060      # PIC is the default for these OSes.
7061      ;;
7062
7063    mingw* | cygwin* | pw32* | os2* | cegcc*)
7064      # This hack is so that the source file can tell whether it is being
7065      # built for inclusion in a dll (and should export symbols for example).
7066      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7067      # (--disable-auto-import) libraries
7068      lt_prog_compiler_pic='-DDLL_EXPORT'
7069      ;;
7070
7071    darwin* | rhapsody*)
7072      # PIC is the default on this platform
7073      # Common symbols not allowed in MH_DYLIB files
7074      lt_prog_compiler_pic='-fno-common'
7075      ;;
7076
7077    hpux*)
7078      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7079      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7080      # sets the default TLS model and affects inlining.
7081      case $host_cpu in
7082      hppa*64*)
7083	# +Z the default
7084	;;
7085      *)
7086	lt_prog_compiler_pic='-fPIC'
7087	;;
7088      esac
7089      ;;
7090
7091    interix[3-9]*)
7092      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7093      # Instead, we relocate shared libraries at runtime.
7094      ;;
7095
7096    msdosdjgpp*)
7097      # Just because we use GCC doesn't mean we suddenly get shared libraries
7098      # on systems that don't support them.
7099      lt_prog_compiler_can_build_shared=no
7100      enable_shared=no
7101      ;;
7102
7103    *nto* | *qnx*)
7104      # QNX uses GNU C++, but need to define -shared option too, otherwise
7105      # it will coredump.
7106      lt_prog_compiler_pic='-fPIC -shared'
7107      ;;
7108
7109    sysv4*MP*)
7110      if test -d /usr/nec; then
7111	lt_prog_compiler_pic=-Kconform_pic
7112      fi
7113      ;;
7114
7115    *)
7116      lt_prog_compiler_pic='-fPIC'
7117      ;;
7118    esac
7119  else
7120    # PORTME Check for flag to pass linker flags through the system compiler.
7121    case $host_os in
7122    aix*)
7123      lt_prog_compiler_wl='-Wl,'
7124      if test "$host_cpu" = ia64; then
7125	# AIX 5 now supports IA64 processor
7126	lt_prog_compiler_static='-Bstatic'
7127      else
7128	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7129      fi
7130      ;;
7131
7132    mingw* | cygwin* | pw32* | os2* | cegcc*)
7133      # This hack is so that the source file can tell whether it is being
7134      # built for inclusion in a dll (and should export symbols for example).
7135      lt_prog_compiler_pic='-DDLL_EXPORT'
7136      ;;
7137
7138    hpux9* | hpux10* | hpux11*)
7139      lt_prog_compiler_wl='-Wl,'
7140      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7141      # not for PA HP-UX.
7142      case $host_cpu in
7143      hppa*64*|ia64*)
7144	# +Z the default
7145	;;
7146      *)
7147	lt_prog_compiler_pic='+Z'
7148	;;
7149      esac
7150      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7151      lt_prog_compiler_static='${wl}-a ${wl}archive'
7152      ;;
7153
7154    irix5* | irix6* | nonstopux*)
7155      lt_prog_compiler_wl='-Wl,'
7156      # PIC (with -KPIC) is the default.
7157      lt_prog_compiler_static='-non_shared'
7158      ;;
7159
7160    linux* | k*bsd*-gnu)
7161      case $cc_basename in
7162      # old Intel for x86_64 which still supported -KPIC.
7163      ecc*)
7164	lt_prog_compiler_wl='-Wl,'
7165	lt_prog_compiler_pic='-KPIC'
7166	lt_prog_compiler_static='-static'
7167        ;;
7168      # icc used to be incompatible with GCC.
7169      # ICC 10 doesn't accept -KPIC any more.
7170      icc* | ifort*)
7171	lt_prog_compiler_wl='-Wl,'
7172	lt_prog_compiler_pic='-fPIC'
7173	lt_prog_compiler_static='-static'
7174        ;;
7175      # Lahey Fortran 8.1.
7176      lf95*)
7177	lt_prog_compiler_wl='-Wl,'
7178	lt_prog_compiler_pic='--shared'
7179	lt_prog_compiler_static='--static'
7180	;;
7181      pgcc* | pgf77* | pgf90* | pgf95*)
7182        # Portland Group compilers (*not* the Pentium gcc compiler,
7183	# which looks to be a dead project)
7184	lt_prog_compiler_wl='-Wl,'
7185	lt_prog_compiler_pic='-fpic'
7186	lt_prog_compiler_static='-Bstatic'
7187        ;;
7188      ccc*)
7189        lt_prog_compiler_wl='-Wl,'
7190        # All Alpha code is PIC.
7191        lt_prog_compiler_static='-non_shared'
7192        ;;
7193      xl*)
7194	# IBM XL C 8.0/Fortran 10.1 on PPC
7195	lt_prog_compiler_wl='-Wl,'
7196	lt_prog_compiler_pic='-qpic'
7197	lt_prog_compiler_static='-qstaticlink'
7198	;;
7199      *)
7200	case `$CC -V 2>&1 | sed 5q` in
7201	*Sun\ C*)
7202	  # Sun C 5.9
7203	  lt_prog_compiler_pic='-KPIC'
7204	  lt_prog_compiler_static='-Bstatic'
7205	  lt_prog_compiler_wl='-Wl,'
7206	  ;;
7207	*Sun\ F*)
7208	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7209	  lt_prog_compiler_pic='-KPIC'
7210	  lt_prog_compiler_static='-Bstatic'
7211	  lt_prog_compiler_wl=''
7212	  ;;
7213	esac
7214	;;
7215      esac
7216      ;;
7217
7218    newsos6)
7219      lt_prog_compiler_pic='-KPIC'
7220      lt_prog_compiler_static='-Bstatic'
7221      ;;
7222
7223    *nto* | *qnx*)
7224      # QNX uses GNU C++, but need to define -shared option too, otherwise
7225      # it will coredump.
7226      lt_prog_compiler_pic='-fPIC -shared'
7227      ;;
7228
7229    osf3* | osf4* | osf5*)
7230      lt_prog_compiler_wl='-Wl,'
7231      # All OSF/1 code is PIC.
7232      lt_prog_compiler_static='-non_shared'
7233      ;;
7234
7235    rdos*)
7236      lt_prog_compiler_static='-non_shared'
7237      ;;
7238
7239    solaris*)
7240      lt_prog_compiler_pic='-KPIC'
7241      lt_prog_compiler_static='-Bstatic'
7242      case $cc_basename in
7243      f77* | f90* | f95*)
7244	lt_prog_compiler_wl='-Qoption ld ';;
7245      *)
7246	lt_prog_compiler_wl='-Wl,';;
7247      esac
7248      ;;
7249
7250    sunos4*)
7251      lt_prog_compiler_wl='-Qoption ld '
7252      lt_prog_compiler_pic='-PIC'
7253      lt_prog_compiler_static='-Bstatic'
7254      ;;
7255
7256    sysv4 | sysv4.2uw2* | sysv4.3*)
7257      lt_prog_compiler_wl='-Wl,'
7258      lt_prog_compiler_pic='-KPIC'
7259      lt_prog_compiler_static='-Bstatic'
7260      ;;
7261
7262    sysv4*MP*)
7263      if test -d /usr/nec ;then
7264	lt_prog_compiler_pic='-Kconform_pic'
7265	lt_prog_compiler_static='-Bstatic'
7266      fi
7267      ;;
7268
7269    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7270      lt_prog_compiler_wl='-Wl,'
7271      lt_prog_compiler_pic='-KPIC'
7272      lt_prog_compiler_static='-Bstatic'
7273      ;;
7274
7275    unicos*)
7276      lt_prog_compiler_wl='-Wl,'
7277      lt_prog_compiler_can_build_shared=no
7278      ;;
7279
7280    uts4*)
7281      lt_prog_compiler_pic='-pic'
7282      lt_prog_compiler_static='-Bstatic'
7283      ;;
7284
7285    *)
7286      lt_prog_compiler_can_build_shared=no
7287      ;;
7288    esac
7289  fi
7290
7291case $host_os in
7292  # For platforms which do not support PIC, -DPIC is meaningless:
7293  *djgpp*)
7294    lt_prog_compiler_pic=
7295    ;;
7296  *)
7297    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7298    ;;
7299esac
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7301$as_echo "$lt_prog_compiler_pic" >&6; }
7302
7303
7304
7305
7306
7307
7308#
7309# Check to make sure the PIC flag actually works.
7310#
7311if test -n "$lt_prog_compiler_pic"; then
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7313$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7314if ${lt_cv_prog_compiler_pic_works+:} false; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  lt_cv_prog_compiler_pic_works=no
7318   ac_outfile=conftest.$ac_objext
7319   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7320   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7321   # Insert the option either (1) after the last *FLAGS variable, or
7322   # (2) before a word containing "conftest.", or (3) at the end.
7323   # Note that $ac_compile itself does not contain backslashes and begins
7324   # with a dollar sign (not a hyphen), so the echo should work correctly.
7325   # The option is referenced via a variable to avoid confusing sed.
7326   lt_compile=`echo "$ac_compile" | $SED \
7327   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7328   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7329   -e 's:$: $lt_compiler_flag:'`
7330   (eval echo "\"\$as_me:7330: $lt_compile\"" >&5)
7331   (eval "$lt_compile" 2>conftest.err)
7332   ac_status=$?
7333   cat conftest.err >&5
7334   echo "$as_me:7334: \$? = $ac_status" >&5
7335   if (exit $ac_status) && test -s "$ac_outfile"; then
7336     # The compiler can only warn and ignore the option if not recognized
7337     # So say no if there are warnings other than the usual output.
7338     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7339     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7340     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7341       lt_cv_prog_compiler_pic_works=yes
7342     fi
7343   fi
7344   $RM conftest*
7345
7346fi
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7348$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7349
7350if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7351    case $lt_prog_compiler_pic in
7352     "" | " "*) ;;
7353     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7354     esac
7355else
7356    lt_prog_compiler_pic=
7357     lt_prog_compiler_can_build_shared=no
7358fi
7359
7360fi
7361
7362
7363
7364
7365
7366
7367#
7368# Check to make sure the static flag actually works.
7369#
7370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7373if ${lt_cv_prog_compiler_static_works+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  lt_cv_prog_compiler_static_works=no
7377   save_LDFLAGS="$LDFLAGS"
7378   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7379   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7380   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7381     # The linker can only warn and ignore the option if not recognized
7382     # So say no if there are warnings
7383     if test -s conftest.err; then
7384       # Append any errors to the config.log.
7385       cat conftest.err 1>&5
7386       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7387       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7388       if diff conftest.exp conftest.er2 >/dev/null; then
7389         lt_cv_prog_compiler_static_works=yes
7390       fi
7391     else
7392       lt_cv_prog_compiler_static_works=yes
7393     fi
7394   fi
7395   $RM -r conftest*
7396   LDFLAGS="$save_LDFLAGS"
7397
7398fi
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7400$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7401
7402if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7403    :
7404else
7405    lt_prog_compiler_static=
7406fi
7407
7408
7409
7410
7411
7412
7413
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7416if ${lt_cv_prog_compiler_c_o+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  lt_cv_prog_compiler_c_o=no
7420   $RM -r conftest 2>/dev/null
7421   mkdir conftest
7422   cd conftest
7423   mkdir out
7424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425
7426   lt_compiler_flag="-o out/conftest2.$ac_objext"
7427   # Insert the option either (1) after the last *FLAGS variable, or
7428   # (2) before a word containing "conftest.", or (3) at the end.
7429   # Note that $ac_compile itself does not contain backslashes and begins
7430   # with a dollar sign (not a hyphen), so the echo should work correctly.
7431   lt_compile=`echo "$ac_compile" | $SED \
7432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434   -e 's:$: $lt_compiler_flag:'`
7435   (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436   (eval "$lt_compile" 2>out/conftest.err)
7437   ac_status=$?
7438   cat out/conftest.err >&5
7439   echo "$as_me:7439: \$? = $ac_status" >&5
7440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7441   then
7442     # The compiler can only warn and ignore the option if not recognized
7443     # So say no if there are warnings
7444     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7447       lt_cv_prog_compiler_c_o=yes
7448     fi
7449   fi
7450   chmod u+w . 2>&5
7451   $RM conftest*
7452   # SGI C++ compiler will create directory out/ii_files/ for
7453   # template instantiation
7454   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7455   $RM out/* && rmdir out
7456   cd ..
7457   $RM -r conftest
7458   $RM conftest*
7459
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7463
7464
7465
7466
7467
7468
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7471if ${lt_cv_prog_compiler_c_o+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474  lt_cv_prog_compiler_c_o=no
7475   $RM -r conftest 2>/dev/null
7476   mkdir conftest
7477   cd conftest
7478   mkdir out
7479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7480
7481   lt_compiler_flag="-o out/conftest2.$ac_objext"
7482   # Insert the option either (1) after the last *FLAGS variable, or
7483   # (2) before a word containing "conftest.", or (3) at the end.
7484   # Note that $ac_compile itself does not contain backslashes and begins
7485   # with a dollar sign (not a hyphen), so the echo should work correctly.
7486   lt_compile=`echo "$ac_compile" | $SED \
7487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7489   -e 's:$: $lt_compiler_flag:'`
7490   (eval echo "\"\$as_me:7490: $lt_compile\"" >&5)
7491   (eval "$lt_compile" 2>out/conftest.err)
7492   ac_status=$?
7493   cat out/conftest.err >&5
7494   echo "$as_me:7494: \$? = $ac_status" >&5
7495   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7496   then
7497     # The compiler can only warn and ignore the option if not recognized
7498     # So say no if there are warnings
7499     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7500     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7501     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7502       lt_cv_prog_compiler_c_o=yes
7503     fi
7504   fi
7505   chmod u+w . 2>&5
7506   $RM conftest*
7507   # SGI C++ compiler will create directory out/ii_files/ for
7508   # template instantiation
7509   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7510   $RM out/* && rmdir out
7511   cd ..
7512   $RM -r conftest
7513   $RM conftest*
7514
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7517$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7518
7519
7520
7521
7522hard_links="nottested"
7523if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7524  # do not overwrite the value of need_locks provided by the user
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7526$as_echo_n "checking if we can lock with hard links... " >&6; }
7527  hard_links=yes
7528  $RM conftest*
7529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7530  touch conftest.a
7531  ln conftest.a conftest.b 2>&5 || hard_links=no
7532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7534$as_echo "$hard_links" >&6; }
7535  if test "$hard_links" = no; then
7536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7537$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7538    need_locks=warn
7539  fi
7540else
7541  need_locks=no
7542fi
7543
7544
7545
7546
7547
7548
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7551
7552  runpath_var=
7553  allow_undefined_flag=
7554  always_export_symbols=no
7555  archive_cmds=
7556  archive_expsym_cmds=
7557  compiler_needs_object=no
7558  enable_shared_with_static_runtimes=no
7559  export_dynamic_flag_spec=
7560  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7561  hardcode_automatic=no
7562  hardcode_direct=no
7563  hardcode_direct_absolute=no
7564  hardcode_libdir_flag_spec=
7565  hardcode_libdir_flag_spec_ld=
7566  hardcode_libdir_separator=
7567  hardcode_minus_L=no
7568  hardcode_shlibpath_var=unsupported
7569  inherit_rpath=no
7570  link_all_deplibs=unknown
7571  module_cmds=
7572  module_expsym_cmds=
7573  old_archive_from_new_cmds=
7574  old_archive_from_expsyms_cmds=
7575  thread_safe_flag_spec=
7576  whole_archive_flag_spec=
7577  # include_expsyms should be a list of space-separated symbols to be *always*
7578  # included in the symbol list
7579  include_expsyms=
7580  # exclude_expsyms can be an extended regexp of symbols to exclude
7581  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7582  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7583  # as well as any symbol that contains `d'.
7584  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7585  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7586  # platforms (ab)use it in PIC code, but their linkers get confused if
7587  # the symbol is explicitly referenced.  Since portable code cannot
7588  # rely on this symbol name, it's probably fine to never include it in
7589  # preloaded symbol tables.
7590  # Exclude shared library initialization/finalization symbols.
7591  extract_expsyms_cmds=
7592
7593  case $host_os in
7594  cygwin* | mingw* | pw32* | cegcc*)
7595    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7596    # When not using gcc, we currently assume that we are using
7597    # Microsoft Visual C++.
7598    if test "$GCC" != yes; then
7599      with_gnu_ld=no
7600    fi
7601    ;;
7602  interix*)
7603    # we just hope/assume this is gcc and not c89 (= MSVC++)
7604    with_gnu_ld=yes
7605    ;;
7606  openbsd*)
7607    with_gnu_ld=no
7608    ;;
7609  esac
7610
7611  ld_shlibs=yes
7612  if test "$with_gnu_ld" = yes; then
7613    # If archive_cmds runs LD, not CC, wlarc should be empty
7614    wlarc='${wl}'
7615
7616    # Set some defaults for GNU ld with shared library support. These
7617    # are reset later if shared libraries are not supported. Putting them
7618    # here allows them to be overridden if necessary.
7619    runpath_var=LD_RUN_PATH
7620    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7621    export_dynamic_flag_spec='${wl}--export-dynamic'
7622    # ancient GNU ld didn't support --whole-archive et. al.
7623    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7624      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7625    else
7626      whole_archive_flag_spec=
7627    fi
7628    supports_anon_versioning=no
7629    case `$LD -v 2>&1` in
7630      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7631      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7632      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7633      *\ 2.11.*) ;; # other 2.11 versions
7634      *) supports_anon_versioning=yes ;;
7635    esac
7636
7637    # See if GNU ld supports shared libraries.
7638    case $host_os in
7639    aix[3-9]*)
7640      # On AIX/PPC, the GNU linker is very broken
7641      if test "$host_cpu" != ia64; then
7642	ld_shlibs=no
7643	cat <<_LT_EOF 1>&2
7644
7645*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7646*** to be unable to reliably create shared libraries on AIX.
7647*** Therefore, libtool is disabling shared libraries support.  If you
7648*** really care for shared libraries, you may want to modify your PATH
7649*** so that a non-GNU linker is found, and then restart.
7650
7651_LT_EOF
7652      fi
7653      ;;
7654
7655    amigaos*)
7656      case $host_cpu in
7657      powerpc)
7658            # see comment about AmigaOS4 .so support
7659            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660            archive_expsym_cmds=''
7661        ;;
7662      m68k)
7663            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7664            hardcode_libdir_flag_spec='-L$libdir'
7665            hardcode_minus_L=yes
7666        ;;
7667      esac
7668      ;;
7669
7670    beos*)
7671      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7672	allow_undefined_flag=unsupported
7673	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7674	# support --undefined.  This deserves some investigation.  FIXME
7675	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676      else
7677	ld_shlibs=no
7678      fi
7679      ;;
7680
7681    cygwin* | mingw* | pw32* | cegcc*)
7682      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7683      # as there is no search path for DLLs.
7684      hardcode_libdir_flag_spec='-L$libdir'
7685      allow_undefined_flag=unsupported
7686      always_export_symbols=no
7687      enable_shared_with_static_runtimes=yes
7688      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7689
7690      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7691        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692	# If the export-symbols file already is a .def file (1st line
7693	# is EXPORTS), use it as is; otherwise, prepend...
7694	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7695	  cp $export_symbols $output_objdir/$soname.def;
7696	else
7697	  echo EXPORTS > $output_objdir/$soname.def;
7698	  cat $export_symbols >> $output_objdir/$soname.def;
7699	fi~
7700	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7701      else
7702	ld_shlibs=no
7703      fi
7704      ;;
7705
7706    interix[3-9]*)
7707      hardcode_direct=no
7708      hardcode_shlibpath_var=no
7709      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7710      export_dynamic_flag_spec='${wl}-E'
7711      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7712      # Instead, shared libraries are loaded at an image base (0x10000000 by
7713      # default) and relocated if they conflict, which is a slow very memory
7714      # consuming and fragmenting process.  To avoid this, we pick a random,
7715      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7716      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7717      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7718      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7719      ;;
7720
7721    gnu* | linux* | tpf* | k*bsd*-gnu)
7722      tmp_diet=no
7723      if test "$host_os" = linux-dietlibc; then
7724	case $cc_basename in
7725	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7726	esac
7727      fi
7728      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7729	 && test "$tmp_diet" = no
7730      then
7731	tmp_addflag=
7732	tmp_sharedflag='-shared'
7733	case $cc_basename,$host_cpu in
7734        pgcc*)				# Portland Group C compiler
7735	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7736	  tmp_addflag=' $pic_flag'
7737	  ;;
7738	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7739	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7740	  tmp_addflag=' $pic_flag -Mnomain' ;;
7741	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7742	  tmp_addflag=' -i_dynamic' ;;
7743	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7744	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7745	ifc* | ifort*)			# Intel Fortran compiler
7746	  tmp_addflag=' -nofor_main' ;;
7747	lf95*)				# Lahey Fortran 8.1
7748	  whole_archive_flag_spec=
7749	  tmp_sharedflag='--shared' ;;
7750	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7751	  tmp_sharedflag='-qmkshrobj'
7752	  tmp_addflag= ;;
7753	esac
7754	case `$CC -V 2>&1 | sed 5q` in
7755	*Sun\ C*)			# Sun C 5.9
7756	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7757	  compiler_needs_object=yes
7758	  tmp_sharedflag='-G' ;;
7759	*Sun\ F*)			# Sun Fortran 8.3
7760	  tmp_sharedflag='-G' ;;
7761	esac
7762	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763
7764        if test "x$supports_anon_versioning" = xyes; then
7765          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7766	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7767	    echo "local: *; };" >> $output_objdir/$libname.ver~
7768	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7769        fi
7770
7771	case $cc_basename in
7772	xlf*)
7773	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7774	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7775	  hardcode_libdir_flag_spec=
7776	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7777	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7778	  if test "x$supports_anon_versioning" = xyes; then
7779	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7780	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7781	      echo "local: *; };" >> $output_objdir/$libname.ver~
7782	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7783	  fi
7784	  ;;
7785	esac
7786      else
7787        ld_shlibs=no
7788      fi
7789      ;;
7790
7791    netbsd*)
7792      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7793	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7794	wlarc=
7795      else
7796	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798      fi
7799      ;;
7800
7801    solaris*)
7802      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7803	ld_shlibs=no
7804	cat <<_LT_EOF 1>&2
7805
7806*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7807*** create shared libraries on Solaris systems.  Therefore, libtool
7808*** is disabling shared libraries support.  We urge you to upgrade GNU
7809*** binutils to release 2.9.1 or newer.  Another option is to modify
7810*** your PATH or compiler configuration so that the native linker is
7811*** used, and then restart.
7812
7813_LT_EOF
7814      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7815	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817      else
7818	ld_shlibs=no
7819      fi
7820      ;;
7821
7822    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7823      case `$LD -v 2>&1` in
7824        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7825	ld_shlibs=no
7826	cat <<_LT_EOF 1>&2
7827
7828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7829*** reliably create shared libraries on SCO systems.  Therefore, libtool
7830*** is disabling shared libraries support.  We urge you to upgrade GNU
7831*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7832*** your PATH or compiler configuration so that the native linker is
7833*** used, and then restart.
7834
7835_LT_EOF
7836	;;
7837	*)
7838	  # For security reasons, it is highly recommended that you always
7839	  # use absolute paths for naming shared libraries, and exclude the
7840	  # DT_RUNPATH tag from executables and libraries.  But doing so
7841	  # requires that you compile everything twice, which is a pain.
7842	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7843	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846	  else
7847	    ld_shlibs=no
7848	  fi
7849	;;
7850      esac
7851      ;;
7852
7853    sunos4*)
7854      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855      wlarc=
7856      hardcode_direct=yes
7857      hardcode_shlibpath_var=no
7858      ;;
7859
7860    *)
7861      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7862	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864      else
7865	ld_shlibs=no
7866      fi
7867      ;;
7868    esac
7869
7870    if test "$ld_shlibs" = no; then
7871      runpath_var=
7872      hardcode_libdir_flag_spec=
7873      export_dynamic_flag_spec=
7874      whole_archive_flag_spec=
7875    fi
7876  else
7877    # PORTME fill in a description of your system's linker (not GNU ld)
7878    case $host_os in
7879    aix3*)
7880      allow_undefined_flag=unsupported
7881      always_export_symbols=yes
7882      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7883      # Note: this linker hardcodes the directories in LIBPATH if there
7884      # are no directories specified by -L.
7885      hardcode_minus_L=yes
7886      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887	# Neither direct hardcoding nor static linking is supported with a
7888	# broken collect2.
7889	hardcode_direct=unsupported
7890      fi
7891      ;;
7892
7893    aix[4-9]*)
7894      if test "$host_cpu" = ia64; then
7895	# On IA64, the linker does run time linking by default, so we don't
7896	# have to do anything special.
7897	aix_use_runtimelinking=no
7898	exp_sym_flag='-Bexport'
7899	no_entry_flag=""
7900      else
7901	# If we're using GNU nm, then we don't want the "-C" option.
7902	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7903	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7904	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7905	else
7906	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7907	fi
7908	aix_use_runtimelinking=no
7909
7910	# Test if we are trying to use run time linking or normal
7911	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912	# need to do runtime linking.
7913	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7914	  for ld_flag in $LDFLAGS; do
7915	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916	    aix_use_runtimelinking=yes
7917	    break
7918	  fi
7919	  done
7920	  ;;
7921	esac
7922
7923	exp_sym_flag='-bexport'
7924	no_entry_flag='-bnoentry'
7925      fi
7926
7927      # When large executables or shared objects are built, AIX ld can
7928      # have problems creating the table of contents.  If linking a library
7929      # or program results in "error TOC overflow" add -mminimal-toc to
7930      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7931      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
7933      archive_cmds=''
7934      hardcode_direct=yes
7935      hardcode_direct_absolute=yes
7936      hardcode_libdir_separator=':'
7937      link_all_deplibs=yes
7938      file_list_spec='${wl}-f,'
7939
7940      if test "$GCC" = yes; then
7941	case $host_os in aix4.[012]|aix4.[012].*)
7942	# We only want to do this on AIX 4.2 and lower, the check
7943	# below for broken collect2 doesn't work under 4.3+
7944	  collect2name=`${CC} -print-prog-name=collect2`
7945	  if test -f "$collect2name" &&
7946	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7947	  then
7948	  # We have reworked collect2
7949	  :
7950	  else
7951	  # We have old collect2
7952	  hardcode_direct=unsupported
7953	  # It fails to find uninstalled libraries when the uninstalled
7954	  # path is not listed in the libpath.  Setting hardcode_minus_L
7955	  # to unsupported forces relinking
7956	  hardcode_minus_L=yes
7957	  hardcode_libdir_flag_spec='-L$libdir'
7958	  hardcode_libdir_separator=
7959	  fi
7960	  ;;
7961	esac
7962	shared_flag='-shared'
7963	if test "$aix_use_runtimelinking" = yes; then
7964	  shared_flag="$shared_flag "'${wl}-G'
7965	fi
7966      else
7967	# not using gcc
7968	if test "$host_cpu" = ia64; then
7969	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7970	# chokes on -Wl,-G. The following line is correct:
7971	  shared_flag='-G'
7972	else
7973	  if test "$aix_use_runtimelinking" = yes; then
7974	    shared_flag='${wl}-G'
7975	  else
7976	    shared_flag='${wl}-bM:SRE'
7977	  fi
7978	fi
7979      fi
7980
7981      export_dynamic_flag_spec='${wl}-bexpall'
7982      # It seems that -bexpall does not export symbols beginning with
7983      # underscore (_), so it is better to generate a list of symbols to export.
7984      always_export_symbols=yes
7985      if test "$aix_use_runtimelinking" = yes; then
7986	# Warning - without using the other runtime loading flags (-brtl),
7987	# -berok will link without error, but may produce a broken library.
7988	allow_undefined_flag='-berok'
7989        # Determine the default libpath from the value encoded in an
7990        # empty executable.
7991        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993
7994int
7995main ()
7996{
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003
8004lt_aix_libpath_sed='
8005    /Import File Strings/,/^$/ {
8006	/^0/ {
8007	    s/^0  *\(.*\)$/\1/
8008	    p
8009	}
8010    }'
8011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8012# Check for a 64-bit object if we didn't find anything.
8013if test -z "$aix_libpath"; then
8014  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8015fi
8016fi
8017rm -f core conftest.err conftest.$ac_objext \
8018    conftest$ac_exeext conftest.$ac_ext
8019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8020
8021        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8022        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8023      else
8024	if test "$host_cpu" = ia64; then
8025	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8026	  allow_undefined_flag="-z nodefs"
8027	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8028	else
8029	 # Determine the default libpath from the value encoded in an
8030	 # empty executable.
8031	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h.  */
8033
8034int
8035main ()
8036{
8037
8038  ;
8039  return 0;
8040}
8041_ACEOF
8042if ac_fn_c_try_link "$LINENO"; then :
8043
8044lt_aix_libpath_sed='
8045    /Import File Strings/,/^$/ {
8046	/^0/ {
8047	    s/^0  *\(.*\)$/\1/
8048	    p
8049	}
8050    }'
8051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8052# Check for a 64-bit object if we didn't find anything.
8053if test -z "$aix_libpath"; then
8054  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8055fi
8056fi
8057rm -f core conftest.err conftest.$ac_objext \
8058    conftest$ac_exeext conftest.$ac_ext
8059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8060
8061	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8062	  # Warning - without using the other run time loading flags,
8063	  # -berok will link without error, but may produce a broken library.
8064	  no_undefined_flag=' ${wl}-bernotok'
8065	  allow_undefined_flag=' ${wl}-berok'
8066	  # Exported symbols can be pulled into shared objects from archives
8067	  whole_archive_flag_spec='$convenience'
8068	  archive_cmds_need_lc=yes
8069	  # This is similar to how AIX traditionally builds its shared libraries.
8070	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8071	fi
8072      fi
8073      ;;
8074
8075    amigaos*)
8076      case $host_cpu in
8077      powerpc)
8078            # see comment about AmigaOS4 .so support
8079            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080            archive_expsym_cmds=''
8081        ;;
8082      m68k)
8083            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8084            hardcode_libdir_flag_spec='-L$libdir'
8085            hardcode_minus_L=yes
8086        ;;
8087      esac
8088      ;;
8089
8090    bsdi[45]*)
8091      export_dynamic_flag_spec=-rdynamic
8092      ;;
8093
8094    cygwin* | mingw* | pw32* | cegcc*)
8095      # When not using gcc, we currently assume that we are using
8096      # Microsoft Visual C++.
8097      # hardcode_libdir_flag_spec is actually meaningless, as there is
8098      # no search path for DLLs.
8099      hardcode_libdir_flag_spec=' '
8100      allow_undefined_flag=unsupported
8101      # Tell ltmain to make .lib files, not .a files.
8102      libext=lib
8103      # Tell ltmain to make .dll files, not .so files.
8104      shrext_cmds=".dll"
8105      # FIXME: Setting linknames here is a bad hack.
8106      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8107      # The linker will automatically build a .lib file if we build a DLL.
8108      old_archive_from_new_cmds='true'
8109      # FIXME: Should let the user specify the lib program.
8110      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8111      fix_srcfile_path='`cygpath -w "$srcfile"`'
8112      enable_shared_with_static_runtimes=yes
8113      ;;
8114
8115    darwin* | rhapsody*)
8116
8117
8118  archive_cmds_need_lc=no
8119  hardcode_direct=no
8120  hardcode_automatic=yes
8121  hardcode_shlibpath_var=unsupported
8122  whole_archive_flag_spec=''
8123  link_all_deplibs=yes
8124  allow_undefined_flag="$_lt_dar_allow_undefined"
8125  case $cc_basename in
8126     ifort*) _lt_dar_can_shared=yes ;;
8127     *) _lt_dar_can_shared=$GCC ;;
8128  esac
8129  if test "$_lt_dar_can_shared" = "yes"; then
8130    output_verbose_link_cmd=echo
8131    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8132    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8133    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8134    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8135
8136  else
8137  ld_shlibs=no
8138  fi
8139
8140      ;;
8141
8142    dgux*)
8143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144      hardcode_libdir_flag_spec='-L$libdir'
8145      hardcode_shlibpath_var=no
8146      ;;
8147
8148    freebsd1*)
8149      ld_shlibs=no
8150      ;;
8151
8152    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8153    # support.  Future versions do this automatically, but an explicit c++rt0.o
8154    # does not break anything, and helps significantly (at the cost of a little
8155    # extra space).
8156    freebsd2.2*)
8157      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8158      hardcode_libdir_flag_spec='-R$libdir'
8159      hardcode_direct=yes
8160      hardcode_shlibpath_var=no
8161      ;;
8162
8163    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8164    freebsd2*)
8165      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8166      hardcode_direct=yes
8167      hardcode_minus_L=yes
8168      hardcode_shlibpath_var=no
8169      ;;
8170
8171    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8172    freebsd* | dragonfly*)
8173      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8174      hardcode_libdir_flag_spec='-R$libdir'
8175      hardcode_direct=yes
8176      hardcode_shlibpath_var=no
8177      ;;
8178
8179    hpux9*)
8180      if test "$GCC" = yes; then
8181	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8182      else
8183	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8184      fi
8185      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8186      hardcode_libdir_separator=:
8187      hardcode_direct=yes
8188
8189      # hardcode_minus_L: Not really in the search PATH,
8190      # but as the default location of the library.
8191      hardcode_minus_L=yes
8192      export_dynamic_flag_spec='${wl}-E'
8193      ;;
8194
8195    hpux10*)
8196      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8197	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8198      else
8199	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8200      fi
8201      if test "$with_gnu_ld" = no; then
8202	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8203	hardcode_libdir_flag_spec_ld='+b $libdir'
8204	hardcode_libdir_separator=:
8205	hardcode_direct=yes
8206	hardcode_direct_absolute=yes
8207	export_dynamic_flag_spec='${wl}-E'
8208	# hardcode_minus_L: Not really in the search PATH,
8209	# but as the default location of the library.
8210	hardcode_minus_L=yes
8211      fi
8212      ;;
8213
8214    hpux11*)
8215      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8216	case $host_cpu in
8217	hppa*64*)
8218	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8219	  ;;
8220	ia64*)
8221	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8222	  ;;
8223	*)
8224	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8225	  ;;
8226	esac
8227      else
8228	case $host_cpu in
8229	hppa*64*)
8230	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8231	  ;;
8232	ia64*)
8233	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8234	  ;;
8235	*)
8236	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8237	  ;;
8238	esac
8239      fi
8240      if test "$with_gnu_ld" = no; then
8241	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8242	hardcode_libdir_separator=:
8243
8244	case $host_cpu in
8245	hppa*64*|ia64*)
8246	  hardcode_direct=no
8247	  hardcode_shlibpath_var=no
8248	  ;;
8249	*)
8250	  hardcode_direct=yes
8251	  hardcode_direct_absolute=yes
8252	  export_dynamic_flag_spec='${wl}-E'
8253
8254	  # hardcode_minus_L: Not really in the search PATH,
8255	  # but as the default location of the library.
8256	  hardcode_minus_L=yes
8257	  ;;
8258	esac
8259      fi
8260      ;;
8261
8262    irix5* | irix6* | nonstopux*)
8263      if test "$GCC" = yes; then
8264	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8265	# Try to use the -exported_symbol ld option, if it does not
8266	# work, assume that -exports_file does not work either and
8267	# implicitly export all symbols.
8268        save_LDFLAGS="$LDFLAGS"
8269        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8270        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int foo(void) {}
8273_ACEOF
8274if ac_fn_c_try_link "$LINENO"; then :
8275  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8276
8277fi
8278rm -f core conftest.err conftest.$ac_objext \
8279    conftest$ac_exeext conftest.$ac_ext
8280        LDFLAGS="$save_LDFLAGS"
8281      else
8282	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8283	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8284      fi
8285      archive_cmds_need_lc='no'
8286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8287      hardcode_libdir_separator=:
8288      inherit_rpath=yes
8289      link_all_deplibs=yes
8290      ;;
8291
8292    netbsd*)
8293      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8294	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8295      else
8296	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8297      fi
8298      hardcode_libdir_flag_spec='-R$libdir'
8299      hardcode_direct=yes
8300      hardcode_shlibpath_var=no
8301      ;;
8302
8303    newsos6)
8304      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8305      hardcode_direct=yes
8306      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8307      hardcode_libdir_separator=:
8308      hardcode_shlibpath_var=no
8309      ;;
8310
8311    *nto* | *qnx*)
8312      ;;
8313
8314    openbsd*)
8315      if test -f /usr/libexec/ld.so; then
8316	hardcode_direct=yes
8317	hardcode_shlibpath_var=no
8318	hardcode_direct_absolute=yes
8319	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8321	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8322	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323	  export_dynamic_flag_spec='${wl}-E'
8324	else
8325	  case $host_os in
8326	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8327	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328	     hardcode_libdir_flag_spec='-R$libdir'
8329	     ;;
8330	   *)
8331	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8332	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8333	     ;;
8334	  esac
8335	fi
8336      else
8337	ld_shlibs=no
8338      fi
8339      ;;
8340
8341    os2*)
8342      hardcode_libdir_flag_spec='-L$libdir'
8343      hardcode_minus_L=yes
8344      allow_undefined_flag=unsupported
8345      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8346      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8347      ;;
8348
8349    osf3*)
8350      if test "$GCC" = yes; then
8351	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8352	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8353      else
8354	allow_undefined_flag=' -expect_unresolved \*'
8355	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8356      fi
8357      archive_cmds_need_lc='no'
8358      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8359      hardcode_libdir_separator=:
8360      ;;
8361
8362    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8363      if test "$GCC" = yes; then
8364	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8365	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8366	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367      else
8368	allow_undefined_flag=' -expect_unresolved \*'
8369	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8370	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8371	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8372
8373	# Both c and cxx compiler support -rpath directly
8374	hardcode_libdir_flag_spec='-rpath $libdir'
8375      fi
8376      archive_cmds_need_lc='no'
8377      hardcode_libdir_separator=:
8378      ;;
8379
8380    solaris*)
8381      no_undefined_flag=' -z defs'
8382      if test "$GCC" = yes; then
8383	wlarc='${wl}'
8384	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8385	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8386	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8387      else
8388	case `$CC -V 2>&1` in
8389	*"Compilers 5.0"*)
8390	  wlarc=''
8391	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8393	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8394	  ;;
8395	*)
8396	  wlarc='${wl}'
8397	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8398	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8399	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8400	  ;;
8401	esac
8402      fi
8403      hardcode_libdir_flag_spec='-R$libdir'
8404      hardcode_shlibpath_var=no
8405      case $host_os in
8406      solaris2.[0-5] | solaris2.[0-5].*) ;;
8407      *)
8408	# The compiler driver will combine and reorder linker options,
8409	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8410	# but is careful enough not to reorder.
8411	# Supported since Solaris 2.6 (maybe 2.5.1?)
8412	if test "$GCC" = yes; then
8413	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8414	else
8415	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8416	fi
8417	;;
8418      esac
8419      link_all_deplibs=yes
8420      ;;
8421
8422    sunos4*)
8423      if test "x$host_vendor" = xsequent; then
8424	# Use $CC to link under sequent, because it throws in some extra .o
8425	# files that make .init and .fini sections work.
8426	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8427      else
8428	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8429      fi
8430      hardcode_libdir_flag_spec='-L$libdir'
8431      hardcode_direct=yes
8432      hardcode_minus_L=yes
8433      hardcode_shlibpath_var=no
8434      ;;
8435
8436    sysv4)
8437      case $host_vendor in
8438	sni)
8439	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440	  hardcode_direct=yes # is this really true???
8441	;;
8442	siemens)
8443	  ## LD is ld it makes a PLAMLIB
8444	  ## CC just makes a GrossModule.
8445	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8446	  reload_cmds='$CC -r -o $output$reload_objs'
8447	  hardcode_direct=no
8448        ;;
8449	motorola)
8450	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8452	;;
8453      esac
8454      runpath_var='LD_RUN_PATH'
8455      hardcode_shlibpath_var=no
8456      ;;
8457
8458    sysv4.3*)
8459      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460      hardcode_shlibpath_var=no
8461      export_dynamic_flag_spec='-Bexport'
8462      ;;
8463
8464    sysv4*MP*)
8465      if test -d /usr/nec; then
8466	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467	hardcode_shlibpath_var=no
8468	runpath_var=LD_RUN_PATH
8469	hardcode_runpath_var=yes
8470	ld_shlibs=yes
8471      fi
8472      ;;
8473
8474    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8475      no_undefined_flag='${wl}-z,text'
8476      archive_cmds_need_lc=no
8477      hardcode_shlibpath_var=no
8478      runpath_var='LD_RUN_PATH'
8479
8480      if test "$GCC" = yes; then
8481	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483      else
8484	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8485	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486      fi
8487      ;;
8488
8489    sysv5* | sco3.2v5* | sco5v6*)
8490      # Note: We can NOT use -z defs as we might desire, because we do not
8491      # link with -lc, and that would cause any symbols used from libc to
8492      # always be unresolved, which means just about no library would
8493      # ever link correctly.  If we're not using GNU ld we use -z text
8494      # though, which does catch some bad symbols but isn't as heavy-handed
8495      # as -z defs.
8496      no_undefined_flag='${wl}-z,text'
8497      allow_undefined_flag='${wl}-z,nodefs'
8498      archive_cmds_need_lc=no
8499      hardcode_shlibpath_var=no
8500      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8501      hardcode_libdir_separator=':'
8502      link_all_deplibs=yes
8503      export_dynamic_flag_spec='${wl}-Bexport'
8504      runpath_var='LD_RUN_PATH'
8505
8506      if test "$GCC" = yes; then
8507	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8508	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509      else
8510	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512      fi
8513      ;;
8514
8515    uts4*)
8516      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517      hardcode_libdir_flag_spec='-L$libdir'
8518      hardcode_shlibpath_var=no
8519      ;;
8520
8521    *)
8522      ld_shlibs=no
8523      ;;
8524    esac
8525
8526    if test x$host_vendor = xsni; then
8527      case $host in
8528      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8529	export_dynamic_flag_spec='${wl}-Blargedynsym'
8530	;;
8531      esac
8532    fi
8533  fi
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8536$as_echo "$ld_shlibs" >&6; }
8537test "$ld_shlibs" = no && can_build_shared=no
8538
8539with_gnu_ld=$with_gnu_ld
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555#
8556# Do we need to explicitly link libc?
8557#
8558case "x$archive_cmds_need_lc" in
8559x|xyes)
8560  # Assume -lc should be added
8561  archive_cmds_need_lc=yes
8562
8563  if test "$enable_shared" = yes && test "$GCC" = yes; then
8564    case $archive_cmds in
8565    *'~'*)
8566      # FIXME: we may have to deal with multi-command sequences.
8567      ;;
8568    '$CC '*)
8569      # Test whether the compiler implicitly links with -lc since on some
8570      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8571      # to ld, don't add -lc before -lgcc.
8572      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8573$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8574      $RM conftest*
8575      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8578  (eval $ac_compile) 2>&5
8579  ac_status=$?
8580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581  test $ac_status = 0; } 2>conftest.err; then
8582        soname=conftest
8583        lib=conftest
8584        libobjs=conftest.$ac_objext
8585        deplibs=
8586        wl=$lt_prog_compiler_wl
8587	pic_flag=$lt_prog_compiler_pic
8588        compiler_flags=-v
8589        linker_flags=-v
8590        verstring=
8591        output_objdir=.
8592        libname=conftest
8593        lt_save_allow_undefined_flag=$allow_undefined_flag
8594        allow_undefined_flag=
8595        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8596  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8597  ac_status=$?
8598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8599  test $ac_status = 0; }
8600        then
8601	  archive_cmds_need_lc=no
8602        else
8603	  archive_cmds_need_lc=yes
8604        fi
8605        allow_undefined_flag=$lt_save_allow_undefined_flag
8606      else
8607        cat conftest.err 1>&5
8608      fi
8609      $RM conftest*
8610      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8611$as_echo "$archive_cmds_need_lc" >&6; }
8612      ;;
8613    esac
8614  fi
8615  ;;
8616esac
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8775$as_echo_n "checking dynamic linker characteristics... " >&6; }
8776
8777if test "$GCC" = yes; then
8778  case $host_os in
8779    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8780    *) lt_awk_arg="/^libraries:/" ;;
8781  esac
8782  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8783  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8784    # if the path contains ";" then we assume it to be the separator
8785    # otherwise default to the standard path separator (i.e. ":") - it is
8786    # assumed that no part of a normal pathname contains ";" but that should
8787    # okay in the real world where ";" in dirpaths is itself problematic.
8788    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8789  else
8790    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8791  fi
8792  # Ok, now we have the path, separated by spaces, we can step through it
8793  # and add multilib dir if necessary.
8794  lt_tmp_lt_search_path_spec=
8795  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8796  for lt_sys_path in $lt_search_path_spec; do
8797    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8798      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8799    else
8800      test -d "$lt_sys_path" && \
8801	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8802    fi
8803  done
8804  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8805BEGIN {RS=" "; FS="/|\n";} {
8806  lt_foo="";
8807  lt_count=0;
8808  for (lt_i = NF; lt_i > 0; lt_i--) {
8809    if ($lt_i != "" && $lt_i != ".") {
8810      if ($lt_i == "..") {
8811        lt_count++;
8812      } else {
8813        if (lt_count == 0) {
8814          lt_foo="/" $lt_i lt_foo;
8815        } else {
8816          lt_count--;
8817        }
8818      }
8819    }
8820  }
8821  if (lt_foo != "") { lt_freq[lt_foo]++; }
8822  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8823}'`
8824  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8825else
8826  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8827fi
8828library_names_spec=
8829libname_spec='lib$name'
8830soname_spec=
8831shrext_cmds=".so"
8832postinstall_cmds=
8833postuninstall_cmds=
8834finish_cmds=
8835finish_eval=
8836shlibpath_var=
8837shlibpath_overrides_runpath=unknown
8838version_type=none
8839dynamic_linker="$host_os ld.so"
8840sys_lib_dlsearch_path_spec="/lib /usr/lib"
8841need_lib_prefix=unknown
8842hardcode_into_libs=no
8843
8844# when you set need_version to no, make sure it does not cause -set_version
8845# flags to be left without arguments
8846need_version=unknown
8847
8848case $host_os in
8849aix3*)
8850  version_type=linux
8851  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8852  shlibpath_var=LIBPATH
8853
8854  # AIX 3 has no versioning support, so we append a major version to the name.
8855  soname_spec='${libname}${release}${shared_ext}$major'
8856  ;;
8857
8858aix[4-9]*)
8859  version_type=linux
8860  need_lib_prefix=no
8861  need_version=no
8862  hardcode_into_libs=yes
8863  if test "$host_cpu" = ia64; then
8864    # AIX 5 supports IA64
8865    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8866    shlibpath_var=LD_LIBRARY_PATH
8867  else
8868    # With GCC up to 2.95.x, collect2 would create an import file
8869    # for dependence libraries.  The import file would start with
8870    # the line `#! .'.  This would cause the generated library to
8871    # depend on `.', always an invalid library.  This was fixed in
8872    # development snapshots of GCC prior to 3.0.
8873    case $host_os in
8874      aix4 | aix4.[01] | aix4.[01].*)
8875      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8876	   echo ' yes '
8877	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8878	:
8879      else
8880	can_build_shared=no
8881      fi
8882      ;;
8883    esac
8884    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8885    # soname into executable. Probably we can add versioning support to
8886    # collect2, so additional links can be useful in future.
8887    if test "$aix_use_runtimelinking" = yes; then
8888      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8889      # instead of lib<name>.a to let people know that these are not
8890      # typical AIX shared libraries.
8891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892    else
8893      # We preserve .a as extension for shared libraries through AIX4.2
8894      # and later when we are not doing run time linking.
8895      library_names_spec='${libname}${release}.a $libname.a'
8896      soname_spec='${libname}${release}${shared_ext}$major'
8897    fi
8898    shlibpath_var=LIBPATH
8899  fi
8900  ;;
8901
8902amigaos*)
8903  case $host_cpu in
8904  powerpc)
8905    # Since July 2007 AmigaOS4 officially supports .so libraries.
8906    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8907    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908    ;;
8909  m68k)
8910    library_names_spec='$libname.ixlibrary $libname.a'
8911    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8912    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8913    ;;
8914  esac
8915  ;;
8916
8917beos*)
8918  library_names_spec='${libname}${shared_ext}'
8919  dynamic_linker="$host_os ld.so"
8920  shlibpath_var=LIBRARY_PATH
8921  ;;
8922
8923bsdi[45]*)
8924  version_type=linux
8925  need_version=no
8926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927  soname_spec='${libname}${release}${shared_ext}$major'
8928  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8929  shlibpath_var=LD_LIBRARY_PATH
8930  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8931  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8932  # the default ld.so.conf also contains /usr/contrib/lib and
8933  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8934  # libtool to hard-code these into programs
8935  ;;
8936
8937cygwin* | mingw* | pw32* | cegcc*)
8938  version_type=windows
8939  shrext_cmds=".dll"
8940  need_version=no
8941  need_lib_prefix=no
8942
8943  case $GCC,$host_os in
8944  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8945    library_names_spec='$libname.dll.a'
8946    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8947    postinstall_cmds='base_file=`basename \${file}`~
8948      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8949      dldir=$destdir/`dirname \$dlpath`~
8950      test -d \$dldir || mkdir -p \$dldir~
8951      $install_prog $dir/$dlname \$dldir/$dlname~
8952      chmod a+x \$dldir/$dlname~
8953      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8954        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8955      fi'
8956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8957      dlpath=$dir/\$dldll~
8958       $RM \$dlpath'
8959    shlibpath_overrides_runpath=yes
8960
8961    case $host_os in
8962    cygwin*)
8963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8964      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8965      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
8966      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967      ;;
8968    mingw* | cegcc*)
8969      # MinGW DLLs use traditional 'lib' prefix
8970      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8971      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
8972      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8973      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8974        # It is most probably a Windows format PATH printed by
8975        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8976        # path with ; separators, and with drive letters. We can handle the
8977        # drive letters (cygwin fileutils understands them), so leave them,
8978        # especially as we might pass files found there to a mingw objdump,
8979        # which wouldn't understand a cygwinified path. Ahh.
8980        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8981      else
8982        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8983      fi
8984      ;;
8985    pw32*)
8986      # pw32 DLLs use 'pw' prefix rather than 'lib'
8987      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988      ;;
8989    esac
8990    ;;
8991
8992  *)
8993    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8994    ;;
8995  esac
8996  dynamic_linker='Win32 ld.exe'
8997  # FIXME: first we should search . and the directory the executable is in
8998  shlibpath_var=PATH
8999  ;;
9000
9001darwin* | rhapsody*)
9002  dynamic_linker="$host_os dyld"
9003  version_type=darwin
9004  need_lib_prefix=no
9005  need_version=no
9006  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9007  soname_spec='${libname}${release}${major}$shared_ext'
9008  shlibpath_overrides_runpath=yes
9009  shlibpath_var=DYLD_LIBRARY_PATH
9010  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9011
9012  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9013  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9014  ;;
9015
9016dgux*)
9017  version_type=linux
9018  need_lib_prefix=no
9019  need_version=no
9020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9021  soname_spec='${libname}${release}${shared_ext}$major'
9022  shlibpath_var=LD_LIBRARY_PATH
9023  ;;
9024
9025freebsd1*)
9026  dynamic_linker=no
9027  ;;
9028
9029freebsd* | dragonfly*)
9030  # DragonFly does not have aout.  When/if they implement a new
9031  # versioning mechanism, adjust this.
9032  if test -x /usr/bin/objformat; then
9033    objformat=`/usr/bin/objformat`
9034  else
9035    case $host_os in
9036    freebsd[123]*) objformat=aout ;;
9037    *) objformat=elf ;;
9038    esac
9039  fi
9040  version_type=freebsd-$objformat
9041  case $version_type in
9042    freebsd-elf*)
9043      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9044      need_version=no
9045      need_lib_prefix=no
9046      ;;
9047    freebsd-*)
9048      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9049      need_version=yes
9050      ;;
9051  esac
9052  shlibpath_var=LD_LIBRARY_PATH
9053  case $host_os in
9054  freebsd2*)
9055    shlibpath_overrides_runpath=yes
9056    ;;
9057  freebsd3.[01]* | freebsdelf3.[01]*)
9058    shlibpath_overrides_runpath=yes
9059    hardcode_into_libs=yes
9060    ;;
9061  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9062  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9063    shlibpath_overrides_runpath=no
9064    hardcode_into_libs=yes
9065    ;;
9066  *) # from 4.6 on, and DragonFly
9067    shlibpath_overrides_runpath=yes
9068    hardcode_into_libs=yes
9069    ;;
9070  esac
9071  ;;
9072
9073gnu*)
9074  version_type=linux
9075  need_lib_prefix=no
9076  need_version=no
9077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9078  soname_spec='${libname}${release}${shared_ext}$major'
9079  shlibpath_var=LD_LIBRARY_PATH
9080  hardcode_into_libs=yes
9081  ;;
9082
9083hpux9* | hpux10* | hpux11*)
9084  # Give a soname corresponding to the major version so that dld.sl refuses to
9085  # link against other versions.
9086  version_type=sunos
9087  need_lib_prefix=no
9088  need_version=no
9089  case $host_cpu in
9090  ia64*)
9091    shrext_cmds='.so'
9092    hardcode_into_libs=yes
9093    dynamic_linker="$host_os dld.so"
9094    shlibpath_var=LD_LIBRARY_PATH
9095    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9096    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097    soname_spec='${libname}${release}${shared_ext}$major'
9098    if test "X$HPUX_IA64_MODE" = X32; then
9099      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9100    else
9101      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9102    fi
9103    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9104    ;;
9105  hppa*64*)
9106    shrext_cmds='.sl'
9107    hardcode_into_libs=yes
9108    dynamic_linker="$host_os dld.sl"
9109    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9110    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112    soname_spec='${libname}${release}${shared_ext}$major'
9113    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9114    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9115    ;;
9116  *)
9117    shrext_cmds='.sl'
9118    dynamic_linker="$host_os dld.sl"
9119    shlibpath_var=SHLIB_PATH
9120    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122    soname_spec='${libname}${release}${shared_ext}$major'
9123    ;;
9124  esac
9125  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9126  postinstall_cmds='chmod 555 $lib'
9127  ;;
9128
9129interix[3-9]*)
9130  version_type=linux
9131  need_lib_prefix=no
9132  need_version=no
9133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134  soname_spec='${libname}${release}${shared_ext}$major'
9135  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9136  shlibpath_var=LD_LIBRARY_PATH
9137  shlibpath_overrides_runpath=no
9138  hardcode_into_libs=yes
9139  ;;
9140
9141irix5* | irix6* | nonstopux*)
9142  case $host_os in
9143    nonstopux*) version_type=nonstopux ;;
9144    *)
9145	if test "$lt_cv_prog_gnu_ld" = yes; then
9146		version_type=linux
9147	else
9148		version_type=irix
9149	fi ;;
9150  esac
9151  need_lib_prefix=no
9152  need_version=no
9153  soname_spec='${libname}${release}${shared_ext}$major'
9154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9155  case $host_os in
9156  irix5* | nonstopux*)
9157    libsuff= shlibsuff=
9158    ;;
9159  *)
9160    case $LD in # libtool.m4 will add one of these switches to LD
9161    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9162      libsuff= shlibsuff= libmagic=32-bit;;
9163    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9164      libsuff=32 shlibsuff=N32 libmagic=N32;;
9165    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9166      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9167    *) libsuff= shlibsuff= libmagic=never-match;;
9168    esac
9169    ;;
9170  esac
9171  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9172  shlibpath_overrides_runpath=no
9173  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9174  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9175  hardcode_into_libs=yes
9176  ;;
9177
9178# No shared lib support for Linux oldld, aout, or coff.
9179linux*oldld* | linux*aout* | linux*coff*)
9180  dynamic_linker=no
9181  ;;
9182
9183# This must be Linux ELF.
9184linux* | k*bsd*-gnu)
9185  version_type=linux
9186  need_lib_prefix=no
9187  need_version=no
9188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189  soname_spec='${libname}${release}${shared_ext}$major'
9190  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9191  shlibpath_var=LD_LIBRARY_PATH
9192  shlibpath_overrides_runpath=no
9193  # Some binutils ld are patched to set DT_RUNPATH
9194  save_LDFLAGS=$LDFLAGS
9195  save_libdir=$libdir
9196  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9197       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200
9201int
9202main ()
9203{
9204
9205  ;
9206  return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_link "$LINENO"; then :
9210  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9211  shlibpath_overrides_runpath=yes
9212fi
9213fi
9214rm -f core conftest.err conftest.$ac_objext \
9215    conftest$ac_exeext conftest.$ac_ext
9216  LDFLAGS=$save_LDFLAGS
9217  libdir=$save_libdir
9218
9219  # This implies no fast_install, which is unacceptable.
9220  # Some rework will be needed to allow for fast_install
9221  # before this can be enabled.
9222  hardcode_into_libs=yes
9223
9224  # Append ld.so.conf contents to the search path
9225  if test -f /etc/ld.so.conf; then
9226    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9227    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9228  fi
9229
9230  # We used to test for /lib/ld.so.1 and disable shared libraries on
9231  # powerpc, because MkLinux only supported shared libraries with the
9232  # GNU dynamic linker.  Since this was broken with cross compilers,
9233  # most powerpc-linux boxes support dynamic linking these days and
9234  # people can always --disable-shared, the test was removed, and we
9235  # assume the GNU/Linux dynamic linker is in use.
9236  dynamic_linker='GNU/Linux ld.so'
9237  ;;
9238
9239netbsd*)
9240  version_type=sunos
9241  need_lib_prefix=no
9242  need_version=no
9243  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246    dynamic_linker='NetBSD (a.out) ld.so'
9247  else
9248    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249    soname_spec='${libname}${release}${shared_ext}$major'
9250    dynamic_linker='NetBSD ld.elf_so'
9251  fi
9252  shlibpath_var=LD_LIBRARY_PATH
9253  shlibpath_overrides_runpath=yes
9254  hardcode_into_libs=yes
9255  ;;
9256
9257newsos6)
9258  version_type=linux
9259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260  shlibpath_var=LD_LIBRARY_PATH
9261  shlibpath_overrides_runpath=yes
9262  ;;
9263
9264*nto* | *qnx*)
9265  version_type=qnx
9266  need_lib_prefix=no
9267  need_version=no
9268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269  soname_spec='${libname}${release}${shared_ext}$major'
9270  shlibpath_var=LD_LIBRARY_PATH
9271  shlibpath_overrides_runpath=no
9272  hardcode_into_libs=yes
9273  dynamic_linker='ldqnx.so'
9274  ;;
9275
9276openbsd*)
9277  version_type=sunos
9278  sys_lib_dlsearch_path_spec="/usr/lib"
9279  need_lib_prefix=no
9280  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9281  case $host_os in
9282    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9283    *)				need_version=no  ;;
9284  esac
9285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9287  shlibpath_var=LD_LIBRARY_PATH
9288  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9289    case $host_os in
9290      openbsd2.[89] | openbsd2.[89].*)
9291	shlibpath_overrides_runpath=no
9292	;;
9293      *)
9294	shlibpath_overrides_runpath=yes
9295	;;
9296      esac
9297  else
9298    shlibpath_overrides_runpath=yes
9299  fi
9300  ;;
9301
9302os2*)
9303  libname_spec='$name'
9304  shrext_cmds=".dll"
9305  need_lib_prefix=no
9306  library_names_spec='$libname${shared_ext} $libname.a'
9307  dynamic_linker='OS/2 ld.exe'
9308  shlibpath_var=LIBPATH
9309  ;;
9310
9311osf3* | osf4* | osf5*)
9312  version_type=osf
9313  need_lib_prefix=no
9314  need_version=no
9315  soname_spec='${libname}${release}${shared_ext}$major'
9316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317  shlibpath_var=LD_LIBRARY_PATH
9318  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9319  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9320  ;;
9321
9322rdos*)
9323  dynamic_linker=no
9324  ;;
9325
9326solaris*)
9327  version_type=linux
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  shlibpath_overrides_runpath=yes
9334  hardcode_into_libs=yes
9335  # ldd complains unless libraries are executable
9336  postinstall_cmds='chmod +x $lib'
9337  ;;
9338
9339sunos4*)
9340  version_type=sunos
9341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9342  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9343  shlibpath_var=LD_LIBRARY_PATH
9344  shlibpath_overrides_runpath=yes
9345  if test "$with_gnu_ld" = yes; then
9346    need_lib_prefix=no
9347  fi
9348  need_version=yes
9349  ;;
9350
9351sysv4 | sysv4.3*)
9352  version_type=linux
9353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354  soname_spec='${libname}${release}${shared_ext}$major'
9355  shlibpath_var=LD_LIBRARY_PATH
9356  case $host_vendor in
9357    sni)
9358      shlibpath_overrides_runpath=no
9359      need_lib_prefix=no
9360      runpath_var=LD_RUN_PATH
9361      ;;
9362    siemens)
9363      need_lib_prefix=no
9364      ;;
9365    motorola)
9366      need_lib_prefix=no
9367      need_version=no
9368      shlibpath_overrides_runpath=no
9369      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9370      ;;
9371  esac
9372  ;;
9373
9374sysv4*MP*)
9375  if test -d /usr/nec ;then
9376    version_type=linux
9377    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9378    soname_spec='$libname${shared_ext}.$major'
9379    shlibpath_var=LD_LIBRARY_PATH
9380  fi
9381  ;;
9382
9383sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9384  version_type=freebsd-elf
9385  need_lib_prefix=no
9386  need_version=no
9387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9388  soname_spec='${libname}${release}${shared_ext}$major'
9389  shlibpath_var=LD_LIBRARY_PATH
9390  shlibpath_overrides_runpath=yes
9391  hardcode_into_libs=yes
9392  if test "$with_gnu_ld" = yes; then
9393    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9394  else
9395    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9396    case $host_os in
9397      sco3.2v5*)
9398        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9399	;;
9400    esac
9401  fi
9402  sys_lib_dlsearch_path_spec='/usr/lib'
9403  ;;
9404
9405tpf*)
9406  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9407  version_type=linux
9408  need_lib_prefix=no
9409  need_version=no
9410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411  shlibpath_var=LD_LIBRARY_PATH
9412  shlibpath_overrides_runpath=no
9413  hardcode_into_libs=yes
9414  ;;
9415
9416uts4*)
9417  version_type=linux
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419  soname_spec='${libname}${release}${shared_ext}$major'
9420  shlibpath_var=LD_LIBRARY_PATH
9421  ;;
9422
9423*)
9424  dynamic_linker=no
9425  ;;
9426esac
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9428$as_echo "$dynamic_linker" >&6; }
9429test "$dynamic_linker" = no && can_build_shared=no
9430
9431variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9432if test "$GCC" = yes; then
9433  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9434fi
9435
9436if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9437  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9438fi
9439if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9440  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9441fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9530$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9531hardcode_action=
9532if test -n "$hardcode_libdir_flag_spec" ||
9533   test -n "$runpath_var" ||
9534   test "X$hardcode_automatic" = "Xyes" ; then
9535
9536  # We can hardcode non-existent directories.
9537  if test "$hardcode_direct" != no &&
9538     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9539     # have to relink, otherwise we might link with an installed library
9540     # when we should be linking with a yet-to-be-installed one
9541     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9542     test "$hardcode_minus_L" != no; then
9543    # Linking always hardcodes the temporary library directory.
9544    hardcode_action=relink
9545  else
9546    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9547    hardcode_action=immediate
9548  fi
9549else
9550  # We cannot hardcode anything, or else we can only hardcode existing
9551  # directories.
9552  hardcode_action=unsupported
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9555$as_echo "$hardcode_action" >&6; }
9556
9557if test "$hardcode_action" = relink ||
9558   test "$inherit_rpath" = yes; then
9559  # Fast installation is not supported
9560  enable_fast_install=no
9561elif test "$shlibpath_overrides_runpath" = yes ||
9562     test "$enable_shared" = no; then
9563  # Fast installation is not necessary
9564  enable_fast_install=needless
9565fi
9566
9567
9568
9569
9570
9571
9572  if test "x$enable_dlopen" != xyes; then
9573  enable_dlopen=unknown
9574  enable_dlopen_self=unknown
9575  enable_dlopen_self_static=unknown
9576else
9577  lt_cv_dlopen=no
9578  lt_cv_dlopen_libs=
9579
9580  case $host_os in
9581  beos*)
9582    lt_cv_dlopen="load_add_on"
9583    lt_cv_dlopen_libs=
9584    lt_cv_dlopen_self=yes
9585    ;;
9586
9587  mingw* | pw32* | cegcc*)
9588    lt_cv_dlopen="LoadLibrary"
9589    lt_cv_dlopen_libs=
9590    ;;
9591
9592  cygwin*)
9593    lt_cv_dlopen="dlopen"
9594    lt_cv_dlopen_libs=
9595    ;;
9596
9597  darwin*)
9598  # if libdl is installed we need to link against it
9599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9600$as_echo_n "checking for dlopen in -ldl... " >&6; }
9601if ${ac_cv_lib_dl_dlopen+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  ac_check_lib_save_LIBS=$LIBS
9605LIBS="-ldl  $LIBS"
9606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608
9609/* Override any GCC internal prototype to avoid an error.
9610   Use char because int might match the return type of a GCC
9611   builtin and then its argument prototype would still apply.  */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615char dlopen ();
9616int
9617main ()
9618{
9619return dlopen ();
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624if ac_fn_c_try_link "$LINENO"; then :
9625  ac_cv_lib_dl_dlopen=yes
9626else
9627  ac_cv_lib_dl_dlopen=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext \
9630    conftest$ac_exeext conftest.$ac_ext
9631LIBS=$ac_check_lib_save_LIBS
9632fi
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9634$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9635if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9636  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9637else
9638
9639    lt_cv_dlopen="dyld"
9640    lt_cv_dlopen_libs=
9641    lt_cv_dlopen_self=yes
9642
9643fi
9644
9645    ;;
9646
9647  *)
9648    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9649if test "x$ac_cv_func_shl_load" = xyes; then :
9650  lt_cv_dlopen="shl_load"
9651else
9652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9653$as_echo_n "checking for shl_load in -ldld... " >&6; }
9654if ${ac_cv_lib_dld_shl_load+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  ac_check_lib_save_LIBS=$LIBS
9658LIBS="-ldld  $LIBS"
9659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661
9662/* Override any GCC internal prototype to avoid an error.
9663   Use char because int might match the return type of a GCC
9664   builtin and then its argument prototype would still apply.  */
9665#ifdef __cplusplus
9666extern "C"
9667#endif
9668char shl_load ();
9669int
9670main ()
9671{
9672return shl_load ();
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677if ac_fn_c_try_link "$LINENO"; then :
9678  ac_cv_lib_dld_shl_load=yes
9679else
9680  ac_cv_lib_dld_shl_load=no
9681fi
9682rm -f core conftest.err conftest.$ac_objext \
9683    conftest$ac_exeext conftest.$ac_ext
9684LIBS=$ac_check_lib_save_LIBS
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9687$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9688if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9689  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9690else
9691  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9692if test "x$ac_cv_func_dlopen" = xyes; then :
9693  lt_cv_dlopen="dlopen"
9694else
9695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9696$as_echo_n "checking for dlopen in -ldl... " >&6; }
9697if ${ac_cv_lib_dl_dlopen+:} false; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700  ac_check_lib_save_LIBS=$LIBS
9701LIBS="-ldl  $LIBS"
9702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704
9705/* Override any GCC internal prototype to avoid an error.
9706   Use char because int might match the return type of a GCC
9707   builtin and then its argument prototype would still apply.  */
9708#ifdef __cplusplus
9709extern "C"
9710#endif
9711char dlopen ();
9712int
9713main ()
9714{
9715return dlopen ();
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721  ac_cv_lib_dl_dlopen=yes
9722else
9723  ac_cv_lib_dl_dlopen=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext \
9726    conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9730$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9731if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9732  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733else
9734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9735$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9736if ${ac_cv_lib_svld_dlopen+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  ac_check_lib_save_LIBS=$LIBS
9740LIBS="-lsvld  $LIBS"
9741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743
9744/* Override any GCC internal prototype to avoid an error.
9745   Use char because int might match the return type of a GCC
9746   builtin and then its argument prototype would still apply.  */
9747#ifdef __cplusplus
9748extern "C"
9749#endif
9750char dlopen ();
9751int
9752main ()
9753{
9754return dlopen ();
9755  ;
9756  return 0;
9757}
9758_ACEOF
9759if ac_fn_c_try_link "$LINENO"; then :
9760  ac_cv_lib_svld_dlopen=yes
9761else
9762  ac_cv_lib_svld_dlopen=no
9763fi
9764rm -f core conftest.err conftest.$ac_objext \
9765    conftest$ac_exeext conftest.$ac_ext
9766LIBS=$ac_check_lib_save_LIBS
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9769$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9770if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9771  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9772else
9773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9774$as_echo_n "checking for dld_link in -ldld... " >&6; }
9775if ${ac_cv_lib_dld_dld_link+:} false; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778  ac_check_lib_save_LIBS=$LIBS
9779LIBS="-ldld  $LIBS"
9780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h.  */
9782
9783/* Override any GCC internal prototype to avoid an error.
9784   Use char because int might match the return type of a GCC
9785   builtin and then its argument prototype would still apply.  */
9786#ifdef __cplusplus
9787extern "C"
9788#endif
9789char dld_link ();
9790int
9791main ()
9792{
9793return dld_link ();
9794  ;
9795  return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"; then :
9799  ac_cv_lib_dld_dld_link=yes
9800else
9801  ac_cv_lib_dld_dld_link=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext \
9804    conftest$ac_exeext conftest.$ac_ext
9805LIBS=$ac_check_lib_save_LIBS
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9808$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9809if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9810  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9811fi
9812
9813
9814fi
9815
9816
9817fi
9818
9819
9820fi
9821
9822
9823fi
9824
9825
9826fi
9827
9828    ;;
9829  esac
9830
9831  if test "x$lt_cv_dlopen" != xno; then
9832    enable_dlopen=yes
9833  else
9834    enable_dlopen=no
9835  fi
9836
9837  case $lt_cv_dlopen in
9838  dlopen)
9839    save_CPPFLAGS="$CPPFLAGS"
9840    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9841
9842    save_LDFLAGS="$LDFLAGS"
9843    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9844
9845    save_LIBS="$LIBS"
9846    LIBS="$lt_cv_dlopen_libs $LIBS"
9847
9848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9849$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9850if ${lt_cv_dlopen_self+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  	  if test "$cross_compiling" = yes; then :
9854  lt_cv_dlopen_self=cross
9855else
9856  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857  lt_status=$lt_dlunknown
9858  cat > conftest.$ac_ext <<_LT_EOF
9859#line 9859 "configure"
9860#include "confdefs.h"
9861
9862#if HAVE_DLFCN_H
9863#include <dlfcn.h>
9864#endif
9865
9866#include <stdio.h>
9867
9868#ifdef RTLD_GLOBAL
9869#  define LT_DLGLOBAL		RTLD_GLOBAL
9870#else
9871#  ifdef DL_GLOBAL
9872#    define LT_DLGLOBAL		DL_GLOBAL
9873#  else
9874#    define LT_DLGLOBAL		0
9875#  endif
9876#endif
9877
9878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9879   find out it does not work in some platform. */
9880#ifndef LT_DLLAZY_OR_NOW
9881#  ifdef RTLD_LAZY
9882#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9883#  else
9884#    ifdef DL_LAZY
9885#      define LT_DLLAZY_OR_NOW		DL_LAZY
9886#    else
9887#      ifdef RTLD_NOW
9888#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9889#      else
9890#        ifdef DL_NOW
9891#          define LT_DLLAZY_OR_NOW	DL_NOW
9892#        else
9893#          define LT_DLLAZY_OR_NOW	0
9894#        endif
9895#      endif
9896#    endif
9897#  endif
9898#endif
9899
9900void fnord() { int i=42;}
9901int main ()
9902{
9903  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9904  int status = $lt_dlunknown;
9905
9906  if (self)
9907    {
9908      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9909      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9910      /* dlclose (self); */
9911    }
9912  else
9913    puts (dlerror ());
9914
9915  return status;
9916}
9917_LT_EOF
9918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9919  (eval $ac_link) 2>&5
9920  ac_status=$?
9921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9922  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9923    (./conftest; exit; ) >&5 2>/dev/null
9924    lt_status=$?
9925    case x$lt_status in
9926      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9927      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9928      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9929    esac
9930  else :
9931    # compilation failed
9932    lt_cv_dlopen_self=no
9933  fi
9934fi
9935rm -fr conftest*
9936
9937
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9940$as_echo "$lt_cv_dlopen_self" >&6; }
9941
9942    if test "x$lt_cv_dlopen_self" = xyes; then
9943      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9945$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9946if ${lt_cv_dlopen_self_static+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  	  if test "$cross_compiling" = yes; then :
9950  lt_cv_dlopen_self_static=cross
9951else
9952  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9953  lt_status=$lt_dlunknown
9954  cat > conftest.$ac_ext <<_LT_EOF
9955#line 9955 "configure"
9956#include "confdefs.h"
9957
9958#if HAVE_DLFCN_H
9959#include <dlfcn.h>
9960#endif
9961
9962#include <stdio.h>
9963
9964#ifdef RTLD_GLOBAL
9965#  define LT_DLGLOBAL		RTLD_GLOBAL
9966#else
9967#  ifdef DL_GLOBAL
9968#    define LT_DLGLOBAL		DL_GLOBAL
9969#  else
9970#    define LT_DLGLOBAL		0
9971#  endif
9972#endif
9973
9974/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9975   find out it does not work in some platform. */
9976#ifndef LT_DLLAZY_OR_NOW
9977#  ifdef RTLD_LAZY
9978#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9979#  else
9980#    ifdef DL_LAZY
9981#      define LT_DLLAZY_OR_NOW		DL_LAZY
9982#    else
9983#      ifdef RTLD_NOW
9984#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9985#      else
9986#        ifdef DL_NOW
9987#          define LT_DLLAZY_OR_NOW	DL_NOW
9988#        else
9989#          define LT_DLLAZY_OR_NOW	0
9990#        endif
9991#      endif
9992#    endif
9993#  endif
9994#endif
9995
9996void fnord() { int i=42;}
9997int main ()
9998{
9999  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000  int status = $lt_dlunknown;
10001
10002  if (self)
10003    {
10004      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10005      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006      /* dlclose (self); */
10007    }
10008  else
10009    puts (dlerror ());
10010
10011  return status;
10012}
10013_LT_EOF
10014  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10015  (eval $ac_link) 2>&5
10016  ac_status=$?
10017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10019    (./conftest; exit; ) >&5 2>/dev/null
10020    lt_status=$?
10021    case x$lt_status in
10022      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10023      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10024      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10025    esac
10026  else :
10027    # compilation failed
10028    lt_cv_dlopen_self_static=no
10029  fi
10030fi
10031rm -fr conftest*
10032
10033
10034fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10036$as_echo "$lt_cv_dlopen_self_static" >&6; }
10037    fi
10038
10039    CPPFLAGS="$save_CPPFLAGS"
10040    LDFLAGS="$save_LDFLAGS"
10041    LIBS="$save_LIBS"
10042    ;;
10043  esac
10044
10045  case $lt_cv_dlopen_self in
10046  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10047  *) enable_dlopen_self=unknown ;;
10048  esac
10049
10050  case $lt_cv_dlopen_self_static in
10051  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10052  *) enable_dlopen_self_static=unknown ;;
10053  esac
10054fi
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072striplib=
10073old_striplib=
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10075$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10076if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10077  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10078  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10080$as_echo "yes" >&6; }
10081else
10082# FIXME - insert some real tests, host_os isn't really good enough
10083  case $host_os in
10084  darwin*)
10085    if test -n "$STRIP" ; then
10086      striplib="$STRIP -x"
10087      old_striplib="$STRIP -S"
10088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10089$as_echo "yes" >&6; }
10090    else
10091      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
10093    fi
10094    ;;
10095  *)
10096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
10098    ;;
10099  esac
10100fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113  # Report which library types will actually be built
10114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10115$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10117$as_echo "$can_build_shared" >&6; }
10118
10119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10120$as_echo_n "checking whether to build shared libraries... " >&6; }
10121  test "$can_build_shared" = "no" && enable_shared=no
10122
10123  # On AIX, shared libraries and static libraries use the same namespace, and
10124  # are all built from PIC.
10125  case $host_os in
10126  aix3*)
10127    test "$enable_shared" = yes && enable_static=no
10128    if test -n "$RANLIB"; then
10129      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10130      postinstall_cmds='$RANLIB $lib'
10131    fi
10132    ;;
10133
10134  aix[4-9]*)
10135    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10136      test "$enable_shared" = yes && enable_static=no
10137    fi
10138    ;;
10139  esac
10140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10141$as_echo "$enable_shared" >&6; }
10142
10143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10144$as_echo_n "checking whether to build static libraries... " >&6; }
10145  # Make sure either enable_shared or enable_static is yes.
10146  test "$enable_shared" = yes || enable_static=yes
10147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10148$as_echo "$enable_static" >&6; }
10149
10150
10151
10152
10153fi
10154ac_ext=c
10155ac_cpp='$CPP $CPPFLAGS'
10156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10158ac_compiler_gnu=$ac_cv_c_compiler_gnu
10159
10160CC="$lt_save_CC"
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174        ac_config_commands="$ac_config_commands libtool"
10175
10176
10177
10178
10179# Only expand once:
10180
10181
10182
10183LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10184LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10185LT_REVISION=$INTERFACE_AGE
10186LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10187
10188
10189
10190
10191
10192
10193
10194
10195am__api_version='1.16'
10196
10197# Find a good install program.  We prefer a C program (faster),
10198# so one script is as good as another.  But avoid the broken or
10199# incompatible versions:
10200# SysV /etc/install, /usr/sbin/install
10201# SunOS /usr/etc/install
10202# IRIX /sbin/install
10203# AIX /bin/install
10204# AmigaOS /C/install, which installs bootblocks on floppy discs
10205# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10206# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10207# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10208# OS/2's system install, which has a completely different semantic
10209# ./install, which can be erroneously created by make from ./install.sh.
10210# Reject install programs that cannot install multiple files.
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10212$as_echo_n "checking for a BSD-compatible install... " >&6; }
10213if test -z "$INSTALL"; then
10214if ${ac_cv_path_install+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220  IFS=$as_save_IFS
10221  test -z "$as_dir" && as_dir=.
10222    # Account for people who put trailing slashes in PATH elements.
10223case $as_dir/ in #((
10224  ./ | .// | /[cC]/* | \
10225  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10226  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10227  /usr/ucb/* ) ;;
10228  *)
10229    # OSF1 and SCO ODT 3.0 have their own names for install.
10230    # Don't use installbsd from OSF since it installs stuff as root
10231    # by default.
10232    for ac_prog in ginstall scoinst install; do
10233      for ac_exec_ext in '' $ac_executable_extensions; do
10234	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10235	  if test $ac_prog = install &&
10236	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10237	    # AIX install.  It has an incompatible calling convention.
10238	    :
10239	  elif test $ac_prog = install &&
10240	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10241	    # program-specific install script used by HP pwplus--don't use.
10242	    :
10243	  else
10244	    rm -rf conftest.one conftest.two conftest.dir
10245	    echo one > conftest.one
10246	    echo two > conftest.two
10247	    mkdir conftest.dir
10248	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10249	      test -s conftest.one && test -s conftest.two &&
10250	      test -s conftest.dir/conftest.one &&
10251	      test -s conftest.dir/conftest.two
10252	    then
10253	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10254	      break 3
10255	    fi
10256	  fi
10257	fi
10258      done
10259    done
10260    ;;
10261esac
10262
10263  done
10264IFS=$as_save_IFS
10265
10266rm -rf conftest.one conftest.two conftest.dir
10267
10268fi
10269  if test "${ac_cv_path_install+set}" = set; then
10270    INSTALL=$ac_cv_path_install
10271  else
10272    # As a last resort, use the slow shell script.  Don't cache a
10273    # value for INSTALL within a source directory, because that will
10274    # break other packages using the cache if that directory is
10275    # removed, or if the value is a relative name.
10276    INSTALL=$ac_install_sh
10277  fi
10278fi
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10280$as_echo "$INSTALL" >&6; }
10281
10282# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10283# It thinks the first close brace ends the variable substitution.
10284test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10285
10286test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10287
10288test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10289
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10291$as_echo_n "checking whether build environment is sane... " >&6; }
10292# Reject unsafe characters in $srcdir or the absolute working directory
10293# name.  Accept space and tab only in the latter.
10294am_lf='
10295'
10296case `pwd` in
10297  *[\\\"\#\$\&\'\`$am_lf]*)
10298    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10299esac
10300case $srcdir in
10301  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10302    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10303esac
10304
10305# Do 'set' in a subshell so we don't clobber the current shell's
10306# arguments.  Must try -L first in case configure is actually a
10307# symlink; some systems play weird games with the mod time of symlinks
10308# (eg FreeBSD returns the mod time of the symlink's containing
10309# directory).
10310if (
10311   am_has_slept=no
10312   for am_try in 1 2; do
10313     echo "timestamp, slept: $am_has_slept" > conftest.file
10314     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10315     if test "$*" = "X"; then
10316	# -L didn't work.
10317	set X `ls -t "$srcdir/configure" conftest.file`
10318     fi
10319     if test "$*" != "X $srcdir/configure conftest.file" \
10320	&& test "$*" != "X conftest.file $srcdir/configure"; then
10321
10322	# If neither matched, then we have a broken ls.  This can happen
10323	# if, for instance, CONFIG_SHELL is bash and it inherits a
10324	# broken ls alias from the environment.  This has actually
10325	# happened.  Such a system could not be considered "sane".
10326	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10327  alias in your environment" "$LINENO" 5
10328     fi
10329     if test "$2" = conftest.file || test $am_try -eq 2; then
10330       break
10331     fi
10332     # Just in case.
10333     sleep 1
10334     am_has_slept=yes
10335   done
10336   test "$2" = conftest.file
10337   )
10338then
10339   # Ok.
10340   :
10341else
10342   as_fn_error $? "newly created file is older than distributed files!
10343Check your system clock" "$LINENO" 5
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346$as_echo "yes" >&6; }
10347# If we didn't sleep, we still need to ensure time stamps of config.status and
10348# generated files are strictly newer.
10349am_sleep_pid=
10350if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10351  ( sleep 1 ) &
10352  am_sleep_pid=$!
10353fi
10354
10355rm -f conftest.file
10356
10357test "$program_prefix" != NONE &&
10358  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10359# Use a double $ so make ignores it.
10360test "$program_suffix" != NONE &&
10361  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10362# Double any \ or $.
10363# By default was `s,x,x', remove it if useless.
10364ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10365program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10366
10367if test x"${MISSING+set}" != xset; then
10368  case $am_aux_dir in
10369  *\ * | *\	*)
10370    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10371  *)
10372    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10373  esac
10374fi
10375# Use eval to expand $SHELL
10376if eval "$MISSING --is-lightweight"; then
10377  am_missing_run="$MISSING "
10378else
10379  am_missing_run=
10380  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10381$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10382fi
10383
10384if test x"${install_sh+set}" != xset; then
10385  case $am_aux_dir in
10386  *\ * | *\	*)
10387    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10388  *)
10389    install_sh="\${SHELL} $am_aux_dir/install-sh"
10390  esac
10391fi
10392
10393# Installed binaries are usually stripped using 'strip' when the user
10394# run "make install-strip".  However 'strip' might not be the right
10395# tool to use in cross-compilation environments, therefore Automake
10396# will honor the 'STRIP' environment variable to overrule this program.
10397if test "$cross_compiling" != no; then
10398  if test -n "$ac_tool_prefix"; then
10399  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10400set dummy ${ac_tool_prefix}strip; ac_word=$2
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402$as_echo_n "checking for $ac_word... " >&6; }
10403if ${ac_cv_prog_STRIP+:} false; then :
10404  $as_echo_n "(cached) " >&6
10405else
10406  if test -n "$STRIP"; then
10407  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412  IFS=$as_save_IFS
10413  test -z "$as_dir" && as_dir=.
10414    for ac_exec_ext in '' $ac_executable_extensions; do
10415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418    break 2
10419  fi
10420done
10421  done
10422IFS=$as_save_IFS
10423
10424fi
10425fi
10426STRIP=$ac_cv_prog_STRIP
10427if test -n "$STRIP"; then
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10429$as_echo "$STRIP" >&6; }
10430else
10431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
10433fi
10434
10435
10436fi
10437if test -z "$ac_cv_prog_STRIP"; then
10438  ac_ct_STRIP=$STRIP
10439  # Extract the first word of "strip", so it can be a program name with args.
10440set dummy strip; ac_word=$2
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442$as_echo_n "checking for $ac_word... " >&6; }
10443if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  if test -n "$ac_ct_STRIP"; then
10447  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10448else
10449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450for as_dir in $PATH
10451do
10452  IFS=$as_save_IFS
10453  test -z "$as_dir" && as_dir=.
10454    for ac_exec_ext in '' $ac_executable_extensions; do
10455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456    ac_cv_prog_ac_ct_STRIP="strip"
10457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458    break 2
10459  fi
10460done
10461  done
10462IFS=$as_save_IFS
10463
10464fi
10465fi
10466ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10467if test -n "$ac_ct_STRIP"; then
10468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10469$as_echo "$ac_ct_STRIP" >&6; }
10470else
10471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
10473fi
10474
10475  if test "x$ac_ct_STRIP" = x; then
10476    STRIP=":"
10477  else
10478    case $cross_compiling:$ac_tool_warned in
10479yes:)
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10482ac_tool_warned=yes ;;
10483esac
10484    STRIP=$ac_ct_STRIP
10485  fi
10486else
10487  STRIP="$ac_cv_prog_STRIP"
10488fi
10489
10490fi
10491INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10492
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10494$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10495if test -z "$MKDIR_P"; then
10496  if ${ac_cv_path_mkdir+:} false; then :
10497  $as_echo_n "(cached) " >&6
10498else
10499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10501do
10502  IFS=$as_save_IFS
10503  test -z "$as_dir" && as_dir=.
10504    for ac_prog in mkdir gmkdir; do
10505	 for ac_exec_ext in '' $ac_executable_extensions; do
10506	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10507	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10508	     'mkdir (GNU coreutils) '* | \
10509	     'mkdir (coreutils) '* | \
10510	     'mkdir (fileutils) '4.1*)
10511	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10512	       break 3;;
10513	   esac
10514	 done
10515       done
10516  done
10517IFS=$as_save_IFS
10518
10519fi
10520
10521  test -d ./--version && rmdir ./--version
10522  if test "${ac_cv_path_mkdir+set}" = set; then
10523    MKDIR_P="$ac_cv_path_mkdir -p"
10524  else
10525    # As a last resort, use the slow shell script.  Don't cache a
10526    # value for MKDIR_P within a source directory, because that will
10527    # break other packages using the cache if that directory is
10528    # removed, or if the value is a relative name.
10529    MKDIR_P="$ac_install_sh -d"
10530  fi
10531fi
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10533$as_echo "$MKDIR_P" >&6; }
10534
10535for ac_prog in gawk mawk nawk awk
10536do
10537  # Extract the first word of "$ac_prog", so it can be a program name with args.
10538set dummy $ac_prog; ac_word=$2
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540$as_echo_n "checking for $ac_word... " >&6; }
10541if ${ac_cv_prog_AWK+:} false; then :
10542  $as_echo_n "(cached) " >&6
10543else
10544  if test -n "$AWK"; then
10545  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10546else
10547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH
10549do
10550  IFS=$as_save_IFS
10551  test -z "$as_dir" && as_dir=.
10552    for ac_exec_ext in '' $ac_executable_extensions; do
10553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554    ac_cv_prog_AWK="$ac_prog"
10555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556    break 2
10557  fi
10558done
10559  done
10560IFS=$as_save_IFS
10561
10562fi
10563fi
10564AWK=$ac_cv_prog_AWK
10565if test -n "$AWK"; then
10566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10567$as_echo "$AWK" >&6; }
10568else
10569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571fi
10572
10573
10574  test -n "$AWK" && break
10575done
10576
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10578$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10579set x ${MAKE-make}
10580ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10581if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10582  $as_echo_n "(cached) " >&6
10583else
10584  cat >conftest.make <<\_ACEOF
10585SHELL = /bin/sh
10586all:
10587	@echo '@@@%%%=$(MAKE)=@@@%%%'
10588_ACEOF
10589# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10590case `${MAKE-make} -f conftest.make 2>/dev/null` in
10591  *@@@%%%=?*=@@@%%%*)
10592    eval ac_cv_prog_make_${ac_make}_set=yes;;
10593  *)
10594    eval ac_cv_prog_make_${ac_make}_set=no;;
10595esac
10596rm -f conftest.make
10597fi
10598if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600$as_echo "yes" >&6; }
10601  SET_MAKE=
10602else
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604$as_echo "no" >&6; }
10605  SET_MAKE="MAKE=${MAKE-make}"
10606fi
10607
10608rm -rf .tst 2>/dev/null
10609mkdir .tst 2>/dev/null
10610if test -d .tst; then
10611  am__leading_dot=.
10612else
10613  am__leading_dot=_
10614fi
10615rmdir .tst 2>/dev/null
10616
10617DEPDIR="${am__leading_dot}deps"
10618
10619ac_config_commands="$ac_config_commands depfiles"
10620
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
10622$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
10623cat > confinc.mk << 'END'
10624am__doit:
10625	@echo this is the am__doit target >confinc.out
10626.PHONY: am__doit
10627END
10628am__include="#"
10629am__quote=
10630# BSD make does it like this.
10631echo '.include "confinc.mk" # ignored' > confmf.BSD
10632# Other make implementations (GNU, Solaris 10, AIX) do it like this.
10633echo 'include confinc.mk # ignored' > confmf.GNU
10634_am_result=no
10635for s in GNU BSD; do
10636  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
10637   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }
10641  case $?:`cat confinc.out 2>/dev/null` in #(
10642  '0:this is the am__doit target') :
10643    case $s in #(
10644  BSD) :
10645    am__include='.include' am__quote='"' ;; #(
10646  *) :
10647    am__include='include' am__quote='' ;;
10648esac ;; #(
10649  *) :
10650     ;;
10651esac
10652  if test "$am__include" != "#"; then
10653    _am_result="yes ($s style)"
10654    break
10655  fi
10656done
10657rm -f confinc.* confmf.*
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
10659$as_echo "${_am_result}" >&6; }
10660
10661# Check whether --enable-dependency-tracking was given.
10662if test "${enable_dependency_tracking+set}" = set; then :
10663  enableval=$enable_dependency_tracking;
10664fi
10665
10666if test "x$enable_dependency_tracking" != xno; then
10667  am_depcomp="$ac_aux_dir/depcomp"
10668  AMDEPBACKSLASH='\'
10669  am__nodep='_no'
10670fi
10671 if test "x$enable_dependency_tracking" != xno; then
10672  AMDEP_TRUE=
10673  AMDEP_FALSE='#'
10674else
10675  AMDEP_TRUE='#'
10676  AMDEP_FALSE=
10677fi
10678
10679
10680# Check whether --enable-silent-rules was given.
10681if test "${enable_silent_rules+set}" = set; then :
10682  enableval=$enable_silent_rules;
10683fi
10684
10685case $enable_silent_rules in # (((
10686  yes) AM_DEFAULT_VERBOSITY=0;;
10687   no) AM_DEFAULT_VERBOSITY=1;;
10688    *) AM_DEFAULT_VERBOSITY=1;;
10689esac
10690am_make=${MAKE-make}
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10693if ${am_cv_make_support_nested_variables+:} false; then :
10694  $as_echo_n "(cached) " >&6
10695else
10696  if $as_echo 'TRUE=$(BAR$(V))
10697BAR0=false
10698BAR1=true
10699V=1
10700am__doit:
10701	@$(TRUE)
10702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10703  am_cv_make_support_nested_variables=yes
10704else
10705  am_cv_make_support_nested_variables=no
10706fi
10707fi
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10709$as_echo "$am_cv_make_support_nested_variables" >&6; }
10710if test $am_cv_make_support_nested_variables = yes; then
10711    AM_V='$(V)'
10712  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10713else
10714  AM_V=$AM_DEFAULT_VERBOSITY
10715  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10716fi
10717AM_BACKSLASH='\'
10718
10719if test "`cd $srcdir && pwd`" != "`pwd`"; then
10720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10721  # is not polluted with repeated "-I."
10722  am__isrc=' -I$(srcdir)'
10723  # test to see if srcdir already configured
10724  if test -f $srcdir/config.status; then
10725    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10726  fi
10727fi
10728
10729# test whether we have cygpath
10730if test -z "$CYGPATH_W"; then
10731  if (cygpath --version) >/dev/null 2>/dev/null; then
10732    CYGPATH_W='cygpath -w'
10733  else
10734    CYGPATH_W=echo
10735  fi
10736fi
10737
10738
10739# Define the identity of the package.
10740
10741 PACKAGE=SDL2_ttf
10742 VERSION=$VERSION
10743
10744
10745cat >>confdefs.h <<_ACEOF
10746#define PACKAGE "$PACKAGE"
10747_ACEOF
10748
10749
10750cat >>confdefs.h <<_ACEOF
10751#define VERSION "$VERSION"
10752_ACEOF
10753
10754# Some tools Automake needs.
10755
10756ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10757
10758
10759AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10760
10761
10762AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10763
10764
10765AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10766
10767
10768MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10769
10770# For better backward compatibility.  To be removed once Automake 1.9.x
10771# dies out for good.  For more background, see:
10772# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10773# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10774mkdir_p='$(MKDIR_P)'
10775
10776# We need awk for the "check" target (and possibly the TAP driver).  The
10777# system "awk" is bad on some platforms.
10778# Always define AMTAR for backward compatibility.  Yes, it's still used
10779# in the wild :-(  We should find a proper way to deprecate it ...
10780AMTAR='$${TAR-tar}'
10781
10782
10783# We'll loop over all known methods to create a tar archive until one works.
10784_am_tools='gnutar  pax cpio none'
10785
10786am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10787
10788
10789
10790
10791
10792depcc="$CC"   am_compiler_list=
10793
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10795$as_echo_n "checking dependency style of $depcc... " >&6; }
10796if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10800  # We make a subdir and do the tests there.  Otherwise we can end up
10801  # making bogus files that we don't know about and never remove.  For
10802  # instance it was reported that on HP-UX the gcc test will end up
10803  # making a dummy file named 'D' -- because '-MD' means "put the output
10804  # in D".
10805  rm -rf conftest.dir
10806  mkdir conftest.dir
10807  # Copy depcomp to subdir because otherwise we won't find it if we're
10808  # using a relative directory.
10809  cp "$am_depcomp" conftest.dir
10810  cd conftest.dir
10811  # We will build objects and dependencies in a subdirectory because
10812  # it helps to detect inapplicable dependency modes.  For instance
10813  # both Tru64's cc and ICC support -MD to output dependencies as a
10814  # side effect of compilation, but ICC will put the dependencies in
10815  # the current directory while Tru64 will put them in the object
10816  # directory.
10817  mkdir sub
10818
10819  am_cv_CC_dependencies_compiler_type=none
10820  if test "$am_compiler_list" = ""; then
10821     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10822  fi
10823  am__universal=false
10824  case " $depcc " in #(
10825     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10826     esac
10827
10828  for depmode in $am_compiler_list; do
10829    # Setup a source with many dependencies, because some compilers
10830    # like to wrap large dependency lists on column 80 (with \), and
10831    # we should not choose a depcomp mode which is confused by this.
10832    #
10833    # We need to recreate these files for each test, as the compiler may
10834    # overwrite some of them when testing with obscure command lines.
10835    # This happens at least with the AIX C compiler.
10836    : > sub/conftest.c
10837    for i in 1 2 3 4 5 6; do
10838      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10839      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10840      # Solaris 10 /bin/sh.
10841      echo '/* dummy */' > sub/conftst$i.h
10842    done
10843    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10844
10845    # We check with '-c' and '-o' for the sake of the "dashmstdout"
10846    # mode.  It turns out that the SunPro C++ compiler does not properly
10847    # handle '-M -o', and we need to detect this.  Also, some Intel
10848    # versions had trouble with output in subdirs.
10849    am__obj=sub/conftest.${OBJEXT-o}
10850    am__minus_obj="-o $am__obj"
10851    case $depmode in
10852    gcc)
10853      # This depmode causes a compiler race in universal mode.
10854      test "$am__universal" = false || continue
10855      ;;
10856    nosideeffect)
10857      # After this tag, mechanisms are not by side-effect, so they'll
10858      # only be used when explicitly requested.
10859      if test "x$enable_dependency_tracking" = xyes; then
10860	continue
10861      else
10862	break
10863      fi
10864      ;;
10865    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10866      # This compiler won't grok '-c -o', but also, the minuso test has
10867      # not run yet.  These depmodes are late enough in the game, and
10868      # so weak that their functioning should not be impacted.
10869      am__obj=conftest.${OBJEXT-o}
10870      am__minus_obj=
10871      ;;
10872    none) break ;;
10873    esac
10874    if depmode=$depmode \
10875       source=sub/conftest.c object=$am__obj \
10876       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10877       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10878         >/dev/null 2>conftest.err &&
10879       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10880       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10881       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10882       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10883      # icc doesn't choke on unknown options, it will just issue warnings
10884      # or remarks (even with -Werror).  So we grep stderr for any message
10885      # that says an option was ignored or not supported.
10886      # When given -MP, icc 7.0 and 7.1 complain thusly:
10887      #   icc: Command line warning: ignoring option '-M'; no argument required
10888      # The diagnosis changed in icc 8.0:
10889      #   icc: Command line remark: option '-MP' not supported
10890      if (grep 'ignoring option' conftest.err ||
10891          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10892        am_cv_CC_dependencies_compiler_type=$depmode
10893        break
10894      fi
10895    fi
10896  done
10897
10898  cd ..
10899  rm -rf conftest.dir
10900else
10901  am_cv_CC_dependencies_compiler_type=none
10902fi
10903
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10906$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10907CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10908
10909 if
10910  test "x$enable_dependency_tracking" != xno \
10911  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10912  am__fastdepCC_TRUE=
10913  am__fastdepCC_FALSE='#'
10914else
10915  am__fastdepCC_TRUE='#'
10916  am__fastdepCC_FALSE=
10917fi
10918
10919
10920
10921# POSIX will say in a future version that running "rm -f" with no argument
10922# is OK; and we want to be able to make that assumption in our Makefile
10923# recipes.  So use an aggressive probe to check that the usage we want is
10924# actually supported "in the wild" to an acceptable degree.
10925# See automake bug#10828.
10926# To make any issue more visible, cause the running configure to be aborted
10927# by default if the 'rm' program in use doesn't match our expectations; the
10928# user can still override this though.
10929if rm -f && rm -fr && rm -rf; then : OK; else
10930  cat >&2 <<'END'
10931Oops!
10932
10933Your 'rm' program seems unable to run without file operands specified
10934on the command line, even when the '-f' option is present.  This is contrary
10935to the behaviour of most rm programs out there, and not conforming with
10936the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10937
10938Please tell bug-automake@gnu.org about your system, including the value
10939of your $PATH and any error possibly output before this message.  This
10940can help us improve future automake versions.
10941
10942END
10943  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10944    echo 'Configuration will proceed anyway, since you have set the' >&2
10945    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10946    echo >&2
10947  else
10948    cat >&2 <<'END'
10949Aborting the configuration process, to ensure you take notice of the issue.
10950
10951You can download and install GNU coreutils to get an 'rm' implementation
10952that behaves properly: <https://www.gnu.org/software/coreutils/>.
10953
10954If you want to complete the configuration process using your problematic
10955'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10956to "yes", and re-run configure.
10957
10958END
10959    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
10960  fi
10961fi
10962
10963
10964
10965ac_ext=c
10966ac_cpp='$CPP $CPPFLAGS'
10967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970if test -n "$ac_tool_prefix"; then
10971  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10972set dummy ${ac_tool_prefix}gcc; ac_word=$2
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if ${ac_cv_prog_CC+:} false; then :
10976  $as_echo_n "(cached) " >&6
10977else
10978  if test -n "$CC"; then
10979  ac_cv_prog_CC="$CC" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984  IFS=$as_save_IFS
10985  test -z "$as_dir" && as_dir=.
10986    for ac_exec_ext in '' $ac_executable_extensions; do
10987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990    break 2
10991  fi
10992done
10993  done
10994IFS=$as_save_IFS
10995
10996fi
10997fi
10998CC=$ac_cv_prog_CC
10999if test -n "$CC"; then
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11001$as_echo "$CC" >&6; }
11002else
11003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
11005fi
11006
11007
11008fi
11009if test -z "$ac_cv_prog_CC"; then
11010  ac_ct_CC=$CC
11011  # Extract the first word of "gcc", so it can be a program name with args.
11012set dummy gcc; ac_word=$2
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014$as_echo_n "checking for $ac_word... " >&6; }
11015if ${ac_cv_prog_ac_ct_CC+:} false; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  if test -n "$ac_ct_CC"; then
11019  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11020else
11021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022for as_dir in $PATH
11023do
11024  IFS=$as_save_IFS
11025  test -z "$as_dir" && as_dir=.
11026    for ac_exec_ext in '' $ac_executable_extensions; do
11027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11028    ac_cv_prog_ac_ct_CC="gcc"
11029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030    break 2
11031  fi
11032done
11033  done
11034IFS=$as_save_IFS
11035
11036fi
11037fi
11038ac_ct_CC=$ac_cv_prog_ac_ct_CC
11039if test -n "$ac_ct_CC"; then
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11041$as_echo "$ac_ct_CC" >&6; }
11042else
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
11045fi
11046
11047  if test "x$ac_ct_CC" = x; then
11048    CC=""
11049  else
11050    case $cross_compiling:$ac_tool_warned in
11051yes:)
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11054ac_tool_warned=yes ;;
11055esac
11056    CC=$ac_ct_CC
11057  fi
11058else
11059  CC="$ac_cv_prog_CC"
11060fi
11061
11062if test -z "$CC"; then
11063          if test -n "$ac_tool_prefix"; then
11064    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11065set dummy ${ac_tool_prefix}cc; ac_word=$2
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067$as_echo_n "checking for $ac_word... " >&6; }
11068if ${ac_cv_prog_CC+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071  if test -n "$CC"; then
11072  ac_cv_prog_CC="$CC" # Let the user override the test.
11073else
11074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075for as_dir in $PATH
11076do
11077  IFS=$as_save_IFS
11078  test -z "$as_dir" && as_dir=.
11079    for ac_exec_ext in '' $ac_executable_extensions; do
11080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11081    ac_cv_prog_CC="${ac_tool_prefix}cc"
11082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083    break 2
11084  fi
11085done
11086  done
11087IFS=$as_save_IFS
11088
11089fi
11090fi
11091CC=$ac_cv_prog_CC
11092if test -n "$CC"; then
11093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11094$as_echo "$CC" >&6; }
11095else
11096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
11098fi
11099
11100
11101  fi
11102fi
11103if test -z "$CC"; then
11104  # Extract the first word of "cc", so it can be a program name with args.
11105set dummy cc; ac_word=$2
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107$as_echo_n "checking for $ac_word... " >&6; }
11108if ${ac_cv_prog_CC+:} false; then :
11109  $as_echo_n "(cached) " >&6
11110else
11111  if test -n "$CC"; then
11112  ac_cv_prog_CC="$CC" # Let the user override the test.
11113else
11114  ac_prog_rejected=no
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118  IFS=$as_save_IFS
11119  test -z "$as_dir" && as_dir=.
11120    for ac_exec_ext in '' $ac_executable_extensions; do
11121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11123       ac_prog_rejected=yes
11124       continue
11125     fi
11126    ac_cv_prog_CC="cc"
11127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128    break 2
11129  fi
11130done
11131  done
11132IFS=$as_save_IFS
11133
11134if test $ac_prog_rejected = yes; then
11135  # We found a bogon in the path, so make sure we never use it.
11136  set dummy $ac_cv_prog_CC
11137  shift
11138  if test $# != 0; then
11139    # We chose a different compiler from the bogus one.
11140    # However, it has the same basename, so the bogon will be chosen
11141    # first if we set CC to just the basename; use the full file name.
11142    shift
11143    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11144  fi
11145fi
11146fi
11147fi
11148CC=$ac_cv_prog_CC
11149if test -n "$CC"; then
11150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11151$as_echo "$CC" >&6; }
11152else
11153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
11155fi
11156
11157
11158fi
11159if test -z "$CC"; then
11160  if test -n "$ac_tool_prefix"; then
11161  for ac_prog in cl.exe
11162  do
11163    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
11167if ${ac_cv_prog_CC+:} false; then :
11168  $as_echo_n "(cached) " >&6
11169else
11170  if test -n "$CC"; then
11171  ac_cv_prog_CC="$CC" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176  IFS=$as_save_IFS
11177  test -z "$as_dir" && as_dir=.
11178    for ac_exec_ext in '' $ac_executable_extensions; do
11179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182    break 2
11183  fi
11184done
11185  done
11186IFS=$as_save_IFS
11187
11188fi
11189fi
11190CC=$ac_cv_prog_CC
11191if test -n "$CC"; then
11192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11193$as_echo "$CC" >&6; }
11194else
11195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
11197fi
11198
11199
11200    test -n "$CC" && break
11201  done
11202fi
11203if test -z "$CC"; then
11204  ac_ct_CC=$CC
11205  for ac_prog in cl.exe
11206do
11207  # Extract the first word of "$ac_prog", so it can be a program name with args.
11208set dummy $ac_prog; ac_word=$2
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210$as_echo_n "checking for $ac_word... " >&6; }
11211if ${ac_cv_prog_ac_ct_CC+:} false; then :
11212  $as_echo_n "(cached) " >&6
11213else
11214  if test -n "$ac_ct_CC"; then
11215  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220  IFS=$as_save_IFS
11221  test -z "$as_dir" && as_dir=.
11222    for ac_exec_ext in '' $ac_executable_extensions; do
11223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224    ac_cv_prog_ac_ct_CC="$ac_prog"
11225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226    break 2
11227  fi
11228done
11229  done
11230IFS=$as_save_IFS
11231
11232fi
11233fi
11234ac_ct_CC=$ac_cv_prog_ac_ct_CC
11235if test -n "$ac_ct_CC"; then
11236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11237$as_echo "$ac_ct_CC" >&6; }
11238else
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
11241fi
11242
11243
11244  test -n "$ac_ct_CC" && break
11245done
11246
11247  if test "x$ac_ct_CC" = x; then
11248    CC=""
11249  else
11250    case $cross_compiling:$ac_tool_warned in
11251yes:)
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11254ac_tool_warned=yes ;;
11255esac
11256    CC=$ac_ct_CC
11257  fi
11258fi
11259
11260fi
11261
11262
11263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11265as_fn_error $? "no acceptable C compiler found in \$PATH
11266See \`config.log' for more details" "$LINENO" 5; }
11267
11268# Provide some information about the compiler.
11269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11270set X $ac_compile
11271ac_compiler=$2
11272for ac_option in --version -v -V -qversion; do
11273  { { ac_try="$ac_compiler $ac_option >&5"
11274case "(($ac_try" in
11275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276  *) ac_try_echo=$ac_try;;
11277esac
11278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11279$as_echo "$ac_try_echo"; } >&5
11280  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11281  ac_status=$?
11282  if test -s conftest.err; then
11283    sed '10a\
11284... rest of stderr output deleted ...
11285         10q' conftest.err >conftest.er1
11286    cat conftest.er1 >&5
11287  fi
11288  rm -f conftest.er1 conftest.err
11289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290  test $ac_status = 0; }
11291done
11292
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11295if ${ac_cv_c_compiler_gnu+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299/* end confdefs.h.  */
11300
11301int
11302main ()
11303{
11304#ifndef __GNUC__
11305       choke me
11306#endif
11307
11308  ;
11309  return 0;
11310}
11311_ACEOF
11312if ac_fn_c_try_compile "$LINENO"; then :
11313  ac_compiler_gnu=yes
11314else
11315  ac_compiler_gnu=no
11316fi
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318ac_cv_c_compiler_gnu=$ac_compiler_gnu
11319
11320fi
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11322$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11323if test $ac_compiler_gnu = yes; then
11324  GCC=yes
11325else
11326  GCC=
11327fi
11328ac_test_CFLAGS=${CFLAGS+set}
11329ac_save_CFLAGS=$CFLAGS
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11331$as_echo_n "checking whether $CC accepts -g... " >&6; }
11332if ${ac_cv_prog_cc_g+:} false; then :
11333  $as_echo_n "(cached) " >&6
11334else
11335  ac_save_c_werror_flag=$ac_c_werror_flag
11336   ac_c_werror_flag=yes
11337   ac_cv_prog_cc_g=no
11338   CFLAGS="-g"
11339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341
11342int
11343main ()
11344{
11345
11346  ;
11347  return 0;
11348}
11349_ACEOF
11350if ac_fn_c_try_compile "$LINENO"; then :
11351  ac_cv_prog_cc_g=yes
11352else
11353  CFLAGS=""
11354      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355/* end confdefs.h.  */
11356
11357int
11358main ()
11359{
11360
11361  ;
11362  return 0;
11363}
11364_ACEOF
11365if ac_fn_c_try_compile "$LINENO"; then :
11366
11367else
11368  ac_c_werror_flag=$ac_save_c_werror_flag
11369	 CFLAGS="-g"
11370	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371/* end confdefs.h.  */
11372
11373int
11374main ()
11375{
11376
11377  ;
11378  return 0;
11379}
11380_ACEOF
11381if ac_fn_c_try_compile "$LINENO"; then :
11382  ac_cv_prog_cc_g=yes
11383fi
11384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385fi
11386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387fi
11388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389   ac_c_werror_flag=$ac_save_c_werror_flag
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11392$as_echo "$ac_cv_prog_cc_g" >&6; }
11393if test "$ac_test_CFLAGS" = set; then
11394  CFLAGS=$ac_save_CFLAGS
11395elif test $ac_cv_prog_cc_g = yes; then
11396  if test "$GCC" = yes; then
11397    CFLAGS="-g -O2"
11398  else
11399    CFLAGS="-g"
11400  fi
11401else
11402  if test "$GCC" = yes; then
11403    CFLAGS="-O2"
11404  else
11405    CFLAGS=
11406  fi
11407fi
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11409$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11410if ${ac_cv_prog_cc_c89+:} false; then :
11411  $as_echo_n "(cached) " >&6
11412else
11413  ac_cv_prog_cc_c89=no
11414ac_save_CC=$CC
11415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h.  */
11417#include <stdarg.h>
11418#include <stdio.h>
11419struct stat;
11420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11421struct buf { int x; };
11422FILE * (*rcsopen) (struct buf *, struct stat *, int);
11423static char *e (p, i)
11424     char **p;
11425     int i;
11426{
11427  return p[i];
11428}
11429static char *f (char * (*g) (char **, int), char **p, ...)
11430{
11431  char *s;
11432  va_list v;
11433  va_start (v,p);
11434  s = g (p, va_arg (v,int));
11435  va_end (v);
11436  return s;
11437}
11438
11439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11440   function prototypes and stuff, but not '\xHH' hex character constants.
11441   These don't provoke an error unfortunately, instead are silently treated
11442   as 'x'.  The following induces an error, until -std is added to get
11443   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11444   array size at least.  It's necessary to write '\x00'==0 to get something
11445   that's true only with -std.  */
11446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11447
11448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11449   inside strings and character constants.  */
11450#define FOO(x) 'x'
11451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11452
11453int test (int i, double x);
11454struct s1 {int (*f) (int a);};
11455struct s2 {int (*f) (double a);};
11456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11457int argc;
11458char **argv;
11459int
11460main ()
11461{
11462return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11463  ;
11464  return 0;
11465}
11466_ACEOF
11467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11468	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11469do
11470  CC="$ac_save_CC $ac_arg"
11471  if ac_fn_c_try_compile "$LINENO"; then :
11472  ac_cv_prog_cc_c89=$ac_arg
11473fi
11474rm -f core conftest.err conftest.$ac_objext
11475  test "x$ac_cv_prog_cc_c89" != "xno" && break
11476done
11477rm -f conftest.$ac_ext
11478CC=$ac_save_CC
11479
11480fi
11481# AC_CACHE_VAL
11482case "x$ac_cv_prog_cc_c89" in
11483  x)
11484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11485$as_echo "none needed" >&6; } ;;
11486  xno)
11487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11488$as_echo "unsupported" >&6; } ;;
11489  *)
11490    CC="$CC $ac_cv_prog_cc_c89"
11491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11492$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11493esac
11494if test "x$ac_cv_prog_cc_c89" != xno; then :
11495
11496fi
11497
11498ac_ext=c
11499ac_cpp='$CPP $CPPFLAGS'
11500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502ac_compiler_gnu=$ac_cv_c_compiler_gnu
11503
11504ac_ext=c
11505ac_cpp='$CPP $CPPFLAGS'
11506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11510$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11511if ${am_cv_prog_cc_c_o+:} false; then :
11512  $as_echo_n "(cached) " >&6
11513else
11514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h.  */
11516
11517int
11518main ()
11519{
11520
11521  ;
11522  return 0;
11523}
11524_ACEOF
11525  # Make sure it works both with $CC and with simple cc.
11526  # Following AC_PROG_CC_C_O, we do the test twice because some
11527  # compilers refuse to overwrite an existing .o file with -o,
11528  # though they will create one.
11529  am_cv_prog_cc_c_o=yes
11530  for am_i in 1 2; do
11531    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11532   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } \
11536         && test -f conftest2.$ac_objext; then
11537      : OK
11538    else
11539      am_cv_prog_cc_c_o=no
11540      break
11541    fi
11542  done
11543  rm -f core conftest*
11544  unset am_i
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11547$as_echo "$am_cv_prog_cc_c_o" >&6; }
11548if test "$am_cv_prog_cc_c_o" != yes; then
11549   # Losing compiler, so override with the script.
11550   # FIXME: It is wrong to rewrite CC.
11551   # But if we don't then we get into trouble of one sort or another.
11552   # A longer-term fix would be to have automake use am__CC in this case,
11553   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11554   CC="$am_aux_dir/compile $CC"
11555fi
11556ac_ext=c
11557ac_cpp='$CPP $CPPFLAGS'
11558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561
11562
11563
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11565$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11566set x ${MAKE-make}
11567ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11568if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  cat >conftest.make <<\_ACEOF
11572SHELL = /bin/sh
11573all:
11574	@echo '@@@%%%=$(MAKE)=@@@%%%'
11575_ACEOF
11576# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11577case `${MAKE-make} -f conftest.make 2>/dev/null` in
11578  *@@@%%%=?*=@@@%%%*)
11579    eval ac_cv_prog_make_${ac_make}_set=yes;;
11580  *)
11581    eval ac_cv_prog_make_${ac_make}_set=no;;
11582esac
11583rm -f conftest.make
11584fi
11585if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11587$as_echo "yes" >&6; }
11588  SET_MAKE=
11589else
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592  SET_MAKE="MAKE=${MAKE-make}"
11593fi
11594
11595if test -z "$host_alias"; then
11596    hostaliaswindres=
11597else
11598    hostaliaswindres="$host_alias-windres"
11599fi
11600for ac_prog in windres $hostaliaswindres $host_os-windres
11601do
11602  # Extract the first word of "$ac_prog", so it can be a program name with args.
11603set dummy $ac_prog; ac_word=$2
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if ${ac_cv_prog_WINDRES+:} false; then :
11607  $as_echo_n "(cached) " >&6
11608else
11609  if test -n "$WINDRES"; then
11610  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615  IFS=$as_save_IFS
11616  test -z "$as_dir" && as_dir=.
11617    for ac_exec_ext in '' $ac_executable_extensions; do
11618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619    ac_cv_prog_WINDRES="$ac_prog"
11620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621    break 2
11622  fi
11623done
11624  done
11625IFS=$as_save_IFS
11626
11627fi
11628fi
11629WINDRES=$ac_cv_prog_WINDRES
11630if test -n "$WINDRES"; then
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11632$as_echo "$WINDRES" >&6; }
11633else
11634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636fi
11637
11638
11639  test -n "$WINDRES" && break
11640done
11641
11642
11643case "$host" in
11644    *-*-cygwin* | *-*-mingw32*)
11645	;;
11646    *)
11647	ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11648if test "x$ac_cv_type_size_t" = xyes; then :
11649
11650else
11651
11652cat >>confdefs.h <<_ACEOF
11653#define size_t unsigned int
11654_ACEOF
11655
11656fi
11657
11658# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11659# for constant arguments.  Useless!
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11661$as_echo_n "checking for working alloca.h... " >&6; }
11662if ${ac_cv_working_alloca_h+:} false; then :
11663  $as_echo_n "(cached) " >&6
11664else
11665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667#include <alloca.h>
11668int
11669main ()
11670{
11671char *p = (char *) alloca (2 * sizeof (int));
11672			  if (p) return 0;
11673  ;
11674  return 0;
11675}
11676_ACEOF
11677if ac_fn_c_try_link "$LINENO"; then :
11678  ac_cv_working_alloca_h=yes
11679else
11680  ac_cv_working_alloca_h=no
11681fi
11682rm -f core conftest.err conftest.$ac_objext \
11683    conftest$ac_exeext conftest.$ac_ext
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11686$as_echo "$ac_cv_working_alloca_h" >&6; }
11687if test $ac_cv_working_alloca_h = yes; then
11688
11689$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11690
11691fi
11692
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11694$as_echo_n "checking for alloca... " >&6; }
11695if ${ac_cv_func_alloca_works+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699/* end confdefs.h.  */
11700#ifdef __GNUC__
11701# define alloca __builtin_alloca
11702#else
11703# ifdef _MSC_VER
11704#  include <malloc.h>
11705#  define alloca _alloca
11706# else
11707#  ifdef HAVE_ALLOCA_H
11708#   include <alloca.h>
11709#  else
11710#   ifdef _AIX
11711 #pragma alloca
11712#   else
11713#    ifndef alloca /* predefined by HP cc +Olibcalls */
11714void *alloca (size_t);
11715#    endif
11716#   endif
11717#  endif
11718# endif
11719#endif
11720
11721int
11722main ()
11723{
11724char *p = (char *) alloca (1);
11725				    if (p) return 0;
11726  ;
11727  return 0;
11728}
11729_ACEOF
11730if ac_fn_c_try_link "$LINENO"; then :
11731  ac_cv_func_alloca_works=yes
11732else
11733  ac_cv_func_alloca_works=no
11734fi
11735rm -f core conftest.err conftest.$ac_objext \
11736    conftest$ac_exeext conftest.$ac_ext
11737fi
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11739$as_echo "$ac_cv_func_alloca_works" >&6; }
11740
11741if test $ac_cv_func_alloca_works = yes; then
11742
11743$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11744
11745else
11746  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11747# that cause trouble.  Some versions do not even contain alloca or
11748# contain a buggy version.  If you still want to use their alloca,
11749# use ar to extract alloca.o from them instead of compiling alloca.c.
11750
11751ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11752
11753$as_echo "#define C_ALLOCA 1" >>confdefs.h
11754
11755
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11757$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11758if ${ac_cv_os_cray+:} false; then :
11759  $as_echo_n "(cached) " >&6
11760else
11761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762/* end confdefs.h.  */
11763#if defined CRAY && ! defined CRAY2
11764webecray
11765#else
11766wenotbecray
11767#endif
11768
11769_ACEOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771  $EGREP "webecray" >/dev/null 2>&1; then :
11772  ac_cv_os_cray=yes
11773else
11774  ac_cv_os_cray=no
11775fi
11776rm -f conftest*
11777
11778fi
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11780$as_echo "$ac_cv_os_cray" >&6; }
11781if test $ac_cv_os_cray = yes; then
11782  for ac_func in _getb67 GETB67 getb67; do
11783    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11784ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11785if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11786
11787cat >>confdefs.h <<_ACEOF
11788#define CRAY_STACKSEG_END $ac_func
11789_ACEOF
11790
11791    break
11792fi
11793
11794  done
11795fi
11796
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11798$as_echo_n "checking stack direction for C alloca... " >&6; }
11799if ${ac_cv_c_stack_direction+:} false; then :
11800  $as_echo_n "(cached) " >&6
11801else
11802  if test "$cross_compiling" = yes; then :
11803  ac_cv_c_stack_direction=0
11804else
11805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h.  */
11807$ac_includes_default
11808int
11809find_stack_direction (int *addr, int depth)
11810{
11811  int dir, dummy = 0;
11812  if (! addr)
11813    addr = &dummy;
11814  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11815  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11816  return dir + dummy;
11817}
11818
11819int
11820main (int argc, char **argv)
11821{
11822  return find_stack_direction (0, argc + !argv + 20) < 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_run "$LINENO"; then :
11826  ac_cv_c_stack_direction=1
11827else
11828  ac_cv_c_stack_direction=-1
11829fi
11830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11831  conftest.$ac_objext conftest.beam conftest.$ac_ext
11832fi
11833
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11836$as_echo "$ac_cv_c_stack_direction" >&6; }
11837cat >>confdefs.h <<_ACEOF
11838#define STACK_DIRECTION $ac_cv_c_stack_direction
11839_ACEOF
11840
11841
11842fi
11843
11844	;;
11845esac
11846
11847
11848case "$host" in
11849    *-*-beos*)
11850        ac_default_prefix=/boot/develop/tools/gnupro
11851        ;;
11852    *-*-cygwin* | *-*-mingw32*)
11853        if test "$build" != "$host"; then # cross-compiling
11854            # Default cross-compile location
11855            ac_default_prefix=/usr/local/cross-tools/$host
11856        else
11857            # Look for the location of the tools and install there
11858            if test "$BUILD_PREFIX" != ""; then
11859                ac_default_prefix=$BUILD_PREFIX
11860            fi
11861        fi
11862        if test x$WINDRES != x; then
11863            use_version_rc=true
11864        fi
11865        ;;
11866esac
11867 if test x$use_version_rc = xtrue; then
11868  USE_VERSION_RC_TRUE=
11869  USE_VERSION_RC_FALSE='#'
11870else
11871  USE_VERSION_RC_TRUE='#'
11872  USE_VERSION_RC_FALSE=
11873fi
11874
11875
11876
11877
11878if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11879	if test -n "$ac_tool_prefix"; then
11880  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11881set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
11884if ${ac_cv_path_PKG_CONFIG+:} false; then :
11885  $as_echo_n "(cached) " >&6
11886else
11887  case $PKG_CONFIG in
11888  [\\/]* | ?:[\\/]*)
11889  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11890  ;;
11891  *)
11892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895  IFS=$as_save_IFS
11896  test -z "$as_dir" && as_dir=.
11897    for ac_exec_ext in '' $ac_executable_extensions; do
11898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901    break 2
11902  fi
11903done
11904  done
11905IFS=$as_save_IFS
11906
11907  ;;
11908esac
11909fi
11910PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11911if test -n "$PKG_CONFIG"; then
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11913$as_echo "$PKG_CONFIG" >&6; }
11914else
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
11917fi
11918
11919
11920fi
11921if test -z "$ac_cv_path_PKG_CONFIG"; then
11922  ac_pt_PKG_CONFIG=$PKG_CONFIG
11923  # Extract the first word of "pkg-config", so it can be a program name with args.
11924set dummy pkg-config; ac_word=$2
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926$as_echo_n "checking for $ac_word... " >&6; }
11927if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11928  $as_echo_n "(cached) " >&6
11929else
11930  case $ac_pt_PKG_CONFIG in
11931  [\\/]* | ?:[\\/]*)
11932  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11933  ;;
11934  *)
11935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $PATH
11937do
11938  IFS=$as_save_IFS
11939  test -z "$as_dir" && as_dir=.
11940    for ac_exec_ext in '' $ac_executable_extensions; do
11941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11942    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944    break 2
11945  fi
11946done
11947  done
11948IFS=$as_save_IFS
11949
11950  ;;
11951esac
11952fi
11953ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11954if test -n "$ac_pt_PKG_CONFIG"; then
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11956$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11957else
11958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962  if test "x$ac_pt_PKG_CONFIG" = x; then
11963    PKG_CONFIG=""
11964  else
11965    case $cross_compiling:$ac_tool_warned in
11966yes:)
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969ac_tool_warned=yes ;;
11970esac
11971    PKG_CONFIG=$ac_pt_PKG_CONFIG
11972  fi
11973else
11974  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11975fi
11976
11977fi
11978if test -n "$PKG_CONFIG"; then
11979	_pkg_min_version=0.9.0
11980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11981$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11982	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11984$as_echo "yes" >&6; }
11985	else
11986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988		PKG_CONFIG=""
11989	fi
11990
11991fi
11992
11993pkg_failed=no
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5
11995$as_echo_n "checking for FT2... " >&6; }
11996
11997if test -n "$PKG_CONFIG"; then
11998    if test -n "$FT2_CFLAGS"; then
11999        pkg_cv_FT2_CFLAGS="$FT2_CFLAGS"
12000    else
12001        if test -n "$PKG_CONFIG" && \
12002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5
12003  ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5
12004  ac_status=$?
12005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12006  test $ac_status = 0; }; then
12007  pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 7.0.1" 2>/dev/null`
12008else
12009  pkg_failed=yes
12010fi
12011    fi
12012else
12013	pkg_failed=untried
12014fi
12015if test -n "$PKG_CONFIG"; then
12016    if test -n "$FT2_LIBS"; then
12017        pkg_cv_FT2_LIBS="$FT2_LIBS"
12018    else
12019        if test -n "$PKG_CONFIG" && \
12020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5
12021  ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5
12022  ac_status=$?
12023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024  test $ac_status = 0; }; then
12025  pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 7.0.1" 2>/dev/null`
12026else
12027  pkg_failed=yes
12028fi
12029    fi
12030else
12031	pkg_failed=untried
12032fi
12033
12034
12035
12036if test $pkg_failed = yes; then
12037
12038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12039        _pkg_short_errors_supported=yes
12040else
12041        _pkg_short_errors_supported=no
12042fi
12043        if test $_pkg_short_errors_supported = yes; then
12044	        FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 7.0.1"`
12045        else
12046	        FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 7.0.1"`
12047        fi
12048	# Put the nasty error message in config.log where it belongs
12049	echo "$FT2_PKG_ERRORS" >&5
12050
12051	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053                    # Get the cflags and libraries from the freetype-config script
12054   #
12055
12056# Check whether --with-ft-prefix was given.
12057if test "${with_ft_prefix+set}" = set; then :
12058  withval=$with_ft_prefix; ft_config_prefix="$withval"
12059else
12060  ft_config_prefix=""
12061fi
12062
12063
12064
12065# Check whether --with-ft-exec-prefix was given.
12066if test "${with_ft_exec_prefix+set}" = set; then :
12067  withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval"
12068else
12069  ft_config_exec_prefix=""
12070fi
12071
12072
12073   # Check whether --enable-freetypetest was given.
12074if test "${enable_freetypetest+set}" = set; then :
12075  enableval=$enable_freetypetest;
12076else
12077  enable_fttest=yes
12078fi
12079
12080
12081   if test x$ft_config_exec_prefix != x ; then
12082     ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
12083     if test x${FT2_CONFIG+set} != xset ; then
12084       FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
12085     fi
12086   fi
12087
12088   if test x$ft_config_prefix != x ; then
12089     ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
12090     if test x${FT2_CONFIG+set} != xset ; then
12091       FT2_CONFIG=$ft_config_prefix/bin/freetype-config
12092     fi
12093   fi
12094
12095   if test "x$FT2_CONFIG" = x ; then
12096     if test -n "$ac_tool_prefix"; then
12097  # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
12098set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100$as_echo_n "checking for $ac_word... " >&6; }
12101if ${ac_cv_path_FT2_CONFIG+:} false; then :
12102  $as_echo_n "(cached) " >&6
12103else
12104  case $FT2_CONFIG in
12105  [\\/]* | ?:[\\/]*)
12106  ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
12107  ;;
12108  *)
12109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112  IFS=$as_save_IFS
12113  test -z "$as_dir" && as_dir=.
12114    for ac_exec_ext in '' $ac_executable_extensions; do
12115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116    ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118    break 2
12119  fi
12120done
12121  done
12122IFS=$as_save_IFS
12123
12124  ;;
12125esac
12126fi
12127FT2_CONFIG=$ac_cv_path_FT2_CONFIG
12128if test -n "$FT2_CONFIG"; then
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
12130$as_echo "$FT2_CONFIG" >&6; }
12131else
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
12134fi
12135
12136
12137fi
12138if test -z "$ac_cv_path_FT2_CONFIG"; then
12139  ac_pt_FT2_CONFIG=$FT2_CONFIG
12140  # Extract the first word of "freetype-config", so it can be a program name with args.
12141set dummy freetype-config; ac_word=$2
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
12144if ${ac_cv_path_ac_pt_FT2_CONFIG+:} false; then :
12145  $as_echo_n "(cached) " >&6
12146else
12147  case $ac_pt_FT2_CONFIG in
12148  [\\/]* | ?:[\\/]*)
12149  ac_cv_path_ac_pt_FT2_CONFIG="$ac_pt_FT2_CONFIG" # Let the user override the test with a path.
12150  ;;
12151  *)
12152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155  IFS=$as_save_IFS
12156  test -z "$as_dir" && as_dir=.
12157    for ac_exec_ext in '' $ac_executable_extensions; do
12158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159    ac_cv_path_ac_pt_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161    break 2
12162  fi
12163done
12164  done
12165IFS=$as_save_IFS
12166
12167  ;;
12168esac
12169fi
12170ac_pt_FT2_CONFIG=$ac_cv_path_ac_pt_FT2_CONFIG
12171if test -n "$ac_pt_FT2_CONFIG"; then
12172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FT2_CONFIG" >&5
12173$as_echo "$ac_pt_FT2_CONFIG" >&6; }
12174else
12175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176$as_echo "no" >&6; }
12177fi
12178
12179  if test "x$ac_pt_FT2_CONFIG" = x; then
12180    FT2_CONFIG="no"
12181  else
12182    case $cross_compiling:$ac_tool_warned in
12183yes:)
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12186ac_tool_warned=yes ;;
12187esac
12188    FT2_CONFIG=$ac_pt_FT2_CONFIG
12189  fi
12190else
12191  FT2_CONFIG="$ac_cv_path_FT2_CONFIG"
12192fi
12193
12194   fi
12195
12196   min_ft_version=7.0.1
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType -- version >= $min_ft_version" >&5
12198$as_echo_n "checking for FreeType -- version >= $min_ft_version... " >&6; }
12199   no_ft=""
12200   if test "$FT2_CONFIG" = "no" ; then
12201     no_ft=yes
12202   else
12203     FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
12204     FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
12205     ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
12206       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12207     ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
12208       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12209     ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
12210       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12211     ft_min_major_version=`echo $min_ft_version | \
12212       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12213     ft_min_minor_version=`echo $min_ft_version | \
12214       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12215     ft_min_micro_version=`echo $min_ft_version | \
12216       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12217     if test x$enable_fttest = xyes ; then
12218       ft_config_is_lt=""
12219       if test $ft_config_major_version -lt $ft_min_major_version ; then
12220         ft_config_is_lt=yes
12221       else
12222         if test $ft_config_major_version -eq $ft_min_major_version ; then
12223           if test $ft_config_minor_version -lt $ft_min_minor_version ; then
12224             ft_config_is_lt=yes
12225           else
12226             if test $ft_config_minor_version -eq $ft_min_minor_version ; then
12227               if test $ft_config_micro_version -lt $ft_min_micro_version ; then
12228                 ft_config_is_lt=yes
12229               fi
12230             fi
12231           fi
12232         fi
12233       fi
12234       if test x$ft_config_is_lt = xyes ; then
12235         no_ft=yes
12236       else
12237         ac_save_CFLAGS="$CFLAGS"
12238         ac_save_LIBS="$LIBS"
12239         CFLAGS="$CFLAGS $FT2_CFLAGS"
12240         LIBS="$FT2_LIBS $LIBS"
12241
12242         #
12243         # Sanity checks for the results of freetype-config to some extent.
12244         #
12245         if test "$cross_compiling" = yes; then :
12246  echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"
12247else
12248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250
12251
12252
12253#include <ft2build.h>
12254#include FT_FREETYPE_H
12255#include <stdio.h>
12256#include <stdlib.h>
12257
12258int
12259main()
12260{
12261  FT_Library library;
12262  FT_Error  error;
12263
12264  error = FT_Init_FreeType(&library);
12265
12266  if (error)
12267    return 1;
12268  else
12269  {
12270    FT_Done_FreeType(library);
12271    return 0;
12272  }
12273}
12274
12275
12276
12277_ACEOF
12278if ac_fn_c_try_run "$LINENO"; then :
12279
12280else
12281  no_ft=yes
12282fi
12283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12284  conftest.$ac_objext conftest.beam conftest.$ac_ext
12285fi
12286
12287
12288         CFLAGS="$ac_save_CFLAGS"
12289         LIBS="$ac_save_LIBS"
12290       fi             # test $ft_config_version -lt $ft_min_version
12291     fi               # test x$enable_fttest = xyes
12292   fi                 # test "$FT2_CONFIG" = "no"
12293
12294   if test x$no_ft = x ; then
12295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296$as_echo "yes" >&6; }
12297     :
12298   else
12299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301     if test "$FT2_CONFIG" = "no" ; then
12302       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12303
12304  The freetype-config script installed by FreeType 2 could not be found.
12305  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
12306  your path, or set the FT2_CONFIG environment variable to the
12307  full path to freetype-config.
12308       " >&5
12309$as_echo "$as_me: WARNING:
12310
12311  The freetype-config script installed by FreeType 2 could not be found.
12312  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
12313  your path, or set the FT2_CONFIG environment variable to the
12314  full path to freetype-config.
12315       " >&2;}
12316     else
12317       if test x$ft_config_is_lt = xyes ; then
12318         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12319
12320  Your installed version of the FreeType 2 library is too old.
12321  If you have different versions of FreeType 2, make sure that
12322  correct values for --with-ft-prefix or --with-ft-exec-prefix
12323  are used, or set the FT2_CONFIG environment variable to the
12324  full path to freetype-config.
12325         " >&5
12326$as_echo "$as_me: WARNING:
12327
12328  Your installed version of the FreeType 2 library is too old.
12329  If you have different versions of FreeType 2, make sure that
12330  correct values for --with-ft-prefix or --with-ft-exec-prefix
12331  are used, or set the FT2_CONFIG environment variable to the
12332  full path to freetype-config.
12333         " >&2;}
12334       else
12335         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12336
12337  The FreeType test program failed to run.  If your system uses
12338  shared libraries and they are installed outside the normal
12339  system library path, make sure the variable LD_LIBRARY_PATH
12340  (or whatever is appropriate for your system) is correctly set.
12341         " >&5
12342$as_echo "$as_me: WARNING:
12343
12344  The FreeType test program failed to run.  If your system uses
12345  shared libraries and they are installed outside the normal
12346  system library path, make sure the variable LD_LIBRARY_PATH
12347  (or whatever is appropriate for your system) is correctly set.
12348         " >&2;}
12349       fi
12350     fi
12351
12352     FT2_CFLAGS=""
12353     FT2_LIBS=""
12354     as_fn_error $? "*** Unable to find FreeType2 library (http://www.freetype.org/)" "$LINENO" 5
12355
12356   fi
12357
12358
12359
12360
12361elif test $pkg_failed = untried; then
12362	    # Get the cflags and libraries from the freetype-config script
12363   #
12364
12365# Check whether --with-ft-prefix was given.
12366if test "${with_ft_prefix+set}" = set; then :
12367  withval=$with_ft_prefix; ft_config_prefix="$withval"
12368else
12369  ft_config_prefix=""
12370fi
12371
12372
12373
12374# Check whether --with-ft-exec-prefix was given.
12375if test "${with_ft_exec_prefix+set}" = set; then :
12376  withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval"
12377else
12378  ft_config_exec_prefix=""
12379fi
12380
12381
12382   # Check whether --enable-freetypetest was given.
12383if test "${enable_freetypetest+set}" = set; then :
12384  enableval=$enable_freetypetest;
12385else
12386  enable_fttest=yes
12387fi
12388
12389
12390   if test x$ft_config_exec_prefix != x ; then
12391     ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
12392     if test x${FT2_CONFIG+set} != xset ; then
12393       FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
12394     fi
12395   fi
12396
12397   if test x$ft_config_prefix != x ; then
12398     ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
12399     if test x${FT2_CONFIG+set} != xset ; then
12400       FT2_CONFIG=$ft_config_prefix/bin/freetype-config
12401     fi
12402   fi
12403
12404   if test "x$FT2_CONFIG" = x ; then
12405     if test -n "$ac_tool_prefix"; then
12406  # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
12407set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409$as_echo_n "checking for $ac_word... " >&6; }
12410if ${ac_cv_path_FT2_CONFIG+:} false; then :
12411  $as_echo_n "(cached) " >&6
12412else
12413  case $FT2_CONFIG in
12414  [\\/]* | ?:[\\/]*)
12415  ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
12416  ;;
12417  *)
12418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421  IFS=$as_save_IFS
12422  test -z "$as_dir" && as_dir=.
12423    for ac_exec_ext in '' $ac_executable_extensions; do
12424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425    ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427    break 2
12428  fi
12429done
12430  done
12431IFS=$as_save_IFS
12432
12433  ;;
12434esac
12435fi
12436FT2_CONFIG=$ac_cv_path_FT2_CONFIG
12437if test -n "$FT2_CONFIG"; then
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
12439$as_echo "$FT2_CONFIG" >&6; }
12440else
12441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443fi
12444
12445
12446fi
12447if test -z "$ac_cv_path_FT2_CONFIG"; then
12448  ac_pt_FT2_CONFIG=$FT2_CONFIG
12449  # Extract the first word of "freetype-config", so it can be a program name with args.
12450set dummy freetype-config; ac_word=$2
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if ${ac_cv_path_ac_pt_FT2_CONFIG+:} false; then :
12454  $as_echo_n "(cached) " >&6
12455else
12456  case $ac_pt_FT2_CONFIG in
12457  [\\/]* | ?:[\\/]*)
12458  ac_cv_path_ac_pt_FT2_CONFIG="$ac_pt_FT2_CONFIG" # Let the user override the test with a path.
12459  ;;
12460  *)
12461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464  IFS=$as_save_IFS
12465  test -z "$as_dir" && as_dir=.
12466    for ac_exec_ext in '' $ac_executable_extensions; do
12467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12468    ac_cv_path_ac_pt_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470    break 2
12471  fi
12472done
12473  done
12474IFS=$as_save_IFS
12475
12476  ;;
12477esac
12478fi
12479ac_pt_FT2_CONFIG=$ac_cv_path_ac_pt_FT2_CONFIG
12480if test -n "$ac_pt_FT2_CONFIG"; then
12481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FT2_CONFIG" >&5
12482$as_echo "$ac_pt_FT2_CONFIG" >&6; }
12483else
12484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
12486fi
12487
12488  if test "x$ac_pt_FT2_CONFIG" = x; then
12489    FT2_CONFIG="no"
12490  else
12491    case $cross_compiling:$ac_tool_warned in
12492yes:)
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12495ac_tool_warned=yes ;;
12496esac
12497    FT2_CONFIG=$ac_pt_FT2_CONFIG
12498  fi
12499else
12500  FT2_CONFIG="$ac_cv_path_FT2_CONFIG"
12501fi
12502
12503   fi
12504
12505   min_ft_version=7.0.1
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType -- version >= $min_ft_version" >&5
12507$as_echo_n "checking for FreeType -- version >= $min_ft_version... " >&6; }
12508   no_ft=""
12509   if test "$FT2_CONFIG" = "no" ; then
12510     no_ft=yes
12511   else
12512     FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
12513     FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
12514     ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
12515       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12516     ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
12517       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12518     ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
12519       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12520     ft_min_major_version=`echo $min_ft_version | \
12521       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12522     ft_min_minor_version=`echo $min_ft_version | \
12523       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12524     ft_min_micro_version=`echo $min_ft_version | \
12525       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12526     if test x$enable_fttest = xyes ; then
12527       ft_config_is_lt=""
12528       if test $ft_config_major_version -lt $ft_min_major_version ; then
12529         ft_config_is_lt=yes
12530       else
12531         if test $ft_config_major_version -eq $ft_min_major_version ; then
12532           if test $ft_config_minor_version -lt $ft_min_minor_version ; then
12533             ft_config_is_lt=yes
12534           else
12535             if test $ft_config_minor_version -eq $ft_min_minor_version ; then
12536               if test $ft_config_micro_version -lt $ft_min_micro_version ; then
12537                 ft_config_is_lt=yes
12538               fi
12539             fi
12540           fi
12541         fi
12542       fi
12543       if test x$ft_config_is_lt = xyes ; then
12544         no_ft=yes
12545       else
12546         ac_save_CFLAGS="$CFLAGS"
12547         ac_save_LIBS="$LIBS"
12548         CFLAGS="$CFLAGS $FT2_CFLAGS"
12549         LIBS="$FT2_LIBS $LIBS"
12550
12551         #
12552         # Sanity checks for the results of freetype-config to some extent.
12553         #
12554         if test "$cross_compiling" = yes; then :
12555  echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"
12556else
12557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558/* end confdefs.h.  */
12559
12560
12561
12562#include <ft2build.h>
12563#include FT_FREETYPE_H
12564#include <stdio.h>
12565#include <stdlib.h>
12566
12567int
12568main()
12569{
12570  FT_Library library;
12571  FT_Error  error;
12572
12573  error = FT_Init_FreeType(&library);
12574
12575  if (error)
12576    return 1;
12577  else
12578  {
12579    FT_Done_FreeType(library);
12580    return 0;
12581  }
12582}
12583
12584
12585
12586_ACEOF
12587if ac_fn_c_try_run "$LINENO"; then :
12588
12589else
12590  no_ft=yes
12591fi
12592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12593  conftest.$ac_objext conftest.beam conftest.$ac_ext
12594fi
12595
12596
12597         CFLAGS="$ac_save_CFLAGS"
12598         LIBS="$ac_save_LIBS"
12599       fi             # test $ft_config_version -lt $ft_min_version
12600     fi               # test x$enable_fttest = xyes
12601   fi                 # test "$FT2_CONFIG" = "no"
12602
12603   if test x$no_ft = x ; then
12604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605$as_echo "yes" >&6; }
12606     :
12607   else
12608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
12610     if test "$FT2_CONFIG" = "no" ; then
12611       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12612
12613  The freetype-config script installed by FreeType 2 could not be found.
12614  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
12615  your path, or set the FT2_CONFIG environment variable to the
12616  full path to freetype-config.
12617       " >&5
12618$as_echo "$as_me: WARNING:
12619
12620  The freetype-config script installed by FreeType 2 could not be found.
12621  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
12622  your path, or set the FT2_CONFIG environment variable to the
12623  full path to freetype-config.
12624       " >&2;}
12625     else
12626       if test x$ft_config_is_lt = xyes ; then
12627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12628
12629  Your installed version of the FreeType 2 library is too old.
12630  If you have different versions of FreeType 2, make sure that
12631  correct values for --with-ft-prefix or --with-ft-exec-prefix
12632  are used, or set the FT2_CONFIG environment variable to the
12633  full path to freetype-config.
12634         " >&5
12635$as_echo "$as_me: WARNING:
12636
12637  Your installed version of the FreeType 2 library is too old.
12638  If you have different versions of FreeType 2, make sure that
12639  correct values for --with-ft-prefix or --with-ft-exec-prefix
12640  are used, or set the FT2_CONFIG environment variable to the
12641  full path to freetype-config.
12642         " >&2;}
12643       else
12644         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12645
12646  The FreeType test program failed to run.  If your system uses
12647  shared libraries and they are installed outside the normal
12648  system library path, make sure the variable LD_LIBRARY_PATH
12649  (or whatever is appropriate for your system) is correctly set.
12650         " >&5
12651$as_echo "$as_me: WARNING:
12652
12653  The FreeType test program failed to run.  If your system uses
12654  shared libraries and they are installed outside the normal
12655  system library path, make sure the variable LD_LIBRARY_PATH
12656  (or whatever is appropriate for your system) is correctly set.
12657         " >&2;}
12658       fi
12659     fi
12660
12661     FT2_CFLAGS=""
12662     FT2_LIBS=""
12663     as_fn_error $? "*** Unable to find FreeType2 library (http://www.freetype.org/)" "$LINENO" 5
12664
12665   fi
12666
12667
12668
12669
12670else
12671	FT2_CFLAGS=$pkg_cv_FT2_CFLAGS
12672	FT2_LIBS=$pkg_cv_FT2_LIBS
12673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674$as_echo "yes" >&6; }
12675	:
12676fi
12677CFLAGS="$CFLAGS $FT2_CFLAGS"
12678LIBS="$LIBS $FT2_LIBS"
12679
12680SDL_VERSION=2.0.8
12681
12682
12683# Check whether --with-sdl-prefix was given.
12684if test "${with_sdl_prefix+set}" = set; then :
12685  withval=$with_sdl_prefix; sdl_prefix="$withval"
12686else
12687  sdl_prefix=""
12688fi
12689
12690
12691# Check whether --with-sdl-exec-prefix was given.
12692if test "${with_sdl_exec_prefix+set}" = set; then :
12693  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12694else
12695  sdl_exec_prefix=""
12696fi
12697
12698# Check whether --enable-sdltest was given.
12699if test "${enable_sdltest+set}" = set; then :
12700  enableval=$enable_sdltest;
12701else
12702  enable_sdltest=yes
12703fi
12704
12705
12706  min_sdl_version=$SDL_VERSION
12707
12708  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12709
12710pkg_failed=no
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
12712$as_echo_n "checking for SDL... " >&6; }
12713
12714if test -n "$PKG_CONFIG"; then
12715    if test -n "$SDL_CFLAGS"; then
12716        pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12717    else
12718        if test -n "$PKG_CONFIG" && \
12719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
12720  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
12721  ac_status=$?
12722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12723  test $ac_status = 0; }; then
12724  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
12725else
12726  pkg_failed=yes
12727fi
12728    fi
12729else
12730	pkg_failed=untried
12731fi
12732if test -n "$PKG_CONFIG"; then
12733    if test -n "$SDL_LIBS"; then
12734        pkg_cv_SDL_LIBS="$SDL_LIBS"
12735    else
12736        if test -n "$PKG_CONFIG" && \
12737    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
12738  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
12739  ac_status=$?
12740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741  test $ac_status = 0; }; then
12742  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
12743else
12744  pkg_failed=yes
12745fi
12746    fi
12747else
12748	pkg_failed=untried
12749fi
12750
12751
12752
12753if test $pkg_failed = yes; then
12754
12755if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12756        _pkg_short_errors_supported=yes
12757else
12758        _pkg_short_errors_supported=no
12759fi
12760        if test $_pkg_short_errors_supported = yes; then
12761	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
12762        else
12763	        SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
12764        fi
12765	# Put the nasty error message in config.log where it belongs
12766	echo "$SDL_PKG_ERRORS" >&5
12767
12768	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
12770                sdl_pc=no
12771elif test $pkg_failed = untried; then
12772	sdl_pc=no
12773else
12774	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12775	SDL_LIBS=$pkg_cv_SDL_LIBS
12776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777$as_echo "yes" >&6; }
12778	sdl_pc=yes
12779fi
12780  else
12781    sdl_pc=no
12782    if test x$sdl_exec_prefix != x ; then
12783      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12784      if test x${SDL2_CONFIG+set} != xset ; then
12785        SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
12786      fi
12787    fi
12788    if test x$sdl_prefix != x ; then
12789      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12790      if test x${SDL2_CONFIG+set} != xset ; then
12791        SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
12792      fi
12793    fi
12794  fi
12795
12796  if test "x$sdl_pc" = xyes ; then
12797    no_sdl=""
12798    SDL2_CONFIG="pkg-config sdl2"
12799  else
12800    as_save_PATH="$PATH"
12801    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12802      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12803    fi
12804    # Extract the first word of "sdl2-config", so it can be a program name with args.
12805set dummy sdl2-config; ac_word=$2
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if ${ac_cv_path_SDL2_CONFIG+:} false; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  case $SDL2_CONFIG in
12812  [\\/]* | ?:[\\/]*)
12813  ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
12814  ;;
12815  *)
12816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $PATH
12818do
12819  IFS=$as_save_IFS
12820  test -z "$as_dir" && as_dir=.
12821    for ac_exec_ext in '' $ac_executable_extensions; do
12822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823    ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825    break 2
12826  fi
12827done
12828  done
12829IFS=$as_save_IFS
12830
12831  test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
12832  ;;
12833esac
12834fi
12835SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
12836if test -n "$SDL2_CONFIG"; then
12837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
12838$as_echo "$SDL2_CONFIG" >&6; }
12839else
12840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841$as_echo "no" >&6; }
12842fi
12843
12844
12845    PATH="$as_save_PATH"
12846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12847$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12848    no_sdl=""
12849
12850    if test "$SDL2_CONFIG" = "no" ; then
12851      no_sdl=yes
12852    else
12853      SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
12854      SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
12855
12856      sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
12857             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12858      sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
12859             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12860      sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
12861             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12862      if test "x$enable_sdltest" = "xyes" ; then
12863        ac_save_CFLAGS="$CFLAGS"
12864        ac_save_CXXFLAGS="$CXXFLAGS"
12865        ac_save_LIBS="$LIBS"
12866        CFLAGS="$CFLAGS $SDL_CFLAGS"
12867        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12868        LIBS="$LIBS $SDL_LIBS"
12869      rm -f conf.sdltest
12870      if test "$cross_compiling" = yes; then :
12871  echo $ac_n "cross compiling; assumed OK... $ac_c"
12872else
12873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874/* end confdefs.h.  */
12875
12876#include <stdio.h>
12877#include <stdlib.h>
12878#include <string.h>
12879#include "SDL.h"
12880
12881char*
12882my_strdup (char *str)
12883{
12884  char *new_str;
12885
12886  if (str)
12887    {
12888      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12889      strcpy (new_str, str);
12890    }
12891  else
12892    new_str = NULL;
12893
12894  return new_str;
12895}
12896
12897int main (int argc, char *argv[])
12898{
12899  int major, minor, micro;
12900  char *tmp_version;
12901
12902  /* This hangs on some systems (?)
12903  system ("touch conf.sdltest");
12904  */
12905  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12906
12907  /* HP/UX 9 (%@#!) writes to sscanf strings */
12908  tmp_version = my_strdup("$min_sdl_version");
12909  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12910     printf("%s, bad version string\n", "$min_sdl_version");
12911     exit(1);
12912   }
12913
12914   if (($sdl_major_version > major) ||
12915      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12916      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12917    {
12918      return 0;
12919    }
12920  else
12921    {
12922      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12923      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
12924      printf("*** best to upgrade to the required version.\n");
12925      printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
12926      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
12927      printf("*** config.cache before re-running configure\n");
12928      return 1;
12929    }
12930}
12931
12932
12933_ACEOF
12934if ac_fn_c_try_run "$LINENO"; then :
12935
12936else
12937  no_sdl=yes
12938fi
12939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940  conftest.$ac_objext conftest.beam conftest.$ac_ext
12941fi
12942
12943        CFLAGS="$ac_save_CFLAGS"
12944        CXXFLAGS="$ac_save_CXXFLAGS"
12945        LIBS="$ac_save_LIBS"
12946      fi
12947    fi
12948    if test "x$no_sdl" = x ; then
12949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950$as_echo "yes" >&6; }
12951    else
12952      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953$as_echo "no" >&6; }
12954    fi
12955  fi
12956  if test "x$no_sdl" = x ; then
12957     :
12958  else
12959     if test "$SDL2_CONFIG" = "no" ; then
12960       echo "*** The sdl2-config script installed by SDL could not be found"
12961       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12962       echo "*** your path, or set the SDL2_CONFIG environment variable to the"
12963       echo "*** full path to sdl2-config."
12964     else
12965       if test -f conf.sdltest ; then
12966        :
12967       else
12968          echo "*** Could not run SDL test program, checking why..."
12969          CFLAGS="$CFLAGS $SDL_CFLAGS"
12970          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12971          LIBS="$LIBS $SDL_LIBS"
12972          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h.  */
12974
12975#include <stdio.h>
12976#include "SDL.h"
12977
12978int main(int argc, char *argv[])
12979{ return 0; }
12980#undef  main
12981#define main K_and_R_C_main
12982
12983int
12984main ()
12985{
12986 return 0;
12987  ;
12988  return 0;
12989}
12990_ACEOF
12991if ac_fn_c_try_link "$LINENO"; then :
12992   echo "*** The test program compiled, but did not run. This usually means"
12993          echo "*** that the run-time linker is not finding SDL or finding the wrong"
12994          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12995          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12996          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12997          echo "*** is required on your system"
12998	  echo "***"
12999          echo "*** If you have an old version installed, it is best to remove it, although"
13000          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13001else
13002   echo "*** The test program failed to compile or link. See the file config.log for the"
13003          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13004          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13005          echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
13006fi
13007rm -f core conftest.err conftest.$ac_objext \
13008    conftest$ac_exeext conftest.$ac_ext
13009          CFLAGS="$ac_save_CFLAGS"
13010          CXXFLAGS="$ac_save_CXXFLAGS"
13011          LIBS="$ac_save_LIBS"
13012       fi
13013     fi
13014     SDL_CFLAGS=""
13015     SDL_LIBS=""
13016     as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
13017
13018  fi
13019
13020
13021  rm -f conf.sdltest
13022
13023CFLAGS="$CFLAGS $SDL_CFLAGS"
13024LIBS="$LIBS $SDL_LIBS"
13025
13026case "$host" in
13027    *-*-cygwin* | *-*-mingw32*)
13028        MATHLIB=""
13029        SYS_GL_LIBS="-lopengl32"
13030        ;;
13031    *-*-beos*)
13032        MATHLIB=""
13033        SYS_GL_LIBS="-lGL"
13034        ;;
13035    *-*-darwin*)
13036        MATHLIB=""
13037        SYS_GL_LIBS="-Wl,-framework,OpenGL"
13038        ;;
13039    *-*-aix*)
13040        if test x$ac_cv_c_compiler_gnu = xyes; then
13041            CFLAGS="-mthreads"
13042	fi
13043        SYS_GL_LIBS=""
13044        ;;
13045    *)
13046        MATHLIB="-lm"
13047        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13048$as_echo_n "checking for X... " >&6; }
13049
13050
13051# Check whether --with-x was given.
13052if test "${with_x+set}" = set; then :
13053  withval=$with_x;
13054fi
13055
13056# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13057if test "x$with_x" = xno; then
13058  # The user explicitly disabled X.
13059  have_x=disabled
13060else
13061  case $x_includes,$x_libraries in #(
13062    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13063    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13064  $as_echo_n "(cached) " >&6
13065else
13066  # One or both of the vars are not set, and there is no cached value.
13067ac_x_includes=no ac_x_libraries=no
13068rm -f -r conftest.dir
13069if mkdir conftest.dir; then
13070  cd conftest.dir
13071  cat >Imakefile <<'_ACEOF'
13072incroot:
13073	@echo incroot='${INCROOT}'
13074usrlibdir:
13075	@echo usrlibdir='${USRLIBDIR}'
13076libdir:
13077	@echo libdir='${LIBDIR}'
13078_ACEOF
13079  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13080    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13081    for ac_var in incroot usrlibdir libdir; do
13082      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13083    done
13084    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13085    for ac_extension in a so sl dylib la dll; do
13086      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13087	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13088	ac_im_usrlibdir=$ac_im_libdir; break
13089      fi
13090    done
13091    # Screen out bogus values from the imake configuration.  They are
13092    # bogus both because they are the default anyway, and because
13093    # using them would break gcc on systems where it needs fixed includes.
13094    case $ac_im_incroot in
13095	/usr/include) ac_x_includes= ;;
13096	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13097    esac
13098    case $ac_im_usrlibdir in
13099	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
13100	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13101    esac
13102  fi
13103  cd ..
13104  rm -f -r conftest.dir
13105fi
13106
13107# Standard set of common directories for X headers.
13108# Check X11 before X11Rn because it is often a symlink to the current release.
13109ac_x_header_dirs='
13110/usr/X11/include
13111/usr/X11R7/include
13112/usr/X11R6/include
13113/usr/X11R5/include
13114/usr/X11R4/include
13115
13116/usr/include/X11
13117/usr/include/X11R7
13118/usr/include/X11R6
13119/usr/include/X11R5
13120/usr/include/X11R4
13121
13122/usr/local/X11/include
13123/usr/local/X11R7/include
13124/usr/local/X11R6/include
13125/usr/local/X11R5/include
13126/usr/local/X11R4/include
13127
13128/usr/local/include/X11
13129/usr/local/include/X11R7
13130/usr/local/include/X11R6
13131/usr/local/include/X11R5
13132/usr/local/include/X11R4
13133
13134/usr/X386/include
13135/usr/x386/include
13136/usr/XFree86/include/X11
13137
13138/usr/include
13139/usr/local/include
13140/usr/unsupported/include
13141/usr/athena/include
13142/usr/local/x11r5/include
13143/usr/lpp/Xamples/include
13144
13145/usr/openwin/include
13146/usr/openwin/share/include'
13147
13148if test "$ac_x_includes" = no; then
13149  # Guess where to find include files, by looking for Xlib.h.
13150  # First, try using that file with no special directory specified.
13151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153#include <X11/Xlib.h>
13154_ACEOF
13155if ac_fn_c_try_cpp "$LINENO"; then :
13156  # We can compile using X headers with no special include directory.
13157ac_x_includes=
13158else
13159  for ac_dir in $ac_x_header_dirs; do
13160  if test -r "$ac_dir/X11/Xlib.h"; then
13161    ac_x_includes=$ac_dir
13162    break
13163  fi
13164done
13165fi
13166rm -f conftest.err conftest.i conftest.$ac_ext
13167fi # $ac_x_includes = no
13168
13169if test "$ac_x_libraries" = no; then
13170  # Check for the libraries.
13171  # See if we find them without any special options.
13172  # Don't add to $LIBS permanently.
13173  ac_save_LIBS=$LIBS
13174  LIBS="-lX11 $LIBS"
13175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176/* end confdefs.h.  */
13177#include <X11/Xlib.h>
13178int
13179main ()
13180{
13181XrmInitialize ()
13182  ;
13183  return 0;
13184}
13185_ACEOF
13186if ac_fn_c_try_link "$LINENO"; then :
13187  LIBS=$ac_save_LIBS
13188# We can link X programs with no special library path.
13189ac_x_libraries=
13190else
13191  LIBS=$ac_save_LIBS
13192for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13193do
13194  # Don't even attempt the hair of trying to link an X program!
13195  for ac_extension in a so sl dylib la dll; do
13196    if test -r "$ac_dir/libX11.$ac_extension"; then
13197      ac_x_libraries=$ac_dir
13198      break 2
13199    fi
13200  done
13201done
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204    conftest$ac_exeext conftest.$ac_ext
13205fi # $ac_x_libraries = no
13206
13207case $ac_x_includes,$ac_x_libraries in #(
13208  no,* | *,no | *\'*)
13209    # Didn't find X, or a directory has "'" in its name.
13210    ac_cv_have_x="have_x=no";; #(
13211  *)
13212    # Record where we found X for the cache.
13213    ac_cv_have_x="have_x=yes\
13214	ac_x_includes='$ac_x_includes'\
13215	ac_x_libraries='$ac_x_libraries'"
13216esac
13217fi
13218;; #(
13219    *) have_x=yes;;
13220  esac
13221  eval "$ac_cv_have_x"
13222fi # $with_x != no
13223
13224if test "$have_x" != yes; then
13225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13226$as_echo "$have_x" >&6; }
13227  no_x=yes
13228else
13229  # If each of the values was on the command line, it overrides each guess.
13230  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13231  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13232  # Update the cache value to reflect the command line values.
13233  ac_cv_have_x="have_x=yes\
13234	ac_x_includes='$x_includes'\
13235	ac_x_libraries='$x_libraries'"
13236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13237$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13238fi
13239
13240        if test "$no_x" = yes; then
13241  # Not all programs may use this symbol, but it does not hurt to define it.
13242
13243$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13244
13245  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13246else
13247  if test -n "$x_includes"; then
13248    X_CFLAGS="$X_CFLAGS -I$x_includes"
13249  fi
13250
13251  # It would also be nice to do this for all -L options, not just this one.
13252  if test -n "$x_libraries"; then
13253    X_LIBS="$X_LIBS -L$x_libraries"
13254    # For Solaris; some versions of Sun CC require a space after -R and
13255    # others require no space.  Words are not sufficient . . . .
13256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13257$as_echo_n "checking whether -R must be followed by a space... " >&6; }
13258    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13259    ac_xsave_c_werror_flag=$ac_c_werror_flag
13260    ac_c_werror_flag=yes
13261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262/* end confdefs.h.  */
13263
13264int
13265main ()
13266{
13267
13268  ;
13269  return 0;
13270}
13271_ACEOF
13272if ac_fn_c_try_link "$LINENO"; then :
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274$as_echo "no" >&6; }
13275       X_LIBS="$X_LIBS -R$x_libraries"
13276else
13277  LIBS="$ac_xsave_LIBS -R $x_libraries"
13278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280
13281int
13282main ()
13283{
13284
13285  ;
13286  return 0;
13287}
13288_ACEOF
13289if ac_fn_c_try_link "$LINENO"; then :
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13291$as_echo "yes" >&6; }
13292	  X_LIBS="$X_LIBS -R $x_libraries"
13293else
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13295$as_echo "neither works" >&6; }
13296fi
13297rm -f core conftest.err conftest.$ac_objext \
13298    conftest$ac_exeext conftest.$ac_ext
13299fi
13300rm -f core conftest.err conftest.$ac_objext \
13301    conftest$ac_exeext conftest.$ac_ext
13302    ac_c_werror_flag=$ac_xsave_c_werror_flag
13303    LIBS=$ac_xsave_LIBS
13304  fi
13305
13306  # Check for system-dependent libraries X programs must link with.
13307  # Do this before checking for the system-independent R6 libraries
13308  # (-lICE), since we may need -lsocket or whatever for X linking.
13309
13310  if test "$ISC" = yes; then
13311    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13312  else
13313    # Martyn Johnson says this is needed for Ultrix, if the X
13314    # libraries were built with DECnet support.  And Karl Berry says
13315    # the Alpha needs dnet_stub (dnet does not exist).
13316    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318/* end confdefs.h.  */
13319
13320/* Override any GCC internal prototype to avoid an error.
13321   Use char because int might match the return type of a GCC
13322   builtin and then its argument prototype would still apply.  */
13323#ifdef __cplusplus
13324extern "C"
13325#endif
13326char XOpenDisplay ();
13327int
13328main ()
13329{
13330return XOpenDisplay ();
13331  ;
13332  return 0;
13333}
13334_ACEOF
13335if ac_fn_c_try_link "$LINENO"; then :
13336
13337else
13338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13339$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13340if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  ac_check_lib_save_LIBS=$LIBS
13344LIBS="-ldnet  $LIBS"
13345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346/* end confdefs.h.  */
13347
13348/* Override any GCC internal prototype to avoid an error.
13349   Use char because int might match the return type of a GCC
13350   builtin and then its argument prototype would still apply.  */
13351#ifdef __cplusplus
13352extern "C"
13353#endif
13354char dnet_ntoa ();
13355int
13356main ()
13357{
13358return dnet_ntoa ();
13359  ;
13360  return 0;
13361}
13362_ACEOF
13363if ac_fn_c_try_link "$LINENO"; then :
13364  ac_cv_lib_dnet_dnet_ntoa=yes
13365else
13366  ac_cv_lib_dnet_dnet_ntoa=no
13367fi
13368rm -f core conftest.err conftest.$ac_objext \
13369    conftest$ac_exeext conftest.$ac_ext
13370LIBS=$ac_check_lib_save_LIBS
13371fi
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13373$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13374if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13375  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13376fi
13377
13378    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13379      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13380$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13381if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13382  $as_echo_n "(cached) " >&6
13383else
13384  ac_check_lib_save_LIBS=$LIBS
13385LIBS="-ldnet_stub  $LIBS"
13386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388
13389/* Override any GCC internal prototype to avoid an error.
13390   Use char because int might match the return type of a GCC
13391   builtin and then its argument prototype would still apply.  */
13392#ifdef __cplusplus
13393extern "C"
13394#endif
13395char dnet_ntoa ();
13396int
13397main ()
13398{
13399return dnet_ntoa ();
13400  ;
13401  return 0;
13402}
13403_ACEOF
13404if ac_fn_c_try_link "$LINENO"; then :
13405  ac_cv_lib_dnet_stub_dnet_ntoa=yes
13406else
13407  ac_cv_lib_dnet_stub_dnet_ntoa=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext \
13410    conftest$ac_exeext conftest.$ac_ext
13411LIBS=$ac_check_lib_save_LIBS
13412fi
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13414$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13415if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13416  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13417fi
13418
13419    fi
13420fi
13421rm -f core conftest.err conftest.$ac_objext \
13422    conftest$ac_exeext conftest.$ac_ext
13423    LIBS="$ac_xsave_LIBS"
13424
13425    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13426    # to get the SysV transport functions.
13427    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13428    # needs -lnsl.
13429    # The nsl library prevents programs from opening the X display
13430    # on Irix 5.2, according to T.E. Dickey.
13431    # The functions gethostbyname, getservbyname, and inet_addr are
13432    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13433    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13434if test "x$ac_cv_func_gethostbyname" = xyes; then :
13435
13436fi
13437
13438    if test $ac_cv_func_gethostbyname = no; then
13439      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13440$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13441if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  ac_check_lib_save_LIBS=$LIBS
13445LIBS="-lnsl  $LIBS"
13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448
13449/* Override any GCC internal prototype to avoid an error.
13450   Use char because int might match the return type of a GCC
13451   builtin and then its argument prototype would still apply.  */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455char gethostbyname ();
13456int
13457main ()
13458{
13459return gethostbyname ();
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  ac_cv_lib_nsl_gethostbyname=yes
13466else
13467  ac_cv_lib_nsl_gethostbyname=no
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext conftest.$ac_ext
13471LIBS=$ac_check_lib_save_LIBS
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13474$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13475if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13476  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13477fi
13478
13479      if test $ac_cv_lib_nsl_gethostbyname = no; then
13480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13481$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13482if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  ac_check_lib_save_LIBS=$LIBS
13486LIBS="-lbsd  $LIBS"
13487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h.  */
13489
13490/* Override any GCC internal prototype to avoid an error.
13491   Use char because int might match the return type of a GCC
13492   builtin and then its argument prototype would still apply.  */
13493#ifdef __cplusplus
13494extern "C"
13495#endif
13496char gethostbyname ();
13497int
13498main ()
13499{
13500return gethostbyname ();
13501  ;
13502  return 0;
13503}
13504_ACEOF
13505if ac_fn_c_try_link "$LINENO"; then :
13506  ac_cv_lib_bsd_gethostbyname=yes
13507else
13508  ac_cv_lib_bsd_gethostbyname=no
13509fi
13510rm -f core conftest.err conftest.$ac_objext \
13511    conftest$ac_exeext conftest.$ac_ext
13512LIBS=$ac_check_lib_save_LIBS
13513fi
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13515$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13516if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13517  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13518fi
13519
13520      fi
13521    fi
13522
13523    # lieder@skyler.mavd.honeywell.com says without -lsocket,
13524    # socket/setsockopt and other routines are undefined under SCO ODT
13525    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13526    # on later versions), says Simon Leinen: it contains gethostby*
13527    # variants that don't use the name server (or something).  -lsocket
13528    # must be given before -lnsl if both are needed.  We assume that
13529    # if connect needs -lnsl, so does gethostbyname.
13530    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13531if test "x$ac_cv_func_connect" = xyes; then :
13532
13533fi
13534
13535    if test $ac_cv_func_connect = no; then
13536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13537$as_echo_n "checking for connect in -lsocket... " >&6; }
13538if ${ac_cv_lib_socket_connect+:} false; then :
13539  $as_echo_n "(cached) " >&6
13540else
13541  ac_check_lib_save_LIBS=$LIBS
13542LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544/* end confdefs.h.  */
13545
13546/* Override any GCC internal prototype to avoid an error.
13547   Use char because int might match the return type of a GCC
13548   builtin and then its argument prototype would still apply.  */
13549#ifdef __cplusplus
13550extern "C"
13551#endif
13552char connect ();
13553int
13554main ()
13555{
13556return connect ();
13557  ;
13558  return 0;
13559}
13560_ACEOF
13561if ac_fn_c_try_link "$LINENO"; then :
13562  ac_cv_lib_socket_connect=yes
13563else
13564  ac_cv_lib_socket_connect=no
13565fi
13566rm -f core conftest.err conftest.$ac_objext \
13567    conftest$ac_exeext conftest.$ac_ext
13568LIBS=$ac_check_lib_save_LIBS
13569fi
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13571$as_echo "$ac_cv_lib_socket_connect" >&6; }
13572if test "x$ac_cv_lib_socket_connect" = xyes; then :
13573  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13574fi
13575
13576    fi
13577
13578    # Guillermo Gomez says -lposix is necessary on A/UX.
13579    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13580if test "x$ac_cv_func_remove" = xyes; then :
13581
13582fi
13583
13584    if test $ac_cv_func_remove = no; then
13585      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13586$as_echo_n "checking for remove in -lposix... " >&6; }
13587if ${ac_cv_lib_posix_remove+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  ac_check_lib_save_LIBS=$LIBS
13591LIBS="-lposix  $LIBS"
13592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h.  */
13594
13595/* Override any GCC internal prototype to avoid an error.
13596   Use char because int might match the return type of a GCC
13597   builtin and then its argument prototype would still apply.  */
13598#ifdef __cplusplus
13599extern "C"
13600#endif
13601char remove ();
13602int
13603main ()
13604{
13605return remove ();
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610if ac_fn_c_try_link "$LINENO"; then :
13611  ac_cv_lib_posix_remove=yes
13612else
13613  ac_cv_lib_posix_remove=no
13614fi
13615rm -f core conftest.err conftest.$ac_objext \
13616    conftest$ac_exeext conftest.$ac_ext
13617LIBS=$ac_check_lib_save_LIBS
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13620$as_echo "$ac_cv_lib_posix_remove" >&6; }
13621if test "x$ac_cv_lib_posix_remove" = xyes; then :
13622  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13623fi
13624
13625    fi
13626
13627    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13628    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13629if test "x$ac_cv_func_shmat" = xyes; then :
13630
13631fi
13632
13633    if test $ac_cv_func_shmat = no; then
13634      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13635$as_echo_n "checking for shmat in -lipc... " >&6; }
13636if ${ac_cv_lib_ipc_shmat+:} false; then :
13637  $as_echo_n "(cached) " >&6
13638else
13639  ac_check_lib_save_LIBS=$LIBS
13640LIBS="-lipc  $LIBS"
13641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642/* end confdefs.h.  */
13643
13644/* Override any GCC internal prototype to avoid an error.
13645   Use char because int might match the return type of a GCC
13646   builtin and then its argument prototype would still apply.  */
13647#ifdef __cplusplus
13648extern "C"
13649#endif
13650char shmat ();
13651int
13652main ()
13653{
13654return shmat ();
13655  ;
13656  return 0;
13657}
13658_ACEOF
13659if ac_fn_c_try_link "$LINENO"; then :
13660  ac_cv_lib_ipc_shmat=yes
13661else
13662  ac_cv_lib_ipc_shmat=no
13663fi
13664rm -f core conftest.err conftest.$ac_objext \
13665    conftest$ac_exeext conftest.$ac_ext
13666LIBS=$ac_check_lib_save_LIBS
13667fi
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13669$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13670if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13671  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13672fi
13673
13674    fi
13675  fi
13676
13677  # Check for libraries that X11R6 Xt/Xaw programs need.
13678  ac_save_LDFLAGS=$LDFLAGS
13679  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13680  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13681  # check for ICE first), but we must link in the order -lSM -lICE or
13682  # we get undefined symbols.  So assume we have SM if we have ICE.
13683  # These have to be linked with before -lX11, unlike the other
13684  # libraries we check for below, so use a different variable.
13685  # John Interrante, Karl Berry
13686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13687$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13688if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13689  $as_echo_n "(cached) " >&6
13690else
13691  ac_check_lib_save_LIBS=$LIBS
13692LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695
13696/* Override any GCC internal prototype to avoid an error.
13697   Use char because int might match the return type of a GCC
13698   builtin and then its argument prototype would still apply.  */
13699#ifdef __cplusplus
13700extern "C"
13701#endif
13702char IceConnectionNumber ();
13703int
13704main ()
13705{
13706return IceConnectionNumber ();
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711if ac_fn_c_try_link "$LINENO"; then :
13712  ac_cv_lib_ICE_IceConnectionNumber=yes
13713else
13714  ac_cv_lib_ICE_IceConnectionNumber=no
13715fi
13716rm -f core conftest.err conftest.$ac_objext \
13717    conftest$ac_exeext conftest.$ac_ext
13718LIBS=$ac_check_lib_save_LIBS
13719fi
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13721$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13722if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13723  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13724fi
13725
13726  LDFLAGS=$ac_save_LDFLAGS
13727
13728fi
13729
13730        if test x$have_x = xyes; then
13731            CFLAGS="$CFLAGS $X_CFLAGS"
13732            SYS_GL_LIBS="$X_LIBS -lGL"
13733        else
13734            SYS_GL_LIBS="-lGL"
13735        fi
13736        ;;
13737esac
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
13739$as_echo_n "checking for OpenGL support... " >&6; }
13740have_opengl=no
13741save_LIBS="$LIBS"
13742LIBS="$LIBS $SYS_GL_LIBS"
13743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745
13746 #include "SDL_opengl.h"
13747
13748int
13749main ()
13750{
13751
13752 glOrtho( -2.0, 2.0, -2.0, 2.0, -20.0, 20.0 );
13753
13754  ;
13755  return 0;
13756}
13757_ACEOF
13758if ac_fn_c_try_link "$LINENO"; then :
13759
13760
13761fi
13762rm -f core conftest.err conftest.$ac_objext \
13763    conftest$ac_exeext conftest.$ac_ext
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
13765$as_echo "$have_opengl" >&6; }
13766LIBS="$save_LIBS"
13767if test x$have_opengl = xyes; then
13768    CFLAGS="$CFLAGS -DHAVE_OPENGL"
13769    GL_LIBS="$SYS_GL_LIBS"
13770else
13771    GL_LIBS=""
13772fi
13773
13774
13775
13776
13777# Finally create all the generated files
13778ac_config_files="$ac_config_files Makefile SDL2_ttf.spec SDL2_ttf.pc"
13779
13780cat >confcache <<\_ACEOF
13781# This file is a shell script that caches the results of configure
13782# tests run on this system so they can be shared between configure
13783# scripts and configure runs, see configure's option --config-cache.
13784# It is not useful on other systems.  If it contains results you don't
13785# want to keep, you may remove or edit it.
13786#
13787# config.status only pays attention to the cache file if you give it
13788# the --recheck option to rerun configure.
13789#
13790# `ac_cv_env_foo' variables (set or unset) will be overridden when
13791# loading this file, other *unset* `ac_cv_foo' will be assigned the
13792# following values.
13793
13794_ACEOF
13795
13796# The following way of writing the cache mishandles newlines in values,
13797# but we know of no workaround that is simple, portable, and efficient.
13798# So, we kill variables containing newlines.
13799# Ultrix sh set writes to stderr and can't be redirected directly,
13800# and sets the high bit in the cache file unless we assign to the vars.
13801(
13802  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13803    eval ac_val=\$$ac_var
13804    case $ac_val in #(
13805    *${as_nl}*)
13806      case $ac_var in #(
13807      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13808$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13809      esac
13810      case $ac_var in #(
13811      _ | IFS | as_nl) ;; #(
13812      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13813      *) { eval $ac_var=; unset $ac_var;} ;;
13814      esac ;;
13815    esac
13816  done
13817
13818  (set) 2>&1 |
13819    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13820    *${as_nl}ac_space=\ *)
13821      # `set' does not quote correctly, so add quotes: double-quote
13822      # substitution turns \\\\ into \\, and sed turns \\ into \.
13823      sed -n \
13824	"s/'/'\\\\''/g;
13825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13826      ;; #(
13827    *)
13828      # `set' quotes correctly as required by POSIX, so do not add quotes.
13829      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13830      ;;
13831    esac |
13832    sort
13833) |
13834  sed '
13835     /^ac_cv_env_/b end
13836     t clear
13837     :clear
13838     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13839     t end
13840     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13841     :end' >>confcache
13842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13843  if test -w "$cache_file"; then
13844    if test "x$cache_file" != "x/dev/null"; then
13845      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13846$as_echo "$as_me: updating cache $cache_file" >&6;}
13847      if test ! -f "$cache_file" || test -h "$cache_file"; then
13848	cat confcache >"$cache_file"
13849      else
13850        case $cache_file in #(
13851        */* | ?:*)
13852	  mv -f confcache "$cache_file"$$ &&
13853	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13854        *)
13855	  mv -f confcache "$cache_file" ;;
13856	esac
13857      fi
13858    fi
13859  else
13860    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13861$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13862  fi
13863fi
13864rm -f confcache
13865
13866test "x$prefix" = xNONE && prefix=$ac_default_prefix
13867# Let make expand exec_prefix.
13868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13869
13870# Transform confdefs.h into DEFS.
13871# Protect against shell expansion while executing Makefile rules.
13872# Protect against Makefile macro expansion.
13873#
13874# If the first sed substitution is executed (which looks for macros that
13875# take arguments), then branch to the quote section.  Otherwise,
13876# look for a macro that doesn't take arguments.
13877ac_script='
13878:mline
13879/\\$/{
13880 N
13881 s,\\\n,,
13882 b mline
13883}
13884t clear
13885:clear
13886s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
13887t quote
13888s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13889t quote
13890b any
13891:quote
13892s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13893s/\[/\\&/g
13894s/\]/\\&/g
13895s/\$/$$/g
13896H
13897:any
13898${
13899	g
13900	s/^\n//
13901	s/\n/ /g
13902	p
13903}
13904'
13905DEFS=`sed -n "$ac_script" confdefs.h`
13906
13907
13908ac_libobjs=
13909ac_ltlibobjs=
13910U=
13911for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13912  # 1. Remove the extension, and $U if already installed.
13913  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13914  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13915  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13916  #    will be set to the directory where LIBOBJS objects are built.
13917  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13918  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13919done
13920LIBOBJS=$ac_libobjs
13921
13922LTLIBOBJS=$ac_ltlibobjs
13923
13924
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13926$as_echo_n "checking that generated files are newer than configure... " >&6; }
13927   if test -n "$am_sleep_pid"; then
13928     # Hide warnings about reused PIDs.
13929     wait $am_sleep_pid 2>/dev/null
13930   fi
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13932$as_echo "done" >&6; }
13933if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13934  as_fn_error $? "conditional \"AMDEP\" was never defined.
13935Usually this means the macro was only invoked conditionally." "$LINENO" 5
13936fi
13937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13938  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13939Usually this means the macro was only invoked conditionally." "$LINENO" 5
13940fi
13941 if test -n "$EXEEXT"; then
13942  am__EXEEXT_TRUE=
13943  am__EXEEXT_FALSE='#'
13944else
13945  am__EXEEXT_TRUE='#'
13946  am__EXEEXT_FALSE=
13947fi
13948
13949if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
13950  as_fn_error $? "conditional \"USE_VERSION_RC\" was never defined.
13951Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952fi
13953
13954: "${CONFIG_STATUS=./config.status}"
13955ac_write_fail=0
13956ac_clean_files_save=$ac_clean_files
13957ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13959$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13960as_write_fail=0
13961cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13962#! $SHELL
13963# Generated by $as_me.
13964# Run this file to recreate the current configuration.
13965# Compiler output produced by configure, useful for debugging
13966# configure, is in config.log if it exists.
13967
13968debug=false
13969ac_cs_recheck=false
13970ac_cs_silent=false
13971
13972SHELL=\${CONFIG_SHELL-$SHELL}
13973export SHELL
13974_ASEOF
13975cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13976## -------------------- ##
13977## M4sh Initialization. ##
13978## -------------------- ##
13979
13980# Be more Bourne compatible
13981DUALCASE=1; export DUALCASE # for MKS sh
13982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13983  emulate sh
13984  NULLCMD=:
13985  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13986  # is contrary to our usage.  Disable this feature.
13987  alias -g '${1+"$@"}'='"$@"'
13988  setopt NO_GLOB_SUBST
13989else
13990  case `(set -o) 2>/dev/null` in #(
13991  *posix*) :
13992    set -o posix ;; #(
13993  *) :
13994     ;;
13995esac
13996fi
13997
13998
13999as_nl='
14000'
14001export as_nl
14002# Printing a long string crashes Solaris 7 /usr/bin/printf.
14003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14006# Prefer a ksh shell builtin over an external printf program on Solaris,
14007# but without wasting forks for bash or zsh.
14008if test -z "$BASH_VERSION$ZSH_VERSION" \
14009    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14010  as_echo='print -r --'
14011  as_echo_n='print -rn --'
14012elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14013  as_echo='printf %s\n'
14014  as_echo_n='printf %s'
14015else
14016  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14017    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14018    as_echo_n='/usr/ucb/echo -n'
14019  else
14020    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14021    as_echo_n_body='eval
14022      arg=$1;
14023      case $arg in #(
14024      *"$as_nl"*)
14025	expr "X$arg" : "X\\(.*\\)$as_nl";
14026	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14027      esac;
14028      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14029    '
14030    export as_echo_n_body
14031    as_echo_n='sh -c $as_echo_n_body as_echo'
14032  fi
14033  export as_echo_body
14034  as_echo='sh -c $as_echo_body as_echo'
14035fi
14036
14037# The user is always right.
14038if test "${PATH_SEPARATOR+set}" != set; then
14039  PATH_SEPARATOR=:
14040  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14041    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14042      PATH_SEPARATOR=';'
14043  }
14044fi
14045
14046
14047# IFS
14048# We need space, tab and new line, in precisely that order.  Quoting is
14049# there to prevent editors from complaining about space-tab.
14050# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14051# splitting by setting IFS to empty value.)
14052IFS=" ""	$as_nl"
14053
14054# Find who we are.  Look in the path if we contain no directory separator.
14055as_myself=
14056case $0 in #((
14057  *[\\/]* ) as_myself=$0 ;;
14058  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059for as_dir in $PATH
14060do
14061  IFS=$as_save_IFS
14062  test -z "$as_dir" && as_dir=.
14063    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14064  done
14065IFS=$as_save_IFS
14066
14067     ;;
14068esac
14069# We did not find ourselves, most probably we were run as `sh COMMAND'
14070# in which case we are not to be found in the path.
14071if test "x$as_myself" = x; then
14072  as_myself=$0
14073fi
14074if test ! -f "$as_myself"; then
14075  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14076  exit 1
14077fi
14078
14079# Unset variables that we do not need and which cause bugs (e.g. in
14080# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14081# suppresses any "Segmentation fault" message there.  '((' could
14082# trigger a bug in pdksh 5.2.14.
14083for as_var in BASH_ENV ENV MAIL MAILPATH
14084do eval test x\${$as_var+set} = xset \
14085  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14086done
14087PS1='$ '
14088PS2='> '
14089PS4='+ '
14090
14091# NLS nuisances.
14092LC_ALL=C
14093export LC_ALL
14094LANGUAGE=C
14095export LANGUAGE
14096
14097# CDPATH.
14098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14099
14100
14101# as_fn_error STATUS ERROR [LINENO LOG_FD]
14102# ----------------------------------------
14103# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14104# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14105# script with STATUS, using 1 if that was 0.
14106as_fn_error ()
14107{
14108  as_status=$1; test $as_status -eq 0 && as_status=1
14109  if test "$4"; then
14110    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14111    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14112  fi
14113  $as_echo "$as_me: error: $2" >&2
14114  as_fn_exit $as_status
14115} # as_fn_error
14116
14117
14118# as_fn_set_status STATUS
14119# -----------------------
14120# Set $? to STATUS, without forking.
14121as_fn_set_status ()
14122{
14123  return $1
14124} # as_fn_set_status
14125
14126# as_fn_exit STATUS
14127# -----------------
14128# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14129as_fn_exit ()
14130{
14131  set +e
14132  as_fn_set_status $1
14133  exit $1
14134} # as_fn_exit
14135
14136# as_fn_unset VAR
14137# ---------------
14138# Portably unset VAR.
14139as_fn_unset ()
14140{
14141  { eval $1=; unset $1;}
14142}
14143as_unset=as_fn_unset
14144# as_fn_append VAR VALUE
14145# ----------------------
14146# Append the text in VALUE to the end of the definition contained in VAR. Take
14147# advantage of any shell optimizations that allow amortized linear growth over
14148# repeated appends, instead of the typical quadratic growth present in naive
14149# implementations.
14150if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14151  eval 'as_fn_append ()
14152  {
14153    eval $1+=\$2
14154  }'
14155else
14156  as_fn_append ()
14157  {
14158    eval $1=\$$1\$2
14159  }
14160fi # as_fn_append
14161
14162# as_fn_arith ARG...
14163# ------------------
14164# Perform arithmetic evaluation on the ARGs, and store the result in the
14165# global $as_val. Take advantage of shells that can avoid forks. The arguments
14166# must be portable across $(()) and expr.
14167if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14168  eval 'as_fn_arith ()
14169  {
14170    as_val=$(( $* ))
14171  }'
14172else
14173  as_fn_arith ()
14174  {
14175    as_val=`expr "$@" || test $? -eq 1`
14176  }
14177fi # as_fn_arith
14178
14179
14180if expr a : '\(a\)' >/dev/null 2>&1 &&
14181   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14182  as_expr=expr
14183else
14184  as_expr=false
14185fi
14186
14187if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14188  as_basename=basename
14189else
14190  as_basename=false
14191fi
14192
14193if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14194  as_dirname=dirname
14195else
14196  as_dirname=false
14197fi
14198
14199as_me=`$as_basename -- "$0" ||
14200$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14201	 X"$0" : 'X\(//\)$' \| \
14202	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14203$as_echo X/"$0" |
14204    sed '/^.*\/\([^/][^/]*\)\/*$/{
14205	    s//\1/
14206	    q
14207	  }
14208	  /^X\/\(\/\/\)$/{
14209	    s//\1/
14210	    q
14211	  }
14212	  /^X\/\(\/\).*/{
14213	    s//\1/
14214	    q
14215	  }
14216	  s/.*/./; q'`
14217
14218# Avoid depending upon Character Ranges.
14219as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14221as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14222as_cr_digits='0123456789'
14223as_cr_alnum=$as_cr_Letters$as_cr_digits
14224
14225ECHO_C= ECHO_N= ECHO_T=
14226case `echo -n x` in #(((((
14227-n*)
14228  case `echo 'xy\c'` in
14229  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14230  xy)  ECHO_C='\c';;
14231  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14232       ECHO_T='	';;
14233  esac;;
14234*)
14235  ECHO_N='-n';;
14236esac
14237
14238rm -f conf$$ conf$$.exe conf$$.file
14239if test -d conf$$.dir; then
14240  rm -f conf$$.dir/conf$$.file
14241else
14242  rm -f conf$$.dir
14243  mkdir conf$$.dir 2>/dev/null
14244fi
14245if (echo >conf$$.file) 2>/dev/null; then
14246  if ln -s conf$$.file conf$$ 2>/dev/null; then
14247    as_ln_s='ln -s'
14248    # ... but there are two gotchas:
14249    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14250    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14251    # In both cases, we have to default to `cp -pR'.
14252    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14253      as_ln_s='cp -pR'
14254  elif ln conf$$.file conf$$ 2>/dev/null; then
14255    as_ln_s=ln
14256  else
14257    as_ln_s='cp -pR'
14258  fi
14259else
14260  as_ln_s='cp -pR'
14261fi
14262rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14263rmdir conf$$.dir 2>/dev/null
14264
14265
14266# as_fn_mkdir_p
14267# -------------
14268# Create "$as_dir" as a directory, including parents if necessary.
14269as_fn_mkdir_p ()
14270{
14271
14272  case $as_dir in #(
14273  -*) as_dir=./$as_dir;;
14274  esac
14275  test -d "$as_dir" || eval $as_mkdir_p || {
14276    as_dirs=
14277    while :; do
14278      case $as_dir in #(
14279      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14280      *) as_qdir=$as_dir;;
14281      esac
14282      as_dirs="'$as_qdir' $as_dirs"
14283      as_dir=`$as_dirname -- "$as_dir" ||
14284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14285	 X"$as_dir" : 'X\(//\)[^/]' \| \
14286	 X"$as_dir" : 'X\(//\)$' \| \
14287	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14288$as_echo X"$as_dir" |
14289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14290	    s//\1/
14291	    q
14292	  }
14293	  /^X\(\/\/\)[^/].*/{
14294	    s//\1/
14295	    q
14296	  }
14297	  /^X\(\/\/\)$/{
14298	    s//\1/
14299	    q
14300	  }
14301	  /^X\(\/\).*/{
14302	    s//\1/
14303	    q
14304	  }
14305	  s/.*/./; q'`
14306      test -d "$as_dir" && break
14307    done
14308    test -z "$as_dirs" || eval "mkdir $as_dirs"
14309  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14310
14311
14312} # as_fn_mkdir_p
14313if mkdir -p . 2>/dev/null; then
14314  as_mkdir_p='mkdir -p "$as_dir"'
14315else
14316  test -d ./-p && rmdir ./-p
14317  as_mkdir_p=false
14318fi
14319
14320
14321# as_fn_executable_p FILE
14322# -----------------------
14323# Test if FILE is an executable regular file.
14324as_fn_executable_p ()
14325{
14326  test -f "$1" && test -x "$1"
14327} # as_fn_executable_p
14328as_test_x='test -x'
14329as_executable_p=as_fn_executable_p
14330
14331# Sed expression to map a string onto a valid CPP name.
14332as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14333
14334# Sed expression to map a string onto a valid variable name.
14335as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14336
14337
14338exec 6>&1
14339## ----------------------------------- ##
14340## Main body of $CONFIG_STATUS script. ##
14341## ----------------------------------- ##
14342_ASEOF
14343test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14344
14345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14346# Save the log message, to keep $0 and so on meaningful, and to
14347# report actual input values of CONFIG_FILES etc. instead of their
14348# values after options handling.
14349ac_log="
14350This file was extended by $as_me, which was
14351generated by GNU Autoconf 2.69.  Invocation command line was
14352
14353  CONFIG_FILES    = $CONFIG_FILES
14354  CONFIG_HEADERS  = $CONFIG_HEADERS
14355  CONFIG_LINKS    = $CONFIG_LINKS
14356  CONFIG_COMMANDS = $CONFIG_COMMANDS
14357  $ $0 $@
14358
14359on `(hostname || uname -n) 2>/dev/null | sed 1q`
14360"
14361
14362_ACEOF
14363
14364case $ac_config_files in *"
14365"*) set x $ac_config_files; shift; ac_config_files=$*;;
14366esac
14367
14368
14369
14370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14371# Files that config.status was made for.
14372config_files="$ac_config_files"
14373config_commands="$ac_config_commands"
14374
14375_ACEOF
14376
14377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378ac_cs_usage="\
14379\`$as_me' instantiates files and other configuration actions
14380from templates according to the current configuration.  Unless the files
14381and actions are specified as TAGs, all are instantiated by default.
14382
14383Usage: $0 [OPTION]... [TAG]...
14384
14385  -h, --help       print this help, then exit
14386  -V, --version    print version number and configuration settings, then exit
14387      --config     print configuration, then exit
14388  -q, --quiet, --silent
14389                   do not print progress messages
14390  -d, --debug      don't remove temporary files
14391      --recheck    update $as_me by reconfiguring in the same conditions
14392      --file=FILE[:TEMPLATE]
14393                   instantiate the configuration file FILE
14394
14395Configuration files:
14396$config_files
14397
14398Configuration commands:
14399$config_commands
14400
14401Report bugs to the package provider."
14402
14403_ACEOF
14404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14405ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14406ac_cs_version="\\
14407config.status
14408configured by $0, generated by GNU Autoconf 2.69,
14409  with options \\"\$ac_cs_config\\"
14410
14411Copyright (C) 2012 Free Software Foundation, Inc.
14412This config.status script is free software; the Free Software Foundation
14413gives unlimited permission to copy, distribute and modify it."
14414
14415ac_pwd='$ac_pwd'
14416srcdir='$srcdir'
14417INSTALL='$INSTALL'
14418MKDIR_P='$MKDIR_P'
14419AWK='$AWK'
14420test -n "\$AWK" || AWK=awk
14421_ACEOF
14422
14423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14424# The default lists apply if the user does not specify any file.
14425ac_need_defaults=:
14426while test $# != 0
14427do
14428  case $1 in
14429  --*=?*)
14430    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14431    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14432    ac_shift=:
14433    ;;
14434  --*=)
14435    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14436    ac_optarg=
14437    ac_shift=:
14438    ;;
14439  *)
14440    ac_option=$1
14441    ac_optarg=$2
14442    ac_shift=shift
14443    ;;
14444  esac
14445
14446  case $ac_option in
14447  # Handling of the options.
14448  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14449    ac_cs_recheck=: ;;
14450  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14451    $as_echo "$ac_cs_version"; exit ;;
14452  --config | --confi | --conf | --con | --co | --c )
14453    $as_echo "$ac_cs_config"; exit ;;
14454  --debug | --debu | --deb | --de | --d | -d )
14455    debug=: ;;
14456  --file | --fil | --fi | --f )
14457    $ac_shift
14458    case $ac_optarg in
14459    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14460    '') as_fn_error $? "missing file argument" ;;
14461    esac
14462    as_fn_append CONFIG_FILES " '$ac_optarg'"
14463    ac_need_defaults=false;;
14464  --he | --h |  --help | --hel | -h )
14465    $as_echo "$ac_cs_usage"; exit ;;
14466  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14467  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14468    ac_cs_silent=: ;;
14469
14470  # This is an error.
14471  -*) as_fn_error $? "unrecognized option: \`$1'
14472Try \`$0 --help' for more information." ;;
14473
14474  *) as_fn_append ac_config_targets " $1"
14475     ac_need_defaults=false ;;
14476
14477  esac
14478  shift
14479done
14480
14481ac_configure_extra_args=
14482
14483if $ac_cs_silent; then
14484  exec 6>/dev/null
14485  ac_configure_extra_args="$ac_configure_extra_args --silent"
14486fi
14487
14488_ACEOF
14489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14490if \$ac_cs_recheck; then
14491  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14492  shift
14493  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14494  CONFIG_SHELL='$SHELL'
14495  export CONFIG_SHELL
14496  exec "\$@"
14497fi
14498
14499_ACEOF
14500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14501exec 5>>config.log
14502{
14503  echo
14504  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14505## Running $as_me. ##
14506_ASBOX
14507  $as_echo "$ac_log"
14508} >&5
14509
14510_ACEOF
14511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14512#
14513# INIT-COMMANDS
14514#
14515
14516
14517# The HP-UX ksh and POSIX shell print the target directory to stdout
14518# if CDPATH is set.
14519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14520
14521sed_quote_subst='$sed_quote_subst'
14522double_quote_subst='$double_quote_subst'
14523delay_variable_subst='$delay_variable_subst'
14524macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14525macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14526AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14527DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14528OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14529enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14530enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14531pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14532enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14533host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14534host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14535host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14536build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14537build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14538build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14539SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14540Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14541GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14542EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14543FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14544LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14545NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14546LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14547max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14548ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14549exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14550lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14551lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14552lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14553reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14554reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14555deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14556file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14557AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14558AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14559STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14560RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14561old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14562old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14563old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14564CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14565CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14566compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14567GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14568lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14569lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14570lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14572objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14573SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14574ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14575MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14576lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14577lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14578lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14579lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14580lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14581need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14582DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14583NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14584LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14585OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14586OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14587libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14588shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14589extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14590archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14591enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14592export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14593whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14594compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14595old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14596old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14597archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14598archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14599module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14600module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14601with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14602allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14603no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14604hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14605hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14606hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14607hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14608hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14609hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14610hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14611hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14612inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14613link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14614fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14615always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14616export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14617exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14618include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14619prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14620file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14621variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14622need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14623need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14624version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14625runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14626shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14627shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14628libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14629library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14630soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14631postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14632postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14633finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14634finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14635hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14636sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14637sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14638hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14639enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14640enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14641enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14642old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14643striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14644
14645LTCC='$LTCC'
14646LTCFLAGS='$LTCFLAGS'
14647compiler='$compiler_DEFAULT'
14648
14649# Quote evaled strings.
14650for var in SED \
14651GREP \
14652EGREP \
14653FGREP \
14654LD \
14655NM \
14656LN_S \
14657lt_SP2NL \
14658lt_NL2SP \
14659reload_flag \
14660deplibs_check_method \
14661file_magic_cmd \
14662AR \
14663AR_FLAGS \
14664STRIP \
14665RANLIB \
14666CC \
14667CFLAGS \
14668compiler \
14669lt_cv_sys_global_symbol_pipe \
14670lt_cv_sys_global_symbol_to_cdecl \
14671lt_cv_sys_global_symbol_to_c_name_address \
14672lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14673SHELL \
14674ECHO \
14675lt_prog_compiler_no_builtin_flag \
14676lt_prog_compiler_wl \
14677lt_prog_compiler_pic \
14678lt_prog_compiler_static \
14679lt_cv_prog_compiler_c_o \
14680need_locks \
14681DSYMUTIL \
14682NMEDIT \
14683LIPO \
14684OTOOL \
14685OTOOL64 \
14686shrext_cmds \
14687export_dynamic_flag_spec \
14688whole_archive_flag_spec \
14689compiler_needs_object \
14690with_gnu_ld \
14691allow_undefined_flag \
14692no_undefined_flag \
14693hardcode_libdir_flag_spec \
14694hardcode_libdir_flag_spec_ld \
14695hardcode_libdir_separator \
14696fix_srcfile_path \
14697exclude_expsyms \
14698include_expsyms \
14699file_list_spec \
14700variables_saved_for_relink \
14701libname_spec \
14702library_names_spec \
14703soname_spec \
14704finish_eval \
14705old_striplib \
14706striplib; do
14707    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14708    *[\\\\\\\`\\"\\\$]*)
14709      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14710      ;;
14711    *)
14712      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14713      ;;
14714    esac
14715done
14716
14717# Double-quote double-evaled strings.
14718for var in reload_cmds \
14719old_postinstall_cmds \
14720old_postuninstall_cmds \
14721old_archive_cmds \
14722extract_expsyms_cmds \
14723old_archive_from_new_cmds \
14724old_archive_from_expsyms_cmds \
14725archive_cmds \
14726archive_expsym_cmds \
14727module_cmds \
14728module_expsym_cmds \
14729export_symbols_cmds \
14730prelink_cmds \
14731postinstall_cmds \
14732postuninstall_cmds \
14733finish_cmds \
14734sys_lib_search_path_spec \
14735sys_lib_dlsearch_path_spec; do
14736    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14737    *[\\\\\\\`\\"\\\$]*)
14738      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14739      ;;
14740    *)
14741      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14742      ;;
14743    esac
14744done
14745
14746# Fix-up fallback echo if it was mangled by the above quoting rules.
14747case \$lt_ECHO in
14748*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14749  ;;
14750esac
14751
14752ac_aux_dir='$ac_aux_dir'
14753xsi_shell='$xsi_shell'
14754lt_shell_append='$lt_shell_append'
14755
14756# See if we are running on zsh, and set the options which allow our
14757# commands through without removal of \ escapes INIT.
14758if test -n "\${ZSH_VERSION+set}" ; then
14759   setopt NO_GLOB_SUBST
14760fi
14761
14762
14763    PACKAGE='$PACKAGE'
14764    VERSION='$VERSION'
14765    TIMESTAMP='$TIMESTAMP'
14766    RM='$RM'
14767    ofile='$ofile'
14768
14769
14770
14771AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14772
14773_ACEOF
14774
14775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14776
14777# Handling of arguments.
14778for ac_config_target in $ac_config_targets
14779do
14780  case $ac_config_target in
14781    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14782    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14783    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14784    "SDL2_ttf.spec") CONFIG_FILES="$CONFIG_FILES SDL2_ttf.spec" ;;
14785    "SDL2_ttf.pc") CONFIG_FILES="$CONFIG_FILES SDL2_ttf.pc" ;;
14786
14787  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14788  esac
14789done
14790
14791
14792# If the user did not use the arguments to specify the items to instantiate,
14793# then the envvar interface is used.  Set only those that are not.
14794# We use the long form for the default assignment because of an extremely
14795# bizarre bug on SunOS 4.1.3.
14796if $ac_need_defaults; then
14797  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14798  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14799fi
14800
14801# Have a temporary directory for convenience.  Make it in the build tree
14802# simply because there is no reason against having it here, and in addition,
14803# creating and moving files from /tmp can sometimes cause problems.
14804# Hook for its removal unless debugging.
14805# Note that there is a small window in which the directory will not be cleaned:
14806# after its creation but before its name has been assigned to `$tmp'.
14807$debug ||
14808{
14809  tmp= ac_tmp=
14810  trap 'exit_status=$?
14811  : "${ac_tmp:=$tmp}"
14812  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14813' 0
14814  trap 'as_fn_exit 1' 1 2 13 15
14815}
14816# Create a (secure) tmp directory for tmp files.
14817
14818{
14819  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14820  test -d "$tmp"
14821}  ||
14822{
14823  tmp=./conf$$-$RANDOM
14824  (umask 077 && mkdir "$tmp")
14825} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14826ac_tmp=$tmp
14827
14828# Set up the scripts for CONFIG_FILES section.
14829# No need to generate them if there are no CONFIG_FILES.
14830# This happens for instance with `./config.status config.h'.
14831if test -n "$CONFIG_FILES"; then
14832
14833
14834ac_cr=`echo X | tr X '\015'`
14835# On cygwin, bash can eat \r inside `` if the user requested igncr.
14836# But we know of no other shell where ac_cr would be empty at this
14837# point, so we can use a bashism as a fallback.
14838if test "x$ac_cr" = x; then
14839  eval ac_cr=\$\'\\r\'
14840fi
14841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14843  ac_cs_awk_cr='\\r'
14844else
14845  ac_cs_awk_cr=$ac_cr
14846fi
14847
14848echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14849_ACEOF
14850
14851
14852{
14853  echo "cat >conf$$subs.awk <<_ACEOF" &&
14854  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14855  echo "_ACEOF"
14856} >conf$$subs.sh ||
14857  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14858ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14859ac_delim='%!_!# '
14860for ac_last_try in false false false false false :; do
14861  . ./conf$$subs.sh ||
14862    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14863
14864  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14865  if test $ac_delim_n = $ac_delim_num; then
14866    break
14867  elif $ac_last_try; then
14868    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14869  else
14870    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14871  fi
14872done
14873rm -f conf$$subs.sh
14874
14875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14877_ACEOF
14878sed -n '
14879h
14880s/^/S["/; s/!.*/"]=/
14881p
14882g
14883s/^[^!]*!//
14884:repl
14885t repl
14886s/'"$ac_delim"'$//
14887t delim
14888:nl
14889h
14890s/\(.\{148\}\)..*/\1/
14891t more1
14892s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14893p
14894n
14895b repl
14896:more1
14897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14898p
14899g
14900s/.\{148\}//
14901t nl
14902:delim
14903h
14904s/\(.\{148\}\)..*/\1/
14905t more2
14906s/["\\]/\\&/g; s/^/"/; s/$/"/
14907p
14908b
14909:more2
14910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14911p
14912g
14913s/.\{148\}//
14914t delim
14915' <conf$$subs.awk | sed '
14916/^[^""]/{
14917  N
14918  s/\n//
14919}
14920' >>$CONFIG_STATUS || ac_write_fail=1
14921rm -f conf$$subs.awk
14922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14923_ACAWK
14924cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14925  for (key in S) S_is_set[key] = 1
14926  FS = ""
14927
14928}
14929{
14930  line = $ 0
14931  nfields = split(line, field, "@")
14932  substed = 0
14933  len = length(field[1])
14934  for (i = 2; i < nfields; i++) {
14935    key = field[i]
14936    keylen = length(key)
14937    if (S_is_set[key]) {
14938      value = S[key]
14939      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14940      len += length(value) + length(field[++i])
14941      substed = 1
14942    } else
14943      len += 1 + keylen
14944  }
14945
14946  print line
14947}
14948
14949_ACAWK
14950_ACEOF
14951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14952if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14953  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14954else
14955  cat
14956fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14957  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14958_ACEOF
14959
14960# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14961# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14962# trailing colons and then remove the whole line if VPATH becomes empty
14963# (actually we leave an empty line to preserve line numbers).
14964if test "x$srcdir" = x.; then
14965  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14966h
14967s///
14968s/^/:/
14969s/[	 ]*$/:/
14970s/:\$(srcdir):/:/g
14971s/:\${srcdir}:/:/g
14972s/:@srcdir@:/:/g
14973s/^:*//
14974s/:*$//
14975x
14976s/\(=[	 ]*\).*/\1/
14977G
14978s/\n//
14979s/^[^=]*=[	 ]*$//
14980}'
14981fi
14982
14983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984fi # test -n "$CONFIG_FILES"
14985
14986
14987eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
14988shift
14989for ac_tag
14990do
14991  case $ac_tag in
14992  :[FHLC]) ac_mode=$ac_tag; continue;;
14993  esac
14994  case $ac_mode$ac_tag in
14995  :[FHL]*:*);;
14996  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14997  :[FH]-) ac_tag=-:-;;
14998  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14999  esac
15000  ac_save_IFS=$IFS
15001  IFS=:
15002  set x $ac_tag
15003  IFS=$ac_save_IFS
15004  shift
15005  ac_file=$1
15006  shift
15007
15008  case $ac_mode in
15009  :L) ac_source=$1;;
15010  :[FH])
15011    ac_file_inputs=
15012    for ac_f
15013    do
15014      case $ac_f in
15015      -) ac_f="$ac_tmp/stdin";;
15016      *) # Look for the file first in the build tree, then in the source tree
15017	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15018	 # because $ac_f cannot contain `:'.
15019	 test -f "$ac_f" ||
15020	   case $ac_f in
15021	   [\\/$]*) false;;
15022	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15023	   esac ||
15024	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15025      esac
15026      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15027      as_fn_append ac_file_inputs " '$ac_f'"
15028    done
15029
15030    # Let's still pretend it is `configure' which instantiates (i.e., don't
15031    # use $as_me), people would be surprised to read:
15032    #    /* config.h.  Generated by config.status.  */
15033    configure_input='Generated from '`
15034	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15035	`' by configure.'
15036    if test x"$ac_file" != x-; then
15037      configure_input="$ac_file.  $configure_input"
15038      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15039$as_echo "$as_me: creating $ac_file" >&6;}
15040    fi
15041    # Neutralize special characters interpreted by sed in replacement strings.
15042    case $configure_input in #(
15043    *\&* | *\|* | *\\* )
15044       ac_sed_conf_input=`$as_echo "$configure_input" |
15045       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15046    *) ac_sed_conf_input=$configure_input;;
15047    esac
15048
15049    case $ac_tag in
15050    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15051      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15052    esac
15053    ;;
15054  esac
15055
15056  ac_dir=`$as_dirname -- "$ac_file" ||
15057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15058	 X"$ac_file" : 'X\(//\)[^/]' \| \
15059	 X"$ac_file" : 'X\(//\)$' \| \
15060	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15061$as_echo X"$ac_file" |
15062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15063	    s//\1/
15064	    q
15065	  }
15066	  /^X\(\/\/\)[^/].*/{
15067	    s//\1/
15068	    q
15069	  }
15070	  /^X\(\/\/\)$/{
15071	    s//\1/
15072	    q
15073	  }
15074	  /^X\(\/\).*/{
15075	    s//\1/
15076	    q
15077	  }
15078	  s/.*/./; q'`
15079  as_dir="$ac_dir"; as_fn_mkdir_p
15080  ac_builddir=.
15081
15082case "$ac_dir" in
15083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15084*)
15085  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15086  # A ".." for each directory in $ac_dir_suffix.
15087  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15088  case $ac_top_builddir_sub in
15089  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15090  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15091  esac ;;
15092esac
15093ac_abs_top_builddir=$ac_pwd
15094ac_abs_builddir=$ac_pwd$ac_dir_suffix
15095# for backward compatibility:
15096ac_top_builddir=$ac_top_build_prefix
15097
15098case $srcdir in
15099  .)  # We are building in place.
15100    ac_srcdir=.
15101    ac_top_srcdir=$ac_top_builddir_sub
15102    ac_abs_top_srcdir=$ac_pwd ;;
15103  [\\/]* | ?:[\\/]* )  # Absolute name.
15104    ac_srcdir=$srcdir$ac_dir_suffix;
15105    ac_top_srcdir=$srcdir
15106    ac_abs_top_srcdir=$srcdir ;;
15107  *) # Relative name.
15108    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15109    ac_top_srcdir=$ac_top_build_prefix$srcdir
15110    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15111esac
15112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15113
15114
15115  case $ac_mode in
15116  :F)
15117  #
15118  # CONFIG_FILE
15119  #
15120
15121  case $INSTALL in
15122  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15123  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15124  esac
15125  ac_MKDIR_P=$MKDIR_P
15126  case $MKDIR_P in
15127  [\\/$]* | ?:[\\/]* ) ;;
15128  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15129  esac
15130_ACEOF
15131
15132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15133# If the template does not know about datarootdir, expand it.
15134# FIXME: This hack should be removed a few years after 2.60.
15135ac_datarootdir_hack=; ac_datarootdir_seen=
15136ac_sed_dataroot='
15137/datarootdir/ {
15138  p
15139  q
15140}
15141/@datadir@/p
15142/@docdir@/p
15143/@infodir@/p
15144/@localedir@/p
15145/@mandir@/p'
15146case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15147*datarootdir*) ac_datarootdir_seen=yes;;
15148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15149  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15150$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15151_ACEOF
15152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15153  ac_datarootdir_hack='
15154  s&@datadir@&$datadir&g
15155  s&@docdir@&$docdir&g
15156  s&@infodir@&$infodir&g
15157  s&@localedir@&$localedir&g
15158  s&@mandir@&$mandir&g
15159  s&\\\${datarootdir}&$datarootdir&g' ;;
15160esac
15161_ACEOF
15162
15163# Neutralize VPATH when `$srcdir' = `.'.
15164# Shell code in configure.ac might set extrasub.
15165# FIXME: do we really want to maintain this feature?
15166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167ac_sed_extra="$ac_vpsub
15168$extrasub
15169_ACEOF
15170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171:t
15172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15173s|@configure_input@|$ac_sed_conf_input|;t t
15174s&@top_builddir@&$ac_top_builddir_sub&;t t
15175s&@top_build_prefix@&$ac_top_build_prefix&;t t
15176s&@srcdir@&$ac_srcdir&;t t
15177s&@abs_srcdir@&$ac_abs_srcdir&;t t
15178s&@top_srcdir@&$ac_top_srcdir&;t t
15179s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15180s&@builddir@&$ac_builddir&;t t
15181s&@abs_builddir@&$ac_abs_builddir&;t t
15182s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15183s&@INSTALL@&$ac_INSTALL&;t t
15184s&@MKDIR_P@&$ac_MKDIR_P&;t t
15185$ac_datarootdir_hack
15186"
15187eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15188  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15189
15190test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15191  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15192  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15193      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15194  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15195which seems to be undefined.  Please make sure it is defined" >&5
15196$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15197which seems to be undefined.  Please make sure it is defined" >&2;}
15198
15199  rm -f "$ac_tmp/stdin"
15200  case $ac_file in
15201  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15202  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15203  esac \
15204  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15205 ;;
15206
15207
15208  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15209$as_echo "$as_me: executing $ac_file commands" >&6;}
15210 ;;
15211  esac
15212
15213
15214  case $ac_file$ac_mode in
15215    "libtool":C)
15216
15217    # See if we are running on zsh, and set the options which allow our
15218    # commands through without removal of \ escapes.
15219    if test -n "${ZSH_VERSION+set}" ; then
15220      setopt NO_GLOB_SUBST
15221    fi
15222
15223    cfgfile="${ofile}T"
15224    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15225    $RM "$cfgfile"
15226
15227    cat <<_LT_EOF >> "$cfgfile"
15228#! $SHELL
15229
15230# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15231# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15233# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15234#
15235#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15236#                 2006, 2007, 2008 Free Software Foundation, Inc.
15237#   Written by Gordon Matzigkeit, 1996
15238#
15239#   This file is part of GNU Libtool.
15240#
15241# GNU Libtool is free software; you can redistribute it and/or
15242# modify it under the terms of the GNU General Public License as
15243# published by the Free Software Foundation; either version 2 of
15244# the License, or (at your option) any later version.
15245#
15246# As a special exception to the GNU General Public License,
15247# if you distribute this file as part of a program or library that
15248# is built using GNU Libtool, you may include this file under the
15249# same distribution terms that you use for the rest of that program.
15250#
15251# GNU Libtool is distributed in the hope that it will be useful,
15252# but WITHOUT ANY WARRANTY; without even the implied warranty of
15253# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15254# GNU General Public License for more details.
15255#
15256# You should have received a copy of the GNU General Public License
15257# along with GNU Libtool; see the file COPYING.  If not, a copy
15258# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15259# obtained by writing to the Free Software Foundation, Inc.,
15260# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15261
15262
15263# The names of the tagged configurations supported by this script.
15264available_tags=""
15265
15266# ### BEGIN LIBTOOL CONFIG
15267
15268# Which release of libtool.m4 was used?
15269macro_version=$macro_version
15270macro_revision=$macro_revision
15271
15272# Assembler program.
15273AS=$AS
15274
15275# DLL creation program.
15276DLLTOOL=$DLLTOOL
15277
15278# Object dumper program.
15279OBJDUMP=$OBJDUMP
15280
15281# Whether or not to build shared libraries.
15282build_libtool_libs=$enable_shared
15283
15284# Whether or not to build static libraries.
15285build_old_libs=$enable_static
15286
15287# What type of objects to build.
15288pic_mode=$pic_mode
15289
15290# Whether or not to optimize for fast installation.
15291fast_install=$enable_fast_install
15292
15293# The host system.
15294host_alias=$host_alias
15295host=$host
15296host_os=$host_os
15297
15298# The build system.
15299build_alias=$build_alias
15300build=$build
15301build_os=$build_os
15302
15303# A sed program that does not truncate output.
15304SED=$lt_SED
15305
15306# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15307Xsed="\$SED -e 1s/^X//"
15308
15309# A grep program that handles long lines.
15310GREP=$lt_GREP
15311
15312# An ERE matcher.
15313EGREP=$lt_EGREP
15314
15315# A literal string matcher.
15316FGREP=$lt_FGREP
15317
15318# A BSD- or MS-compatible name lister.
15319NM=$lt_NM
15320
15321# Whether we need soft or hard links.
15322LN_S=$lt_LN_S
15323
15324# What is the maximum length of a command?
15325max_cmd_len=$max_cmd_len
15326
15327# Object file suffix (normally "o").
15328objext=$ac_objext
15329
15330# Executable file suffix (normally "").
15331exeext=$exeext
15332
15333# whether the shell understands "unset".
15334lt_unset=$lt_unset
15335
15336# turn spaces into newlines.
15337SP2NL=$lt_lt_SP2NL
15338
15339# turn newlines into spaces.
15340NL2SP=$lt_lt_NL2SP
15341
15342# How to create reloadable object files.
15343reload_flag=$lt_reload_flag
15344reload_cmds=$lt_reload_cmds
15345
15346# Method to check whether dependent libraries are shared objects.
15347deplibs_check_method=$lt_deplibs_check_method
15348
15349# Command to use when deplibs_check_method == "file_magic".
15350file_magic_cmd=$lt_file_magic_cmd
15351
15352# The archiver.
15353AR=$lt_AR
15354AR_FLAGS=$lt_AR_FLAGS
15355
15356# A symbol stripping program.
15357STRIP=$lt_STRIP
15358
15359# Commands used to install an old-style archive.
15360RANLIB=$lt_RANLIB
15361old_postinstall_cmds=$lt_old_postinstall_cmds
15362old_postuninstall_cmds=$lt_old_postuninstall_cmds
15363
15364# A C compiler.
15365LTCC=$lt_CC
15366
15367# LTCC compiler flags.
15368LTCFLAGS=$lt_CFLAGS
15369
15370# Take the output of nm and produce a listing of raw symbols and C names.
15371global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15372
15373# Transform the output of nm in a proper C declaration.
15374global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15375
15376# Transform the output of nm in a C name address pair.
15377global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15378
15379# Transform the output of nm in a C name address pair when lib prefix is needed.
15380global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15381
15382# The name of the directory that contains temporary libtool files.
15383objdir=$objdir
15384
15385# Shell to use when invoking shell scripts.
15386SHELL=$lt_SHELL
15387
15388# An echo program that does not interpret backslashes.
15389ECHO=$lt_ECHO
15390
15391# Used to examine libraries when file_magic_cmd begins with "file".
15392MAGIC_CMD=$MAGIC_CMD
15393
15394# Must we lock files when doing compilation?
15395need_locks=$lt_need_locks
15396
15397# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15398DSYMUTIL=$lt_DSYMUTIL
15399
15400# Tool to change global to local symbols on Mac OS X.
15401NMEDIT=$lt_NMEDIT
15402
15403# Tool to manipulate fat objects and archives on Mac OS X.
15404LIPO=$lt_LIPO
15405
15406# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15407OTOOL=$lt_OTOOL
15408
15409# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15410OTOOL64=$lt_OTOOL64
15411
15412# Old archive suffix (normally "a").
15413libext=$libext
15414
15415# Shared library suffix (normally ".so").
15416shrext_cmds=$lt_shrext_cmds
15417
15418# The commands to extract the exported symbol list from a shared archive.
15419extract_expsyms_cmds=$lt_extract_expsyms_cmds
15420
15421# Variables whose values should be saved in libtool wrapper scripts and
15422# restored at link time.
15423variables_saved_for_relink=$lt_variables_saved_for_relink
15424
15425# Do we need the "lib" prefix for modules?
15426need_lib_prefix=$need_lib_prefix
15427
15428# Do we need a version for libraries?
15429need_version=$need_version
15430
15431# Library versioning type.
15432version_type=$version_type
15433
15434# Shared library runtime path variable.
15435runpath_var=$runpath_var
15436
15437# Shared library path variable.
15438shlibpath_var=$shlibpath_var
15439
15440# Is shlibpath searched before the hard-coded library search path?
15441shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15442
15443# Format of library name prefix.
15444libname_spec=$lt_libname_spec
15445
15446# List of archive names.  First name is the real one, the rest are links.
15447# The last name is the one that the linker finds with -lNAME
15448library_names_spec=$lt_library_names_spec
15449
15450# The coded name of the library, if different from the real name.
15451soname_spec=$lt_soname_spec
15452
15453# Command to use after installation of a shared archive.
15454postinstall_cmds=$lt_postinstall_cmds
15455
15456# Command to use after uninstallation of a shared archive.
15457postuninstall_cmds=$lt_postuninstall_cmds
15458
15459# Commands used to finish a libtool library installation in a directory.
15460finish_cmds=$lt_finish_cmds
15461
15462# As "finish_cmds", except a single script fragment to be evaled but
15463# not shown.
15464finish_eval=$lt_finish_eval
15465
15466# Whether we should hardcode library paths into libraries.
15467hardcode_into_libs=$hardcode_into_libs
15468
15469# Compile-time system search path for libraries.
15470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15471
15472# Run-time system search path for libraries.
15473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15474
15475# Whether dlopen is supported.
15476dlopen_support=$enable_dlopen
15477
15478# Whether dlopen of programs is supported.
15479dlopen_self=$enable_dlopen_self
15480
15481# Whether dlopen of statically linked programs is supported.
15482dlopen_self_static=$enable_dlopen_self_static
15483
15484# Commands to strip libraries.
15485old_striplib=$lt_old_striplib
15486striplib=$lt_striplib
15487
15488
15489# The linker used to build libraries.
15490LD=$lt_LD
15491
15492# Commands used to build an old-style archive.
15493old_archive_cmds=$lt_old_archive_cmds
15494
15495# A language specific compiler.
15496CC=$lt_compiler
15497
15498# Is the compiler the GNU compiler?
15499with_gcc=$GCC
15500
15501# Compiler flag to turn off builtin functions.
15502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15503
15504# How to pass a linker flag through the compiler.
15505wl=$lt_lt_prog_compiler_wl
15506
15507# Additional compiler flags for building library objects.
15508pic_flag=$lt_lt_prog_compiler_pic
15509
15510# Compiler flag to prevent dynamic linking.
15511link_static_flag=$lt_lt_prog_compiler_static
15512
15513# Does compiler simultaneously support -c and -o options?
15514compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15515
15516# Whether or not to add -lc for building shared libraries.
15517build_libtool_need_lc=$archive_cmds_need_lc
15518
15519# Whether or not to disallow shared libs when runtime libs are static.
15520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15521
15522# Compiler flag to allow reflexive dlopens.
15523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15524
15525# Compiler flag to generate shared objects directly from archives.
15526whole_archive_flag_spec=$lt_whole_archive_flag_spec
15527
15528# Whether the compiler copes with passing no objects directly.
15529compiler_needs_object=$lt_compiler_needs_object
15530
15531# Create an old-style archive from a shared archive.
15532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15533
15534# Create a temporary old-style archive to link instead of a shared archive.
15535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15536
15537# Commands used to build a shared archive.
15538archive_cmds=$lt_archive_cmds
15539archive_expsym_cmds=$lt_archive_expsym_cmds
15540
15541# Commands used to build a loadable module if different from building
15542# a shared archive.
15543module_cmds=$lt_module_cmds
15544module_expsym_cmds=$lt_module_expsym_cmds
15545
15546# Whether we are building with GNU ld or not.
15547with_gnu_ld=$lt_with_gnu_ld
15548
15549# Flag that allows shared libraries with undefined symbols to be built.
15550allow_undefined_flag=$lt_allow_undefined_flag
15551
15552# Flag that enforces no undefined symbols.
15553no_undefined_flag=$lt_no_undefined_flag
15554
15555# Flag to hardcode \$libdir into a binary during linking.
15556# This must work even if \$libdir does not exist
15557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15558
15559# If ld is used when linking, flag to hardcode \$libdir into a binary
15560# during linking.  This must work even if \$libdir does not exist.
15561hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15562
15563# Whether we need a single "-rpath" flag with a separated argument.
15564hardcode_libdir_separator=$lt_hardcode_libdir_separator
15565
15566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15567# DIR into the resulting binary.
15568hardcode_direct=$hardcode_direct
15569
15570# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15571# DIR into the resulting binary and the resulting library dependency is
15572# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15573# library is relocated.
15574hardcode_direct_absolute=$hardcode_direct_absolute
15575
15576# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15577# into the resulting binary.
15578hardcode_minus_L=$hardcode_minus_L
15579
15580# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15581# into the resulting binary.
15582hardcode_shlibpath_var=$hardcode_shlibpath_var
15583
15584# Set to "yes" if building a shared library automatically hardcodes DIR
15585# into the library and all subsequent libraries and executables linked
15586# against it.
15587hardcode_automatic=$hardcode_automatic
15588
15589# Set to yes if linker adds runtime paths of dependent libraries
15590# to runtime path list.
15591inherit_rpath=$inherit_rpath
15592
15593# Whether libtool must link a program against all its dependency libraries.
15594link_all_deplibs=$link_all_deplibs
15595
15596# Fix the shell variable \$srcfile for the compiler.
15597fix_srcfile_path=$lt_fix_srcfile_path
15598
15599# Set to "yes" if exported symbols are required.
15600always_export_symbols=$always_export_symbols
15601
15602# The commands to list exported symbols.
15603export_symbols_cmds=$lt_export_symbols_cmds
15604
15605# Symbols that should not be listed in the preloaded symbols.
15606exclude_expsyms=$lt_exclude_expsyms
15607
15608# Symbols that must always be exported.
15609include_expsyms=$lt_include_expsyms
15610
15611# Commands necessary for linking programs (against libraries) with templates.
15612prelink_cmds=$lt_prelink_cmds
15613
15614# Specify filename containing input files.
15615file_list_spec=$lt_file_list_spec
15616
15617# How to hardcode a shared library path into an executable.
15618hardcode_action=$hardcode_action
15619
15620# ### END LIBTOOL CONFIG
15621
15622_LT_EOF
15623
15624  case $host_os in
15625  aix3*)
15626    cat <<\_LT_EOF >> "$cfgfile"
15627# AIX sometimes has problems with the GCC collect2 program.  For some
15628# reason, if we set the COLLECT_NAMES environment variable, the problems
15629# vanish in a puff of smoke.
15630if test "X${COLLECT_NAMES+set}" != Xset; then
15631  COLLECT_NAMES=
15632  export COLLECT_NAMES
15633fi
15634_LT_EOF
15635    ;;
15636  esac
15637
15638
15639ltmain="$ac_aux_dir/ltmain.sh"
15640
15641
15642  # We use sed instead of cat because bash on DJGPP gets confused if
15643  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15644  # text mode, it properly converts lines to CR/LF.  This bash problem
15645  # is reportedly fixed, but why not run on old versions too?
15646  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15647    || (rm -f "$cfgfile"; exit 1)
15648
15649  case $xsi_shell in
15650  yes)
15651    cat << \_LT_EOF >> "$cfgfile"
15652
15653# func_dirname file append nondir_replacement
15654# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15655# otherwise set result to NONDIR_REPLACEMENT.
15656func_dirname ()
15657{
15658  case ${1} in
15659    */*) func_dirname_result="${1%/*}${2}" ;;
15660    *  ) func_dirname_result="${3}" ;;
15661  esac
15662}
15663
15664# func_basename file
15665func_basename ()
15666{
15667  func_basename_result="${1##*/}"
15668}
15669
15670# func_dirname_and_basename file append nondir_replacement
15671# perform func_basename and func_dirname in a single function
15672# call:
15673#   dirname:  Compute the dirname of FILE.  If nonempty,
15674#             add APPEND to the result, otherwise set result
15675#             to NONDIR_REPLACEMENT.
15676#             value returned in "$func_dirname_result"
15677#   basename: Compute filename of FILE.
15678#             value retuned in "$func_basename_result"
15679# Implementation must be kept synchronized with func_dirname
15680# and func_basename. For efficiency, we do not delegate to
15681# those functions but instead duplicate the functionality here.
15682func_dirname_and_basename ()
15683{
15684  case ${1} in
15685    */*) func_dirname_result="${1%/*}${2}" ;;
15686    *  ) func_dirname_result="${3}" ;;
15687  esac
15688  func_basename_result="${1##*/}"
15689}
15690
15691# func_stripname prefix suffix name
15692# strip PREFIX and SUFFIX off of NAME.
15693# PREFIX and SUFFIX must not contain globbing or regex special
15694# characters, hashes, percent signs, but SUFFIX may contain a leading
15695# dot (in which case that matches only a dot).
15696func_stripname ()
15697{
15698  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15699  # positional parameters, so assign one to ordinary parameter first.
15700  func_stripname_result=${3}
15701  func_stripname_result=${func_stripname_result#"${1}"}
15702  func_stripname_result=${func_stripname_result%"${2}"}
15703}
15704
15705# func_opt_split
15706func_opt_split ()
15707{
15708  func_opt_split_opt=${1%%=*}
15709  func_opt_split_arg=${1#*=}
15710}
15711
15712# func_lo2o object
15713func_lo2o ()
15714{
15715  case ${1} in
15716    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15717    *)    func_lo2o_result=${1} ;;
15718  esac
15719}
15720
15721# func_xform libobj-or-source
15722func_xform ()
15723{
15724  func_xform_result=${1%.*}.lo
15725}
15726
15727# func_arith arithmetic-term...
15728func_arith ()
15729{
15730  func_arith_result=$(( $* ))
15731}
15732
15733# func_len string
15734# STRING may not start with a hyphen.
15735func_len ()
15736{
15737  func_len_result=${#1}
15738}
15739
15740_LT_EOF
15741    ;;
15742  *) # Bourne compatible functions.
15743    cat << \_LT_EOF >> "$cfgfile"
15744
15745# func_dirname file append nondir_replacement
15746# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15747# otherwise set result to NONDIR_REPLACEMENT.
15748func_dirname ()
15749{
15750  # Extract subdirectory from the argument.
15751  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15752  if test "X$func_dirname_result" = "X${1}"; then
15753    func_dirname_result="${3}"
15754  else
15755    func_dirname_result="$func_dirname_result${2}"
15756  fi
15757}
15758
15759# func_basename file
15760func_basename ()
15761{
15762  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15763}
15764
15765
15766# func_stripname prefix suffix name
15767# strip PREFIX and SUFFIX off of NAME.
15768# PREFIX and SUFFIX must not contain globbing or regex special
15769# characters, hashes, percent signs, but SUFFIX may contain a leading
15770# dot (in which case that matches only a dot).
15771# func_strip_suffix prefix name
15772func_stripname ()
15773{
15774  case ${2} in
15775    .*) func_stripname_result=`$ECHO "X${3}" \
15776           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15777    *)  func_stripname_result=`$ECHO "X${3}" \
15778           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15779  esac
15780}
15781
15782# sed scripts:
15783my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15784my_sed_long_arg='1s/^-[^=]*=//'
15785
15786# func_opt_split
15787func_opt_split ()
15788{
15789  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15790  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15791}
15792
15793# func_lo2o object
15794func_lo2o ()
15795{
15796  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15797}
15798
15799# func_xform libobj-or-source
15800func_xform ()
15801{
15802  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15803}
15804
15805# func_arith arithmetic-term...
15806func_arith ()
15807{
15808  func_arith_result=`expr "$@"`
15809}
15810
15811# func_len string
15812# STRING may not start with a hyphen.
15813func_len ()
15814{
15815  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15816}
15817
15818_LT_EOF
15819esac
15820
15821case $lt_shell_append in
15822  yes)
15823    cat << \_LT_EOF >> "$cfgfile"
15824
15825# func_append var value
15826# Append VALUE to the end of shell variable VAR.
15827func_append ()
15828{
15829  eval "$1+=\$2"
15830}
15831_LT_EOF
15832    ;;
15833  *)
15834    cat << \_LT_EOF >> "$cfgfile"
15835
15836# func_append var value
15837# Append VALUE to the end of shell variable VAR.
15838func_append ()
15839{
15840  eval "$1=\$$1\$2"
15841}
15842
15843_LT_EOF
15844    ;;
15845  esac
15846
15847
15848  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15849    || (rm -f "$cfgfile"; exit 1)
15850
15851  mv -f "$cfgfile" "$ofile" ||
15852    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15853  chmod +x "$ofile"
15854
15855 ;;
15856    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15857  # Older Autoconf quotes --file arguments for eval, but not when files
15858  # are listed without --file.  Let's play safe and only enable the eval
15859  # if we detect the quoting.
15860  # TODO: see whether this extra hack can be removed once we start
15861  # requiring Autoconf 2.70 or later.
15862  case $CONFIG_FILES in #(
15863  *\'*) :
15864    eval set x "$CONFIG_FILES" ;; #(
15865  *) :
15866    set x $CONFIG_FILES ;; #(
15867  *) :
15868     ;;
15869esac
15870  shift
15871  # Used to flag and report bootstrapping failures.
15872  am_rc=0
15873  for am_mf
15874  do
15875    # Strip MF so we end up with the name of the file.
15876    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15877    # Check whether this is an Automake generated Makefile which includes
15878    # dependency-tracking related rules and includes.
15879    # Grep'ing the whole file directly is not great: AIX grep has a line
15880    # limit of 2048, but all sed's we know have understand at least 4000.
15881    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15882      || continue
15883    am_dirpart=`$as_dirname -- "$am_mf" ||
15884$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15885	 X"$am_mf" : 'X\(//\)[^/]' \| \
15886	 X"$am_mf" : 'X\(//\)$' \| \
15887	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15888$as_echo X"$am_mf" |
15889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15890	    s//\1/
15891	    q
15892	  }
15893	  /^X\(\/\/\)[^/].*/{
15894	    s//\1/
15895	    q
15896	  }
15897	  /^X\(\/\/\)$/{
15898	    s//\1/
15899	    q
15900	  }
15901	  /^X\(\/\).*/{
15902	    s//\1/
15903	    q
15904	  }
15905	  s/.*/./; q'`
15906    am_filepart=`$as_basename -- "$am_mf" ||
15907$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15908	 X"$am_mf" : 'X\(//\)$' \| \
15909	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15910$as_echo X/"$am_mf" |
15911    sed '/^.*\/\([^/][^/]*\)\/*$/{
15912	    s//\1/
15913	    q
15914	  }
15915	  /^X\/\(\/\/\)$/{
15916	    s//\1/
15917	    q
15918	  }
15919	  /^X\/\(\/\).*/{
15920	    s//\1/
15921	    q
15922	  }
15923	  s/.*/./; q'`
15924    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15925      && sed -e '/# am--include-marker/d' "$am_filepart" \
15926        | $MAKE -f - am--depfiles" >&5
15927   (cd "$am_dirpart" \
15928      && sed -e '/# am--include-marker/d' "$am_filepart" \
15929        | $MAKE -f - am--depfiles) >&5 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } || am_rc=$?
15933  done
15934  if test $am_rc -ne 0; then
15935    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15937as_fn_error $? "Something went wrong bootstrapping makefile fragments
15938    for automatic dependency tracking.  Try re-running configure with the
15939    '--disable-dependency-tracking' option to at least be able to build
15940    the package (albeit without support for automatic dependency tracking).
15941See \`config.log' for more details" "$LINENO" 5; }
15942  fi
15943  { am_dirpart=; unset am_dirpart;}
15944  { am_filepart=; unset am_filepart;}
15945  { am_mf=; unset am_mf;}
15946  { am_rc=; unset am_rc;}
15947  rm -f conftest-deps.mk
15948}
15949 ;;
15950
15951  esac
15952done # for ac_tag
15953
15954
15955as_fn_exit 0
15956_ACEOF
15957ac_clean_files=$ac_clean_files_save
15958
15959test $ac_write_fail = 0 ||
15960  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15961
15962
15963# configure is writing to config.log, and then calls config.status.
15964# config.status does its own redirection, appending to config.log.
15965# Unfortunately, on DOS this fails, as config.log is still kept open
15966# by configure, so config.status won't be able to write to it; its
15967# output is simply discarded.  So we exec the FD to /dev/null,
15968# effectively closing config.log, so it can be properly (re)opened and
15969# appended to by config.status.  When coming back to configure, we
15970# need to make the FD available again.
15971if test "$no_create" != yes; then
15972  ac_cs_success=:
15973  ac_config_status_args=
15974  test "$silent" = yes &&
15975    ac_config_status_args="$ac_config_status_args --quiet"
15976  exec 5>/dev/null
15977  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15978  exec 5>>config.log
15979  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15980  # would make configure fail if this is the last instruction.
15981  $ac_cs_success || as_fn_exit 1
15982fi
15983if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15984  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15985$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15986fi
15987
15988