1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for Music On Console 2.5.2.
4#
5# Report bugs to <mocmaint@daper.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and mocmaint@daper.net
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681lt_ltdl_dir='libltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"
684
685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
704
705# Identity of this package.
706PACKAGE_NAME='Music On Console'
707PACKAGE_TARNAME='moc'
708PACKAGE_VERSION='2.5.2'
709PACKAGE_STRING='Music On Console 2.5.2'
710PACKAGE_BUGREPORT='mocmaint@daper.net'
711PACKAGE_URL='http://moc.daper.net/'
712
713ac_unique_file="main.c"
714# Factoring default headers for most tests.
715ac_includes_default="\
716#include <stdio.h>
717#ifdef HAVE_SYS_TYPES_H
718# include <sys/types.h>
719#endif
720#ifdef HAVE_SYS_STAT_H
721# include <sys/stat.h>
722#endif
723#ifdef STDC_HEADERS
724# include <stdlib.h>
725# include <stddef.h>
726#else
727# ifdef HAVE_STDLIB_H
728#  include <stdlib.h>
729# endif
730#endif
731#ifdef HAVE_STRING_H
732# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733#  include <memory.h>
734# endif
735# include <string.h>
736#endif
737#ifdef HAVE_STRINGS_H
738# include <strings.h>
739#endif
740#ifdef HAVE_INTTYPES_H
741# include <inttypes.h>
742#endif
743#ifdef HAVE_STDINT_H
744# include <stdint.h>
745#endif
746#ifdef HAVE_UNISTD_H
747# include <unistd.h>
748#endif"
749
750enable_option_checking=no
751ac_header_list=
752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757EXTRA_DISTS
758EXTRA_LIBS
759XZ_MISSING
760CURL_CONFIG
761BUILD_wavpack_FALSE
762BUILD_wavpack_TRUE
763WAVPACK_LIBS
764WAVPACK_CFLAGS
765BUILD_vorbis_FALSE
766BUILD_vorbis_TRUE
767OGG_VORBIS_LIBS
768OGG_VORBIS_CFLAGS
769BUILD_timidity_FALSE
770BUILD_timidity_TRUE
771timidity_LIBS
772timidity_CFLAGS
773BUILD_speex_FALSE
774BUILD_speex_TRUE
775speex_LIBS
776speex_CFLAGS
777BUILD_sndfile_FALSE
778BUILD_sndfile_TRUE
779sndfile_LIBS
780sndfile_CFLAGS
781BUILD_sidplay2_FALSE
782BUILD_sidplay2_TRUE
783sidplay2_LDFLAGS
784sidutils_LIBS
785sidutils_CFLAGS
786sidplay2_LIBS
787sidplay2_CFLAGS
788BUILD_musepack_FALSE
789BUILD_musepack_TRUE
790TAGLIB_LIBS
791TAGLIB_CFLAGS
792TAGLIB_CONFIG
793MUSEPACK_LIBS
794BUILD_mp3_FALSE
795BUILD_mp3_TRUE
796BUILD_modplug_FALSE
797BUILD_modplug_TRUE
798modplug_LIBS
799modplug_CFLAGS
800BUILD_flac_FALSE
801BUILD_flac_TRUE
802LIBFLAC_LIBS
803LIBFLAC_CFLAGS
804BUILD_ffmpeg_FALSE
805BUILD_ffmpeg_TRUE
806ffmpeg_CPPFLAGS
807FFMPEG_CONFIG
808ffmpeg_LIBS
809ffmpeg_CFLAGS
810BUILD_aac_FALSE
811BUILD_aac_TRUE
812FAAD2_LIBS
813FAAD2_CFLAGS
814DECODER_PLUGIN_DIR
815samplerate_LIBS
816samplerate_CFLAGS
817CURSES_CFLAGS
818CURSES_LIBS
819PTHREAD_CFLAGS
820PTHREAD_LIBS
821PTHREAD_CC
822ax_pthread_config
823LIBOBJS
824SOUNDDRIVER
825JACK_LIBS
826JACK_CFLAGS
827ALSA_LIBS
828ALSA_CFLAGS
829PKG_CONFIG
830RCC_LIBS
831LTLIBICONV
832LIBICONV
833PLUGIN_LDFLAGS
834plugindir
835EXTRA_OBJS
836LTDLOPEN
837LT_CONFIG_H
838subdirs
839CONVENIENCE_LTDL_FALSE
840CONVENIENCE_LTDL_TRUE
841INSTALL_LTDL_FALSE
842INSTALL_LTDL_TRUE
843ARGZ_H
844sys_symbol_underscore
845LIBADD_DL
846LT_DLPREOPEN
847LIBADD_DLD_LINK
848LIBADD_SHL_LOAD
849LIBADD_DLOPEN
850LT_DLLOADERS
851INCLTDL
852LTDLINCL
853LTDLDEPS
854LIBLTDL
855CXXCPP
856OTOOL64
857OTOOL
858LIPO
859NMEDIT
860DSYMUTIL
861lt_ECHO
862RANLIB
863AR
864OBJDUMP
865LN_S
866NM
867ac_ct_DUMPBIN
868DUMPBIN
869LD
870FGREP
871SED
872LIBTOOL
873EGREP
874GREP
875CPP
876am__fastdepCXX_FALSE
877am__fastdepCXX_TRUE
878CXXDEPMODE
879ac_ct_CXX
880CXXFLAGS
881CXX
882am__fastdepCC_FALSE
883am__fastdepCC_TRUE
884CCDEPMODE
885AMDEPBACKSLASH
886AMDEP_FALSE
887AMDEP_TRUE
888am__quote
889am__include
890DEPDIR
891OBJEXT
892EXEEXT
893ac_ct_CC
894CPPFLAGS
895LDFLAGS
896CFLAGS
897CC
898host_os
899host_vendor
900host_cpu
901host
902build_os
903build_vendor
904build_cpu
905build
906SVNVERSION
907am__untar
908am__tar
909AMTAR
910am__leading_dot
911SET_MAKE
912AWK
913mkdir_p
914MKDIR_P
915INSTALL_STRIP_PROGRAM
916STRIP
917install_sh
918MAKEINFO
919AUTOHEADER
920AUTOMAKE
921AUTOCONF
922ACLOCAL
923VERSION
924PACKAGE
925CYGPATH_W
926am__isrc
927INSTALL_DATA
928INSTALL_SCRIPT
929INSTALL_PROGRAM
930target_alias
931host_alias
932build_alias
933LIBS
934ECHO_T
935ECHO_N
936ECHO_C
937DEFS
938mandir
939localedir
940libdir
941psdir
942pdfdir
943dvidir
944htmldir
945infodir
946docdir
947oldincludedir
948includedir
949localstatedir
950sharedstatedir
951sysconfdir
952datadir
953datarootdir
954libexecdir
955sbindir
956bindir
957program_transform_name
958prefix
959exec_prefix
960PACKAGE_URL
961PACKAGE_BUGREPORT
962PACKAGE_STRING
963PACKAGE_VERSION
964PACKAGE_TARNAME
965PACKAGE_NAME
966PATH_SEPARATOR
967SHELL'
968ac_subst_files=''
969ac_user_opts='
970enable_option_checking
971enable_dependency_tracking
972enable_static
973enable_shared
974with_pic
975enable_fast_install
976with_gnu_ld
977enable_libtool_lock
978with_included_ltdl
979with_ltdl_include
980with_ltdl_lib
981enable_ltdl_install
982enable_rpath
983with_libiconv_prefix
984with_rcc
985enable_cache
986with_bdb_dir
987with_oss
988with_sndio
989with_alsa
990with_jack
991enable_debug
992with_magic
993with_ncurses
994with_ncursesw
995with_samplerate
996with_aac
997with_ffmpeg
998with_flac
999with_modplug
1000with_mp3
1001with_musepack
1002with_sidplay2
1003with_sndfile
1004with_speex
1005with_timidity
1006with_vorbis
1007with_wavpack
1008with_curl
1009'
1010      ac_precious_vars='build_alias
1011host_alias
1012target_alias
1013CC
1014CFLAGS
1015LDFLAGS
1016LIBS
1017CPPFLAGS
1018CXX
1019CXXFLAGS
1020CCC
1021CPP
1022CXXCPP
1023PKG_CONFIG
1024ALSA_CFLAGS
1025ALSA_LIBS
1026JACK_CFLAGS
1027JACK_LIBS
1028CURSES_LIBS
1029CURSES_CFLAGS
1030samplerate_CFLAGS
1031samplerate_LIBS
1032ffmpeg_CFLAGS
1033ffmpeg_LIBS
1034LIBFLAC_CFLAGS
1035LIBFLAC_LIBS
1036modplug_CFLAGS
1037modplug_LIBS
1038sidplay2_CFLAGS
1039sidplay2_LIBS
1040sidutils_CFLAGS
1041sidutils_LIBS
1042sndfile_CFLAGS
1043sndfile_LIBS
1044speex_CFLAGS
1045speex_LIBS
1046timidity_CFLAGS
1047timidity_LIBS
1048OGG_VORBIS_CFLAGS
1049OGG_VORBIS_LIBS
1050WAVPACK_CFLAGS
1051WAVPACK_LIBS'
1052ac_subdirs_all='libltdl'
1053
1054# Initialize some variables set by options.
1055ac_init_help=
1056ac_init_version=false
1057ac_unrecognized_opts=
1058ac_unrecognized_sep=
1059# The variables have the same names as the options, with
1060# dashes changed to underlines.
1061cache_file=/dev/null
1062exec_prefix=NONE
1063no_create=
1064no_recursion=
1065prefix=NONE
1066program_prefix=NONE
1067program_suffix=NONE
1068program_transform_name=s,x,x,
1069silent=
1070site=
1071srcdir=
1072verbose=
1073x_includes=NONE
1074x_libraries=NONE
1075
1076# Installation directory options.
1077# These are left unexpanded so users can "make install exec_prefix=/foo"
1078# and all the variables that are supposed to be based on exec_prefix
1079# by default will actually change.
1080# Use braces instead of parens because sh, perl, etc. also accept them.
1081# (The list follows the same order as the GNU Coding Standards.)
1082bindir='${exec_prefix}/bin'
1083sbindir='${exec_prefix}/sbin'
1084libexecdir='${exec_prefix}/libexec'
1085datarootdir='${prefix}/share'
1086datadir='${datarootdir}'
1087sysconfdir='${prefix}/etc'
1088sharedstatedir='${prefix}/com'
1089localstatedir='${prefix}/var'
1090includedir='${prefix}/include'
1091oldincludedir='/usr/include'
1092docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1093infodir='${datarootdir}/info'
1094htmldir='${docdir}'
1095dvidir='${docdir}'
1096pdfdir='${docdir}'
1097psdir='${docdir}'
1098libdir='${exec_prefix}/lib'
1099localedir='${datarootdir}/locale'
1100mandir='${datarootdir}/man'
1101
1102ac_prev=
1103ac_dashdash=
1104for ac_option
1105do
1106  # If the previous option needs an argument, assign it.
1107  if test -n "$ac_prev"; then
1108    eval $ac_prev=\$ac_option
1109    ac_prev=
1110    continue
1111  fi
1112
1113  case $ac_option in
1114  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1115  *)	ac_optarg=yes ;;
1116  esac
1117
1118  # Accept the important Cygnus configure options, so we can diagnose typos.
1119
1120  case $ac_dashdash$ac_option in
1121  --)
1122    ac_dashdash=yes ;;
1123
1124  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1125    ac_prev=bindir ;;
1126  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1127    bindir=$ac_optarg ;;
1128
1129  -build | --build | --buil | --bui | --bu)
1130    ac_prev=build_alias ;;
1131  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1132    build_alias=$ac_optarg ;;
1133
1134  -cache-file | --cache-file | --cache-fil | --cache-fi \
1135  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1136    ac_prev=cache_file ;;
1137  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1138  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1139    cache_file=$ac_optarg ;;
1140
1141  --config-cache | -C)
1142    cache_file=config.cache ;;
1143
1144  -datadir | --datadir | --datadi | --datad)
1145    ac_prev=datadir ;;
1146  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1147    datadir=$ac_optarg ;;
1148
1149  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1150  | --dataroo | --dataro | --datar)
1151    ac_prev=datarootdir ;;
1152  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1153  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1154    datarootdir=$ac_optarg ;;
1155
1156  -disable-* | --disable-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error "invalid feature name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"enable_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval enable_$ac_useropt=no ;;
1171
1172  -docdir | --docdir | --docdi | --doc | --do)
1173    ac_prev=docdir ;;
1174  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1175    docdir=$ac_optarg ;;
1176
1177  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1178    ac_prev=dvidir ;;
1179  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1180    dvidir=$ac_optarg ;;
1181
1182  -enable-* | --enable-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error "invalid feature name: $ac_useropt"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"enable_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval enable_$ac_useropt=\$ac_optarg ;;
1197
1198  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1199  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1200  | --exec | --exe | --ex)
1201    ac_prev=exec_prefix ;;
1202  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1203  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1204  | --exec=* | --exe=* | --ex=*)
1205    exec_prefix=$ac_optarg ;;
1206
1207  -gas | --gas | --ga | --g)
1208    # Obsolete; use --with-gas.
1209    with_gas=yes ;;
1210
1211  -help | --help | --hel | --he | -h)
1212    ac_init_help=long ;;
1213  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1214    ac_init_help=recursive ;;
1215  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1216    ac_init_help=short ;;
1217
1218  -host | --host | --hos | --ho)
1219    ac_prev=host_alias ;;
1220  -host=* | --host=* | --hos=* | --ho=*)
1221    host_alias=$ac_optarg ;;
1222
1223  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1224    ac_prev=htmldir ;;
1225  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1226  | --ht=*)
1227    htmldir=$ac_optarg ;;
1228
1229  -includedir | --includedir | --includedi | --included | --include \
1230  | --includ | --inclu | --incl | --inc)
1231    ac_prev=includedir ;;
1232  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1233  | --includ=* | --inclu=* | --incl=* | --inc=*)
1234    includedir=$ac_optarg ;;
1235
1236  -infodir | --infodir | --infodi | --infod | --info | --inf)
1237    ac_prev=infodir ;;
1238  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1239    infodir=$ac_optarg ;;
1240
1241  -libdir | --libdir | --libdi | --libd)
1242    ac_prev=libdir ;;
1243  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1244    libdir=$ac_optarg ;;
1245
1246  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1247  | --libexe | --libex | --libe)
1248    ac_prev=libexecdir ;;
1249  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1250  | --libexe=* | --libex=* | --libe=*)
1251    libexecdir=$ac_optarg ;;
1252
1253  -localedir | --localedir | --localedi | --localed | --locale)
1254    ac_prev=localedir ;;
1255  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1256    localedir=$ac_optarg ;;
1257
1258  -localstatedir | --localstatedir | --localstatedi | --localstated \
1259  | --localstate | --localstat | --localsta | --localst | --locals)
1260    ac_prev=localstatedir ;;
1261  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1262  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1263    localstatedir=$ac_optarg ;;
1264
1265  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1266    ac_prev=mandir ;;
1267  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1268    mandir=$ac_optarg ;;
1269
1270  -nfp | --nfp | --nf)
1271    # Obsolete; use --without-fp.
1272    with_fp=no ;;
1273
1274  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1275  | --no-cr | --no-c | -n)
1276    no_create=yes ;;
1277
1278  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1279  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280    no_recursion=yes ;;
1281
1282  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1283  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1284  | --oldin | --oldi | --old | --ol | --o)
1285    ac_prev=oldincludedir ;;
1286  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1287  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1288  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1289    oldincludedir=$ac_optarg ;;
1290
1291  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1292    ac_prev=prefix ;;
1293  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1294    prefix=$ac_optarg ;;
1295
1296  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1297  | --program-pre | --program-pr | --program-p)
1298    ac_prev=program_prefix ;;
1299  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1300  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1301    program_prefix=$ac_optarg ;;
1302
1303  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1304  | --program-suf | --program-su | --program-s)
1305    ac_prev=program_suffix ;;
1306  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1307  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1308    program_suffix=$ac_optarg ;;
1309
1310  -program-transform-name | --program-transform-name \
1311  | --program-transform-nam | --program-transform-na \
1312  | --program-transform-n | --program-transform- \
1313  | --program-transform | --program-transfor \
1314  | --program-transfo | --program-transf \
1315  | --program-trans | --program-tran \
1316  | --progr-tra | --program-tr | --program-t)
1317    ac_prev=program_transform_name ;;
1318  -program-transform-name=* | --program-transform-name=* \
1319  | --program-transform-nam=* | --program-transform-na=* \
1320  | --program-transform-n=* | --program-transform-=* \
1321  | --program-transform=* | --program-transfor=* \
1322  | --program-transfo=* | --program-transf=* \
1323  | --program-trans=* | --program-tran=* \
1324  | --progr-tra=* | --program-tr=* | --program-t=*)
1325    program_transform_name=$ac_optarg ;;
1326
1327  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1328    ac_prev=pdfdir ;;
1329  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1330    pdfdir=$ac_optarg ;;
1331
1332  -psdir | --psdir | --psdi | --psd | --ps)
1333    ac_prev=psdir ;;
1334  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335    psdir=$ac_optarg ;;
1336
1337  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338  | -silent | --silent | --silen | --sile | --sil)
1339    silent=yes ;;
1340
1341  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1342    ac_prev=sbindir ;;
1343  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1344  | --sbi=* | --sb=*)
1345    sbindir=$ac_optarg ;;
1346
1347  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1348  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1349  | --sharedst | --shareds | --shared | --share | --shar \
1350  | --sha | --sh)
1351    ac_prev=sharedstatedir ;;
1352  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1353  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1354  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1355  | --sha=* | --sh=*)
1356    sharedstatedir=$ac_optarg ;;
1357
1358  -site | --site | --sit)
1359    ac_prev=site ;;
1360  -site=* | --site=* | --sit=*)
1361    site=$ac_optarg ;;
1362
1363  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1364    ac_prev=srcdir ;;
1365  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1366    srcdir=$ac_optarg ;;
1367
1368  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1369  | --syscon | --sysco | --sysc | --sys | --sy)
1370    ac_prev=sysconfdir ;;
1371  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1372  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1373    sysconfdir=$ac_optarg ;;
1374
1375  -target | --target | --targe | --targ | --tar | --ta | --t)
1376    ac_prev=target_alias ;;
1377  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1378    target_alias=$ac_optarg ;;
1379
1380  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381    verbose=yes ;;
1382
1383  -version | --version | --versio | --versi | --vers | -V)
1384    ac_init_version=: ;;
1385
1386  -with-* | --with-*)
1387    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388    # Reject names that are not valid shell variable names.
1389    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1390      as_fn_error "invalid package name: $ac_useropt"
1391    ac_useropt_orig=$ac_useropt
1392    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1393    case $ac_user_opts in
1394      *"
1395"with_$ac_useropt"
1396"*) ;;
1397      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1398	 ac_unrecognized_sep=', ';;
1399    esac
1400    eval with_$ac_useropt=\$ac_optarg ;;
1401
1402  -without-* | --without-*)
1403    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1404    # Reject names that are not valid shell variable names.
1405    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406      as_fn_error "invalid package name: $ac_useropt"
1407    ac_useropt_orig=$ac_useropt
1408    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409    case $ac_user_opts in
1410      *"
1411"with_$ac_useropt"
1412"*) ;;
1413      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1414	 ac_unrecognized_sep=', ';;
1415    esac
1416    eval with_$ac_useropt=no ;;
1417
1418  --x)
1419    # Obsolete; use --with-x.
1420    with_x=yes ;;
1421
1422  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1423  | --x-incl | --x-inc | --x-in | --x-i)
1424    ac_prev=x_includes ;;
1425  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1426  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1427    x_includes=$ac_optarg ;;
1428
1429  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1430  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1431    ac_prev=x_libraries ;;
1432  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1433  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1434    x_libraries=$ac_optarg ;;
1435
1436  -*) as_fn_error "unrecognized option: \`$ac_option'
1437Try \`$0 --help' for more information."
1438    ;;
1439
1440  *=*)
1441    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1442    # Reject names that are not valid shell variable names.
1443    case $ac_envvar in #(
1444      '' | [0-9]* | *[!_$as_cr_alnum]* )
1445      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1446    esac
1447    eval $ac_envvar=\$ac_optarg
1448    export $ac_envvar ;;
1449
1450  *)
1451    # FIXME: should be removed in autoconf 3.0.
1452    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1453    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1454      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1455    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1456    ;;
1457
1458  esac
1459done
1460
1461if test -n "$ac_prev"; then
1462  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1463  as_fn_error "missing argument to $ac_option"
1464fi
1465
1466if test -n "$ac_unrecognized_opts"; then
1467  case $enable_option_checking in
1468    no) ;;
1469    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1470    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1471  esac
1472fi
1473
1474# Check all directory arguments for consistency.
1475for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1476		datadir sysconfdir sharedstatedir localstatedir includedir \
1477		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1478		libdir localedir mandir
1479do
1480  eval ac_val=\$$ac_var
1481  # Remove trailing slashes.
1482  case $ac_val in
1483    */ )
1484      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1485      eval $ac_var=\$ac_val;;
1486  esac
1487  # Be sure to have absolute directory names.
1488  case $ac_val in
1489    [\\/$]* | ?:[\\/]* )  continue;;
1490    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1491  esac
1492  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1493done
1494
1495# There might be people who depend on the old broken behavior: `$host'
1496# used to hold the argument of --host etc.
1497# FIXME: To remove some day.
1498build=$build_alias
1499host=$host_alias
1500target=$target_alias
1501
1502# FIXME: To remove some day.
1503if test "x$host_alias" != x; then
1504  if test "x$build_alias" = x; then
1505    cross_compiling=maybe
1506    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1507    If a cross compiler is detected then cross compile mode will be used." >&2
1508  elif test "x$build_alias" != "x$host_alias"; then
1509    cross_compiling=yes
1510  fi
1511fi
1512
1513ac_tool_prefix=
1514test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516test "$silent" = yes && exec 6>/dev/null
1517
1518
1519ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520ac_ls_di=`ls -di .` &&
1521ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522  as_fn_error "working directory cannot be determined"
1523test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524  as_fn_error "pwd does not report name of working directory"
1525
1526
1527# Find the source files, if location was not specified.
1528if test -z "$srcdir"; then
1529  ac_srcdir_defaulted=yes
1530  # Try the directory containing this script, then the parent directory.
1531  ac_confdir=`$as_dirname -- "$as_myself" ||
1532$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533	 X"$as_myself" : 'X\(//\)[^/]' \| \
1534	 X"$as_myself" : 'X\(//\)$' \| \
1535	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536$as_echo X"$as_myself" |
1537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538	    s//\1/
1539	    q
1540	  }
1541	  /^X\(\/\/\)[^/].*/{
1542	    s//\1/
1543	    q
1544	  }
1545	  /^X\(\/\/\)$/{
1546	    s//\1/
1547	    q
1548	  }
1549	  /^X\(\/\).*/{
1550	    s//\1/
1551	    q
1552	  }
1553	  s/.*/./; q'`
1554  srcdir=$ac_confdir
1555  if test ! -r "$srcdir/$ac_unique_file"; then
1556    srcdir=..
1557  fi
1558else
1559  ac_srcdir_defaulted=no
1560fi
1561if test ! -r "$srcdir/$ac_unique_file"; then
1562  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1564fi
1565ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566ac_abs_confdir=`(
1567	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1568	pwd)`
1569# When building in place, set srcdir=.
1570if test "$ac_abs_confdir" = "$ac_pwd"; then
1571  srcdir=.
1572fi
1573# Remove unnecessary trailing slashes from srcdir.
1574# Double slashes in file names in object file debugging info
1575# mess up M-x gdb in Emacs.
1576case $srcdir in
1577*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578esac
1579for ac_var in $ac_precious_vars; do
1580  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581  eval ac_env_${ac_var}_value=\$${ac_var}
1582  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584done
1585
1586#
1587# Report the --help message.
1588#
1589if test "$ac_init_help" = "long"; then
1590  # Omit some internal or obsolete options to make the list less imposing.
1591  # This message is too long to be a string in the A/UX 3.1 sh.
1592  cat <<_ACEOF
1593\`configure' configures Music On Console 2.5.2 to adapt to many kinds of systems.
1594
1595Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598VAR=VALUE.  See below for descriptions of some of the useful variables.
1599
1600Defaults for the options are specified in brackets.
1601
1602Configuration:
1603  -h, --help              display this help and exit
1604      --help=short        display options specific to this package
1605      --help=recursive    display the short help of all the included packages
1606  -V, --version           display version information and exit
1607  -q, --quiet, --silent   do not print \`checking...' messages
1608      --cache-file=FILE   cache test results in FILE [disabled]
1609  -C, --config-cache      alias for \`--cache-file=config.cache'
1610  -n, --no-create         do not create output files
1611      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1612
1613Installation directories:
1614  --prefix=PREFIX         install architecture-independent files in PREFIX
1615                          [$ac_default_prefix]
1616  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1617                          [PREFIX]
1618
1619By default, \`make install' will install all the files in
1620\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1621an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622for instance \`--prefix=\$HOME'.
1623
1624For better control, use the options below.
1625
1626Fine tuning of the installation directories:
1627  --bindir=DIR            user executables [EPREFIX/bin]
1628  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1629  --libexecdir=DIR        program executables [EPREFIX/libexec]
1630  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1631  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1632  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1633  --libdir=DIR            object code libraries [EPREFIX/lib]
1634  --includedir=DIR        C header files [PREFIX/include]
1635  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1636  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1637  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1638  --infodir=DIR           info documentation [DATAROOTDIR/info]
1639  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1640  --mandir=DIR            man documentation [DATAROOTDIR/man]
1641  --docdir=DIR            documentation root [DATAROOTDIR/doc/moc]
1642  --htmldir=DIR           html documentation [DOCDIR]
1643  --dvidir=DIR            dvi documentation [DOCDIR]
1644  --pdfdir=DIR            pdf documentation [DOCDIR]
1645  --psdir=DIR             ps documentation [DOCDIR]
1646_ACEOF
1647
1648  cat <<\_ACEOF
1649
1650Program names:
1651  --program-prefix=PREFIX            prepend PREFIX to installed program names
1652  --program-suffix=SUFFIX            append SUFFIX to installed program names
1653  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1654
1655System types:
1656  --build=BUILD     configure for building on BUILD [guessed]
1657  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1658_ACEOF
1659fi
1660
1661if test -n "$ac_init_help"; then
1662  case $ac_init_help in
1663     short | recursive ) echo "Configuration of Music On Console 2.5.2:";;
1664   esac
1665  cat <<\_ACEOF
1666
1667Optional Features:
1668  --disable-option-checking  ignore unrecognized --enable/--with options
1669  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1670  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1671  --disable-dependency-tracking  speeds up one-time build
1672  --enable-dependency-tracking   do not reject slow dependency extractors
1673  --enable-static[=PKGS]  build static libraries [default=no]
1674  --enable-shared[=PKGS]  build shared libraries [default=yes]
1675  --enable-fast-install[=PKGS]
1676                          optimize for fast installation [default=yes]
1677  --disable-libtool-lock  avoid locking (might break parallel builds)
1678  --enable-ltdl-install   install libltdl
1679  --disable-rpath         do not hardcode runtime library paths
1680  --enable-cache          Enable tags caching code
1681  --enable-debug          Enable debugging code
1682
1683Optional Packages:
1684  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1685  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1686  --with-pic              try to use only PIC/non-PIC objects [default=use
1687                          both]
1688  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1689  --with-included-ltdl    use the GNU ltdl sources included here
1690  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1691  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1692  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1693  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1694  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1695  --without-rcc           Compile without LIBRCC support
1696  --with-bdb-dir=DIR      Berkeley DB installation directory
1697  --without-oss           Compile without OSS support
1698  --without-sndio         Compile without SNDIO support
1699  --without-alsa          Compile without ALSA support
1700  --without-jack          Compile without JACK support
1701  --without-magic         Compile without MIME magic support
1702  --with-ncurses          force the use of Ncurses or NcursesW
1703  --without-ncursesw      do not use NcursesW (wide character support)
1704  --without-samplerate    Compile without libsamplerate
1705  --without-aac           Compile without AAC support (libfaad2)
1706  --without-ffmpeg        Compile without ffmpeg/libav
1707  --without-flac          Compile without FLAC support
1708  --without-modplug       Compile without libmodplug
1709  --without-mp3           Compile without mp3 support (libmad)
1710  --without-musepack      Compile without musepack (mpc) support
1711  --without-sidplay2      Compile without libsidplay2
1712  --without-sndfile       Compile without libsndfile
1713  --without-speex         Compile without speex support
1714  --without-timidity      Compile without libtimidity
1715  --without-vorbis        Compile without Ogg Vorbis support
1716  --without-wavpack       Compile without WavPack support
1717  --without-curl          Compile without Network streams support
1718
1719Some influential environment variables:
1720  CC          C compiler command
1721  CFLAGS      C compiler flags
1722  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1723              nonstandard directory <lib dir>
1724  LIBS        libraries to pass to the linker, e.g. -l<library>
1725  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1726              you have headers in a nonstandard directory <include dir>
1727  CXX         C++ compiler command
1728  CXXFLAGS    C++ compiler flags
1729  CPP         C preprocessor
1730  CXXCPP      C++ preprocessor
1731  PKG_CONFIG  path to pkg-config utility
1732  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1733  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1734  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1735  JACK_LIBS   linker flags for JACK, overriding pkg-config
1736  CURSES_LIBS linker library for Curses, e.g. -lcurses
1737  CURSES_CFLAGS
1738              preprocessor flags for Curses, e.g. -I/usr/include/ncursesw
1739  samplerate_CFLAGS
1740              C compiler flags for samplerate, overriding pkg-config
1741  samplerate_LIBS
1742              linker flags for samplerate, overriding pkg-config
1743  ffmpeg_CFLAGS
1744              C compiler flags for ffmpeg, overriding pkg-config
1745  ffmpeg_LIBS linker flags for ffmpeg, overriding pkg-config
1746  LIBFLAC_CFLAGS
1747              C compiler flags for LIBFLAC, overriding pkg-config
1748  LIBFLAC_LIBS
1749              linker flags for LIBFLAC, overriding pkg-config
1750  modplug_CFLAGS
1751              C compiler flags for modplug, overriding pkg-config
1752  modplug_LIBS
1753              linker flags for modplug, overriding pkg-config
1754  sidplay2_CFLAGS
1755              C compiler flags for sidplay2, overriding pkg-config
1756  sidplay2_LIBS
1757              linker flags for sidplay2, overriding pkg-config
1758  sidutils_CFLAGS
1759              C compiler flags for sidutils, overriding pkg-config
1760  sidutils_LIBS
1761              linker flags for sidutils, overriding pkg-config
1762  sndfile_CFLAGS
1763              C compiler flags for sndfile, overriding pkg-config
1764  sndfile_LIBS
1765              linker flags for sndfile, overriding pkg-config
1766  speex_CFLAGS
1767              C compiler flags for speex, overriding pkg-config
1768  speex_LIBS  linker flags for speex, overriding pkg-config
1769  timidity_CFLAGS
1770              C compiler flags for timidity, overriding pkg-config
1771  timidity_LIBS
1772              linker flags for timidity, overriding pkg-config
1773  OGG_VORBIS_CFLAGS
1774              C compiler flags for OGG_VORBIS, overriding pkg-config
1775  OGG_VORBIS_LIBS
1776              linker flags for OGG_VORBIS, overriding pkg-config
1777  WAVPACK_CFLAGS
1778              C compiler flags for WAVPACK, overriding pkg-config
1779  WAVPACK_LIBS
1780              linker flags for WAVPACK, overriding pkg-config
1781
1782Use these variables to override the choices made by `configure' or to help
1783it to find libraries and programs with nonstandard names/locations.
1784
1785Report bugs to <mocmaint@daper.net>.
1786Music On Console home page: <http://moc.daper.net/>.
1787_ACEOF
1788ac_status=$?
1789fi
1790
1791if test "$ac_init_help" = "recursive"; then
1792  # If there are subdirs, report their specific --help.
1793  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794    test -d "$ac_dir" ||
1795      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1796      continue
1797    ac_builddir=.
1798
1799case "$ac_dir" in
1800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1801*)
1802  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803  # A ".." for each directory in $ac_dir_suffix.
1804  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805  case $ac_top_builddir_sub in
1806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808  esac ;;
1809esac
1810ac_abs_top_builddir=$ac_pwd
1811ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812# for backward compatibility:
1813ac_top_builddir=$ac_top_build_prefix
1814
1815case $srcdir in
1816  .)  # We are building in place.
1817    ac_srcdir=.
1818    ac_top_srcdir=$ac_top_builddir_sub
1819    ac_abs_top_srcdir=$ac_pwd ;;
1820  [\\/]* | ?:[\\/]* )  # Absolute name.
1821    ac_srcdir=$srcdir$ac_dir_suffix;
1822    ac_top_srcdir=$srcdir
1823    ac_abs_top_srcdir=$srcdir ;;
1824  *) # Relative name.
1825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826    ac_top_srcdir=$ac_top_build_prefix$srcdir
1827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1828esac
1829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1830
1831    cd "$ac_dir" || { ac_status=$?; continue; }
1832    # Check for guested configure.
1833    if test -f "$ac_srcdir/configure.gnu"; then
1834      echo &&
1835      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836    elif test -f "$ac_srcdir/configure"; then
1837      echo &&
1838      $SHELL "$ac_srcdir/configure" --help=recursive
1839    else
1840      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1841    fi || ac_status=$?
1842    cd "$ac_pwd" || { ac_status=$?; break; }
1843  done
1844fi
1845
1846test -n "$ac_init_help" && exit $ac_status
1847if $ac_init_version; then
1848  cat <<\_ACEOF
1849Music On Console configure 2.5.2
1850generated by GNU Autoconf 2.65
1851
1852Copyright (C) 2009 Free Software Foundation, Inc.
1853This configure script is free software; the Free Software Foundation
1854gives unlimited permission to copy, distribute and modify it.
1855_ACEOF
1856  exit
1857fi
1858
1859## ------------------------ ##
1860## Autoconf initialization. ##
1861## ------------------------ ##
1862
1863# ac_fn_c_try_compile LINENO
1864# --------------------------
1865# Try to compile conftest.$ac_ext, and return whether this succeeded.
1866ac_fn_c_try_compile ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  rm -f conftest.$ac_objext
1870  if { { ac_try="$ac_compile"
1871case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877  (eval "$ac_compile") 2>conftest.err
1878  ac_status=$?
1879  if test -s conftest.err; then
1880    grep -v '^ *+' conftest.err >conftest.er1
1881    cat conftest.er1 >&5
1882    mv -f conftest.er1 conftest.err
1883  fi
1884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; } && {
1886	 test -z "$ac_c_werror_flag" ||
1887	 test ! -s conftest.err
1888       } && test -s conftest.$ac_objext; then :
1889  ac_retval=0
1890else
1891  $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894	ac_retval=1
1895fi
1896  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897  as_fn_set_status $ac_retval
1898
1899} # ac_fn_c_try_compile
1900
1901# ac_fn_cxx_try_compile LINENO
1902# ----------------------------
1903# Try to compile conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_cxx_try_compile ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  rm -f conftest.$ac_objext
1908  if { { ac_try="$ac_compile"
1909case "(($ac_try" in
1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911  *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915  (eval "$ac_compile") 2>conftest.err
1916  ac_status=$?
1917  if test -s conftest.err; then
1918    grep -v '^ *+' conftest.err >conftest.er1
1919    cat conftest.er1 >&5
1920    mv -f conftest.er1 conftest.err
1921  fi
1922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923  test $ac_status = 0; } && {
1924	 test -z "$ac_cxx_werror_flag" ||
1925	 test ! -s conftest.err
1926       } && test -s conftest.$ac_objext; then :
1927  ac_retval=0
1928else
1929  $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932	ac_retval=1
1933fi
1934  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935  as_fn_set_status $ac_retval
1936
1937} # ac_fn_cxx_try_compile
1938
1939# ac_fn_c_try_cpp LINENO
1940# ----------------------
1941# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942ac_fn_c_try_cpp ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  if { { ac_try="$ac_cpp conftest.$ac_ext"
1946case "(($ac_try" in
1947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948  *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953  ac_status=$?
1954  if test -s conftest.err; then
1955    grep -v '^ *+' conftest.err >conftest.er1
1956    cat conftest.er1 >&5
1957    mv -f conftest.er1 conftest.err
1958  fi
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; } >/dev/null && {
1961	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1962	 test ! -s conftest.err
1963       }; then :
1964  ac_retval=0
1965else
1966  $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969    ac_retval=1
1970fi
1971  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972  as_fn_set_status $ac_retval
1973
1974} # ac_fn_c_try_cpp
1975
1976# ac_fn_c_try_link LINENO
1977# -----------------------
1978# Try to link conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_c_try_link ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  rm -f conftest.$ac_objext conftest$ac_exeext
1983  if { { ac_try="$ac_link"
1984case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_link") 2>conftest.err
1991  ac_status=$?
1992  if test -s conftest.err; then
1993    grep -v '^ *+' conftest.err >conftest.er1
1994    cat conftest.er1 >&5
1995    mv -f conftest.er1 conftest.err
1996  fi
1997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998  test $ac_status = 0; } && {
1999	 test -z "$ac_c_werror_flag" ||
2000	 test ! -s conftest.err
2001       } && test -s conftest$ac_exeext && {
2002	 test "$cross_compiling" = yes ||
2003	 $as_test_x conftest$ac_exeext
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010	ac_retval=1
2011fi
2012  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014  # interfere with the next link command; also delete a directory that is
2015  # left behind by Apple's compiler.  We do this before executing the actions.
2016  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_c_try_link
2021
2022# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023# -------------------------------------------------------
2024# Tests whether HEADER exists and can be compiled using the include files in
2025# INCLUDES, setting the cache variable VAR accordingly.
2026ac_fn_c_check_header_compile ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037#include <$2>
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040  eval "$3=yes"
2041else
2042  eval "$3=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046eval ac_res=\$$3
2047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051} # ac_fn_c_check_header_compile
2052
2053# ac_fn_c_try_run LINENO
2054# ----------------------
2055# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056# that executables *can* be run.
2057ac_fn_c_try_run ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  if { { ac_try="$ac_link"
2061case "(($ac_try" in
2062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063  *) ac_try_echo=$ac_try;;
2064esac
2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066$as_echo "$ac_try_echo"; } >&5
2067  (eval "$ac_link") 2>&5
2068  ac_status=$?
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071  { { case "(($ac_try" in
2072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073  *) ac_try_echo=$ac_try;;
2074esac
2075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076$as_echo "$ac_try_echo"; } >&5
2077  (eval "$ac_try") 2>&5
2078  ac_status=$?
2079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080  test $ac_status = 0; }; }; then :
2081  ac_retval=0
2082else
2083  $as_echo "$as_me: program exited with status $ac_status" >&5
2084       $as_echo "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087       ac_retval=$ac_status
2088fi
2089  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091  as_fn_set_status $ac_retval
2092
2093} # ac_fn_c_try_run
2094
2095# ac_fn_c_check_func LINENO FUNC VAR
2096# ----------------------------------
2097# Tests whether FUNC exists, setting the cache variable VAR accordingly
2098ac_fn_c_check_func ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2104  $as_echo_n "(cached) " >&6
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2110#define $2 innocuous_$2
2111
2112/* System header to define __stub macros and hopefully few prototypes,
2113    which can conflict with char $2 (); below.
2114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115    <limits.h> exists even on freestanding compilers.  */
2116
2117#ifdef __STDC__
2118# include <limits.h>
2119#else
2120# include <assert.h>
2121#endif
2122
2123#undef $2
2124
2125/* Override any GCC internal prototype to avoid an error.
2126   Use char because int might match the return type of a GCC
2127   builtin and then its argument prototype would still apply.  */
2128#ifdef __cplusplus
2129extern "C"
2130#endif
2131char $2 ();
2132/* The GNU C library defines this for functions which it implements
2133    to always fail with ENOSYS.  Some functions are actually named
2134    something starting with __ and the normal name is an alias.  */
2135#if defined __stub_$2 || defined __stub___$2
2136choke me
2137#endif
2138
2139int
2140main ()
2141{
2142return $2 ();
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_link "$LINENO"; then :
2148  eval "$3=yes"
2149else
2150  eval "$3=no"
2151fi
2152rm -f core conftest.err conftest.$ac_objext \
2153    conftest$ac_exeext conftest.$ac_ext
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
2160} # ac_fn_c_check_func
2161
2162# ac_fn_cxx_try_cpp LINENO
2163# ------------------------
2164# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_cxx_try_cpp ()
2166{
2167  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168  if { { ac_try="$ac_cpp conftest.$ac_ext"
2169case "(($ac_try" in
2170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171  *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176  ac_status=$?
2177  if test -s conftest.err; then
2178    grep -v '^ *+' conftest.err >conftest.er1
2179    cat conftest.er1 >&5
2180    mv -f conftest.er1 conftest.err
2181  fi
2182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183  test $ac_status = 0; } >/dev/null && {
2184	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2185	 test ! -s conftest.err
2186       }; then :
2187  ac_retval=0
2188else
2189  $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192    ac_retval=1
2193fi
2194  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195  as_fn_set_status $ac_retval
2196
2197} # ac_fn_cxx_try_cpp
2198
2199# ac_fn_cxx_try_link LINENO
2200# -------------------------
2201# Try to link conftest.$ac_ext, and return whether this succeeded.
2202ac_fn_cxx_try_link ()
2203{
2204  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205  rm -f conftest.$ac_objext conftest$ac_exeext
2206  if { { ac_try="$ac_link"
2207case "(($ac_try" in
2208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209  *) ac_try_echo=$ac_try;;
2210esac
2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212$as_echo "$ac_try_echo"; } >&5
2213  (eval "$ac_link") 2>conftest.err
2214  ac_status=$?
2215  if test -s conftest.err; then
2216    grep -v '^ *+' conftest.err >conftest.er1
2217    cat conftest.er1 >&5
2218    mv -f conftest.er1 conftest.err
2219  fi
2220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221  test $ac_status = 0; } && {
2222	 test -z "$ac_cxx_werror_flag" ||
2223	 test ! -s conftest.err
2224       } && test -s conftest$ac_exeext && {
2225	 test "$cross_compiling" = yes ||
2226	 $as_test_x conftest$ac_exeext
2227       }; then :
2228  ac_retval=0
2229else
2230  $as_echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233	ac_retval=1
2234fi
2235  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237  # interfere with the next link command; also delete a directory that is
2238  # left behind by Apple's compiler.  We do this before executing the actions.
2239  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241  as_fn_set_status $ac_retval
2242
2243} # ac_fn_cxx_try_link
2244
2245# ac_fn_c_check_decl LINENO SYMBOL VAR
2246# ------------------------------------
2247# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2248ac_fn_c_check_decl ()
2249{
2250  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2252$as_echo_n "checking whether $2 is declared... " >&6; }
2253if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254  $as_echo_n "(cached) " >&6
2255else
2256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h.  */
2258$4
2259int
2260main ()
2261{
2262#ifndef $2
2263  (void) $2;
2264#endif
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271  eval "$3=yes"
2272else
2273  eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
2280  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281
2282} # ac_fn_c_check_decl
2283
2284# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2285# -------------------------------------------
2286# Tests whether TYPE exists after having included INCLUDES, setting cache
2287# variable VAR accordingly.
2288ac_fn_c_check_type ()
2289{
2290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292$as_echo_n "checking for $2... " >&6; }
2293if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294  $as_echo_n "(cached) " >&6
2295else
2296  eval "$3=no"
2297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h.  */
2299$4
2300int
2301main ()
2302{
2303if (sizeof ($2))
2304	 return 0;
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309if ac_fn_c_try_compile "$LINENO"; then :
2310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h.  */
2312$4
2313int
2314main ()
2315{
2316if (sizeof (($2)))
2317	    return 0;
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323
2324else
2325  eval "$3=yes"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331eval ac_res=\$$3
2332	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
2334  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336} # ac_fn_c_check_type
2337
2338# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2339# -------------------------------------------------------
2340# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2341# the include files in INCLUDES and setting the cache variable VAR
2342# accordingly.
2343ac_fn_c_check_header_mongrel ()
2344{
2345  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348$as_echo_n "checking for $2... " >&6; }
2349if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350  $as_echo_n "(cached) " >&6
2351fi
2352eval ac_res=\$$3
2353	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354$as_echo "$ac_res" >&6; }
2355else
2356  # Is the header compilable?
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2358$as_echo_n "checking $2 usability... " >&6; }
2359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360/* end confdefs.h.  */
2361$4
2362#include <$2>
2363_ACEOF
2364if ac_fn_c_try_compile "$LINENO"; then :
2365  ac_header_compiler=yes
2366else
2367  ac_header_compiler=no
2368fi
2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2371$as_echo "$ac_header_compiler" >&6; }
2372
2373# Is the header present?
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2375$as_echo_n "checking $2 presence... " >&6; }
2376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377/* end confdefs.h.  */
2378#include <$2>
2379_ACEOF
2380if ac_fn_c_try_cpp "$LINENO"; then :
2381  ac_header_preproc=yes
2382else
2383  ac_header_preproc=no
2384fi
2385rm -f conftest.err conftest.$ac_ext
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2387$as_echo "$ac_header_preproc" >&6; }
2388
2389# So?  What about this header?
2390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2391  yes:no: )
2392    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2393$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2394    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2396    ;;
2397  no:yes:* )
2398    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2399$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2400    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2401$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2402    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2403$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2404    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2405$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2406    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2407$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2408( cat <<\_ASBOX
2409## --------------------------------- ##
2410## Report this to mocmaint@daper.net ##
2411## --------------------------------- ##
2412_ASBOX
2413     ) | sed "s/^/$as_me: WARNING:     /" >&2
2414    ;;
2415esac
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417$as_echo_n "checking for $2... " >&6; }
2418if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  eval "$3=\$ac_header_compiler"
2422fi
2423eval ac_res=\$$3
2424	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425$as_echo "$ac_res" >&6; }
2426fi
2427  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2428
2429} # ac_fn_c_check_header_mongrel
2430
2431# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2432# ----------------------------------------------------
2433# Tries to find if the field MEMBER exists in type AGGR, after including
2434# INCLUDES, setting cache variable VAR accordingly.
2435ac_fn_c_check_member ()
2436{
2437  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2439$as_echo_n "checking for $2.$3... " >&6; }
2440if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2441  $as_echo_n "(cached) " >&6
2442else
2443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444/* end confdefs.h.  */
2445$5
2446int
2447main ()
2448{
2449static $2 ac_aggr;
2450if (ac_aggr.$3)
2451return 0;
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456if ac_fn_c_try_compile "$LINENO"; then :
2457  eval "$4=yes"
2458else
2459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h.  */
2461$5
2462int
2463main ()
2464{
2465static $2 ac_aggr;
2466if (sizeof ac_aggr.$3)
2467return 0;
2468  ;
2469  return 0;
2470}
2471_ACEOF
2472if ac_fn_c_try_compile "$LINENO"; then :
2473  eval "$4=yes"
2474else
2475  eval "$4=no"
2476fi
2477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481eval ac_res=\$$4
2482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483$as_echo "$ac_res" >&6; }
2484  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485
2486} # ac_fn_c_check_member
2487cat >config.log <<_ACEOF
2488This file contains any messages produced by compilers while
2489running configure, to aid debugging if configure makes a mistake.
2490
2491It was created by Music On Console $as_me 2.5.2, which was
2492generated by GNU Autoconf 2.65.  Invocation command line was
2493
2494  $ $0 $@
2495
2496_ACEOF
2497exec 5>>config.log
2498{
2499cat <<_ASUNAME
2500## --------- ##
2501## Platform. ##
2502## --------- ##
2503
2504hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2505uname -m = `(uname -m) 2>/dev/null || echo unknown`
2506uname -r = `(uname -r) 2>/dev/null || echo unknown`
2507uname -s = `(uname -s) 2>/dev/null || echo unknown`
2508uname -v = `(uname -v) 2>/dev/null || echo unknown`
2509
2510/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2511/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2512
2513/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2514/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2515/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2516/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2517/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2518/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2519/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2520
2521_ASUNAME
2522
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528    $as_echo "PATH: $as_dir"
2529  done
2530IFS=$as_save_IFS
2531
2532} >&5
2533
2534cat >&5 <<_ACEOF
2535
2536
2537## ----------- ##
2538## Core tests. ##
2539## ----------- ##
2540
2541_ACEOF
2542
2543
2544# Keep a trace of the command line.
2545# Strip out --no-create and --no-recursion so they do not pile up.
2546# Strip out --silent because we don't want to record it for future runs.
2547# Also quote any args containing shell meta-characters.
2548# Make two passes to allow for proper duplicate-argument suppression.
2549ac_configure_args=
2550ac_configure_args0=
2551ac_configure_args1=
2552ac_must_keep_next=false
2553for ac_pass in 1 2
2554do
2555  for ac_arg
2556  do
2557    case $ac_arg in
2558    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2559    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2560    | -silent | --silent | --silen | --sile | --sil)
2561      continue ;;
2562    *\'*)
2563      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2564    esac
2565    case $ac_pass in
2566    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2567    2)
2568      as_fn_append ac_configure_args1 " '$ac_arg'"
2569      if test $ac_must_keep_next = true; then
2570	ac_must_keep_next=false # Got value, back to normal.
2571      else
2572	case $ac_arg in
2573	  *=* | --config-cache | -C | -disable-* | --disable-* \
2574	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2575	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2576	  | -with-* | --with-* | -without-* | --without-* | --x)
2577	    case "$ac_configure_args0 " in
2578	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2579	    esac
2580	    ;;
2581	  -* ) ac_must_keep_next=true ;;
2582	esac
2583      fi
2584      as_fn_append ac_configure_args " '$ac_arg'"
2585      ;;
2586    esac
2587  done
2588done
2589{ ac_configure_args0=; unset ac_configure_args0;}
2590{ ac_configure_args1=; unset ac_configure_args1;}
2591
2592# When interrupted or exit'd, cleanup temporary files, and complete
2593# config.log.  We remove comments because anyway the quotes in there
2594# would cause problems or look ugly.
2595# WARNING: Use '\'' to represent an apostrophe within the trap.
2596# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2597trap 'exit_status=$?
2598  # Save into config.log some information that might help in debugging.
2599  {
2600    echo
2601
2602    cat <<\_ASBOX
2603## ---------------- ##
2604## Cache variables. ##
2605## ---------------- ##
2606_ASBOX
2607    echo
2608    # The following way of writing the cache mishandles newlines in values,
2609(
2610  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2611    eval ac_val=\$$ac_var
2612    case $ac_val in #(
2613    *${as_nl}*)
2614      case $ac_var in #(
2615      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2616$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2617      esac
2618      case $ac_var in #(
2619      _ | IFS | as_nl) ;; #(
2620      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2621      *) { eval $ac_var=; unset $ac_var;} ;;
2622      esac ;;
2623    esac
2624  done
2625  (set) 2>&1 |
2626    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2627    *${as_nl}ac_space=\ *)
2628      sed -n \
2629	"s/'\''/'\''\\\\'\'''\''/g;
2630	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2631      ;; #(
2632    *)
2633      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2634      ;;
2635    esac |
2636    sort
2637)
2638    echo
2639
2640    cat <<\_ASBOX
2641## ----------------- ##
2642## Output variables. ##
2643## ----------------- ##
2644_ASBOX
2645    echo
2646    for ac_var in $ac_subst_vars
2647    do
2648      eval ac_val=\$$ac_var
2649      case $ac_val in
2650      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651      esac
2652      $as_echo "$ac_var='\''$ac_val'\''"
2653    done | sort
2654    echo
2655
2656    if test -n "$ac_subst_files"; then
2657      cat <<\_ASBOX
2658## ------------------- ##
2659## File substitutions. ##
2660## ------------------- ##
2661_ASBOX
2662      echo
2663      for ac_var in $ac_subst_files
2664      do
2665	eval ac_val=\$$ac_var
2666	case $ac_val in
2667	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668	esac
2669	$as_echo "$ac_var='\''$ac_val'\''"
2670      done | sort
2671      echo
2672    fi
2673
2674    if test -s confdefs.h; then
2675      cat <<\_ASBOX
2676## ----------- ##
2677## confdefs.h. ##
2678## ----------- ##
2679_ASBOX
2680      echo
2681      cat confdefs.h
2682      echo
2683    fi
2684    test "$ac_signal" != 0 &&
2685      $as_echo "$as_me: caught signal $ac_signal"
2686    $as_echo "$as_me: exit $exit_status"
2687  } >&5
2688  rm -f core *.core core.conftest.* &&
2689    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690    exit $exit_status
2691' 0
2692for ac_signal in 1 2 13 15; do
2693  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2694done
2695ac_signal=0
2696
2697# confdefs.h avoids OS command line length limits that DEFS can exceed.
2698rm -f -r conftest* confdefs.h
2699
2700$as_echo "/* confdefs.h */" > confdefs.h
2701
2702# Predefined preprocessor variables.
2703
2704cat >>confdefs.h <<_ACEOF
2705#define PACKAGE_NAME "$PACKAGE_NAME"
2706_ACEOF
2707
2708cat >>confdefs.h <<_ACEOF
2709#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710_ACEOF
2711
2712cat >>confdefs.h <<_ACEOF
2713#define PACKAGE_VERSION "$PACKAGE_VERSION"
2714_ACEOF
2715
2716cat >>confdefs.h <<_ACEOF
2717#define PACKAGE_STRING "$PACKAGE_STRING"
2718_ACEOF
2719
2720cat >>confdefs.h <<_ACEOF
2721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722_ACEOF
2723
2724cat >>confdefs.h <<_ACEOF
2725#define PACKAGE_URL "$PACKAGE_URL"
2726_ACEOF
2727
2728
2729# Let the site file select an alternate cache file if it wants to.
2730# Prefer an explicitly selected file to automatically selected ones.
2731ac_site_file1=NONE
2732ac_site_file2=NONE
2733if test -n "$CONFIG_SITE"; then
2734  ac_site_file1=$CONFIG_SITE
2735elif test "x$prefix" != xNONE; then
2736  ac_site_file1=$prefix/share/config.site
2737  ac_site_file2=$prefix/etc/config.site
2738else
2739  ac_site_file1=$ac_default_prefix/share/config.site
2740  ac_site_file2=$ac_default_prefix/etc/config.site
2741fi
2742for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2743do
2744  test "x$ac_site_file" = xNONE && continue
2745  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2746    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2747$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2748    sed 's/^/| /' "$ac_site_file" >&5
2749    . "$ac_site_file"
2750  fi
2751done
2752
2753if test -r "$cache_file"; then
2754  # Some versions of bash will fail to source /dev/null (special files
2755  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2756  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2757    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2758$as_echo "$as_me: loading cache $cache_file" >&6;}
2759    case $cache_file in
2760      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2761      *)                      . "./$cache_file";;
2762    esac
2763  fi
2764else
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2766$as_echo "$as_me: creating cache $cache_file" >&6;}
2767  >$cache_file
2768fi
2769
2770as_fn_append ac_header_list " stdlib.h"
2771as_fn_append ac_header_list " unistd.h"
2772as_fn_append ac_header_list " sys/param.h"
2773# Check that the precious variables saved in the cache have kept the same
2774# value.
2775ac_cache_corrupted=false
2776for ac_var in $ac_precious_vars; do
2777  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2778  eval ac_new_set=\$ac_env_${ac_var}_set
2779  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2780  eval ac_new_val=\$ac_env_${ac_var}_value
2781  case $ac_old_set,$ac_new_set in
2782    set,)
2783      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2784$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2785      ac_cache_corrupted=: ;;
2786    ,set)
2787      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2788$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2789      ac_cache_corrupted=: ;;
2790    ,);;
2791    *)
2792      if test "x$ac_old_val" != "x$ac_new_val"; then
2793	# differences in whitespace do not lead to failure.
2794	ac_old_val_w=`echo x $ac_old_val`
2795	ac_new_val_w=`echo x $ac_new_val`
2796	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2797	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2798$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2799	  ac_cache_corrupted=:
2800	else
2801	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2802$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2803	  eval $ac_var=\$ac_old_val
2804	fi
2805	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2806$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2807	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2808$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2809      fi;;
2810  esac
2811  # Pass precious variables to config.status.
2812  if test "$ac_new_set" = set; then
2813    case $ac_new_val in
2814    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2815    *) ac_arg=$ac_var=$ac_new_val ;;
2816    esac
2817    case " $ac_configure_args " in
2818      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2819      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2820    esac
2821  fi
2822done
2823if $ac_cache_corrupted; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2827$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2828  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2829fi
2830## -------------------- ##
2831## Main body of script. ##
2832## -------------------- ##
2833
2834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839
2840
2841
2842ac_config_headers="$ac_config_headers config.h"
2843
2844
2845am__api_version='1.11'
2846
2847ac_aux_dir=
2848for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2849  for ac_t in install-sh install.sh shtool; do
2850    if test -f "$ac_dir/$ac_t"; then
2851      ac_aux_dir=$ac_dir
2852      ac_install_sh="$ac_aux_dir/$ac_t -c"
2853      break 2
2854    fi
2855  done
2856done
2857if test -z "$ac_aux_dir"; then
2858  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2859fi
2860
2861# These three variables are undocumented and unsupported,
2862# and are intended to be withdrawn in a future Autoconf release.
2863# They can cause serious problems if a builder's source tree is in a directory
2864# whose full name contains unusual characters.
2865ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2866ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2867ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2868
2869
2870# Find a good install program.  We prefer a C program (faster),
2871# so one script is as good as another.  But avoid the broken or
2872# incompatible versions:
2873# SysV /etc/install, /usr/sbin/install
2874# SunOS /usr/etc/install
2875# IRIX /sbin/install
2876# AIX /bin/install
2877# AmigaOS /C/install, which installs bootblocks on floppy discs
2878# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881# OS/2's system install, which has a completely different semantic
2882# ./install, which can be erroneously created by make from ./install.sh.
2883# Reject install programs that cannot install multiple files.
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2885$as_echo_n "checking for a BSD-compatible install... " >&6; }
2886if test -z "$INSTALL"; then
2887if test "${ac_cv_path_install+set}" = set; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895    # Account for people who put trailing slashes in PATH elements.
2896case $as_dir/ in #((
2897  ./ | .// | /[cC]/* | \
2898  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2899  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2900  /usr/ucb/* ) ;;
2901  *)
2902    # OSF1 and SCO ODT 3.0 have their own names for install.
2903    # Don't use installbsd from OSF since it installs stuff as root
2904    # by default.
2905    for ac_prog in ginstall scoinst install; do
2906      for ac_exec_ext in '' $ac_executable_extensions; do
2907	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2908	  if test $ac_prog = install &&
2909	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2910	    # AIX install.  It has an incompatible calling convention.
2911	    :
2912	  elif test $ac_prog = install &&
2913	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2914	    # program-specific install script used by HP pwplus--don't use.
2915	    :
2916	  else
2917	    rm -rf conftest.one conftest.two conftest.dir
2918	    echo one > conftest.one
2919	    echo two > conftest.two
2920	    mkdir conftest.dir
2921	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2922	      test -s conftest.one && test -s conftest.two &&
2923	      test -s conftest.dir/conftest.one &&
2924	      test -s conftest.dir/conftest.two
2925	    then
2926	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2927	      break 3
2928	    fi
2929	  fi
2930	fi
2931      done
2932    done
2933    ;;
2934esac
2935
2936  done
2937IFS=$as_save_IFS
2938
2939rm -rf conftest.one conftest.two conftest.dir
2940
2941fi
2942  if test "${ac_cv_path_install+set}" = set; then
2943    INSTALL=$ac_cv_path_install
2944  else
2945    # As a last resort, use the slow shell script.  Don't cache a
2946    # value for INSTALL within a source directory, because that will
2947    # break other packages using the cache if that directory is
2948    # removed, or if the value is a relative name.
2949    INSTALL=$ac_install_sh
2950  fi
2951fi
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2953$as_echo "$INSTALL" >&6; }
2954
2955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956# It thinks the first close brace ends the variable substitution.
2957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2958
2959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2960
2961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2962
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2964$as_echo_n "checking whether build environment is sane... " >&6; }
2965# Just in case
2966sleep 1
2967echo timestamp > conftest.file
2968# Reject unsafe characters in $srcdir or the absolute working directory
2969# name.  Accept space and tab only in the latter.
2970am_lf='
2971'
2972case `pwd` in
2973  *[\\\"\#\$\&\'\`$am_lf]*)
2974    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2975esac
2976case $srcdir in
2977  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2978    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2979esac
2980
2981# Do `set' in a subshell so we don't clobber the current shell's
2982# arguments.  Must try -L first in case configure is actually a
2983# symlink; some systems play weird games with the mod time of symlinks
2984# (eg FreeBSD returns the mod time of the symlink's containing
2985# directory).
2986if (
2987   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2988   if test "$*" = "X"; then
2989      # -L didn't work.
2990      set X `ls -t "$srcdir/configure" conftest.file`
2991   fi
2992   rm -f conftest.file
2993   if test "$*" != "X $srcdir/configure conftest.file" \
2994      && test "$*" != "X conftest.file $srcdir/configure"; then
2995
2996      # If neither matched, then we have a broken ls.  This can happen
2997      # if, for instance, CONFIG_SHELL is bash and it inherits a
2998      # broken ls alias from the environment.  This has actually
2999      # happened.  Such a system could not be considered "sane".
3000      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3001alias in your environment" "$LINENO" 5
3002   fi
3003
3004   test "$2" = conftest.file
3005   )
3006then
3007   # Ok.
3008   :
3009else
3010   as_fn_error "newly created file is older than distributed files!
3011Check your system clock" "$LINENO" 5
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014$as_echo "yes" >&6; }
3015test "$program_prefix" != NONE &&
3016  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3017# Use a double $ so make ignores it.
3018test "$program_suffix" != NONE &&
3019  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3020# Double any \ or $.
3021# By default was `s,x,x', remove it if useless.
3022ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3023program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3024
3025# expand $ac_aux_dir to an absolute path
3026am_aux_dir=`cd $ac_aux_dir && pwd`
3027
3028if test x"${MISSING+set}" != xset; then
3029  case $am_aux_dir in
3030  *\ * | *\	*)
3031    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3032  *)
3033    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3034  esac
3035fi
3036# Use eval to expand $SHELL
3037if eval "$MISSING --run true"; then
3038  am_missing_run="$MISSING --run "
3039else
3040  am_missing_run=
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3042$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3043fi
3044
3045if test x"${install_sh}" != xset; then
3046  case $am_aux_dir in
3047  *\ * | *\	*)
3048    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3049  *)
3050    install_sh="\${SHELL} $am_aux_dir/install-sh"
3051  esac
3052fi
3053
3054# Installed binaries are usually stripped using `strip' when the user
3055# run `make install-strip'.  However `strip' might not be the right
3056# tool to use in cross-compilation environments, therefore Automake
3057# will honor the `STRIP' environment variable to overrule this program.
3058if test "$cross_compiling" != no; then
3059  if test -n "$ac_tool_prefix"; then
3060  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061set dummy ${ac_tool_prefix}strip; ac_word=$2
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
3064if test "${ac_cv_prog_STRIP+set}" = set; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  if test -n "$STRIP"; then
3068  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075    for ac_exec_ext in '' $ac_executable_extensions; do
3076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079    break 2
3080  fi
3081done
3082  done
3083IFS=$as_save_IFS
3084
3085fi
3086fi
3087STRIP=$ac_cv_prog_STRIP
3088if test -n "$STRIP"; then
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090$as_echo "$STRIP" >&6; }
3091else
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
3094fi
3095
3096
3097fi
3098if test -z "$ac_cv_prog_STRIP"; then
3099  ac_ct_STRIP=$STRIP
3100  # Extract the first word of "strip", so it can be a program name with args.
3101set dummy strip; ac_word=$2
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  if test -n "$ac_ct_STRIP"; then
3108  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117    ac_cv_prog_ac_ct_STRIP="strip"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122  done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128if test -n "$ac_ct_STRIP"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3130$as_echo "$ac_ct_STRIP" >&6; }
3131else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3134fi
3135
3136  if test "x$ac_ct_STRIP" = x; then
3137    STRIP=":"
3138  else
3139    case $cross_compiling:$ac_tool_warned in
3140yes:)
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143ac_tool_warned=yes ;;
3144esac
3145    STRIP=$ac_ct_STRIP
3146  fi
3147else
3148  STRIP="$ac_cv_prog_STRIP"
3149fi
3150
3151fi
3152INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3153
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3155$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3156if test -z "$MKDIR_P"; then
3157  if test "${ac_cv_path_mkdir+set}" = set; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_prog in mkdir gmkdir; do
3166	 for ac_exec_ext in '' $ac_executable_extensions; do
3167	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3168	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3169	     'mkdir (GNU coreutils) '* | \
3170	     'mkdir (coreutils) '* | \
3171	     'mkdir (fileutils) '4.1*)
3172	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3173	       break 3;;
3174	   esac
3175	 done
3176       done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181
3182  test -d ./--version && rmdir ./--version
3183  if test "${ac_cv_path_mkdir+set}" = set; then
3184    MKDIR_P="$ac_cv_path_mkdir -p"
3185  else
3186    # As a last resort, use the slow shell script.  Don't cache a
3187    # value for MKDIR_P within a source directory, because that will
3188    # break other packages using the cache if that directory is
3189    # removed, or if the value is a relative name.
3190    MKDIR_P="$ac_install_sh -d"
3191  fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194$as_echo "$MKDIR_P" >&6; }
3195
3196mkdir_p="$MKDIR_P"
3197case $mkdir_p in
3198  [\\/$]* | ?:[\\/]*) ;;
3199  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3200esac
3201
3202for ac_prog in gawk mawk nawk awk
3203do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205set dummy $ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if test "${ac_cv_prog_AWK+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$AWK"; then
3212  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_AWK="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231AWK=$ac_cv_prog_AWK
3232if test -n "$AWK"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3234$as_echo "$AWK" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241  test -n "$AWK" && break
3242done
3243
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3246set x ${MAKE-make}
3247ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3248if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  cat >conftest.make <<\_ACEOF
3252SHELL = /bin/sh
3253all:
3254	@echo '@@@%%%=$(MAKE)=@@@%%%'
3255_ACEOF
3256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3257case `${MAKE-make} -f conftest.make 2>/dev/null` in
3258  *@@@%%%=?*=@@@%%%*)
3259    eval ac_cv_prog_make_${ac_make}_set=yes;;
3260  *)
3261    eval ac_cv_prog_make_${ac_make}_set=no;;
3262esac
3263rm -f conftest.make
3264fi
3265if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267$as_echo "yes" >&6; }
3268  SET_MAKE=
3269else
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271$as_echo "no" >&6; }
3272  SET_MAKE="MAKE=${MAKE-make}"
3273fi
3274
3275rm -rf .tst 2>/dev/null
3276mkdir .tst 2>/dev/null
3277if test -d .tst; then
3278  am__leading_dot=.
3279else
3280  am__leading_dot=_
3281fi
3282rmdir .tst 2>/dev/null
3283
3284if test "`cd $srcdir && pwd`" != "`pwd`"; then
3285  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3286  # is not polluted with repeated "-I."
3287  am__isrc=' -I$(srcdir)'
3288  # test to see if srcdir already configured
3289  if test -f $srcdir/config.status; then
3290    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3291  fi
3292fi
3293
3294# test whether we have cygpath
3295if test -z "$CYGPATH_W"; then
3296  if (cygpath --version) >/dev/null 2>/dev/null; then
3297    CYGPATH_W='cygpath -w'
3298  else
3299    CYGPATH_W=echo
3300  fi
3301fi
3302
3303
3304# Define the identity of the package.
3305 PACKAGE='moc'
3306 VERSION='2.5.2'
3307
3308
3309cat >>confdefs.h <<_ACEOF
3310#define PACKAGE "$PACKAGE"
3311_ACEOF
3312
3313
3314cat >>confdefs.h <<_ACEOF
3315#define VERSION "$VERSION"
3316_ACEOF
3317
3318# Some tools Automake needs.
3319
3320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3321
3322
3323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3324
3325
3326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3327
3328
3329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3330
3331
3332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3333
3334# We need awk for the "check" target.  The system "awk" is bad on
3335# some platforms.
3336# Always define AMTAR for backward compatibility.
3337
3338AMTAR=${AMTAR-"${am_missing_run}tar"}
3339
3340am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351if test -z "$PACKAGE_URL"
3352then
3353	PACKAGE_URL='http://moc.daper.net/'
3354
3355
3356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_URL "$PACKAGE_URL"
3358_ACEOF
3359
3360fi
3361
3362
3363cat >>confdefs.h <<_ACEOF
3364#define CONFIGURATION "$ac_configure_args"
3365_ACEOF
3366
3367
3368# Extract the first word of "svnversion", so it can be a program name with args.
3369set dummy svnversion; ac_word=$2
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if test "${ac_cv_path_SVNVERSION+set}" = set; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  case $SVNVERSION in
3376  [\\/]* | ?:[\\/]*)
3377  ac_cv_path_SVNVERSION="$SVNVERSION" # Let the user override the test with a path.
3378  ;;
3379  *)
3380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387    ac_cv_path_SVNVERSION="$as_dir/$ac_word$ac_exec_ext"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395  ;;
3396esac
3397fi
3398SVNVERSION=$ac_cv_path_SVNVERSION
3399if test -n "$SVNVERSION"; then
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
3401$as_echo "$SVNVERSION" >&6; }
3402else
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407
3408if test -n "$SVNVERSION"
3409then
3410	SVNREVN=`$SVNVERSION -n $srcdir`
3411	SVNREVN=`expr "$SVNREVN" : '\([^:]*\)'`
3412	if test "x$SVNREVN" = "xexported"
3413	then
3414		unset SVNREVN
3415	else
3416		echo -n $SVNREVN > REVISION
3417		EXTRA_DISTS="$EXTRA_DISTS REVISION"
3418	fi
3419fi
3420if test -z "$SVNREVN" && test -f $srcdir/REVISION
3421then
3422	SVNREVN=`cat $srcdir/REVISION`
3423	EXTRA_DISTS="$EXTRA_DISTS REVISION"
3424fi
3425if test -n "$SVNREVN"
3426then
3427
3428cat >>confdefs.h <<_ACEOF
3429#define PACKAGE_REVISION "$SVNREVN"
3430_ACEOF
3431
3432fi
3433
3434# Make sure we can run config.sub.
3435$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3436  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3439$as_echo_n "checking build system type... " >&6; }
3440if test "${ac_cv_build+set}" = set; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  ac_build_alias=$build_alias
3444test "x$ac_build_alias" = x &&
3445  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3446test "x$ac_build_alias" = x &&
3447  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3448ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3449  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3450
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3453$as_echo "$ac_cv_build" >&6; }
3454case $ac_cv_build in
3455*-*-*) ;;
3456*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3457esac
3458build=$ac_cv_build
3459ac_save_IFS=$IFS; IFS='-'
3460set x $ac_cv_build
3461shift
3462build_cpu=$1
3463build_vendor=$2
3464shift; shift
3465# Remember, the first character of IFS is used to create $*,
3466# except with old shells:
3467build_os=$*
3468IFS=$ac_save_IFS
3469case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3470
3471
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3473$as_echo_n "checking host system type... " >&6; }
3474if test "${ac_cv_host+set}" = set; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  if test "x$host_alias" = x; then
3478  ac_cv_host=$ac_cv_build
3479else
3480  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3481    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3482fi
3483
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3486$as_echo "$ac_cv_host" >&6; }
3487case $ac_cv_host in
3488*-*-*) ;;
3489*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3490esac
3491host=$ac_cv_host
3492ac_save_IFS=$IFS; IFS='-'
3493set x $ac_cv_host
3494shift
3495host_cpu=$1
3496host_vendor=$2
3497shift; shift
3498# Remember, the first character of IFS is used to create $*,
3499# except with old shells:
3500host_os=$*
3501IFS=$ac_save_IFS
3502case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3503
3504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510if test -n "$ac_tool_prefix"; then
3511  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3512set dummy ${ac_tool_prefix}gcc; ac_word=$2
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514$as_echo_n "checking for $ac_word... " >&6; }
3515if test "${ac_cv_prog_CC+set}" = set; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  if test -n "$CC"; then
3519  ac_cv_prog_CC="$CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  test -z "$as_dir" && as_dir=.
3526    for ac_exec_ext in '' $ac_executable_extensions; do
3527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530    break 2
3531  fi
3532done
3533  done
3534IFS=$as_save_IFS
3535
3536fi
3537fi
3538CC=$ac_cv_prog_CC
3539if test -n "$CC"; then
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541$as_echo "$CC" >&6; }
3542else
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548fi
3549if test -z "$ac_cv_prog_CC"; then
3550  ac_ct_CC=$CC
3551  # Extract the first word of "gcc", so it can be a program name with args.
3552set dummy gcc; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
3555if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558  if test -n "$ac_ct_CC"; then
3559  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564  IFS=$as_save_IFS
3565  test -z "$as_dir" && as_dir=.
3566    for ac_exec_ext in '' $ac_executable_extensions; do
3567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568    ac_cv_prog_ac_ct_CC="gcc"
3569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570    break 2
3571  fi
3572done
3573  done
3574IFS=$as_save_IFS
3575
3576fi
3577fi
3578ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579if test -n "$ac_ct_CC"; then
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581$as_echo "$ac_ct_CC" >&6; }
3582else
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585fi
3586
3587  if test "x$ac_ct_CC" = x; then
3588    CC=""
3589  else
3590    case $cross_compiling:$ac_tool_warned in
3591yes:)
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594ac_tool_warned=yes ;;
3595esac
3596    CC=$ac_ct_CC
3597  fi
3598else
3599  CC="$ac_cv_prog_CC"
3600fi
3601
3602if test -z "$CC"; then
3603          if test -n "$ac_tool_prefix"; then
3604    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605set dummy ${ac_tool_prefix}cc; ac_word=$2
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
3608if test "${ac_cv_prog_CC+set}" = set; then :
3609  $as_echo_n "(cached) " >&6
3610else
3611  if test -n "$CC"; then
3612  ac_cv_prog_CC="$CC" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617  IFS=$as_save_IFS
3618  test -z "$as_dir" && as_dir=.
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621    ac_cv_prog_CC="${ac_tool_prefix}cc"
3622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631CC=$ac_cv_prog_CC
3632if test -n "$CC"; then
3633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634$as_echo "$CC" >&6; }
3635else
3636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637$as_echo "no" >&6; }
3638fi
3639
3640
3641  fi
3642fi
3643if test -z "$CC"; then
3644  # Extract the first word of "cc", so it can be a program name with args.
3645set dummy cc; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
3648if test "${ac_cv_prog_CC+set}" = set; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -n "$CC"; then
3652  ac_cv_prog_CC="$CC" # Let the user override the test.
3653else
3654  ac_prog_rejected=no
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  test -z "$as_dir" && as_dir=.
3660    for ac_exec_ext in '' $ac_executable_extensions; do
3661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3663       ac_prog_rejected=yes
3664       continue
3665     fi
3666    ac_cv_prog_CC="cc"
3667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671  done
3672IFS=$as_save_IFS
3673
3674if test $ac_prog_rejected = yes; then
3675  # We found a bogon in the path, so make sure we never use it.
3676  set dummy $ac_cv_prog_CC
3677  shift
3678  if test $# != 0; then
3679    # We chose a different compiler from the bogus one.
3680    # However, it has the same basename, so the bogon will be chosen
3681    # first if we set CC to just the basename; use the full file name.
3682    shift
3683    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3684  fi
3685fi
3686fi
3687fi
3688CC=$ac_cv_prog_CC
3689if test -n "$CC"; then
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691$as_echo "$CC" >&6; }
3692else
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695fi
3696
3697
3698fi
3699if test -z "$CC"; then
3700  if test -n "$ac_tool_prefix"; then
3701  for ac_prog in cl.exe
3702  do
3703    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
3707if test "${ac_cv_prog_CC+set}" = set; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  if test -n "$CC"; then
3711  ac_cv_prog_CC="$CC" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718    for ac_exec_ext in '' $ac_executable_extensions; do
3719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725  done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730CC=$ac_cv_prog_CC
3731if test -n "$CC"; then
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733$as_echo "$CC" >&6; }
3734else
3735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
3737fi
3738
3739
3740    test -n "$CC" && break
3741  done
3742fi
3743if test -z "$CC"; then
3744  ac_ct_CC=$CC
3745  for ac_prog in cl.exe
3746do
3747  # Extract the first word of "$ac_prog", so it can be a program name with args.
3748set dummy $ac_prog; ac_word=$2
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
3751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -n "$ac_ct_CC"; then
3755  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764    ac_cv_prog_ac_ct_CC="$ac_prog"
3765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775if test -n "$ac_ct_CC"; then
3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777$as_echo "$ac_ct_CC" >&6; }
3778else
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781fi
3782
3783
3784  test -n "$ac_ct_CC" && break
3785done
3786
3787  if test "x$ac_ct_CC" = x; then
3788    CC=""
3789  else
3790    case $cross_compiling:$ac_tool_warned in
3791yes:)
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794ac_tool_warned=yes ;;
3795esac
3796    CC=$ac_ct_CC
3797  fi
3798fi
3799
3800fi
3801
3802
3803test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error "no acceptable C compiler found in \$PATH
3806See \`config.log' for more details." "$LINENO" 5; }
3807
3808# Provide some information about the compiler.
3809$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3810set X $ac_compile
3811ac_compiler=$2
3812for ac_option in --version -v -V -qversion; do
3813  { { ac_try="$ac_compiler $ac_option >&5"
3814case "(($ac_try" in
3815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816  *) ac_try_echo=$ac_try;;
3817esac
3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819$as_echo "$ac_try_echo"; } >&5
3820  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3821  ac_status=$?
3822  if test -s conftest.err; then
3823    sed '10a\
3824... rest of stderr output deleted ...
3825         10q' conftest.err >conftest.er1
3826    cat conftest.er1 >&5
3827  fi
3828  rm -f conftest.er1 conftest.err
3829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830  test $ac_status = 0; }
3831done
3832
3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844ac_clean_files_save=$ac_clean_files
3845ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3846# Try to create an executable without -o first, disregard a.out.
3847# It will help us diagnose broken compilers, and finding out an intuition
3848# of exeext.
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3850$as_echo_n "checking whether the C compiler works... " >&6; }
3851ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3852
3853# The possible output files:
3854ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3855
3856ac_rmfiles=
3857for ac_file in $ac_files
3858do
3859  case $ac_file in
3860    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3861    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3862  esac
3863done
3864rm -f $ac_rmfiles
3865
3866if { { ac_try="$ac_link_default"
3867case "(($ac_try" in
3868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869  *) ac_try_echo=$ac_try;;
3870esac
3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872$as_echo "$ac_try_echo"; } >&5
3873  (eval "$ac_link_default") 2>&5
3874  ac_status=$?
3875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876  test $ac_status = 0; }; then :
3877  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3878# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3879# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3880# so that the user can short-circuit this test for compilers unknown to
3881# Autoconf.
3882for ac_file in $ac_files ''
3883do
3884  test -f "$ac_file" || continue
3885  case $ac_file in
3886    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3887	;;
3888    [ab].out )
3889	# We found the default executable, but exeext='' is most
3890	# certainly right.
3891	break;;
3892    *.* )
3893	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3894	then :; else
3895	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896	fi
3897	# We set ac_cv_exeext here because the later test for it is not
3898	# safe: cross compilers may not add the suffix if given an `-o'
3899	# argument, so we may need to know it at that point already.
3900	# Even if this section looks crufty: it has the advantage of
3901	# actually working.
3902	break;;
3903    * )
3904	break;;
3905  esac
3906done
3907test "$ac_cv_exeext" = no && ac_cv_exeext=
3908
3909else
3910  ac_file=''
3911fi
3912if test -z "$ac_file"; then :
3913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915$as_echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920{ as_fn_set_status 77
3921as_fn_error "C compiler cannot create executables
3922See \`config.log' for more details." "$LINENO" 5; }; }
3923else
3924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925$as_echo "yes" >&6; }
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928$as_echo_n "checking for C compiler default output file name... " >&6; }
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930$as_echo "$ac_file" >&6; }
3931ac_exeext=$ac_cv_exeext
3932
3933rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3934ac_clean_files=$ac_clean_files_save
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3936$as_echo_n "checking for suffix of executables... " >&6; }
3937if { { ac_try="$ac_link"
3938case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943$as_echo "$ac_try_echo"; } >&5
3944  (eval "$ac_link") 2>&5
3945  ac_status=$?
3946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947  test $ac_status = 0; }; then :
3948  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3949# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3950# work properly (i.e., refer to `conftest.exe'), while it won't with
3951# `rm'.
3952for ac_file in conftest.exe conftest conftest.*; do
3953  test -f "$ac_file" || continue
3954  case $ac_file in
3955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3956    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957	  break;;
3958    * ) break;;
3959  esac
3960done
3961else
3962  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964as_fn_error "cannot compute suffix of executables: cannot compile and link
3965See \`config.log' for more details." "$LINENO" 5; }
3966fi
3967rm -f conftest conftest$ac_cv_exeext
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3969$as_echo "$ac_cv_exeext" >&6; }
3970
3971rm -f conftest.$ac_ext
3972EXEEXT=$ac_cv_exeext
3973ac_exeext=$EXEEXT
3974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976#include <stdio.h>
3977int
3978main ()
3979{
3980FILE *f = fopen ("conftest.out", "w");
3981 return ferror (f) || fclose (f) != 0;
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987ac_clean_files="$ac_clean_files conftest.out"
3988# Check that the compiler produces executables we can run.  If not, either
3989# the compiler is broken, or we cross compile.
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3991$as_echo_n "checking whether we are cross compiling... " >&6; }
3992if test "$cross_compiling" != yes; then
3993  { { ac_try="$ac_link"
3994case "(($ac_try" in
3995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996  *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999$as_echo "$ac_try_echo"; } >&5
4000  (eval "$ac_link") 2>&5
4001  ac_status=$?
4002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003  test $ac_status = 0; }
4004  if { ac_try='./conftest$ac_cv_exeext'
4005  { { case "(($ac_try" in
4006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007  *) ac_try_echo=$ac_try;;
4008esac
4009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010$as_echo "$ac_try_echo"; } >&5
4011  (eval "$ac_try") 2>&5
4012  ac_status=$?
4013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014  test $ac_status = 0; }; }; then
4015    cross_compiling=no
4016  else
4017    if test "$cross_compiling" = maybe; then
4018	cross_compiling=yes
4019    else
4020	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022as_fn_error "cannot run C compiled programs.
4023If you meant to cross compile, use \`--host'.
4024See \`config.log' for more details." "$LINENO" 5; }
4025    fi
4026  fi
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4029$as_echo "$cross_compiling" >&6; }
4030
4031rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4032ac_clean_files=$ac_clean_files_save
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034$as_echo_n "checking for suffix of object files... " >&6; }
4035if test "${ac_cv_objext+set}" = set; then :
4036  $as_echo_n "(cached) " >&6
4037else
4038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h.  */
4040
4041int
4042main ()
4043{
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049rm -f conftest.o conftest.obj
4050if { { ac_try="$ac_compile"
4051case "(($ac_try" in
4052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053  *) ac_try_echo=$ac_try;;
4054esac
4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056$as_echo "$ac_try_echo"; } >&5
4057  (eval "$ac_compile") 2>&5
4058  ac_status=$?
4059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060  test $ac_status = 0; }; then :
4061  for ac_file in conftest.o conftest.obj conftest.*; do
4062  test -f "$ac_file" || continue;
4063  case $ac_file in
4064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066       break;;
4067  esac
4068done
4069else
4070  $as_echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075as_fn_error "cannot compute suffix of object files: cannot compile
4076See \`config.log' for more details." "$LINENO" 5; }
4077fi
4078rm -f conftest.$ac_cv_objext conftest.$ac_ext
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081$as_echo "$ac_cv_objext" >&6; }
4082OBJEXT=$ac_cv_objext
4083ac_objext=$OBJEXT
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091
4092int
4093main ()
4094{
4095#ifndef __GNUC__
4096       choke me
4097#endif
4098
4099  ;
4100  return 0;
4101}
4102_ACEOF
4103if ac_fn_c_try_compile "$LINENO"; then :
4104  ac_compiler_gnu=yes
4105else
4106  ac_compiler_gnu=no
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114if test $ac_compiler_gnu = yes; then
4115  GCC=yes
4116else
4117  GCC=
4118fi
4119ac_test_CFLAGS=${CFLAGS+set}
4120ac_save_CFLAGS=$CFLAGS
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122$as_echo_n "checking whether $CC accepts -g... " >&6; }
4123if test "${ac_cv_prog_cc_g+set}" = set; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  ac_save_c_werror_flag=$ac_c_werror_flag
4127   ac_c_werror_flag=yes
4128   ac_cv_prog_cc_g=no
4129   CFLAGS="-g"
4130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132
4133int
4134main ()
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142  ac_cv_prog_cc_g=yes
4143else
4144  CFLAGS=""
4145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"; then :
4157
4158else
4159  ac_c_werror_flag=$ac_save_c_werror_flag
4160	 CFLAGS="-g"
4161	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163
4164int
4165main ()
4166{
4167
4168  ;
4169  return 0;
4170}
4171_ACEOF
4172if ac_fn_c_try_compile "$LINENO"; then :
4173  ac_cv_prog_cc_g=yes
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180   ac_c_werror_flag=$ac_save_c_werror_flag
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183$as_echo "$ac_cv_prog_cc_g" >&6; }
4184if test "$ac_test_CFLAGS" = set; then
4185  CFLAGS=$ac_save_CFLAGS
4186elif test $ac_cv_prog_cc_g = yes; then
4187  if test "$GCC" = yes; then
4188    CFLAGS="-g -O2"
4189  else
4190    CFLAGS="-g"
4191  fi
4192else
4193  if test "$GCC" = yes; then
4194    CFLAGS="-O2"
4195  else
4196    CFLAGS=
4197  fi
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201if test "${ac_cv_prog_cc_c89+set}" = set; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  ac_cv_prog_cc_c89=no
4205ac_save_CC=$CC
4206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208#include <stdarg.h>
4209#include <stdio.h>
4210#include <sys/types.h>
4211#include <sys/stat.h>
4212/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4213struct buf { int x; };
4214FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215static char *e (p, i)
4216     char **p;
4217     int i;
4218{
4219  return p[i];
4220}
4221static char *f (char * (*g) (char **, int), char **p, ...)
4222{
4223  char *s;
4224  va_list v;
4225  va_start (v,p);
4226  s = g (p, va_arg (v,int));
4227  va_end (v);
4228  return s;
4229}
4230
4231/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4232   function prototypes and stuff, but not '\xHH' hex character constants.
4233   These don't provoke an error unfortunately, instead are silently treated
4234   as 'x'.  The following induces an error, until -std is added to get
4235   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4236   array size at least.  It's necessary to write '\x00'==0 to get something
4237   that's true only with -std.  */
4238int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239
4240/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241   inside strings and character constants.  */
4242#define FOO(x) 'x'
4243int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244
4245int test (int i, double x);
4246struct s1 {int (*f) (int a);};
4247struct s2 {int (*f) (double a);};
4248int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249int argc;
4250char **argv;
4251int
4252main ()
4253{
4254return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261do
4262  CC="$ac_save_CC $ac_arg"
4263  if ac_fn_c_try_compile "$LINENO"; then :
4264  ac_cv_prog_cc_c89=$ac_arg
4265fi
4266rm -f core conftest.err conftest.$ac_objext
4267  test "x$ac_cv_prog_cc_c89" != "xno" && break
4268done
4269rm -f conftest.$ac_ext
4270CC=$ac_save_CC
4271
4272fi
4273# AC_CACHE_VAL
4274case "x$ac_cv_prog_cc_c89" in
4275  x)
4276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277$as_echo "none needed" >&6; } ;;
4278  xno)
4279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280$as_echo "unsupported" >&6; } ;;
4281  *)
4282    CC="$CC $ac_cv_prog_cc_c89"
4283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285esac
4286if test "x$ac_cv_prog_cc_c89" != xno; then :
4287
4288fi
4289
4290ac_ext=c
4291ac_cpp='$CPP $CPPFLAGS'
4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295DEPDIR="${am__leading_dot}deps"
4296
4297ac_config_commands="$ac_config_commands depfiles"
4298
4299
4300am_make=${MAKE-make}
4301cat > confinc << 'END'
4302am__doit:
4303	@echo this is the am__doit target
4304.PHONY: am__doit
4305END
4306# If we don't find an include directive, just comment out the code.
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4308$as_echo_n "checking for style of include used by $am_make... " >&6; }
4309am__include="#"
4310am__quote=
4311_am_result=none
4312# First try GNU make style include.
4313echo "include confinc" > confmf
4314# Ignore all kinds of additional output from `make'.
4315case `$am_make -s -f confmf 2> /dev/null` in #(
4316*the\ am__doit\ target*)
4317  am__include=include
4318  am__quote=
4319  _am_result=GNU
4320  ;;
4321esac
4322# Now try BSD make style include.
4323if test "$am__include" = "#"; then
4324   echo '.include "confinc"' > confmf
4325   case `$am_make -s -f confmf 2> /dev/null` in #(
4326   *the\ am__doit\ target*)
4327     am__include=.include
4328     am__quote="\""
4329     _am_result=BSD
4330     ;;
4331   esac
4332fi
4333
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4336$as_echo "$_am_result" >&6; }
4337rm -f confinc confmf
4338
4339# Check whether --enable-dependency-tracking was given.
4340if test "${enable_dependency_tracking+set}" = set; then :
4341  enableval=$enable_dependency_tracking;
4342fi
4343
4344if test "x$enable_dependency_tracking" != xno; then
4345  am_depcomp="$ac_aux_dir/depcomp"
4346  AMDEPBACKSLASH='\'
4347fi
4348 if test "x$enable_dependency_tracking" != xno; then
4349  AMDEP_TRUE=
4350  AMDEP_FALSE='#'
4351else
4352  AMDEP_TRUE='#'
4353  AMDEP_FALSE=
4354fi
4355
4356
4357
4358depcc="$CC"   am_compiler_list=
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4361$as_echo_n "checking dependency style of $depcc... " >&6; }
4362if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4366  # We make a subdir and do the tests there.  Otherwise we can end up
4367  # making bogus files that we don't know about and never remove.  For
4368  # instance it was reported that on HP-UX the gcc test will end up
4369  # making a dummy file named `D' -- because `-MD' means `put the output
4370  # in D'.
4371  mkdir conftest.dir
4372  # Copy depcomp to subdir because otherwise we won't find it if we're
4373  # using a relative directory.
4374  cp "$am_depcomp" conftest.dir
4375  cd conftest.dir
4376  # We will build objects and dependencies in a subdirectory because
4377  # it helps to detect inapplicable dependency modes.  For instance
4378  # both Tru64's cc and ICC support -MD to output dependencies as a
4379  # side effect of compilation, but ICC will put the dependencies in
4380  # the current directory while Tru64 will put them in the object
4381  # directory.
4382  mkdir sub
4383
4384  am_cv_CC_dependencies_compiler_type=none
4385  if test "$am_compiler_list" = ""; then
4386     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387  fi
4388  am__universal=false
4389  case " $depcc " in #(
4390     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4391     esac
4392
4393  for depmode in $am_compiler_list; do
4394    # Setup a source with many dependencies, because some compilers
4395    # like to wrap large dependency lists on column 80 (with \), and
4396    # we should not choose a depcomp mode which is confused by this.
4397    #
4398    # We need to recreate these files for each test, as the compiler may
4399    # overwrite some of them when testing with obscure command lines.
4400    # This happens at least with the AIX C compiler.
4401    : > sub/conftest.c
4402    for i in 1 2 3 4 5 6; do
4403      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4404      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4405      # Solaris 8's {/usr,}/bin/sh.
4406      touch sub/conftst$i.h
4407    done
4408    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4410    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4411    # mode.  It turns out that the SunPro C++ compiler does not properly
4412    # handle `-M -o', and we need to detect this.  Also, some Intel
4413    # versions had trouble with output in subdirs
4414    am__obj=sub/conftest.${OBJEXT-o}
4415    am__minus_obj="-o $am__obj"
4416    case $depmode in
4417    gcc)
4418      # This depmode causes a compiler race in universal mode.
4419      test "$am__universal" = false || continue
4420      ;;
4421    nosideeffect)
4422      # after this tag, mechanisms are not by side-effect, so they'll
4423      # only be used when explicitly requested
4424      if test "x$enable_dependency_tracking" = xyes; then
4425	continue
4426      else
4427	break
4428      fi
4429      ;;
4430    msvisualcpp | msvcmsys)
4431      # This compiler won't grok `-c -o', but also, the minuso test has
4432      # not run yet.  These depmodes are late enough in the game, and
4433      # so weak that their functioning should not be impacted.
4434      am__obj=conftest.${OBJEXT-o}
4435      am__minus_obj=
4436      ;;
4437    none) break ;;
4438    esac
4439    if depmode=$depmode \
4440       source=sub/conftest.c object=$am__obj \
4441       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4443         >/dev/null 2>conftest.err &&
4444       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4445       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4446       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4447       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4448      # icc doesn't choke on unknown options, it will just issue warnings
4449      # or remarks (even with -Werror).  So we grep stderr for any message
4450      # that says an option was ignored or not supported.
4451      # When given -MP, icc 7.0 and 7.1 complain thusly:
4452      #   icc: Command line warning: ignoring option '-M'; no argument required
4453      # The diagnosis changed in icc 8.0:
4454      #   icc: Command line remark: option '-MP' not supported
4455      if (grep 'ignoring option' conftest.err ||
4456          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4457        am_cv_CC_dependencies_compiler_type=$depmode
4458        break
4459      fi
4460    fi
4461  done
4462
4463  cd ..
4464  rm -rf conftest.dir
4465else
4466  am_cv_CC_dependencies_compiler_type=none
4467fi
4468
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4471$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4472CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473
4474 if
4475  test "x$enable_dependency_tracking" != xno \
4476  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4477  am__fastdepCC_TRUE=
4478  am__fastdepCC_FALSE='#'
4479else
4480  am__fastdepCC_TRUE='#'
4481  am__fastdepCC_FALSE=
4482fi
4483
4484
4485ac_ext=cpp
4486ac_cpp='$CXXCPP $CPPFLAGS'
4487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4490if test -z "$CXX"; then
4491  if test -n "$CCC"; then
4492    CXX=$CCC
4493  else
4494    if test -n "$ac_tool_prefix"; then
4495  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4496  do
4497    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
4501if test "${ac_cv_prog_CXX+set}" = set; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if test -n "$CXX"; then
4505  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510  IFS=$as_save_IFS
4511  test -z "$as_dir" && as_dir=.
4512    for ac_exec_ext in '' $ac_executable_extensions; do
4513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516    break 2
4517  fi
4518done
4519  done
4520IFS=$as_save_IFS
4521
4522fi
4523fi
4524CXX=$ac_cv_prog_CXX
4525if test -n "$CXX"; then
4526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4527$as_echo "$CXX" >&6; }
4528else
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531fi
4532
4533
4534    test -n "$CXX" && break
4535  done
4536fi
4537if test -z "$CXX"; then
4538  ac_ct_CXX=$CXX
4539  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4540do
4541  # Extract the first word of "$ac_prog", so it can be a program name with args.
4542set dummy $ac_prog; ac_word=$2
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  if test -n "$ac_ct_CXX"; then
4549  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558    ac_cv_prog_ac_ct_CXX="$ac_prog"
4559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563  done
4564IFS=$as_save_IFS
4565
4566fi
4567fi
4568ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4569if test -n "$ac_ct_CXX"; then
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4571$as_echo "$ac_ct_CXX" >&6; }
4572else
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576
4577
4578  test -n "$ac_ct_CXX" && break
4579done
4580
4581  if test "x$ac_ct_CXX" = x; then
4582    CXX="g++"
4583  else
4584    case $cross_compiling:$ac_tool_warned in
4585yes:)
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588ac_tool_warned=yes ;;
4589esac
4590    CXX=$ac_ct_CXX
4591  fi
4592fi
4593
4594  fi
4595fi
4596# Provide some information about the compiler.
4597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4598set X $ac_compile
4599ac_compiler=$2
4600for ac_option in --version -v -V -qversion; do
4601  { { ac_try="$ac_compiler $ac_option >&5"
4602case "(($ac_try" in
4603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604  *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4609  ac_status=$?
4610  if test -s conftest.err; then
4611    sed '10a\
4612... rest of stderr output deleted ...
4613         10q' conftest.err >conftest.er1
4614    cat conftest.er1 >&5
4615  fi
4616  rm -f conftest.er1 conftest.err
4617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618  test $ac_status = 0; }
4619done
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4622$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4623if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h.  */
4628
4629int
4630main ()
4631{
4632#ifndef __GNUC__
4633       choke me
4634#endif
4635
4636  ;
4637  return 0;
4638}
4639_ACEOF
4640if ac_fn_cxx_try_compile "$LINENO"; then :
4641  ac_compiler_gnu=yes
4642else
4643  ac_compiler_gnu=no
4644fi
4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4650$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4651if test $ac_compiler_gnu = yes; then
4652  GXX=yes
4653else
4654  GXX=
4655fi
4656ac_test_CXXFLAGS=${CXXFLAGS+set}
4657ac_save_CXXFLAGS=$CXXFLAGS
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4659$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4660if test "${ac_cv_prog_cxx_g+set}" = set; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4664   ac_cxx_werror_flag=yes
4665   ac_cv_prog_cxx_g=no
4666   CXXFLAGS="-g"
4667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678if ac_fn_cxx_try_compile "$LINENO"; then :
4679  ac_cv_prog_cxx_g=yes
4680else
4681  CXXFLAGS=""
4682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684
4685int
4686main ()
4687{
4688
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693if ac_fn_cxx_try_compile "$LINENO"; then :
4694
4695else
4696  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4697	 CXXFLAGS="-g"
4698	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h.  */
4700
4701int
4702main ()
4703{
4704
4705  ;
4706  return 0;
4707}
4708_ACEOF
4709if ac_fn_cxx_try_compile "$LINENO"; then :
4710  ac_cv_prog_cxx_g=yes
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi
4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4720$as_echo "$ac_cv_prog_cxx_g" >&6; }
4721if test "$ac_test_CXXFLAGS" = set; then
4722  CXXFLAGS=$ac_save_CXXFLAGS
4723elif test $ac_cv_prog_cxx_g = yes; then
4724  if test "$GXX" = yes; then
4725    CXXFLAGS="-g -O2"
4726  else
4727    CXXFLAGS="-g"
4728  fi
4729else
4730  if test "$GXX" = yes; then
4731    CXXFLAGS="-O2"
4732  else
4733    CXXFLAGS=
4734  fi
4735fi
4736ac_ext=c
4737ac_cpp='$CPP $CPPFLAGS'
4738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742depcc="$CXX"  am_compiler_list=
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4745$as_echo_n "checking dependency style of $depcc... " >&6; }
4746if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4750  # We make a subdir and do the tests there.  Otherwise we can end up
4751  # making bogus files that we don't know about and never remove.  For
4752  # instance it was reported that on HP-UX the gcc test will end up
4753  # making a dummy file named `D' -- because `-MD' means `put the output
4754  # in D'.
4755  mkdir conftest.dir
4756  # Copy depcomp to subdir because otherwise we won't find it if we're
4757  # using a relative directory.
4758  cp "$am_depcomp" conftest.dir
4759  cd conftest.dir
4760  # We will build objects and dependencies in a subdirectory because
4761  # it helps to detect inapplicable dependency modes.  For instance
4762  # both Tru64's cc and ICC support -MD to output dependencies as a
4763  # side effect of compilation, but ICC will put the dependencies in
4764  # the current directory while Tru64 will put them in the object
4765  # directory.
4766  mkdir sub
4767
4768  am_cv_CXX_dependencies_compiler_type=none
4769  if test "$am_compiler_list" = ""; then
4770     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4771  fi
4772  am__universal=false
4773  case " $depcc " in #(
4774     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4775     esac
4776
4777  for depmode in $am_compiler_list; do
4778    # Setup a source with many dependencies, because some compilers
4779    # like to wrap large dependency lists on column 80 (with \), and
4780    # we should not choose a depcomp mode which is confused by this.
4781    #
4782    # We need to recreate these files for each test, as the compiler may
4783    # overwrite some of them when testing with obscure command lines.
4784    # This happens at least with the AIX C compiler.
4785    : > sub/conftest.c
4786    for i in 1 2 3 4 5 6; do
4787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4788      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4789      # Solaris 8's {/usr,}/bin/sh.
4790      touch sub/conftst$i.h
4791    done
4792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4793
4794    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4795    # mode.  It turns out that the SunPro C++ compiler does not properly
4796    # handle `-M -o', and we need to detect this.  Also, some Intel
4797    # versions had trouble with output in subdirs
4798    am__obj=sub/conftest.${OBJEXT-o}
4799    am__minus_obj="-o $am__obj"
4800    case $depmode in
4801    gcc)
4802      # This depmode causes a compiler race in universal mode.
4803      test "$am__universal" = false || continue
4804      ;;
4805    nosideeffect)
4806      # after this tag, mechanisms are not by side-effect, so they'll
4807      # only be used when explicitly requested
4808      if test "x$enable_dependency_tracking" = xyes; then
4809	continue
4810      else
4811	break
4812      fi
4813      ;;
4814    msvisualcpp | msvcmsys)
4815      # This compiler won't grok `-c -o', but also, the minuso test has
4816      # not run yet.  These depmodes are late enough in the game, and
4817      # so weak that their functioning should not be impacted.
4818      am__obj=conftest.${OBJEXT-o}
4819      am__minus_obj=
4820      ;;
4821    none) break ;;
4822    esac
4823    if depmode=$depmode \
4824       source=sub/conftest.c object=$am__obj \
4825       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4826       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4827         >/dev/null 2>conftest.err &&
4828       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4829       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4830       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4831       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4832      # icc doesn't choke on unknown options, it will just issue warnings
4833      # or remarks (even with -Werror).  So we grep stderr for any message
4834      # that says an option was ignored or not supported.
4835      # When given -MP, icc 7.0 and 7.1 complain thusly:
4836      #   icc: Command line warning: ignoring option '-M'; no argument required
4837      # The diagnosis changed in icc 8.0:
4838      #   icc: Command line remark: option '-MP' not supported
4839      if (grep 'ignoring option' conftest.err ||
4840          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4841        am_cv_CXX_dependencies_compiler_type=$depmode
4842        break
4843      fi
4844    fi
4845  done
4846
4847  cd ..
4848  rm -rf conftest.dir
4849else
4850  am_cv_CXX_dependencies_compiler_type=none
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4855$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4856CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4857
4858 if
4859  test "x$enable_dependency_tracking" != xno \
4860  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4861  am__fastdepCXX_TRUE=
4862  am__fastdepCXX_FALSE='#'
4863else
4864  am__fastdepCXX_TRUE='#'
4865  am__fastdepCXX_FALSE=
4866fi
4867
4868
4869
4870
4871save_CC="$CC"
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4873$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4874if test "${ac_cv_prog_cc_c99+set}" = set; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  ac_cv_prog_cc_c99=no
4878ac_save_CC=$CC
4879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881#include <stdarg.h>
4882#include <stdbool.h>
4883#include <stdlib.h>
4884#include <wchar.h>
4885#include <stdio.h>
4886
4887// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4888#define debug(...) fprintf (stderr, __VA_ARGS__)
4889#define showlist(...) puts (#__VA_ARGS__)
4890#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4891static void
4892test_varargs_macros (void)
4893{
4894  int x = 1234;
4895  int y = 5678;
4896  debug ("Flag");
4897  debug ("X = %d\n", x);
4898  showlist (The first, second, and third items.);
4899  report (x>y, "x is %d but y is %d", x, y);
4900}
4901
4902// Check long long types.
4903#define BIG64 18446744073709551615ull
4904#define BIG32 4294967295ul
4905#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4906#if !BIG_OK
4907  your preprocessor is broken;
4908#endif
4909#if BIG_OK
4910#else
4911  your preprocessor is broken;
4912#endif
4913static long long int bignum = -9223372036854775807LL;
4914static unsigned long long int ubignum = BIG64;
4915
4916struct incomplete_array
4917{
4918  int datasize;
4919  double data[];
4920};
4921
4922struct named_init {
4923  int number;
4924  const wchar_t *name;
4925  double average;
4926};
4927
4928typedef const char *ccp;
4929
4930static inline int
4931test_restrict (ccp restrict text)
4932{
4933  // See if C++-style comments work.
4934  // Iterate through items via the restricted pointer.
4935  // Also check for declarations in for loops.
4936  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4937    continue;
4938  return 0;
4939}
4940
4941// Check varargs and va_copy.
4942static void
4943test_varargs (const char *format, ...)
4944{
4945  va_list args;
4946  va_start (args, format);
4947  va_list args_copy;
4948  va_copy (args_copy, args);
4949
4950  const char *str;
4951  int number;
4952  float fnumber;
4953
4954  while (*format)
4955    {
4956      switch (*format++)
4957	{
4958	case 's': // string
4959	  str = va_arg (args_copy, const char *);
4960	  break;
4961	case 'd': // int
4962	  number = va_arg (args_copy, int);
4963	  break;
4964	case 'f': // float
4965	  fnumber = va_arg (args_copy, double);
4966	  break;
4967	default:
4968	  break;
4969	}
4970    }
4971  va_end (args_copy);
4972  va_end (args);
4973}
4974
4975int
4976main ()
4977{
4978
4979  // Check bool.
4980  _Bool success = false;
4981
4982  // Check restrict.
4983  if (test_restrict ("String literal") == 0)
4984    success = true;
4985  char *restrict newvar = "Another string";
4986
4987  // Check varargs.
4988  test_varargs ("s, d' f .", "string", 65, 34.234);
4989  test_varargs_macros ();
4990
4991  // Check flexible array members.
4992  struct incomplete_array *ia =
4993    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4994  ia->datasize = 10;
4995  for (int i = 0; i < ia->datasize; ++i)
4996    ia->data[i] = i * 1.234;
4997
4998  // Check named initializers.
4999  struct named_init ni = {
5000    .number = 34,
5001    .name = L"Test wide string",
5002    .average = 543.34343,
5003  };
5004
5005  ni.number = 58;
5006
5007  int dynamic_array[ni.number];
5008  dynamic_array[ni.number - 1] = 543;
5009
5010  // work around unused variable warnings
5011  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5012	  || dynamic_array[ni.number - 1] != 543);
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5019do
5020  CC="$ac_save_CC $ac_arg"
5021  if ac_fn_c_try_compile "$LINENO"; then :
5022  ac_cv_prog_cc_c99=$ac_arg
5023fi
5024rm -f core conftest.err conftest.$ac_objext
5025  test "x$ac_cv_prog_cc_c99" != "xno" && break
5026done
5027rm -f conftest.$ac_ext
5028CC=$ac_save_CC
5029
5030fi
5031# AC_CACHE_VAL
5032case "x$ac_cv_prog_cc_c99" in
5033  x)
5034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035$as_echo "none needed" >&6; } ;;
5036  xno)
5037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038$as_echo "unsupported" >&6; } ;;
5039  *)
5040    CC="$CC $ac_cv_prog_cc_c99"
5041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5043esac
5044if test "x$ac_cv_prog_cc_c99" != xno; then :
5045
5046fi
5047
5048
5049CC="$save_CC"
5050
5051
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5058$as_echo_n "checking how to run the C preprocessor... " >&6; }
5059# On Suns, sometimes $CPP names a directory.
5060if test -n "$CPP" && test -d "$CPP"; then
5061  CPP=
5062fi
5063if test -z "$CPP"; then
5064  if test "${ac_cv_prog_CPP+set}" = set; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067      # Double quotes because CPP needs to be expanded
5068    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5069    do
5070      ac_preproc_ok=false
5071for ac_c_preproc_warn_flag in '' yes
5072do
5073  # Use a header file that comes with gcc, so configuring glibc
5074  # with a fresh cross-compiler works.
5075  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5076  # <limits.h> exists even on freestanding compilers.
5077  # On the NeXT, cc -E runs the code through the compiler's parser,
5078  # not just through cpp. "Syntax error" is here to catch this case.
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081#ifdef __STDC__
5082# include <limits.h>
5083#else
5084# include <assert.h>
5085#endif
5086		     Syntax error
5087_ACEOF
5088if ac_fn_c_try_cpp "$LINENO"; then :
5089
5090else
5091  # Broken: fails on valid input.
5092continue
5093fi
5094rm -f conftest.err conftest.$ac_ext
5095
5096  # OK, works on sane cases.  Now check whether nonexistent headers
5097  # can be detected and how.
5098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h.  */
5100#include <ac_nonexistent.h>
5101_ACEOF
5102if ac_fn_c_try_cpp "$LINENO"; then :
5103  # Broken: success on invalid input.
5104continue
5105else
5106  # Passes both tests.
5107ac_preproc_ok=:
5108break
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112done
5113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114rm -f conftest.err conftest.$ac_ext
5115if $ac_preproc_ok; then :
5116  break
5117fi
5118
5119    done
5120    ac_cv_prog_CPP=$CPP
5121
5122fi
5123  CPP=$ac_cv_prog_CPP
5124else
5125  ac_cv_prog_CPP=$CPP
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5128$as_echo "$CPP" >&6; }
5129ac_preproc_ok=false
5130for ac_c_preproc_warn_flag in '' yes
5131do
5132  # Use a header file that comes with gcc, so configuring glibc
5133  # with a fresh cross-compiler works.
5134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135  # <limits.h> exists even on freestanding compilers.
5136  # On the NeXT, cc -E runs the code through the compiler's parser,
5137  # not just through cpp. "Syntax error" is here to catch this case.
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140#ifdef __STDC__
5141# include <limits.h>
5142#else
5143# include <assert.h>
5144#endif
5145		     Syntax error
5146_ACEOF
5147if ac_fn_c_try_cpp "$LINENO"; then :
5148
5149else
5150  # Broken: fails on valid input.
5151continue
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155  # OK, works on sane cases.  Now check whether nonexistent headers
5156  # can be detected and how.
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159#include <ac_nonexistent.h>
5160_ACEOF
5161if ac_fn_c_try_cpp "$LINENO"; then :
5162  # Broken: success on invalid input.
5163continue
5164else
5165  # Passes both tests.
5166ac_preproc_ok=:
5167break
5168fi
5169rm -f conftest.err conftest.$ac_ext
5170
5171done
5172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173rm -f conftest.err conftest.$ac_ext
5174if $ac_preproc_ok; then :
5175
5176else
5177  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5179as_fn_error "C preprocessor \"$CPP\" fails sanity check
5180See \`config.log' for more details." "$LINENO" 5; }
5181fi
5182
5183ac_ext=c
5184ac_cpp='$CPP $CPPFLAGS'
5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188
5189
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5191$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5192if test "${ac_cv_path_GREP+set}" = set; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  if test -z "$GREP"; then
5196  ac_path_GREP_found=false
5197  # Loop through the user's path and test for each of PROGNAME-LIST
5198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_prog in grep ggrep; do
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5206      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5207# Check for GNU ac_path_GREP and select it if it is found.
5208  # Check for GNU $ac_path_GREP
5209case `"$ac_path_GREP" --version 2>&1` in
5210*GNU*)
5211  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5212*)
5213  ac_count=0
5214  $as_echo_n 0123456789 >"conftest.in"
5215  while :
5216  do
5217    cat "conftest.in" "conftest.in" >"conftest.tmp"
5218    mv "conftest.tmp" "conftest.in"
5219    cp "conftest.in" "conftest.nl"
5220    $as_echo 'GREP' >> "conftest.nl"
5221    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223    as_fn_arith $ac_count + 1 && ac_count=$as_val
5224    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5225      # Best one so far, save it but keep looking for a better one
5226      ac_cv_path_GREP="$ac_path_GREP"
5227      ac_path_GREP_max=$ac_count
5228    fi
5229    # 10*(2^10) chars as input seems more than enough
5230    test $ac_count -gt 10 && break
5231  done
5232  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233esac
5234
5235      $ac_path_GREP_found && break 3
5236    done
5237  done
5238  done
5239IFS=$as_save_IFS
5240  if test -z "$ac_cv_path_GREP"; then
5241    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5242  fi
5243else
5244  ac_cv_path_GREP=$GREP
5245fi
5246
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5249$as_echo "$ac_cv_path_GREP" >&6; }
5250 GREP="$ac_cv_path_GREP"
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5254$as_echo_n "checking for egrep... " >&6; }
5255if test "${ac_cv_path_EGREP+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5259   then ac_cv_path_EGREP="$GREP -E"
5260   else
5261     if test -z "$EGREP"; then
5262  ac_path_EGREP_found=false
5263  # Loop through the user's path and test for each of PROGNAME-LIST
5264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269    for ac_prog in egrep; do
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5272      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5273# Check for GNU ac_path_EGREP and select it if it is found.
5274  # Check for GNU $ac_path_EGREP
5275case `"$ac_path_EGREP" --version 2>&1` in
5276*GNU*)
5277  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5278*)
5279  ac_count=0
5280  $as_echo_n 0123456789 >"conftest.in"
5281  while :
5282  do
5283    cat "conftest.in" "conftest.in" >"conftest.tmp"
5284    mv "conftest.tmp" "conftest.in"
5285    cp "conftest.in" "conftest.nl"
5286    $as_echo 'EGREP' >> "conftest.nl"
5287    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289    as_fn_arith $ac_count + 1 && ac_count=$as_val
5290    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5291      # Best one so far, save it but keep looking for a better one
5292      ac_cv_path_EGREP="$ac_path_EGREP"
5293      ac_path_EGREP_max=$ac_count
5294    fi
5295    # 10*(2^10) chars as input seems more than enough
5296    test $ac_count -gt 10 && break
5297  done
5298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301      $ac_path_EGREP_found && break 3
5302    done
5303  done
5304  done
5305IFS=$as_save_IFS
5306  if test -z "$ac_cv_path_EGREP"; then
5307    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308  fi
5309else
5310  ac_cv_path_EGREP=$EGREP
5311fi
5312
5313   fi
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5316$as_echo "$ac_cv_path_EGREP" >&6; }
5317 EGREP="$ac_cv_path_EGREP"
5318
5319
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h.  */
5322#define _POSIX_C_SOURCE 200112L
5323              #include <unistd.h>
5324              #ifdef _POSIX_VERSION
5325              #if _POSIX_VERSION >= 200112L
5326              posix_2001_compliant
5327              #endif
5328              #endif
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332  $EGREP "posix_2001_compliant" >/dev/null 2>&1; then :
5333  posix_2001_compliant='yes'
5334else
5335  posix_2001_compliant='no'
5336fi
5337rm -f conftest*
5338
5339
5340for ac_prog in gawk mawk nawk awk
5341do
5342  # Extract the first word of "$ac_prog", so it can be a program name with args.
5343set dummy $ac_prog; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if test "${ac_cv_prog_AWK+set}" = set; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  if test -n "$AWK"; then
5350  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357    for ac_exec_ext in '' $ac_executable_extensions; do
5358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359    ac_cv_prog_AWK="$ac_prog"
5360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364  done
5365IFS=$as_save_IFS
5366
5367fi
5368fi
5369AWK=$ac_cv_prog_AWK
5370if test -n "$AWK"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5372$as_echo "$AWK" >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378
5379  test -n "$AWK" && break
5380done
5381
5382enable_dlopen=yes
5383
5384
5385
5386# Check whether --enable-static was given.
5387if test "${enable_static+set}" = set; then :
5388  enableval=$enable_static; p=${PACKAGE-default}
5389    case $enableval in
5390    yes) enable_static=yes ;;
5391    no) enable_static=no ;;
5392    *)
5393     enable_static=no
5394      # Look at the argument we got.  We use all the common list separators.
5395      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5396      for pkg in $enableval; do
5397	IFS="$lt_save_ifs"
5398	if test "X$pkg" = "X$p"; then
5399	  enable_static=yes
5400	fi
5401      done
5402      IFS="$lt_save_ifs"
5403      ;;
5404    esac
5405else
5406  enable_static=no
5407fi
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417# Check whether --enable-shared was given.
5418if test "${enable_shared+set}" = set; then :
5419  enableval=$enable_shared; p=${PACKAGE-default}
5420    case $enableval in
5421    yes) enable_shared=yes ;;
5422    no) enable_shared=no ;;
5423    *)
5424      enable_shared=no
5425      # Look at the argument we got.  We use all the common list separators.
5426      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5427      for pkg in $enableval; do
5428	IFS="$lt_save_ifs"
5429	if test "X$pkg" = "X$p"; then
5430	  enable_shared=yes
5431	fi
5432      done
5433      IFS="$lt_save_ifs"
5434      ;;
5435    esac
5436else
5437  enable_shared=yes
5438fi
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448case `pwd` in
5449  *\ * | *\	*)
5450    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5451$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5452esac
5453
5454
5455
5456macro_version='2.2.6b'
5457macro_revision='1.3017'
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471ltmain="$ac_aux_dir/ltmain.sh"
5472
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5474$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5475if test "${ac_cv_path_SED+set}" = set; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5479     for ac_i in 1 2 3 4 5 6 7; do
5480       ac_script="$ac_script$as_nl$ac_script"
5481     done
5482     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5483     { ac_script=; unset ac_script;}
5484     if test -z "$SED"; then
5485  ac_path_SED_found=false
5486  # Loop through the user's path and test for each of PROGNAME-LIST
5487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490  IFS=$as_save_IFS
5491  test -z "$as_dir" && as_dir=.
5492    for ac_prog in sed gsed; do
5493    for ac_exec_ext in '' $ac_executable_extensions; do
5494      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5495      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5496# Check for GNU ac_path_SED and select it if it is found.
5497  # Check for GNU $ac_path_SED
5498case `"$ac_path_SED" --version 2>&1` in
5499*GNU*)
5500  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5501*)
5502  ac_count=0
5503  $as_echo_n 0123456789 >"conftest.in"
5504  while :
5505  do
5506    cat "conftest.in" "conftest.in" >"conftest.tmp"
5507    mv "conftest.tmp" "conftest.in"
5508    cp "conftest.in" "conftest.nl"
5509    $as_echo '' >> "conftest.nl"
5510    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5511    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5512    as_fn_arith $ac_count + 1 && ac_count=$as_val
5513    if test $ac_count -gt ${ac_path_SED_max-0}; then
5514      # Best one so far, save it but keep looking for a better one
5515      ac_cv_path_SED="$ac_path_SED"
5516      ac_path_SED_max=$ac_count
5517    fi
5518    # 10*(2^10) chars as input seems more than enough
5519    test $ac_count -gt 10 && break
5520  done
5521  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5522esac
5523
5524      $ac_path_SED_found && break 3
5525    done
5526  done
5527  done
5528IFS=$as_save_IFS
5529  if test -z "$ac_cv_path_SED"; then
5530    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5531  fi
5532else
5533  ac_cv_path_SED=$SED
5534fi
5535
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5538$as_echo "$ac_cv_path_SED" >&6; }
5539 SED="$ac_cv_path_SED"
5540  rm -f conftest.sed
5541
5542test -z "$SED" && SED=sed
5543Xsed="$SED -e 1s/^X//"
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5556$as_echo_n "checking for fgrep... " >&6; }
5557if test "${ac_cv_path_FGREP+set}" = set; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5561   then ac_cv_path_FGREP="$GREP -F"
5562   else
5563     if test -z "$FGREP"; then
5564  ac_path_FGREP_found=false
5565  # Loop through the user's path and test for each of PROGNAME-LIST
5566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5568do
5569  IFS=$as_save_IFS
5570  test -z "$as_dir" && as_dir=.
5571    for ac_prog in fgrep; do
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5574      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5575# Check for GNU ac_path_FGREP and select it if it is found.
5576  # Check for GNU $ac_path_FGREP
5577case `"$ac_path_FGREP" --version 2>&1` in
5578*GNU*)
5579  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5580*)
5581  ac_count=0
5582  $as_echo_n 0123456789 >"conftest.in"
5583  while :
5584  do
5585    cat "conftest.in" "conftest.in" >"conftest.tmp"
5586    mv "conftest.tmp" "conftest.in"
5587    cp "conftest.in" "conftest.nl"
5588    $as_echo 'FGREP' >> "conftest.nl"
5589    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5590    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5591    as_fn_arith $ac_count + 1 && ac_count=$as_val
5592    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5593      # Best one so far, save it but keep looking for a better one
5594      ac_cv_path_FGREP="$ac_path_FGREP"
5595      ac_path_FGREP_max=$ac_count
5596    fi
5597    # 10*(2^10) chars as input seems more than enough
5598    test $ac_count -gt 10 && break
5599  done
5600  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5601esac
5602
5603      $ac_path_FGREP_found && break 3
5604    done
5605  done
5606  done
5607IFS=$as_save_IFS
5608  if test -z "$ac_cv_path_FGREP"; then
5609    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5610  fi
5611else
5612  ac_cv_path_FGREP=$FGREP
5613fi
5614
5615   fi
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5618$as_echo "$ac_cv_path_FGREP" >&6; }
5619 FGREP="$ac_cv_path_FGREP"
5620
5621
5622test -z "$GREP" && GREP=grep
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642# Check whether --with-gnu-ld was given.
5643if test "${with_gnu_ld+set}" = set; then :
5644  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5645else
5646  with_gnu_ld=no
5647fi
5648
5649ac_prog=ld
5650if test "$GCC" = yes; then
5651  # Check if gcc -print-prog-name=ld gives a path.
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5653$as_echo_n "checking for ld used by $CC... " >&6; }
5654  case $host in
5655  *-*-mingw*)
5656    # gcc leaves a trailing carriage return which upsets mingw
5657    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5658  *)
5659    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5660  esac
5661  case $ac_prog in
5662    # Accept absolute paths.
5663    [\\/]* | ?:[\\/]*)
5664      re_direlt='/[^/][^/]*/\.\./'
5665      # Canonicalize the pathname of ld
5666      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5667      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5668	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5669      done
5670      test -z "$LD" && LD="$ac_prog"
5671      ;;
5672  "")
5673    # If it fails, then pretend we aren't using GCC.
5674    ac_prog=ld
5675    ;;
5676  *)
5677    # If it is relative, then search for the first ld in PATH.
5678    with_gnu_ld=unknown
5679    ;;
5680  esac
5681elif test "$with_gnu_ld" = yes; then
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5683$as_echo_n "checking for GNU ld... " >&6; }
5684else
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5686$as_echo_n "checking for non-GNU ld... " >&6; }
5687fi
5688if test "${lt_cv_path_LD+set}" = set; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  if test -z "$LD"; then
5692  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693  for ac_dir in $PATH; do
5694    IFS="$lt_save_ifs"
5695    test -z "$ac_dir" && ac_dir=.
5696    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5697      lt_cv_path_LD="$ac_dir/$ac_prog"
5698      # Check to see if the program is GNU ld.  I'd rather use --version,
5699      # but apparently some variants of GNU ld only accept -v.
5700      # Break only if it was the GNU/non-GNU ld that we prefer.
5701      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5702      *GNU* | *'with BFD'*)
5703	test "$with_gnu_ld" != no && break
5704	;;
5705      *)
5706	test "$with_gnu_ld" != yes && break
5707	;;
5708      esac
5709    fi
5710  done
5711  IFS="$lt_save_ifs"
5712else
5713  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5714fi
5715fi
5716
5717LD="$lt_cv_path_LD"
5718if test -n "$LD"; then
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5720$as_echo "$LD" >&6; }
5721else
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5727$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5728if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5732case `$LD -v 2>&1 </dev/null` in
5733*GNU* | *'with BFD'*)
5734  lt_cv_prog_gnu_ld=yes
5735  ;;
5736*)
5737  lt_cv_prog_gnu_ld=no
5738  ;;
5739esac
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5742$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5743with_gnu_ld=$lt_cv_prog_gnu_ld
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5754$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5755if test "${lt_cv_path_NM+set}" = set; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  if test -n "$NM"; then
5759  # Let the user override the test.
5760  lt_cv_path_NM="$NM"
5761else
5762  lt_nm_to_check="${ac_tool_prefix}nm"
5763  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5764    lt_nm_to_check="$lt_nm_to_check nm"
5765  fi
5766  for lt_tmp_nm in $lt_nm_to_check; do
5767    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5768    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5769      IFS="$lt_save_ifs"
5770      test -z "$ac_dir" && ac_dir=.
5771      tmp_nm="$ac_dir/$lt_tmp_nm"
5772      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5773	# Check to see if the nm accepts a BSD-compat flag.
5774	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5775	#   nm: unknown option "B" ignored
5776	# Tru64's nm complains that /dev/null is an invalid object file
5777	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5778	*/dev/null* | *'Invalid file or object type'*)
5779	  lt_cv_path_NM="$tmp_nm -B"
5780	  break
5781	  ;;
5782	*)
5783	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5784	  */dev/null*)
5785	    lt_cv_path_NM="$tmp_nm -p"
5786	    break
5787	    ;;
5788	  *)
5789	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5790	    continue # so that we can try to find one that supports BSD flags
5791	    ;;
5792	  esac
5793	  ;;
5794	esac
5795      fi
5796    done
5797    IFS="$lt_save_ifs"
5798  done
5799  : ${lt_cv_path_NM=no}
5800fi
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5803$as_echo "$lt_cv_path_NM" >&6; }
5804if test "$lt_cv_path_NM" != "no"; then
5805  NM="$lt_cv_path_NM"
5806else
5807  # Didn't find any BSD compatible name lister, look for dumpbin.
5808  if test -n "$ac_tool_prefix"; then
5809  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5810  do
5811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$DUMPBIN"; then
5819  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838DUMPBIN=$ac_cv_prog_DUMPBIN
5839if test -n "$DUMPBIN"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5841$as_echo "$DUMPBIN" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848    test -n "$DUMPBIN" && break
5849  done
5850fi
5851if test -z "$DUMPBIN"; then
5852  ac_ct_DUMPBIN=$DUMPBIN
5853  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5854do
5855  # Extract the first word of "$ac_prog", so it can be a program name with args.
5856set dummy $ac_prog; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  if test -n "$ac_ct_DUMPBIN"; then
5863  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868  IFS=$as_save_IFS
5869  test -z "$as_dir" && as_dir=.
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5883if test -n "$ac_ct_DUMPBIN"; then
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5885$as_echo "$ac_ct_DUMPBIN" >&6; }
5886else
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892  test -n "$ac_ct_DUMPBIN" && break
5893done
5894
5895  if test "x$ac_ct_DUMPBIN" = x; then
5896    DUMPBIN=":"
5897  else
5898    case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904    DUMPBIN=$ac_ct_DUMPBIN
5905  fi
5906fi
5907
5908
5909  if test "$DUMPBIN" != ":"; then
5910    NM="$DUMPBIN"
5911  fi
5912fi
5913test -z "$NM" && NM=nm
5914
5915
5916
5917
5918
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5921$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5922if test "${lt_cv_nm_interface+set}" = set; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  lt_cv_nm_interface="BSD nm"
5926  echo "int some_variable = 0;" > conftest.$ac_ext
5927  (eval echo "\"\$as_me:5927: $ac_compile\"" >&5)
5928  (eval "$ac_compile" 2>conftest.err)
5929  cat conftest.err >&5
5930  (eval echo "\"\$as_me:5930: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5931  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5932  cat conftest.err >&5
5933  (eval echo "\"\$as_me:5933: output\"" >&5)
5934  cat conftest.out >&5
5935  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5936    lt_cv_nm_interface="MS dumpbin"
5937  fi
5938  rm -f conftest*
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5941$as_echo "$lt_cv_nm_interface" >&6; }
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5944$as_echo_n "checking whether ln -s works... " >&6; }
5945LN_S=$as_ln_s
5946if test "$LN_S" = "ln -s"; then
5947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5948$as_echo "yes" >&6; }
5949else
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5951$as_echo "no, using $LN_S" >&6; }
5952fi
5953
5954# find the maximum length of command line arguments
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5956$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5957if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960    i=0
5961  teststring="ABCD"
5962
5963  case $build_os in
5964  msdosdjgpp*)
5965    # On DJGPP, this test can blow up pretty badly due to problems in libc
5966    # (any single argument exceeding 2000 bytes causes a buffer overrun
5967    # during glob expansion).  Even if it were fixed, the result of this
5968    # check would be larger than it should be.
5969    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5970    ;;
5971
5972  gnu*)
5973    # Under GNU Hurd, this test is not required because there is
5974    # no limit to the length of command line arguments.
5975    # Libtool will interpret -1 as no limit whatsoever
5976    lt_cv_sys_max_cmd_len=-1;
5977    ;;
5978
5979  cygwin* | mingw* | cegcc*)
5980    # On Win9x/ME, this test blows up -- it succeeds, but takes
5981    # about 5 minutes as the teststring grows exponentially.
5982    # Worse, since 9x/ME are not pre-emptively multitasking,
5983    # you end up with a "frozen" computer, even though with patience
5984    # the test eventually succeeds (with a max line length of 256k).
5985    # Instead, let's just punt: use the minimum linelength reported by
5986    # all of the supported platforms: 8192 (on NT/2K/XP).
5987    lt_cv_sys_max_cmd_len=8192;
5988    ;;
5989
5990  amigaos*)
5991    # On AmigaOS with pdksh, this test takes hours, literally.
5992    # So we just punt and use a minimum line length of 8192.
5993    lt_cv_sys_max_cmd_len=8192;
5994    ;;
5995
5996  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5997    # This has been around since 386BSD, at least.  Likely further.
5998    if test -x /sbin/sysctl; then
5999      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6000    elif test -x /usr/sbin/sysctl; then
6001      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6002    else
6003      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6004    fi
6005    # And add a safety zone
6006    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008    ;;
6009
6010  interix*)
6011    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6012    lt_cv_sys_max_cmd_len=196608
6013    ;;
6014
6015  osf*)
6016    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6017    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6018    # nice to cause kernel panics so lets avoid the loop below.
6019    # First set a reasonable default.
6020    lt_cv_sys_max_cmd_len=16384
6021    #
6022    if test -x /sbin/sysconfig; then
6023      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6024        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6025      esac
6026    fi
6027    ;;
6028  sco3.2v5*)
6029    lt_cv_sys_max_cmd_len=102400
6030    ;;
6031  sysv5* | sco5v6* | sysv4.2uw2*)
6032    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6033    if test -n "$kargmax"; then
6034      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6035    else
6036      lt_cv_sys_max_cmd_len=32768
6037    fi
6038    ;;
6039  *)
6040    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6041    if test -n "$lt_cv_sys_max_cmd_len"; then
6042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044    else
6045      # Make teststring a little bigger before we do anything with it.
6046      # a 1K string should be a reasonable start.
6047      for i in 1 2 3 4 5 6 7 8 ; do
6048        teststring=$teststring$teststring
6049      done
6050      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6051      # If test is not a shell built-in, we'll probably end up computing a
6052      # maximum length that is only half of the actual maximum length, but
6053      # we can't tell.
6054      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6055	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6056	      test $i != 17 # 1/2 MB should be enough
6057      do
6058        i=`expr $i + 1`
6059        teststring=$teststring$teststring
6060      done
6061      # Only check the string length outside the loop.
6062      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6063      teststring=
6064      # Add a significant safety factor because C++ compilers can tack on
6065      # massive amounts of additional arguments before passing them to the
6066      # linker.  It appears as though 1/2 is a usable value.
6067      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6068    fi
6069    ;;
6070  esac
6071
6072fi
6073
6074if test -n $lt_cv_sys_max_cmd_len ; then
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6076$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6077else
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6079$as_echo "none" >&6; }
6080fi
6081max_cmd_len=$lt_cv_sys_max_cmd_len
6082
6083
6084
6085
6086
6087
6088: ${CP="cp -f"}
6089: ${MV="mv -f"}
6090: ${RM="rm -f"}
6091
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6093$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6094# Try some XSI features
6095xsi_shell=no
6096( _lt_dummy="a/b/c"
6097  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6098      = c,a/b,, \
6099    && eval 'test $(( 1 + 1 )) -eq 2 \
6100    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6101  && xsi_shell=yes
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6103$as_echo "$xsi_shell" >&6; }
6104
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6107$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6108lt_shell_append=no
6109( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6110    >/dev/null 2>&1 \
6111  && lt_shell_append=yes
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6113$as_echo "$lt_shell_append" >&6; }
6114
6115
6116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6117  lt_unset=unset
6118else
6119  lt_unset=false
6120fi
6121
6122
6123
6124
6125
6126# test EBCDIC or ASCII
6127case `echo X|tr X '\101'` in
6128 A) # ASCII based system
6129    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6130  lt_SP2NL='tr \040 \012'
6131  lt_NL2SP='tr \015\012 \040\040'
6132  ;;
6133 *) # EBCDIC based system
6134  lt_SP2NL='tr \100 \n'
6135  lt_NL2SP='tr \r\n \100\100'
6136  ;;
6137esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6148$as_echo_n "checking for $LD option to reload object files... " >&6; }
6149if test "${lt_cv_ld_reload_flag+set}" = set; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  lt_cv_ld_reload_flag='-r'
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6155$as_echo "$lt_cv_ld_reload_flag" >&6; }
6156reload_flag=$lt_cv_ld_reload_flag
6157case $reload_flag in
6158"" | " "*) ;;
6159*) reload_flag=" $reload_flag" ;;
6160esac
6161reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162case $host_os in
6163  darwin*)
6164    if test "$GCC" = yes; then
6165      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6166    else
6167      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168    fi
6169    ;;
6170esac
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180if test -n "$ac_tool_prefix"; then
6181  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6182set dummy ${ac_tool_prefix}objdump; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  if test -n "$OBJDUMP"; then
6189  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194  IFS=$as_save_IFS
6195  test -z "$as_dir" && as_dir=.
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200    break 2
6201  fi
6202done
6203  done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208OBJDUMP=$ac_cv_prog_OBJDUMP
6209if test -n "$OBJDUMP"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6211$as_echo "$OBJDUMP" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218fi
6219if test -z "$ac_cv_prog_OBJDUMP"; then
6220  ac_ct_OBJDUMP=$OBJDUMP
6221  # Extract the first word of "objdump", so it can be a program name with args.
6222set dummy objdump; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$ac_ct_OBJDUMP"; then
6229  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6249if test -n "$ac_ct_OBJDUMP"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6251$as_echo "$ac_ct_OBJDUMP" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257  if test "x$ac_ct_OBJDUMP" = x; then
6258    OBJDUMP="false"
6259  else
6260    case $cross_compiling:$ac_tool_warned in
6261yes:)
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264ac_tool_warned=yes ;;
6265esac
6266    OBJDUMP=$ac_ct_OBJDUMP
6267  fi
6268else
6269  OBJDUMP="$ac_cv_prog_OBJDUMP"
6270fi
6271
6272test -z "$OBJDUMP" && OBJDUMP=objdump
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6283$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6284if test "${lt_cv_deplibs_check_method+set}" = set; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  lt_cv_file_magic_cmd='$MAGIC_CMD'
6288lt_cv_file_magic_test_file=
6289lt_cv_deplibs_check_method='unknown'
6290# Need to set the preceding variable on all platforms that support
6291# interlibrary dependencies.
6292# 'none' -- dependencies not supported.
6293# `unknown' -- same as none, but documents that we really don't know.
6294# 'pass_all' -- all dependencies passed with no checks.
6295# 'test_compile' -- check by making test program.
6296# 'file_magic [[regex]]' -- check by looking for files in library path
6297# which responds to the $file_magic_cmd with a given extended regex.
6298# If you have `file' or equivalent on your system and you're not sure
6299# whether `pass_all' will *always* work, you probably want this one.
6300
6301case $host_os in
6302aix[4-9]*)
6303  lt_cv_deplibs_check_method=pass_all
6304  ;;
6305
6306beos*)
6307  lt_cv_deplibs_check_method=pass_all
6308  ;;
6309
6310bsdi[45]*)
6311  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6312  lt_cv_file_magic_cmd='/usr/bin/file -L'
6313  lt_cv_file_magic_test_file=/shlib/libc.so
6314  ;;
6315
6316cygwin*)
6317  # func_win32_libid is a shell function defined in ltmain.sh
6318  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6319  lt_cv_file_magic_cmd='func_win32_libid'
6320  ;;
6321
6322mingw* | pw32*)
6323  # Base MSYS/MinGW do not provide the 'file' command needed by
6324  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6325  # unless we find 'file', for example because we are cross-compiling.
6326  if ( file / ) >/dev/null 2>&1; then
6327    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6328    lt_cv_file_magic_cmd='func_win32_libid'
6329  else
6330    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6331    lt_cv_file_magic_cmd='$OBJDUMP -f'
6332  fi
6333  ;;
6334
6335cegcc)
6336  # use the weaker test based on 'objdump'. See mingw*.
6337  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6338  lt_cv_file_magic_cmd='$OBJDUMP -f'
6339  ;;
6340
6341darwin* | rhapsody*)
6342  lt_cv_deplibs_check_method=pass_all
6343  ;;
6344
6345freebsd* | dragonfly*)
6346  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6347    case $host_cpu in
6348    i*86 )
6349      # Not sure whether the presence of OpenBSD here was a mistake.
6350      # Let's accept both of them until this is cleared up.
6351      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6352      lt_cv_file_magic_cmd=/usr/bin/file
6353      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6354      ;;
6355    esac
6356  else
6357    lt_cv_deplibs_check_method=pass_all
6358  fi
6359  ;;
6360
6361gnu*)
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364
6365hpux10.20* | hpux11*)
6366  lt_cv_file_magic_cmd=/usr/bin/file
6367  case $host_cpu in
6368  ia64*)
6369    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6370    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6371    ;;
6372  hppa*64*)
6373    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]'
6374    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6375    ;;
6376  *)
6377    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6378    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6379    ;;
6380  esac
6381  ;;
6382
6383interix[3-9]*)
6384  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6385  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6386  ;;
6387
6388irix5* | irix6* | nonstopux*)
6389  case $LD in
6390  *-32|*"-32 ") libmagic=32-bit;;
6391  *-n32|*"-n32 ") libmagic=N32;;
6392  *-64|*"-64 ") libmagic=64-bit;;
6393  *) libmagic=never-match;;
6394  esac
6395  lt_cv_deplibs_check_method=pass_all
6396  ;;
6397
6398# This must be Linux ELF.
6399linux* | k*bsd*-gnu)
6400  lt_cv_deplibs_check_method=pass_all
6401  ;;
6402
6403netbsd*)
6404  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6405    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406  else
6407    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6408  fi
6409  ;;
6410
6411newos6*)
6412  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6413  lt_cv_file_magic_cmd=/usr/bin/file
6414  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6415  ;;
6416
6417*nto* | *qnx*)
6418  lt_cv_deplibs_check_method=pass_all
6419  ;;
6420
6421openbsd*)
6422  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6423    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6424  else
6425    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6426  fi
6427  ;;
6428
6429osf3* | osf4* | osf5*)
6430  lt_cv_deplibs_check_method=pass_all
6431  ;;
6432
6433rdos*)
6434  lt_cv_deplibs_check_method=pass_all
6435  ;;
6436
6437solaris*)
6438  lt_cv_deplibs_check_method=pass_all
6439  ;;
6440
6441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6442  lt_cv_deplibs_check_method=pass_all
6443  ;;
6444
6445sysv4 | sysv4.3*)
6446  case $host_vendor in
6447  motorola)
6448    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]'
6449    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6450    ;;
6451  ncr)
6452    lt_cv_deplibs_check_method=pass_all
6453    ;;
6454  sequent)
6455    lt_cv_file_magic_cmd='/bin/file'
6456    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6457    ;;
6458  sni)
6459    lt_cv_file_magic_cmd='/bin/file'
6460    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6461    lt_cv_file_magic_test_file=/lib/libc.so
6462    ;;
6463  siemens)
6464    lt_cv_deplibs_check_method=pass_all
6465    ;;
6466  pc)
6467    lt_cv_deplibs_check_method=pass_all
6468    ;;
6469  esac
6470  ;;
6471
6472tpf*)
6473  lt_cv_deplibs_check_method=pass_all
6474  ;;
6475esac
6476
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6479$as_echo "$lt_cv_deplibs_check_method" >&6; }
6480file_magic_cmd=$lt_cv_file_magic_cmd
6481deplibs_check_method=$lt_cv_deplibs_check_method
6482test -z "$deplibs_check_method" && deplibs_check_method=unknown
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495if test -n "$ac_tool_prefix"; then
6496  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6497set dummy ${ac_tool_prefix}ar; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
6500if test "${ac_cv_prog_AR+set}" = set; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  if test -n "$AR"; then
6504  ac_cv_prog_AR="$AR" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509  IFS=$as_save_IFS
6510  test -z "$as_dir" && as_dir=.
6511    for ac_exec_ext in '' $ac_executable_extensions; do
6512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513    ac_cv_prog_AR="${ac_tool_prefix}ar"
6514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515    break 2
6516  fi
6517done
6518  done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523AR=$ac_cv_prog_AR
6524if test -n "$AR"; then
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6526$as_echo "$AR" >&6; }
6527else
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530fi
6531
6532
6533fi
6534if test -z "$ac_cv_prog_AR"; then
6535  ac_ct_AR=$AR
6536  # Extract the first word of "ar", so it can be a program name with args.
6537set dummy ar; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  if test -n "$ac_ct_AR"; then
6544  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549  IFS=$as_save_IFS
6550  test -z "$as_dir" && as_dir=.
6551    for ac_exec_ext in '' $ac_executable_extensions; do
6552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553    ac_cv_prog_ac_ct_AR="ar"
6554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555    break 2
6556  fi
6557done
6558  done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_AR=$ac_cv_prog_ac_ct_AR
6564if test -n "$ac_ct_AR"; then
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6566$as_echo "$ac_ct_AR" >&6; }
6567else
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572  if test "x$ac_ct_AR" = x; then
6573    AR="false"
6574  else
6575    case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581    AR=$ac_ct_AR
6582  fi
6583else
6584  AR="$ac_cv_prog_AR"
6585fi
6586
6587test -z "$AR" && AR=ar
6588test -z "$AR_FLAGS" && AR_FLAGS=cru
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600if test -n "$ac_tool_prefix"; then
6601  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}strip; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if test "${ac_cv_prog_STRIP+set}" = set; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  if test -n "$STRIP"; then
6609  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628STRIP=$ac_cv_prog_STRIP
6629if test -n "$STRIP"; then
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6631$as_echo "$STRIP" >&6; }
6632else
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637
6638fi
6639if test -z "$ac_cv_prog_STRIP"; then
6640  ac_ct_STRIP=$STRIP
6641  # Extract the first word of "strip", so it can be a program name with args.
6642set dummy strip; ac_word=$2
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644$as_echo_n "checking for $ac_word... " >&6; }
6645if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  if test -n "$ac_ct_STRIP"; then
6649  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654  IFS=$as_save_IFS
6655  test -z "$as_dir" && as_dir=.
6656    for ac_exec_ext in '' $ac_executable_extensions; do
6657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658    ac_cv_prog_ac_ct_STRIP="strip"
6659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660    break 2
6661  fi
6662done
6663  done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6669if test -n "$ac_ct_STRIP"; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6671$as_echo "$ac_ct_STRIP" >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677  if test "x$ac_ct_STRIP" = x; then
6678    STRIP=":"
6679  else
6680    case $cross_compiling:$ac_tool_warned in
6681yes:)
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684ac_tool_warned=yes ;;
6685esac
6686    STRIP=$ac_ct_STRIP
6687  fi
6688else
6689  STRIP="$ac_cv_prog_STRIP"
6690fi
6691
6692test -z "$STRIP" && STRIP=:
6693
6694
6695
6696
6697
6698
6699if test -n "$ac_tool_prefix"; then
6700  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if test "${ac_cv_prog_RANLIB+set}" = set; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  if test -n "$RANLIB"; then
6708  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713  IFS=$as_save_IFS
6714  test -z "$as_dir" && as_dir=.
6715    for ac_exec_ext in '' $ac_executable_extensions; do
6716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719    break 2
6720  fi
6721done
6722  done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727RANLIB=$ac_cv_prog_RANLIB
6728if test -n "$RANLIB"; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6730$as_echo "$RANLIB" >&6; }
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736
6737fi
6738if test -z "$ac_cv_prog_RANLIB"; then
6739  ac_ct_RANLIB=$RANLIB
6740  # Extract the first word of "ranlib", so it can be a program name with args.
6741set dummy ranlib; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  if test -n "$ac_ct_RANLIB"; then
6748  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753  IFS=$as_save_IFS
6754  test -z "$as_dir" && as_dir=.
6755    for ac_exec_ext in '' $ac_executable_extensions; do
6756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757    ac_cv_prog_ac_ct_RANLIB="ranlib"
6758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759    break 2
6760  fi
6761done
6762  done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
6767ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768if test -n "$ac_ct_RANLIB"; then
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6770$as_echo "$ac_ct_RANLIB" >&6; }
6771else
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776  if test "x$ac_ct_RANLIB" = x; then
6777    RANLIB=":"
6778  else
6779    case $cross_compiling:$ac_tool_warned in
6780yes:)
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783ac_tool_warned=yes ;;
6784esac
6785    RANLIB=$ac_ct_RANLIB
6786  fi
6787else
6788  RANLIB="$ac_cv_prog_RANLIB"
6789fi
6790
6791test -z "$RANLIB" && RANLIB=:
6792
6793
6794
6795
6796
6797
6798# Determine commands to create old-style static archives.
6799old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6800old_postinstall_cmds='chmod 644 $oldlib'
6801old_postuninstall_cmds=
6802
6803if test -n "$RANLIB"; then
6804  case $host_os in
6805  openbsd*)
6806    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6807    ;;
6808  *)
6809    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6810    ;;
6811  esac
6812  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6813fi
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848# If no C compiler was specified, use CC.
6849LTCC=${LTCC-"$CC"}
6850
6851# If no C compiler flags were specified, use CFLAGS.
6852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6853
6854# Allow CC to be a program name with arguments.
6855compiler=$CC
6856
6857
6858# Check for command to grab the raw symbol name followed by C symbol from nm.
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6860$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6861if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864
6865# These are sane defaults that work on at least a few old systems.
6866# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6867
6868# Character class describing NM global symbol codes.
6869symcode='[BCDEGRST]'
6870
6871# Regexp to match symbols that can be accessed directly from C.
6872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6873
6874# Define system-specific variables.
6875case $host_os in
6876aix*)
6877  symcode='[BCDT]'
6878  ;;
6879cygwin* | mingw* | pw32* | cegcc*)
6880  symcode='[ABCDGISTW]'
6881  ;;
6882hpux*)
6883  if test "$host_cpu" = ia64; then
6884    symcode='[ABCDEGRST]'
6885  fi
6886  ;;
6887irix* | nonstopux*)
6888  symcode='[BCDEGRST]'
6889  ;;
6890osf*)
6891  symcode='[BCDEGQRST]'
6892  ;;
6893solaris*)
6894  symcode='[BDRT]'
6895  ;;
6896sco3.2v5*)
6897  symcode='[DT]'
6898  ;;
6899sysv4.2uw2*)
6900  symcode='[DT]'
6901  ;;
6902sysv5* | sco5v6* | unixware* | OpenUNIX*)
6903  symcode='[ABDT]'
6904  ;;
6905sysv4)
6906  symcode='[DFNSTU]'
6907  ;;
6908esac
6909
6910# If we're using GNU nm, then use its standard symbol codes.
6911case `$NM -V 2>&1` in
6912*GNU* | *'with BFD'*)
6913  symcode='[ABCDGIRSTW]' ;;
6914esac
6915
6916# Transform an extracted symbol line into a proper C declaration.
6917# Some systems (esp. on ia64) link data and code symbols differently,
6918# so use this general approach.
6919lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6920
6921# Transform an extracted symbol line into symbol name and symbol address
6922lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6923lt_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'"
6924
6925# Handle CRLF in mingw tool chain
6926opt_cr=
6927case $build_os in
6928mingw*)
6929  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6930  ;;
6931esac
6932
6933# Try without a prefix underscore, then with it.
6934for ac_symprfx in "" "_"; do
6935
6936  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6937  symxfrm="\\1 $ac_symprfx\\2 \\2"
6938
6939  # Write the raw and C identifiers.
6940  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6941    # Fake it for dumpbin and say T for any non-static function
6942    # and D for any global variable.
6943    # Also find C++ and __fastcall symbols from MSVC++,
6944    # which start with @ or ?.
6945    lt_cv_sys_global_symbol_pipe="$AWK '"\
6946"     {last_section=section; section=\$ 3};"\
6947"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6948"     \$ 0!~/External *\|/{next};"\
6949"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6950"     {if(hide[section]) next};"\
6951"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6952"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6953"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6954"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6955"     ' prfx=^$ac_symprfx"
6956  else
6957    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6958  fi
6959
6960  # Check to see that the pipe works correctly.
6961  pipe_works=no
6962
6963  rm -f conftest*
6964  cat > conftest.$ac_ext <<_LT_EOF
6965#ifdef __cplusplus
6966extern "C" {
6967#endif
6968char nm_test_var;
6969void nm_test_func(void);
6970void nm_test_func(void){}
6971#ifdef __cplusplus
6972}
6973#endif
6974int main(){nm_test_var='a';nm_test_func();return(0);}
6975_LT_EOF
6976
6977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978  (eval $ac_compile) 2>&5
6979  ac_status=$?
6980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981  test $ac_status = 0; }; then
6982    # Now try to grab the symbols.
6983    nlist=conftest.nm
6984    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6985  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6986  ac_status=$?
6987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988  test $ac_status = 0; } && test -s "$nlist"; then
6989      # Try sorting and uniquifying the output.
6990      if sort "$nlist" | uniq > "$nlist"T; then
6991	mv -f "$nlist"T "$nlist"
6992      else
6993	rm -f "$nlist"T
6994      fi
6995
6996      # Make sure that we snagged all the symbols we need.
6997      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6998	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6999	  cat <<_LT_EOF > conftest.$ac_ext
7000#ifdef __cplusplus
7001extern "C" {
7002#endif
7003
7004_LT_EOF
7005	  # Now generate the symbol file.
7006	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7007
7008	  cat <<_LT_EOF >> conftest.$ac_ext
7009
7010/* The mapping between symbol names and symbols.  */
7011const struct {
7012  const char *name;
7013  void       *address;
7014}
7015lt__PROGRAM__LTX_preloaded_symbols[] =
7016{
7017  { "@PROGRAM@", (void *) 0 },
7018_LT_EOF
7019	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7020	  cat <<\_LT_EOF >> conftest.$ac_ext
7021  {0, (void *) 0}
7022};
7023
7024/* This works around a problem in FreeBSD linker */
7025#ifdef FREEBSD_WORKAROUND
7026static const void *lt_preloaded_setup() {
7027  return lt__PROGRAM__LTX_preloaded_symbols;
7028}
7029#endif
7030
7031#ifdef __cplusplus
7032}
7033#endif
7034_LT_EOF
7035	  # Now try linking the two files.
7036	  mv conftest.$ac_objext conftstm.$ac_objext
7037	  lt_save_LIBS="$LIBS"
7038	  lt_save_CFLAGS="$CFLAGS"
7039	  LIBS="conftstm.$ac_objext"
7040	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7041	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7042  (eval $ac_link) 2>&5
7043  ac_status=$?
7044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7046	    pipe_works=yes
7047	  fi
7048	  LIBS="$lt_save_LIBS"
7049	  CFLAGS="$lt_save_CFLAGS"
7050	else
7051	  echo "cannot find nm_test_func in $nlist" >&5
7052	fi
7053      else
7054	echo "cannot find nm_test_var in $nlist" >&5
7055      fi
7056    else
7057      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7058    fi
7059  else
7060    echo "$progname: failed program was:" >&5
7061    cat conftest.$ac_ext >&5
7062  fi
7063  rm -rf conftest* conftst*
7064
7065  # Do not use the global_symbol_pipe unless it works.
7066  if test "$pipe_works" = yes; then
7067    break
7068  else
7069    lt_cv_sys_global_symbol_pipe=
7070  fi
7071done
7072
7073fi
7074
7075if test -z "$lt_cv_sys_global_symbol_pipe"; then
7076  lt_cv_sys_global_symbol_to_cdecl=
7077fi
7078if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7080$as_echo "failed" >&6; }
7081else
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7083$as_echo "ok" >&6; }
7084fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107# Check whether --enable-libtool-lock was given.
7108if test "${enable_libtool_lock+set}" = set; then :
7109  enableval=$enable_libtool_lock;
7110fi
7111
7112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7113
7114# Some flags need to be propagated to the compiler or linker for good
7115# libtool support.
7116case $host in
7117ia64-*-hpux*)
7118  # Find out which ABI we are using.
7119  echo 'int i;' > conftest.$ac_ext
7120  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7121  (eval $ac_compile) 2>&5
7122  ac_status=$?
7123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124  test $ac_status = 0; }; then
7125    case `/usr/bin/file conftest.$ac_objext` in
7126      *ELF-32*)
7127	HPUX_IA64_MODE="32"
7128	;;
7129      *ELF-64*)
7130	HPUX_IA64_MODE="64"
7131	;;
7132    esac
7133  fi
7134  rm -rf conftest*
7135  ;;
7136*-*-irix6*)
7137  # Find out which ABI we are using.
7138  echo '#line 7138 "configure"' > conftest.$ac_ext
7139  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7140  (eval $ac_compile) 2>&5
7141  ac_status=$?
7142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143  test $ac_status = 0; }; then
7144    if test "$lt_cv_prog_gnu_ld" = yes; then
7145      case `/usr/bin/file conftest.$ac_objext` in
7146	*32-bit*)
7147	  LD="${LD-ld} -melf32bsmip"
7148	  ;;
7149	*N32*)
7150	  LD="${LD-ld} -melf32bmipn32"
7151	  ;;
7152	*64-bit*)
7153	  LD="${LD-ld} -melf64bmip"
7154	;;
7155      esac
7156    else
7157      case `/usr/bin/file conftest.$ac_objext` in
7158	*32-bit*)
7159	  LD="${LD-ld} -32"
7160	  ;;
7161	*N32*)
7162	  LD="${LD-ld} -n32"
7163	  ;;
7164	*64-bit*)
7165	  LD="${LD-ld} -64"
7166	  ;;
7167      esac
7168    fi
7169  fi
7170  rm -rf conftest*
7171  ;;
7172
7173x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7174s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7175  # Find out which ABI we are using.
7176  echo 'int i;' > conftest.$ac_ext
7177  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7178  (eval $ac_compile) 2>&5
7179  ac_status=$?
7180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181  test $ac_status = 0; }; then
7182    case `/usr/bin/file conftest.o` in
7183      *32-bit*)
7184	case $host in
7185	  x86_64-*kfreebsd*-gnu)
7186	    LD="${LD-ld} -m elf_i386_fbsd"
7187	    ;;
7188	  x86_64-*linux*)
7189	    LD="${LD-ld} -m elf_i386"
7190	    ;;
7191	  ppc64-*linux*|powerpc64-*linux*)
7192	    LD="${LD-ld} -m elf32ppclinux"
7193	    ;;
7194	  s390x-*linux*)
7195	    LD="${LD-ld} -m elf_s390"
7196	    ;;
7197	  sparc64-*linux*)
7198	    LD="${LD-ld} -m elf32_sparc"
7199	    ;;
7200	esac
7201	;;
7202      *64-bit*)
7203	case $host in
7204	  x86_64-*kfreebsd*-gnu)
7205	    LD="${LD-ld} -m elf_x86_64_fbsd"
7206	    ;;
7207	  x86_64-*linux*)
7208	    LD="${LD-ld} -m elf_x86_64"
7209	    ;;
7210	  ppc*-*linux*|powerpc*-*linux*)
7211	    LD="${LD-ld} -m elf64ppc"
7212	    ;;
7213	  s390*-*linux*|s390*-*tpf*)
7214	    LD="${LD-ld} -m elf64_s390"
7215	    ;;
7216	  sparc*-*linux*)
7217	    LD="${LD-ld} -m elf64_sparc"
7218	    ;;
7219	esac
7220	;;
7221    esac
7222  fi
7223  rm -rf conftest*
7224  ;;
7225
7226*-*-sco3.2v5*)
7227  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7228  SAVE_CFLAGS="$CFLAGS"
7229  CFLAGS="$CFLAGS -belf"
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7231$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7232if test "${lt_cv_cc_needs_belf+set}" = set; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  ac_ext=c
7236ac_cpp='$CPP $CPPFLAGS'
7237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7239ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240
7241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243
7244int
7245main ()
7246{
7247
7248  ;
7249  return 0;
7250}
7251_ACEOF
7252if ac_fn_c_try_link "$LINENO"; then :
7253  lt_cv_cc_needs_belf=yes
7254else
7255  lt_cv_cc_needs_belf=no
7256fi
7257rm -f core conftest.err conftest.$ac_objext \
7258    conftest$ac_exeext conftest.$ac_ext
7259     ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265fi
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7267$as_echo "$lt_cv_cc_needs_belf" >&6; }
7268  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7269    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7270    CFLAGS="$SAVE_CFLAGS"
7271  fi
7272  ;;
7273sparc*-*solaris*)
7274  # Find out which ABI we are using.
7275  echo 'int i;' > conftest.$ac_ext
7276  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277  (eval $ac_compile) 2>&5
7278  ac_status=$?
7279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280  test $ac_status = 0; }; then
7281    case `/usr/bin/file conftest.o` in
7282    *64-bit*)
7283      case $lt_cv_prog_gnu_ld in
7284      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7285      *)
7286	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7287	  LD="${LD-ld} -64"
7288	fi
7289	;;
7290      esac
7291      ;;
7292    esac
7293  fi
7294  rm -rf conftest*
7295  ;;
7296esac
7297
7298need_locks="$enable_libtool_lock"
7299
7300
7301  case $host_os in
7302    rhapsody* | darwin*)
7303    if test -n "$ac_tool_prefix"; then
7304  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7305set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
7308if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  if test -n "$DSYMUTIL"; then
7312  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319    for ac_exec_ext in '' $ac_executable_extensions; do
7320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326  done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331DSYMUTIL=$ac_cv_prog_DSYMUTIL
7332if test -n "$DSYMUTIL"; then
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7334$as_echo "$DSYMUTIL" >&6; }
7335else
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340
7341fi
7342if test -z "$ac_cv_prog_DSYMUTIL"; then
7343  ac_ct_DSYMUTIL=$DSYMUTIL
7344  # Extract the first word of "dsymutil", so it can be a program name with args.
7345set dummy dsymutil; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$ac_ct_DSYMUTIL"; then
7352  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7372if test -n "$ac_ct_DSYMUTIL"; then
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7374$as_echo "$ac_ct_DSYMUTIL" >&6; }
7375else
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380  if test "x$ac_ct_DSYMUTIL" = x; then
7381    DSYMUTIL=":"
7382  else
7383    case $cross_compiling:$ac_tool_warned in
7384yes:)
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387ac_tool_warned=yes ;;
7388esac
7389    DSYMUTIL=$ac_ct_DSYMUTIL
7390  fi
7391else
7392  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7393fi
7394
7395    if test -n "$ac_tool_prefix"; then
7396  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7397set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  if test -n "$NMEDIT"; then
7404  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411    for ac_exec_ext in '' $ac_executable_extensions; do
7412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418  done
7419IFS=$as_save_IFS
7420
7421fi
7422fi
7423NMEDIT=$ac_cv_prog_NMEDIT
7424if test -n "$NMEDIT"; then
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7426$as_echo "$NMEDIT" >&6; }
7427else
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432
7433fi
7434if test -z "$ac_cv_prog_NMEDIT"; then
7435  ac_ct_NMEDIT=$NMEDIT
7436  # Extract the first word of "nmedit", so it can be a program name with args.
7437set dummy nmedit; ac_word=$2
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439$as_echo_n "checking for $ac_word... " >&6; }
7440if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  if test -n "$ac_ct_NMEDIT"; then
7444  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7445else
7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449  IFS=$as_save_IFS
7450  test -z "$as_dir" && as_dir=.
7451    for ac_exec_ext in '' $ac_executable_extensions; do
7452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455    break 2
7456  fi
7457done
7458  done
7459IFS=$as_save_IFS
7460
7461fi
7462fi
7463ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7464if test -n "$ac_ct_NMEDIT"; then
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7466$as_echo "$ac_ct_NMEDIT" >&6; }
7467else
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470fi
7471
7472  if test "x$ac_ct_NMEDIT" = x; then
7473    NMEDIT=":"
7474  else
7475    case $cross_compiling:$ac_tool_warned in
7476yes:)
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479ac_tool_warned=yes ;;
7480esac
7481    NMEDIT=$ac_ct_NMEDIT
7482  fi
7483else
7484  NMEDIT="$ac_cv_prog_NMEDIT"
7485fi
7486
7487    if test -n "$ac_tool_prefix"; then
7488  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7489set dummy ${ac_tool_prefix}lipo; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if test "${ac_cv_prog_LIPO+set}" = set; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  if test -n "$LIPO"; then
7496  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501  IFS=$as_save_IFS
7502  test -z "$as_dir" && as_dir=.
7503    for ac_exec_ext in '' $ac_executable_extensions; do
7504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507    break 2
7508  fi
7509done
7510  done
7511IFS=$as_save_IFS
7512
7513fi
7514fi
7515LIPO=$ac_cv_prog_LIPO
7516if test -n "$LIPO"; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7518$as_echo "$LIPO" >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524
7525fi
7526if test -z "$ac_cv_prog_LIPO"; then
7527  ac_ct_LIPO=$LIPO
7528  # Extract the first word of "lipo", so it can be a program name with args.
7529set dummy lipo; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  if test -n "$ac_ct_LIPO"; then
7536  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541  IFS=$as_save_IFS
7542  test -z "$as_dir" && as_dir=.
7543    for ac_exec_ext in '' $ac_executable_extensions; do
7544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545    ac_cv_prog_ac_ct_LIPO="lipo"
7546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547    break 2
7548  fi
7549done
7550  done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7556if test -n "$ac_ct_LIPO"; then
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7558$as_echo "$ac_ct_LIPO" >&6; }
7559else
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564  if test "x$ac_ct_LIPO" = x; then
7565    LIPO=":"
7566  else
7567    case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573    LIPO=$ac_ct_LIPO
7574  fi
7575else
7576  LIPO="$ac_cv_prog_LIPO"
7577fi
7578
7579    if test -n "$ac_tool_prefix"; then
7580  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7581set dummy ${ac_tool_prefix}otool; ac_word=$2
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
7584if test "${ac_cv_prog_OTOOL+set}" = set; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  if test -n "$OTOOL"; then
7588  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593  IFS=$as_save_IFS
7594  test -z "$as_dir" && as_dir=.
7595    for ac_exec_ext in '' $ac_executable_extensions; do
7596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599    break 2
7600  fi
7601done
7602  done
7603IFS=$as_save_IFS
7604
7605fi
7606fi
7607OTOOL=$ac_cv_prog_OTOOL
7608if test -n "$OTOOL"; then
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7610$as_echo "$OTOOL" >&6; }
7611else
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
7614fi
7615
7616
7617fi
7618if test -z "$ac_cv_prog_OTOOL"; then
7619  ac_ct_OTOOL=$OTOOL
7620  # Extract the first word of "otool", so it can be a program name with args.
7621set dummy otool; ac_word=$2
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7625  $as_echo_n "(cached) " >&6
7626else
7627  if test -n "$ac_ct_OTOOL"; then
7628  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633  IFS=$as_save_IFS
7634  test -z "$as_dir" && as_dir=.
7635    for ac_exec_ext in '' $ac_executable_extensions; do
7636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637    ac_cv_prog_ac_ct_OTOOL="otool"
7638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639    break 2
7640  fi
7641done
7642  done
7643IFS=$as_save_IFS
7644
7645fi
7646fi
7647ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7648if test -n "$ac_ct_OTOOL"; then
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7650$as_echo "$ac_ct_OTOOL" >&6; }
7651else
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
7654fi
7655
7656  if test "x$ac_ct_OTOOL" = x; then
7657    OTOOL=":"
7658  else
7659    case $cross_compiling:$ac_tool_warned in
7660yes:)
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663ac_tool_warned=yes ;;
7664esac
7665    OTOOL=$ac_ct_OTOOL
7666  fi
7667else
7668  OTOOL="$ac_cv_prog_OTOOL"
7669fi
7670
7671    if test -n "$ac_tool_prefix"; then
7672  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7673set dummy ${ac_tool_prefix}otool64; ac_word=$2
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675$as_echo_n "checking for $ac_word... " >&6; }
7676if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  if test -n "$OTOOL64"; then
7680  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687    for ac_exec_ext in '' $ac_executable_extensions; do
7688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694  done
7695IFS=$as_save_IFS
7696
7697fi
7698fi
7699OTOOL64=$ac_cv_prog_OTOOL64
7700if test -n "$OTOOL64"; then
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7702$as_echo "$OTOOL64" >&6; }
7703else
7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
7706fi
7707
7708
7709fi
7710if test -z "$ac_cv_prog_OTOOL64"; then
7711  ac_ct_OTOOL64=$OTOOL64
7712  # Extract the first word of "otool64", so it can be a program name with args.
7713set dummy otool64; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  if test -n "$ac_ct_OTOOL64"; then
7720  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725  IFS=$as_save_IFS
7726  test -z "$as_dir" && as_dir=.
7727    for ac_exec_ext in '' $ac_executable_extensions; do
7728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729    ac_cv_prog_ac_ct_OTOOL64="otool64"
7730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731    break 2
7732  fi
7733done
7734  done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7740if test -n "$ac_ct_OTOOL64"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7742$as_echo "$ac_ct_OTOOL64" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748  if test "x$ac_ct_OTOOL64" = x; then
7749    OTOOL64=":"
7750  else
7751    case $cross_compiling:$ac_tool_warned in
7752yes:)
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755ac_tool_warned=yes ;;
7756esac
7757    OTOOL64=$ac_ct_OTOOL64
7758  fi
7759else
7760  OTOOL64="$ac_cv_prog_OTOOL64"
7761fi
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7790$as_echo_n "checking for -single_module linker flag... " >&6; }
7791if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  lt_cv_apple_cc_single_mod=no
7795      if test -z "${LT_MULTI_MODULE}"; then
7796	# By default we will add the -single_module flag. You can override
7797	# by either setting the environment variable LT_MULTI_MODULE
7798	# non-empty at configure time, or by adding -multi_module to the
7799	# link flags.
7800	rm -rf libconftest.dylib*
7801	echo "int foo(void){return 1;}" > conftest.c
7802	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7803-dynamiclib -Wl,-single_module conftest.c" >&5
7804	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7805	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7806        _lt_result=$?
7807	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7808	  lt_cv_apple_cc_single_mod=yes
7809	else
7810	  cat conftest.err >&5
7811	fi
7812	rm -rf libconftest.dylib*
7813	rm -f conftest.*
7814      fi
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7817$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7819$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7820if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  lt_cv_ld_exported_symbols_list=no
7824      save_LDFLAGS=$LDFLAGS
7825      echo "_main" > conftest.sym
7826      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7827      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829
7830int
7831main ()
7832{
7833
7834  ;
7835  return 0;
7836}
7837_ACEOF
7838if ac_fn_c_try_link "$LINENO"; then :
7839  lt_cv_ld_exported_symbols_list=yes
7840else
7841  lt_cv_ld_exported_symbols_list=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext \
7844    conftest$ac_exeext conftest.$ac_ext
7845	LDFLAGS="$save_LDFLAGS"
7846
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7849$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7850    case $host_os in
7851    rhapsody* | darwin1.[012])
7852      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7853    darwin1.*)
7854      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7855    darwin*) # darwin 5.x on
7856      # if running on 10.5 or later, the deployment target defaults
7857      # to the OS version, if on x86, and 10.4, the deployment
7858      # target defaults to 10.4. Don't you love it?
7859      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7860	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7861	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7862	10.[012]*)
7863	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7864	10.*)
7865	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7866      esac
7867    ;;
7868  esac
7869    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7870      _lt_dar_single_mod='$single_module'
7871    fi
7872    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7873      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7874    else
7875      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7876    fi
7877    if test "$DSYMUTIL" != ":"; then
7878      _lt_dsymutil='~$DSYMUTIL $lib || :'
7879    else
7880      _lt_dsymutil=
7881    fi
7882    ;;
7883  esac
7884
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7886$as_echo_n "checking for ANSI C header files... " >&6; }
7887if test "${ac_cv_header_stdc+set}" = set; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892#include <stdlib.h>
7893#include <stdarg.h>
7894#include <string.h>
7895#include <float.h>
7896
7897int
7898main ()
7899{
7900
7901  ;
7902  return 0;
7903}
7904_ACEOF
7905if ac_fn_c_try_compile "$LINENO"; then :
7906  ac_cv_header_stdc=yes
7907else
7908  ac_cv_header_stdc=no
7909fi
7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911
7912if test $ac_cv_header_stdc = yes; then
7913  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916#include <string.h>
7917
7918_ACEOF
7919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920  $EGREP "memchr" >/dev/null 2>&1; then :
7921
7922else
7923  ac_cv_header_stdc=no
7924fi
7925rm -f conftest*
7926
7927fi
7928
7929if test $ac_cv_header_stdc = yes; then
7930  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933#include <stdlib.h>
7934
7935_ACEOF
7936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7937  $EGREP "free" >/dev/null 2>&1; then :
7938
7939else
7940  ac_cv_header_stdc=no
7941fi
7942rm -f conftest*
7943
7944fi
7945
7946if test $ac_cv_header_stdc = yes; then
7947  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7948  if test "$cross_compiling" = yes; then :
7949  :
7950else
7951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h.  */
7953#include <ctype.h>
7954#include <stdlib.h>
7955#if ((' ' & 0x0FF) == 0x020)
7956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7958#else
7959# define ISLOWER(c) \
7960		   (('a' <= (c) && (c) <= 'i') \
7961		     || ('j' <= (c) && (c) <= 'r') \
7962		     || ('s' <= (c) && (c) <= 'z'))
7963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7964#endif
7965
7966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7967int
7968main ()
7969{
7970  int i;
7971  for (i = 0; i < 256; i++)
7972    if (XOR (islower (i), ISLOWER (i))
7973	|| toupper (i) != TOUPPER (i))
7974      return 2;
7975  return 0;
7976}
7977_ACEOF
7978if ac_fn_c_try_run "$LINENO"; then :
7979
7980else
7981  ac_cv_header_stdc=no
7982fi
7983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7984  conftest.$ac_objext conftest.beam conftest.$ac_ext
7985fi
7986
7987fi
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7990$as_echo "$ac_cv_header_stdc" >&6; }
7991if test $ac_cv_header_stdc = yes; then
7992
7993$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7994
7995fi
7996
7997# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7999		  inttypes.h stdint.h unistd.h
8000do :
8001  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8002ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8003"
8004eval as_val=\$$as_ac_Header
8005   if test "x$as_val" = x""yes; then :
8006  cat >>confdefs.h <<_ACEOF
8007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008_ACEOF
8009
8010fi
8011
8012done
8013
8014
8015for ac_header in dlfcn.h
8016do :
8017  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8018"
8019if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8020  cat >>confdefs.h <<_ACEOF
8021#define HAVE_DLFCN_H 1
8022_ACEOF
8023
8024fi
8025
8026done
8027
8028
8029
8030ac_ext=cpp
8031ac_cpp='$CXXCPP $CPPFLAGS'
8032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8035if test -z "$CXX"; then
8036  if test -n "$CCC"; then
8037    CXX=$CCC
8038  else
8039    if test -n "$ac_tool_prefix"; then
8040  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8041  do
8042    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if test "${ac_cv_prog_CXX+set}" = set; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  if test -n "$CXX"; then
8050  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055  IFS=$as_save_IFS
8056  test -z "$as_dir" && as_dir=.
8057    for ac_exec_ext in '' $ac_executable_extensions; do
8058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061    break 2
8062  fi
8063done
8064  done
8065IFS=$as_save_IFS
8066
8067fi
8068fi
8069CXX=$ac_cv_prog_CXX
8070if test -n "$CXX"; then
8071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8072$as_echo "$CXX" >&6; }
8073else
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
8076fi
8077
8078
8079    test -n "$CXX" && break
8080  done
8081fi
8082if test -z "$CXX"; then
8083  ac_ct_CXX=$CXX
8084  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8085do
8086  # Extract the first word of "$ac_prog", so it can be a program name with args.
8087set dummy $ac_prog; ac_word=$2
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  if test -n "$ac_ct_CXX"; then
8094  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099  IFS=$as_save_IFS
8100  test -z "$as_dir" && as_dir=.
8101    for ac_exec_ext in '' $ac_executable_extensions; do
8102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103    ac_cv_prog_ac_ct_CXX="$ac_prog"
8104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105    break 2
8106  fi
8107done
8108  done
8109IFS=$as_save_IFS
8110
8111fi
8112fi
8113ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8114if test -n "$ac_ct_CXX"; then
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8116$as_echo "$ac_ct_CXX" >&6; }
8117else
8118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120fi
8121
8122
8123  test -n "$ac_ct_CXX" && break
8124done
8125
8126  if test "x$ac_ct_CXX" = x; then
8127    CXX="g++"
8128  else
8129    case $cross_compiling:$ac_tool_warned in
8130yes:)
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133ac_tool_warned=yes ;;
8134esac
8135    CXX=$ac_ct_CXX
8136  fi
8137fi
8138
8139  fi
8140fi
8141# Provide some information about the compiler.
8142$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8143set X $ac_compile
8144ac_compiler=$2
8145for ac_option in --version -v -V -qversion; do
8146  { { ac_try="$ac_compiler $ac_option >&5"
8147case "(($ac_try" in
8148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149  *) ac_try_echo=$ac_try;;
8150esac
8151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8152$as_echo "$ac_try_echo"; } >&5
8153  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8154  ac_status=$?
8155  if test -s conftest.err; then
8156    sed '10a\
8157... rest of stderr output deleted ...
8158         10q' conftest.err >conftest.er1
8159    cat conftest.er1 >&5
8160  fi
8161  rm -f conftest.er1 conftest.err
8162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8163  test $ac_status = 0; }
8164done
8165
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8167$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8168if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173
8174int
8175main ()
8176{
8177#ifndef __GNUC__
8178       choke me
8179#endif
8180
8181  ;
8182  return 0;
8183}
8184_ACEOF
8185if ac_fn_cxx_try_compile "$LINENO"; then :
8186  ac_compiler_gnu=yes
8187else
8188  ac_compiler_gnu=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8192
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8195$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8196if test $ac_compiler_gnu = yes; then
8197  GXX=yes
8198else
8199  GXX=
8200fi
8201ac_test_CXXFLAGS=${CXXFLAGS+set}
8202ac_save_CXXFLAGS=$CXXFLAGS
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8204$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8205if test "${ac_cv_prog_cxx_g+set}" = set; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8209   ac_cxx_werror_flag=yes
8210   ac_cv_prog_cxx_g=no
8211   CXXFLAGS="-g"
8212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214
8215int
8216main ()
8217{
8218
8219  ;
8220  return 0;
8221}
8222_ACEOF
8223if ac_fn_cxx_try_compile "$LINENO"; then :
8224  ac_cv_prog_cxx_g=yes
8225else
8226  CXXFLAGS=""
8227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_cxx_try_compile "$LINENO"; then :
8239
8240else
8241  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8242	 CXXFLAGS="-g"
8243	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245
8246int
8247main ()
8248{
8249
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254if ac_fn_cxx_try_compile "$LINENO"; then :
8255  ac_cv_prog_cxx_g=yes
8256fi
8257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258fi
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8265$as_echo "$ac_cv_prog_cxx_g" >&6; }
8266if test "$ac_test_CXXFLAGS" = set; then
8267  CXXFLAGS=$ac_save_CXXFLAGS
8268elif test $ac_cv_prog_cxx_g = yes; then
8269  if test "$GXX" = yes; then
8270    CXXFLAGS="-g -O2"
8271  else
8272    CXXFLAGS="-g"
8273  fi
8274else
8275  if test "$GXX" = yes; then
8276    CXXFLAGS="-O2"
8277  else
8278    CXXFLAGS=
8279  fi
8280fi
8281ac_ext=c
8282ac_cpp='$CPP $CPPFLAGS'
8283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285ac_compiler_gnu=$ac_cv_c_compiler_gnu
8286
8287depcc="$CXX"  am_compiler_list=
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8290$as_echo_n "checking dependency style of $depcc... " >&6; }
8291if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8295  # We make a subdir and do the tests there.  Otherwise we can end up
8296  # making bogus files that we don't know about and never remove.  For
8297  # instance it was reported that on HP-UX the gcc test will end up
8298  # making a dummy file named `D' -- because `-MD' means `put the output
8299  # in D'.
8300  mkdir conftest.dir
8301  # Copy depcomp to subdir because otherwise we won't find it if we're
8302  # using a relative directory.
8303  cp "$am_depcomp" conftest.dir
8304  cd conftest.dir
8305  # We will build objects and dependencies in a subdirectory because
8306  # it helps to detect inapplicable dependency modes.  For instance
8307  # both Tru64's cc and ICC support -MD to output dependencies as a
8308  # side effect of compilation, but ICC will put the dependencies in
8309  # the current directory while Tru64 will put them in the object
8310  # directory.
8311  mkdir sub
8312
8313  am_cv_CXX_dependencies_compiler_type=none
8314  if test "$am_compiler_list" = ""; then
8315     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8316  fi
8317  am__universal=false
8318  case " $depcc " in #(
8319     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8320     esac
8321
8322  for depmode in $am_compiler_list; do
8323    # Setup a source with many dependencies, because some compilers
8324    # like to wrap large dependency lists on column 80 (with \), and
8325    # we should not choose a depcomp mode which is confused by this.
8326    #
8327    # We need to recreate these files for each test, as the compiler may
8328    # overwrite some of them when testing with obscure command lines.
8329    # This happens at least with the AIX C compiler.
8330    : > sub/conftest.c
8331    for i in 1 2 3 4 5 6; do
8332      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8333      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8334      # Solaris 8's {/usr,}/bin/sh.
8335      touch sub/conftst$i.h
8336    done
8337    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8338
8339    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8340    # mode.  It turns out that the SunPro C++ compiler does not properly
8341    # handle `-M -o', and we need to detect this.  Also, some Intel
8342    # versions had trouble with output in subdirs
8343    am__obj=sub/conftest.${OBJEXT-o}
8344    am__minus_obj="-o $am__obj"
8345    case $depmode in
8346    gcc)
8347      # This depmode causes a compiler race in universal mode.
8348      test "$am__universal" = false || continue
8349      ;;
8350    nosideeffect)
8351      # after this tag, mechanisms are not by side-effect, so they'll
8352      # only be used when explicitly requested
8353      if test "x$enable_dependency_tracking" = xyes; then
8354	continue
8355      else
8356	break
8357      fi
8358      ;;
8359    msvisualcpp | msvcmsys)
8360      # This compiler won't grok `-c -o', but also, the minuso test has
8361      # not run yet.  These depmodes are late enough in the game, and
8362      # so weak that their functioning should not be impacted.
8363      am__obj=conftest.${OBJEXT-o}
8364      am__minus_obj=
8365      ;;
8366    none) break ;;
8367    esac
8368    if depmode=$depmode \
8369       source=sub/conftest.c object=$am__obj \
8370       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8371       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8372         >/dev/null 2>conftest.err &&
8373       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8374       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8375       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8376       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8377      # icc doesn't choke on unknown options, it will just issue warnings
8378      # or remarks (even with -Werror).  So we grep stderr for any message
8379      # that says an option was ignored or not supported.
8380      # When given -MP, icc 7.0 and 7.1 complain thusly:
8381      #   icc: Command line warning: ignoring option '-M'; no argument required
8382      # The diagnosis changed in icc 8.0:
8383      #   icc: Command line remark: option '-MP' not supported
8384      if (grep 'ignoring option' conftest.err ||
8385          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8386        am_cv_CXX_dependencies_compiler_type=$depmode
8387        break
8388      fi
8389    fi
8390  done
8391
8392  cd ..
8393  rm -rf conftest.dir
8394else
8395  am_cv_CXX_dependencies_compiler_type=none
8396fi
8397
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8400$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8401CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8402
8403 if
8404  test "x$enable_dependency_tracking" != xno \
8405  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8406  am__fastdepCXX_TRUE=
8407  am__fastdepCXX_FALSE='#'
8408else
8409  am__fastdepCXX_TRUE='#'
8410  am__fastdepCXX_FALSE=
8411fi
8412
8413
8414if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8415    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8416    (test "X$CXX" != "Xg++"))) ; then
8417  ac_ext=cpp
8418ac_cpp='$CXXCPP $CPPFLAGS'
8419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8423$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8424if test -z "$CXXCPP"; then
8425  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428      # Double quotes because CXXCPP needs to be expanded
8429    for CXXCPP in "$CXX -E" "/lib/cpp"
8430    do
8431      ac_preproc_ok=false
8432for ac_cxx_preproc_warn_flag in '' yes
8433do
8434  # Use a header file that comes with gcc, so configuring glibc
8435  # with a fresh cross-compiler works.
8436  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437  # <limits.h> exists even on freestanding compilers.
8438  # On the NeXT, cc -E runs the code through the compiler's parser,
8439  # not just through cpp. "Syntax error" is here to catch this case.
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442#ifdef __STDC__
8443# include <limits.h>
8444#else
8445# include <assert.h>
8446#endif
8447		     Syntax error
8448_ACEOF
8449if ac_fn_cxx_try_cpp "$LINENO"; then :
8450
8451else
8452  # Broken: fails on valid input.
8453continue
8454fi
8455rm -f conftest.err conftest.$ac_ext
8456
8457  # OK, works on sane cases.  Now check whether nonexistent headers
8458  # can be detected and how.
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461#include <ac_nonexistent.h>
8462_ACEOF
8463if ac_fn_cxx_try_cpp "$LINENO"; then :
8464  # Broken: success on invalid input.
8465continue
8466else
8467  # Passes both tests.
8468ac_preproc_ok=:
8469break
8470fi
8471rm -f conftest.err conftest.$ac_ext
8472
8473done
8474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8475rm -f conftest.err conftest.$ac_ext
8476if $ac_preproc_ok; then :
8477  break
8478fi
8479
8480    done
8481    ac_cv_prog_CXXCPP=$CXXCPP
8482
8483fi
8484  CXXCPP=$ac_cv_prog_CXXCPP
8485else
8486  ac_cv_prog_CXXCPP=$CXXCPP
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8489$as_echo "$CXXCPP" >&6; }
8490ac_preproc_ok=false
8491for ac_cxx_preproc_warn_flag in '' yes
8492do
8493  # Use a header file that comes with gcc, so configuring glibc
8494  # with a fresh cross-compiler works.
8495  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8496  # <limits.h> exists even on freestanding compilers.
8497  # On the NeXT, cc -E runs the code through the compiler's parser,
8498  # not just through cpp. "Syntax error" is here to catch this case.
8499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501#ifdef __STDC__
8502# include <limits.h>
8503#else
8504# include <assert.h>
8505#endif
8506		     Syntax error
8507_ACEOF
8508if ac_fn_cxx_try_cpp "$LINENO"; then :
8509
8510else
8511  # Broken: fails on valid input.
8512continue
8513fi
8514rm -f conftest.err conftest.$ac_ext
8515
8516  # OK, works on sane cases.  Now check whether nonexistent headers
8517  # can be detected and how.
8518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520#include <ac_nonexistent.h>
8521_ACEOF
8522if ac_fn_cxx_try_cpp "$LINENO"; then :
8523  # Broken: success on invalid input.
8524continue
8525else
8526  # Passes both tests.
8527ac_preproc_ok=:
8528break
8529fi
8530rm -f conftest.err conftest.$ac_ext
8531
8532done
8533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8534rm -f conftest.err conftest.$ac_ext
8535if $ac_preproc_ok; then :
8536
8537else
8538  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8540_lt_caught_CXX_error=yes; }
8541fi
8542
8543ac_ext=c
8544ac_cpp='$CPP $CPPFLAGS'
8545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
8549else
8550  _lt_caught_CXX_error=yes
8551fi
8552
8553
8554
8555
8556
8557# Set options
8558
8559
8560
8561
8562  enable_win32_dll=no
8563
8564
8565
8566
8567
8568# Check whether --with-pic was given.
8569if test "${with_pic+set}" = set; then :
8570  withval=$with_pic; pic_mode="$withval"
8571else
8572  pic_mode=default
8573fi
8574
8575
8576test -z "$pic_mode" && pic_mode=default
8577
8578
8579
8580
8581
8582
8583
8584  # Check whether --enable-fast-install was given.
8585if test "${enable_fast_install+set}" = set; then :
8586  enableval=$enable_fast_install; p=${PACKAGE-default}
8587    case $enableval in
8588    yes) enable_fast_install=yes ;;
8589    no) enable_fast_install=no ;;
8590    *)
8591      enable_fast_install=no
8592      # Look at the argument we got.  We use all the common list separators.
8593      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8594      for pkg in $enableval; do
8595	IFS="$lt_save_ifs"
8596	if test "X$pkg" = "X$p"; then
8597	  enable_fast_install=yes
8598	fi
8599      done
8600      IFS="$lt_save_ifs"
8601      ;;
8602    esac
8603else
8604  enable_fast_install=yes
8605fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617# This can be used to rebuild libtool when needed
8618LIBTOOL_DEPS="$ltmain"
8619
8620# Always use our own libtool.
8621LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8647test -z "$LN_S" && LN_S="ln -s"
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662if test -n "${ZSH_VERSION+set}" ; then
8663   setopt NO_GLOB_SUBST
8664fi
8665
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8667$as_echo_n "checking for objdir... " >&6; }
8668if test "${lt_cv_objdir+set}" = set; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  rm -f .libs 2>/dev/null
8672mkdir .libs 2>/dev/null
8673if test -d .libs; then
8674  lt_cv_objdir=.libs
8675else
8676  # MS-DOS does not allow filenames that begin with a dot.
8677  lt_cv_objdir=_libs
8678fi
8679rmdir .libs 2>/dev/null
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8682$as_echo "$lt_cv_objdir" >&6; }
8683objdir=$lt_cv_objdir
8684
8685
8686
8687
8688
8689cat >>confdefs.h <<_ACEOF
8690#define LT_OBJDIR "$lt_cv_objdir/"
8691_ACEOF
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709case $host_os in
8710aix3*)
8711  # AIX sometimes has problems with the GCC collect2 program.  For some
8712  # reason, if we set the COLLECT_NAMES environment variable, the problems
8713  # vanish in a puff of smoke.
8714  if test "X${COLLECT_NAMES+set}" != Xset; then
8715    COLLECT_NAMES=
8716    export COLLECT_NAMES
8717  fi
8718  ;;
8719esac
8720
8721# Sed substitution that helps us do robust quoting.  It backslashifies
8722# metacharacters that are still active within double-quoted strings.
8723sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8724
8725# Same as above, but do not quote variable references.
8726double_quote_subst='s/\(["`\\]\)/\\\1/g'
8727
8728# Sed substitution to delay expansion of an escaped shell variable in a
8729# double_quote_subst'ed string.
8730delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8731
8732# Sed substitution to delay expansion of an escaped single quote.
8733delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8734
8735# Sed substitution to avoid accidental globbing in evaled expressions
8736no_glob_subst='s/\*/\\\*/g'
8737
8738# Global variables:
8739ofile=libtool
8740can_build_shared=yes
8741
8742# All known linkers require a `.a' archive for static linking (except MSVC,
8743# which needs '.lib').
8744libext=a
8745
8746with_gnu_ld="$lt_cv_prog_gnu_ld"
8747
8748old_CC="$CC"
8749old_CFLAGS="$CFLAGS"
8750
8751# Set sane defaults for various variables
8752test -z "$CC" && CC=cc
8753test -z "$LTCC" && LTCC=$CC
8754test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8755test -z "$LD" && LD=ld
8756test -z "$ac_objext" && ac_objext=o
8757
8758for cc_temp in $compiler""; do
8759  case $cc_temp in
8760    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8761    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8762    \-*) ;;
8763    *) break;;
8764  esac
8765done
8766cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8767
8768
8769# Only perform the check for file, if the check method requires it
8770test -z "$MAGIC_CMD" && MAGIC_CMD=file
8771case $deplibs_check_method in
8772file_magic*)
8773  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8775$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8776if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8777  $as_echo_n "(cached) " >&6
8778else
8779  case $MAGIC_CMD in
8780[\\/*] |  ?:[\\/]*)
8781  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8782  ;;
8783*)
8784  lt_save_MAGIC_CMD="$MAGIC_CMD"
8785  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8786  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8787  for ac_dir in $ac_dummy; do
8788    IFS="$lt_save_ifs"
8789    test -z "$ac_dir" && ac_dir=.
8790    if test -f $ac_dir/${ac_tool_prefix}file; then
8791      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8792      if test -n "$file_magic_test_file"; then
8793	case $deplibs_check_method in
8794	"file_magic "*)
8795	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8796	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8798	    $EGREP "$file_magic_regex" > /dev/null; then
8799	    :
8800	  else
8801	    cat <<_LT_EOF 1>&2
8802
8803*** Warning: the command libtool uses to detect shared libraries,
8804*** $file_magic_cmd, produces output that libtool cannot recognize.
8805*** The result is that libtool may fail to recognize shared libraries
8806*** as such.  This will affect the creation of libtool libraries that
8807*** depend on shared libraries, but programs linked with such libtool
8808*** libraries will work regardless of this problem.  Nevertheless, you
8809*** may want to report the problem to your system manager and/or to
8810*** bug-libtool@gnu.org
8811
8812_LT_EOF
8813	  fi ;;
8814	esac
8815      fi
8816      break
8817    fi
8818  done
8819  IFS="$lt_save_ifs"
8820  MAGIC_CMD="$lt_save_MAGIC_CMD"
8821  ;;
8822esac
8823fi
8824
8825MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8826if test -n "$MAGIC_CMD"; then
8827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8828$as_echo "$MAGIC_CMD" >&6; }
8829else
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
8832fi
8833
8834
8835
8836
8837
8838if test -z "$lt_cv_path_MAGIC_CMD"; then
8839  if test -n "$ac_tool_prefix"; then
8840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8841$as_echo_n "checking for file... " >&6; }
8842if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  case $MAGIC_CMD in
8846[\\/*] |  ?:[\\/]*)
8847  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8848  ;;
8849*)
8850  lt_save_MAGIC_CMD="$MAGIC_CMD"
8851  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8852  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8853  for ac_dir in $ac_dummy; do
8854    IFS="$lt_save_ifs"
8855    test -z "$ac_dir" && ac_dir=.
8856    if test -f $ac_dir/file; then
8857      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8858      if test -n "$file_magic_test_file"; then
8859	case $deplibs_check_method in
8860	"file_magic "*)
8861	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8862	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8864	    $EGREP "$file_magic_regex" > /dev/null; then
8865	    :
8866	  else
8867	    cat <<_LT_EOF 1>&2
8868
8869*** Warning: the command libtool uses to detect shared libraries,
8870*** $file_magic_cmd, produces output that libtool cannot recognize.
8871*** The result is that libtool may fail to recognize shared libraries
8872*** as such.  This will affect the creation of libtool libraries that
8873*** depend on shared libraries, but programs linked with such libtool
8874*** libraries will work regardless of this problem.  Nevertheless, you
8875*** may want to report the problem to your system manager and/or to
8876*** bug-libtool@gnu.org
8877
8878_LT_EOF
8879	  fi ;;
8880	esac
8881      fi
8882      break
8883    fi
8884  done
8885  IFS="$lt_save_ifs"
8886  MAGIC_CMD="$lt_save_MAGIC_CMD"
8887  ;;
8888esac
8889fi
8890
8891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8892if test -n "$MAGIC_CMD"; then
8893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8894$as_echo "$MAGIC_CMD" >&6; }
8895else
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
8898fi
8899
8900
8901  else
8902    MAGIC_CMD=:
8903  fi
8904fi
8905
8906  fi
8907  ;;
8908esac
8909
8910# Use C for the default configuration in the libtool script
8911
8912lt_save_CC="$CC"
8913ac_ext=c
8914ac_cpp='$CPP $CPPFLAGS'
8915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919
8920# Source file extension for C test sources.
8921ac_ext=c
8922
8923# Object file extension for compiled C test sources.
8924objext=o
8925objext=$objext
8926
8927# Code to be used in simple compile tests
8928lt_simple_compile_test_code="int some_variable = 0;"
8929
8930# Code to be used in simple link tests
8931lt_simple_link_test_code='int main(){return(0);}'
8932
8933
8934
8935
8936
8937
8938
8939# If no C compiler was specified, use CC.
8940LTCC=${LTCC-"$CC"}
8941
8942# If no C compiler flags were specified, use CFLAGS.
8943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8944
8945# Allow CC to be a program name with arguments.
8946compiler=$CC
8947
8948# Save the default compiler, since it gets overwritten when the other
8949# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8950compiler_DEFAULT=$CC
8951
8952# save warnings/boilerplate of simple test code
8953ac_outfile=conftest.$ac_objext
8954echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8955eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8956_lt_compiler_boilerplate=`cat conftest.err`
8957$RM conftest*
8958
8959ac_outfile=conftest.$ac_objext
8960echo "$lt_simple_link_test_code" >conftest.$ac_ext
8961eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8962_lt_linker_boilerplate=`cat conftest.err`
8963$RM -r conftest*
8964
8965
8966## CAVEAT EMPTOR:
8967## There is no encapsulation within the following macros, do not change
8968## the running order or otherwise move them around unless you know exactly
8969## what you are doing...
8970if test -n "$compiler"; then
8971
8972lt_prog_compiler_no_builtin_flag=
8973
8974if test "$GCC" = yes; then
8975  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8976
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8978$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8979if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  lt_cv_prog_compiler_rtti_exceptions=no
8983   ac_outfile=conftest.$ac_objext
8984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985   lt_compiler_flag="-fno-rtti -fno-exceptions"
8986   # Insert the option either (1) after the last *FLAGS variable, or
8987   # (2) before a word containing "conftest.", or (3) at the end.
8988   # Note that $ac_compile itself does not contain backslashes and begins
8989   # with a dollar sign (not a hyphen), so the echo should work correctly.
8990   # The option is referenced via a variable to avoid confusing sed.
8991   lt_compile=`echo "$ac_compile" | $SED \
8992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994   -e 's:$: $lt_compiler_flag:'`
8995   (eval echo "\"\$as_me:8995: $lt_compile\"" >&5)
8996   (eval "$lt_compile" 2>conftest.err)
8997   ac_status=$?
8998   cat conftest.err >&5
8999   echo "$as_me:8999: \$? = $ac_status" >&5
9000   if (exit $ac_status) && test -s "$ac_outfile"; then
9001     # The compiler can only warn and ignore the option if not recognized
9002     # So say no if there are warnings other than the usual output.
9003     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006       lt_cv_prog_compiler_rtti_exceptions=yes
9007     fi
9008   fi
9009   $RM conftest*
9010
9011fi
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9013$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9014
9015if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9016    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9017else
9018    :
9019fi
9020
9021fi
9022
9023
9024
9025
9026
9027
9028  lt_prog_compiler_wl=
9029lt_prog_compiler_pic=
9030lt_prog_compiler_static=
9031
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034
9035  if test "$GCC" = yes; then
9036    lt_prog_compiler_wl='-Wl,'
9037    lt_prog_compiler_static='-static'
9038
9039    case $host_os in
9040      aix*)
9041      # All AIX code is PIC.
9042      if test "$host_cpu" = ia64; then
9043	# AIX 5 now supports IA64 processor
9044	lt_prog_compiler_static='-Bstatic'
9045      fi
9046      ;;
9047
9048    amigaos*)
9049      case $host_cpu in
9050      powerpc)
9051            # see comment about AmigaOS4 .so support
9052            lt_prog_compiler_pic='-fPIC'
9053        ;;
9054      m68k)
9055            # FIXME: we need at least 68020 code to build shared libraries, but
9056            # adding the `-m68020' flag to GCC prevents building anything better,
9057            # like `-m68040'.
9058            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9059        ;;
9060      esac
9061      ;;
9062
9063    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9064      # PIC is the default for these OSes.
9065      ;;
9066
9067    mingw* | cygwin* | pw32* | os2* | cegcc*)
9068      # This hack is so that the source file can tell whether it is being
9069      # built for inclusion in a dll (and should export symbols for example).
9070      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9071      # (--disable-auto-import) libraries
9072      lt_prog_compiler_pic='-DDLL_EXPORT'
9073      ;;
9074
9075    darwin* | rhapsody*)
9076      # PIC is the default on this platform
9077      # Common symbols not allowed in MH_DYLIB files
9078      lt_prog_compiler_pic='-fno-common'
9079      ;;
9080
9081    hpux*)
9082      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9083      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9084      # sets the default TLS model and affects inlining.
9085      case $host_cpu in
9086      hppa*64*)
9087	# +Z the default
9088	;;
9089      *)
9090	lt_prog_compiler_pic='-fPIC'
9091	;;
9092      esac
9093      ;;
9094
9095    interix[3-9]*)
9096      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9097      # Instead, we relocate shared libraries at runtime.
9098      ;;
9099
9100    msdosdjgpp*)
9101      # Just because we use GCC doesn't mean we suddenly get shared libraries
9102      # on systems that don't support them.
9103      lt_prog_compiler_can_build_shared=no
9104      enable_shared=no
9105      ;;
9106
9107    *nto* | *qnx*)
9108      # QNX uses GNU C++, but need to define -shared option too, otherwise
9109      # it will coredump.
9110      lt_prog_compiler_pic='-fPIC -shared'
9111      ;;
9112
9113    sysv4*MP*)
9114      if test -d /usr/nec; then
9115	lt_prog_compiler_pic=-Kconform_pic
9116      fi
9117      ;;
9118
9119    *)
9120      lt_prog_compiler_pic='-fPIC'
9121      ;;
9122    esac
9123  else
9124    # PORTME Check for flag to pass linker flags through the system compiler.
9125    case $host_os in
9126    aix*)
9127      lt_prog_compiler_wl='-Wl,'
9128      if test "$host_cpu" = ia64; then
9129	# AIX 5 now supports IA64 processor
9130	lt_prog_compiler_static='-Bstatic'
9131      else
9132	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9133      fi
9134      ;;
9135
9136    mingw* | cygwin* | pw32* | os2* | cegcc*)
9137      # This hack is so that the source file can tell whether it is being
9138      # built for inclusion in a dll (and should export symbols for example).
9139      lt_prog_compiler_pic='-DDLL_EXPORT'
9140      ;;
9141
9142    hpux9* | hpux10* | hpux11*)
9143      lt_prog_compiler_wl='-Wl,'
9144      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9145      # not for PA HP-UX.
9146      case $host_cpu in
9147      hppa*64*|ia64*)
9148	# +Z the default
9149	;;
9150      *)
9151	lt_prog_compiler_pic='+Z'
9152	;;
9153      esac
9154      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9155      lt_prog_compiler_static='${wl}-a ${wl}archive'
9156      ;;
9157
9158    irix5* | irix6* | nonstopux*)
9159      lt_prog_compiler_wl='-Wl,'
9160      # PIC (with -KPIC) is the default.
9161      lt_prog_compiler_static='-non_shared'
9162      ;;
9163
9164    linux* | k*bsd*-gnu)
9165      case $cc_basename in
9166      # old Intel for x86_64 which still supported -KPIC.
9167      ecc*)
9168	lt_prog_compiler_wl='-Wl,'
9169	lt_prog_compiler_pic='-KPIC'
9170	lt_prog_compiler_static='-static'
9171        ;;
9172      # icc used to be incompatible with GCC.
9173      # ICC 10 doesn't accept -KPIC any more.
9174      icc* | ifort*)
9175	lt_prog_compiler_wl='-Wl,'
9176	lt_prog_compiler_pic='-fPIC'
9177	lt_prog_compiler_static='-static'
9178        ;;
9179      # Lahey Fortran 8.1.
9180      lf95*)
9181	lt_prog_compiler_wl='-Wl,'
9182	lt_prog_compiler_pic='--shared'
9183	lt_prog_compiler_static='--static'
9184	;;
9185      pgcc* | pgf77* | pgf90* | pgf95*)
9186        # Portland Group compilers (*not* the Pentium gcc compiler,
9187	# which looks to be a dead project)
9188	lt_prog_compiler_wl='-Wl,'
9189	lt_prog_compiler_pic='-fpic'
9190	lt_prog_compiler_static='-Bstatic'
9191        ;;
9192      ccc*)
9193        lt_prog_compiler_wl='-Wl,'
9194        # All Alpha code is PIC.
9195        lt_prog_compiler_static='-non_shared'
9196        ;;
9197      xl*)
9198	# IBM XL C 8.0/Fortran 10.1 on PPC
9199	lt_prog_compiler_wl='-Wl,'
9200	lt_prog_compiler_pic='-qpic'
9201	lt_prog_compiler_static='-qstaticlink'
9202	;;
9203      *)
9204	case `$CC -V 2>&1 | sed 5q` in
9205	*Sun\ C*)
9206	  # Sun C 5.9
9207	  lt_prog_compiler_pic='-KPIC'
9208	  lt_prog_compiler_static='-Bstatic'
9209	  lt_prog_compiler_wl='-Wl,'
9210	  ;;
9211	*Sun\ F*)
9212	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9213	  lt_prog_compiler_pic='-KPIC'
9214	  lt_prog_compiler_static='-Bstatic'
9215	  lt_prog_compiler_wl=''
9216	  ;;
9217	esac
9218	;;
9219      esac
9220      ;;
9221
9222    newsos6)
9223      lt_prog_compiler_pic='-KPIC'
9224      lt_prog_compiler_static='-Bstatic'
9225      ;;
9226
9227    *nto* | *qnx*)
9228      # QNX uses GNU C++, but need to define -shared option too, otherwise
9229      # it will coredump.
9230      lt_prog_compiler_pic='-fPIC -shared'
9231      ;;
9232
9233    osf3* | osf4* | osf5*)
9234      lt_prog_compiler_wl='-Wl,'
9235      # All OSF/1 code is PIC.
9236      lt_prog_compiler_static='-non_shared'
9237      ;;
9238
9239    rdos*)
9240      lt_prog_compiler_static='-non_shared'
9241      ;;
9242
9243    solaris*)
9244      lt_prog_compiler_pic='-KPIC'
9245      lt_prog_compiler_static='-Bstatic'
9246      case $cc_basename in
9247      f77* | f90* | f95*)
9248	lt_prog_compiler_wl='-Qoption ld ';;
9249      *)
9250	lt_prog_compiler_wl='-Wl,';;
9251      esac
9252      ;;
9253
9254    sunos4*)
9255      lt_prog_compiler_wl='-Qoption ld '
9256      lt_prog_compiler_pic='-PIC'
9257      lt_prog_compiler_static='-Bstatic'
9258      ;;
9259
9260    sysv4 | sysv4.2uw2* | sysv4.3*)
9261      lt_prog_compiler_wl='-Wl,'
9262      lt_prog_compiler_pic='-KPIC'
9263      lt_prog_compiler_static='-Bstatic'
9264      ;;
9265
9266    sysv4*MP*)
9267      if test -d /usr/nec ;then
9268	lt_prog_compiler_pic='-Kconform_pic'
9269	lt_prog_compiler_static='-Bstatic'
9270      fi
9271      ;;
9272
9273    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9274      lt_prog_compiler_wl='-Wl,'
9275      lt_prog_compiler_pic='-KPIC'
9276      lt_prog_compiler_static='-Bstatic'
9277      ;;
9278
9279    unicos*)
9280      lt_prog_compiler_wl='-Wl,'
9281      lt_prog_compiler_can_build_shared=no
9282      ;;
9283
9284    uts4*)
9285      lt_prog_compiler_pic='-pic'
9286      lt_prog_compiler_static='-Bstatic'
9287      ;;
9288
9289    *)
9290      lt_prog_compiler_can_build_shared=no
9291      ;;
9292    esac
9293  fi
9294
9295case $host_os in
9296  # For platforms which do not support PIC, -DPIC is meaningless:
9297  *djgpp*)
9298    lt_prog_compiler_pic=
9299    ;;
9300  *)
9301    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9302    ;;
9303esac
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9305$as_echo "$lt_prog_compiler_pic" >&6; }
9306
9307
9308
9309
9310
9311
9312#
9313# Check to make sure the PIC flag actually works.
9314#
9315if test -n "$lt_prog_compiler_pic"; then
9316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9317$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9318if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  lt_cv_prog_compiler_pic_works=no
9322   ac_outfile=conftest.$ac_objext
9323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9325   # Insert the option either (1) after the last *FLAGS variable, or
9326   # (2) before a word containing "conftest.", or (3) at the end.
9327   # Note that $ac_compile itself does not contain backslashes and begins
9328   # with a dollar sign (not a hyphen), so the echo should work correctly.
9329   # The option is referenced via a variable to avoid confusing sed.
9330   lt_compile=`echo "$ac_compile" | $SED \
9331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333   -e 's:$: $lt_compiler_flag:'`
9334   (eval echo "\"\$as_me:9334: $lt_compile\"" >&5)
9335   (eval "$lt_compile" 2>conftest.err)
9336   ac_status=$?
9337   cat conftest.err >&5
9338   echo "$as_me:9338: \$? = $ac_status" >&5
9339   if (exit $ac_status) && test -s "$ac_outfile"; then
9340     # The compiler can only warn and ignore the option if not recognized
9341     # So say no if there are warnings other than the usual output.
9342     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9345       lt_cv_prog_compiler_pic_works=yes
9346     fi
9347   fi
9348   $RM conftest*
9349
9350fi
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9352$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9353
9354if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9355    case $lt_prog_compiler_pic in
9356     "" | " "*) ;;
9357     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9358     esac
9359else
9360    lt_prog_compiler_pic=
9361     lt_prog_compiler_can_build_shared=no
9362fi
9363
9364fi
9365
9366
9367
9368
9369
9370
9371#
9372# Check to make sure the static flag actually works.
9373#
9374wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9376$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9377if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9378  $as_echo_n "(cached) " >&6
9379else
9380  lt_cv_prog_compiler_static_works=no
9381   save_LDFLAGS="$LDFLAGS"
9382   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9383   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9384   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9385     # The linker can only warn and ignore the option if not recognized
9386     # So say no if there are warnings
9387     if test -s conftest.err; then
9388       # Append any errors to the config.log.
9389       cat conftest.err 1>&5
9390       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9391       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9392       if diff conftest.exp conftest.er2 >/dev/null; then
9393         lt_cv_prog_compiler_static_works=yes
9394       fi
9395     else
9396       lt_cv_prog_compiler_static_works=yes
9397     fi
9398   fi
9399   $RM -r conftest*
9400   LDFLAGS="$save_LDFLAGS"
9401
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9404$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9405
9406if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9407    :
9408else
9409    lt_prog_compiler_static=
9410fi
9411
9412
9413
9414
9415
9416
9417
9418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9419$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9420if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  lt_cv_prog_compiler_c_o=no
9424   $RM -r conftest 2>/dev/null
9425   mkdir conftest
9426   cd conftest
9427   mkdir out
9428   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9429
9430   lt_compiler_flag="-o out/conftest2.$ac_objext"
9431   # Insert the option either (1) after the last *FLAGS variable, or
9432   # (2) before a word containing "conftest.", or (3) at the end.
9433   # Note that $ac_compile itself does not contain backslashes and begins
9434   # with a dollar sign (not a hyphen), so the echo should work correctly.
9435   lt_compile=`echo "$ac_compile" | $SED \
9436   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438   -e 's:$: $lt_compiler_flag:'`
9439   (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
9440   (eval "$lt_compile" 2>out/conftest.err)
9441   ac_status=$?
9442   cat out/conftest.err >&5
9443   echo "$as_me:9443: \$? = $ac_status" >&5
9444   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9445   then
9446     # The compiler can only warn and ignore the option if not recognized
9447     # So say no if there are warnings
9448     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9449     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9450     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9451       lt_cv_prog_compiler_c_o=yes
9452     fi
9453   fi
9454   chmod u+w . 2>&5
9455   $RM conftest*
9456   # SGI C++ compiler will create directory out/ii_files/ for
9457   # template instantiation
9458   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9459   $RM out/* && rmdir out
9460   cd ..
9461   $RM -r conftest
9462   $RM conftest*
9463
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9466$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9467
9468
9469
9470
9471
9472
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9474$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9475if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  lt_cv_prog_compiler_c_o=no
9479   $RM -r conftest 2>/dev/null
9480   mkdir conftest
9481   cd conftest
9482   mkdir out
9483   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484
9485   lt_compiler_flag="-o out/conftest2.$ac_objext"
9486   # Insert the option either (1) after the last *FLAGS variable, or
9487   # (2) before a word containing "conftest.", or (3) at the end.
9488   # Note that $ac_compile itself does not contain backslashes and begins
9489   # with a dollar sign (not a hyphen), so the echo should work correctly.
9490   lt_compile=`echo "$ac_compile" | $SED \
9491   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493   -e 's:$: $lt_compiler_flag:'`
9494   (eval echo "\"\$as_me:9494: $lt_compile\"" >&5)
9495   (eval "$lt_compile" 2>out/conftest.err)
9496   ac_status=$?
9497   cat out/conftest.err >&5
9498   echo "$as_me:9498: \$? = $ac_status" >&5
9499   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9500   then
9501     # The compiler can only warn and ignore the option if not recognized
9502     # So say no if there are warnings
9503     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9504     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9505     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9506       lt_cv_prog_compiler_c_o=yes
9507     fi
9508   fi
9509   chmod u+w . 2>&5
9510   $RM conftest*
9511   # SGI C++ compiler will create directory out/ii_files/ for
9512   # template instantiation
9513   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9514   $RM out/* && rmdir out
9515   cd ..
9516   $RM -r conftest
9517   $RM conftest*
9518
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9521$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9522
9523
9524
9525
9526hard_links="nottested"
9527if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9528  # do not overwrite the value of need_locks provided by the user
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9530$as_echo_n "checking if we can lock with hard links... " >&6; }
9531  hard_links=yes
9532  $RM conftest*
9533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9534  touch conftest.a
9535  ln conftest.a conftest.b 2>&5 || hard_links=no
9536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9538$as_echo "$hard_links" >&6; }
9539  if test "$hard_links" = no; then
9540    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9541$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9542    need_locks=warn
9543  fi
9544else
9545  need_locks=no
9546fi
9547
9548
9549
9550
9551
9552
9553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9555
9556  runpath_var=
9557  allow_undefined_flag=
9558  always_export_symbols=no
9559  archive_cmds=
9560  archive_expsym_cmds=
9561  compiler_needs_object=no
9562  enable_shared_with_static_runtimes=no
9563  export_dynamic_flag_spec=
9564  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9565  hardcode_automatic=no
9566  hardcode_direct=no
9567  hardcode_direct_absolute=no
9568  hardcode_libdir_flag_spec=
9569  hardcode_libdir_flag_spec_ld=
9570  hardcode_libdir_separator=
9571  hardcode_minus_L=no
9572  hardcode_shlibpath_var=unsupported
9573  inherit_rpath=no
9574  link_all_deplibs=unknown
9575  module_cmds=
9576  module_expsym_cmds=
9577  old_archive_from_new_cmds=
9578  old_archive_from_expsyms_cmds=
9579  thread_safe_flag_spec=
9580  whole_archive_flag_spec=
9581  # include_expsyms should be a list of space-separated symbols to be *always*
9582  # included in the symbol list
9583  include_expsyms=
9584  # exclude_expsyms can be an extended regexp of symbols to exclude
9585  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9586  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9587  # as well as any symbol that contains `d'.
9588  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9589  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9590  # platforms (ab)use it in PIC code, but their linkers get confused if
9591  # the symbol is explicitly referenced.  Since portable code cannot
9592  # rely on this symbol name, it's probably fine to never include it in
9593  # preloaded symbol tables.
9594  # Exclude shared library initialization/finalization symbols.
9595  extract_expsyms_cmds=
9596
9597  case $host_os in
9598  cygwin* | mingw* | pw32* | cegcc*)
9599    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9600    # When not using gcc, we currently assume that we are using
9601    # Microsoft Visual C++.
9602    if test "$GCC" != yes; then
9603      with_gnu_ld=no
9604    fi
9605    ;;
9606  interix*)
9607    # we just hope/assume this is gcc and not c89 (= MSVC++)
9608    with_gnu_ld=yes
9609    ;;
9610  openbsd*)
9611    with_gnu_ld=no
9612    ;;
9613  esac
9614
9615  ld_shlibs=yes
9616  if test "$with_gnu_ld" = yes; then
9617    # If archive_cmds runs LD, not CC, wlarc should be empty
9618    wlarc='${wl}'
9619
9620    # Set some defaults for GNU ld with shared library support. These
9621    # are reset later if shared libraries are not supported. Putting them
9622    # here allows them to be overridden if necessary.
9623    runpath_var=LD_RUN_PATH
9624    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625    export_dynamic_flag_spec='${wl}--export-dynamic'
9626    # ancient GNU ld didn't support --whole-archive et. al.
9627    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9628      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9629    else
9630      whole_archive_flag_spec=
9631    fi
9632    supports_anon_versioning=no
9633    case `$LD -v 2>&1` in
9634      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9635      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9636      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9637      *\ 2.11.*) ;; # other 2.11 versions
9638      *) supports_anon_versioning=yes ;;
9639    esac
9640
9641    # See if GNU ld supports shared libraries.
9642    case $host_os in
9643    aix[3-9]*)
9644      # On AIX/PPC, the GNU linker is very broken
9645      if test "$host_cpu" != ia64; then
9646	ld_shlibs=no
9647	cat <<_LT_EOF 1>&2
9648
9649*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9650*** to be unable to reliably create shared libraries on AIX.
9651*** Therefore, libtool is disabling shared libraries support.  If you
9652*** really care for shared libraries, you may want to modify your PATH
9653*** so that a non-GNU linker is found, and then restart.
9654
9655_LT_EOF
9656      fi
9657      ;;
9658
9659    amigaos*)
9660      case $host_cpu in
9661      powerpc)
9662            # see comment about AmigaOS4 .so support
9663            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664            archive_expsym_cmds=''
9665        ;;
9666      m68k)
9667            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)'
9668            hardcode_libdir_flag_spec='-L$libdir'
9669            hardcode_minus_L=yes
9670        ;;
9671      esac
9672      ;;
9673
9674    beos*)
9675      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676	allow_undefined_flag=unsupported
9677	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9678	# support --undefined.  This deserves some investigation.  FIXME
9679	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680      else
9681	ld_shlibs=no
9682      fi
9683      ;;
9684
9685    cygwin* | mingw* | pw32* | cegcc*)
9686      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9687      # as there is no search path for DLLs.
9688      hardcode_libdir_flag_spec='-L$libdir'
9689      allow_undefined_flag=unsupported
9690      always_export_symbols=no
9691      enable_shared_with_static_runtimes=yes
9692      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9693
9694      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9695        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9696	# If the export-symbols file already is a .def file (1st line
9697	# is EXPORTS), use it as is; otherwise, prepend...
9698	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699	  cp $export_symbols $output_objdir/$soname.def;
9700	else
9701	  echo EXPORTS > $output_objdir/$soname.def;
9702	  cat $export_symbols >> $output_objdir/$soname.def;
9703	fi~
9704	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9705      else
9706	ld_shlibs=no
9707      fi
9708      ;;
9709
9710    interix[3-9]*)
9711      hardcode_direct=no
9712      hardcode_shlibpath_var=no
9713      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714      export_dynamic_flag_spec='${wl}-E'
9715      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9716      # Instead, shared libraries are loaded at an image base (0x10000000 by
9717      # default) and relocated if they conflict, which is a slow very memory
9718      # consuming and fragmenting process.  To avoid this, we pick a random,
9719      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9720      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9721      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9722      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'
9723      ;;
9724
9725    gnu* | linux* | tpf* | k*bsd*-gnu)
9726      tmp_diet=no
9727      if test "$host_os" = linux-dietlibc; then
9728	case $cc_basename in
9729	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9730	esac
9731      fi
9732      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9733	 && test "$tmp_diet" = no
9734      then
9735	tmp_addflag=
9736	tmp_sharedflag='-shared'
9737	case $cc_basename,$host_cpu in
9738        pgcc*)				# Portland Group C compiler
9739	  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'
9740	  tmp_addflag=' $pic_flag'
9741	  ;;
9742	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9743	  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'
9744	  tmp_addflag=' $pic_flag -Mnomain' ;;
9745	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9746	  tmp_addflag=' -i_dynamic' ;;
9747	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9748	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9749	ifc* | ifort*)			# Intel Fortran compiler
9750	  tmp_addflag=' -nofor_main' ;;
9751	lf95*)				# Lahey Fortran 8.1
9752	  whole_archive_flag_spec=
9753	  tmp_sharedflag='--shared' ;;
9754	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9755	  tmp_sharedflag='-qmkshrobj'
9756	  tmp_addflag= ;;
9757	esac
9758	case `$CC -V 2>&1 | sed 5q` in
9759	*Sun\ C*)			# Sun C 5.9
9760	  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'
9761	  compiler_needs_object=yes
9762	  tmp_sharedflag='-G' ;;
9763	*Sun\ F*)			# Sun Fortran 8.3
9764	  tmp_sharedflag='-G' ;;
9765	esac
9766	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767
9768        if test "x$supports_anon_versioning" = xyes; then
9769          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9770	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9771	    echo "local: *; };" >> $output_objdir/$libname.ver~
9772	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9773        fi
9774
9775	case $cc_basename in
9776	xlf*)
9777	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9778	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9779	  hardcode_libdir_flag_spec=
9780	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9781	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9782	  if test "x$supports_anon_versioning" = xyes; then
9783	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9784	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9785	      echo "local: *; };" >> $output_objdir/$libname.ver~
9786	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9787	  fi
9788	  ;;
9789	esac
9790      else
9791        ld_shlibs=no
9792      fi
9793      ;;
9794
9795    netbsd*)
9796      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9797	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9798	wlarc=
9799      else
9800	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802      fi
9803      ;;
9804
9805    solaris*)
9806      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9807	ld_shlibs=no
9808	cat <<_LT_EOF 1>&2
9809
9810*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9811*** create shared libraries on Solaris systems.  Therefore, libtool
9812*** is disabling shared libraries support.  We urge you to upgrade GNU
9813*** binutils to release 2.9.1 or newer.  Another option is to modify
9814*** your PATH or compiler configuration so that the native linker is
9815*** used, and then restart.
9816
9817_LT_EOF
9818      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9819	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9821      else
9822	ld_shlibs=no
9823      fi
9824      ;;
9825
9826    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9827      case `$LD -v 2>&1` in
9828        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9829	ld_shlibs=no
9830	cat <<_LT_EOF 1>&2
9831
9832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9833*** reliably create shared libraries on SCO systems.  Therefore, libtool
9834*** is disabling shared libraries support.  We urge you to upgrade GNU
9835*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9836*** your PATH or compiler configuration so that the native linker is
9837*** used, and then restart.
9838
9839_LT_EOF
9840	;;
9841	*)
9842	  # For security reasons, it is highly recommended that you always
9843	  # use absolute paths for naming shared libraries, and exclude the
9844	  # DT_RUNPATH tag from executables and libraries.  But doing so
9845	  # requires that you compile everything twice, which is a pain.
9846	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9847	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850	  else
9851	    ld_shlibs=no
9852	  fi
9853	;;
9854      esac
9855      ;;
9856
9857    sunos4*)
9858      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9859      wlarc=
9860      hardcode_direct=yes
9861      hardcode_shlibpath_var=no
9862      ;;
9863
9864    *)
9865      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9868      else
9869	ld_shlibs=no
9870      fi
9871      ;;
9872    esac
9873
9874    if test "$ld_shlibs" = no; then
9875      runpath_var=
9876      hardcode_libdir_flag_spec=
9877      export_dynamic_flag_spec=
9878      whole_archive_flag_spec=
9879    fi
9880  else
9881    # PORTME fill in a description of your system's linker (not GNU ld)
9882    case $host_os in
9883    aix3*)
9884      allow_undefined_flag=unsupported
9885      always_export_symbols=yes
9886      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'
9887      # Note: this linker hardcodes the directories in LIBPATH if there
9888      # are no directories specified by -L.
9889      hardcode_minus_L=yes
9890      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9891	# Neither direct hardcoding nor static linking is supported with a
9892	# broken collect2.
9893	hardcode_direct=unsupported
9894      fi
9895      ;;
9896
9897    aix[4-9]*)
9898      if test "$host_cpu" = ia64; then
9899	# On IA64, the linker does run time linking by default, so we don't
9900	# have to do anything special.
9901	aix_use_runtimelinking=no
9902	exp_sym_flag='-Bexport'
9903	no_entry_flag=""
9904      else
9905	# If we're using GNU nm, then we don't want the "-C" option.
9906	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9907	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9908	  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'
9909	else
9910	  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'
9911	fi
9912	aix_use_runtimelinking=no
9913
9914	# Test if we are trying to use run time linking or normal
9915	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9916	# need to do runtime linking.
9917	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9918	  for ld_flag in $LDFLAGS; do
9919	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9920	    aix_use_runtimelinking=yes
9921	    break
9922	  fi
9923	  done
9924	  ;;
9925	esac
9926
9927	exp_sym_flag='-bexport'
9928	no_entry_flag='-bnoentry'
9929      fi
9930
9931      # When large executables or shared objects are built, AIX ld can
9932      # have problems creating the table of contents.  If linking a library
9933      # or program results in "error TOC overflow" add -mminimal-toc to
9934      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9935      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9936
9937      archive_cmds=''
9938      hardcode_direct=yes
9939      hardcode_direct_absolute=yes
9940      hardcode_libdir_separator=':'
9941      link_all_deplibs=yes
9942      file_list_spec='${wl}-f,'
9943
9944      if test "$GCC" = yes; then
9945	case $host_os in aix4.[012]|aix4.[012].*)
9946	# We only want to do this on AIX 4.2 and lower, the check
9947	# below for broken collect2 doesn't work under 4.3+
9948	  collect2name=`${CC} -print-prog-name=collect2`
9949	  if test -f "$collect2name" &&
9950	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9951	  then
9952	  # We have reworked collect2
9953	  :
9954	  else
9955	  # We have old collect2
9956	  hardcode_direct=unsupported
9957	  # It fails to find uninstalled libraries when the uninstalled
9958	  # path is not listed in the libpath.  Setting hardcode_minus_L
9959	  # to unsupported forces relinking
9960	  hardcode_minus_L=yes
9961	  hardcode_libdir_flag_spec='-L$libdir'
9962	  hardcode_libdir_separator=
9963	  fi
9964	  ;;
9965	esac
9966	shared_flag='-shared'
9967	if test "$aix_use_runtimelinking" = yes; then
9968	  shared_flag="$shared_flag "'${wl}-G'
9969	fi
9970      else
9971	# not using gcc
9972	if test "$host_cpu" = ia64; then
9973	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9974	# chokes on -Wl,-G. The following line is correct:
9975	  shared_flag='-G'
9976	else
9977	  if test "$aix_use_runtimelinking" = yes; then
9978	    shared_flag='${wl}-G'
9979	  else
9980	    shared_flag='${wl}-bM:SRE'
9981	  fi
9982	fi
9983      fi
9984
9985      export_dynamic_flag_spec='${wl}-bexpall'
9986      # It seems that -bexpall does not export symbols beginning with
9987      # underscore (_), so it is better to generate a list of symbols to export.
9988      always_export_symbols=yes
9989      if test "$aix_use_runtimelinking" = yes; then
9990	# Warning - without using the other runtime loading flags (-brtl),
9991	# -berok will link without error, but may produce a broken library.
9992	allow_undefined_flag='-berok'
9993        # Determine the default libpath from the value encoded in an
9994        # empty executable.
9995        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997
9998int
9999main ()
10000{
10001
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007
10008lt_aix_libpath_sed='
10009    /Import File Strings/,/^$/ {
10010	/^0/ {
10011	    s/^0  *\(.*\)$/\1/
10012	    p
10013	}
10014    }'
10015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10016# Check for a 64-bit object if we didn't find anything.
10017if test -z "$aix_libpath"; then
10018  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10019fi
10020fi
10021rm -f core conftest.err conftest.$ac_objext \
10022    conftest$ac_exeext conftest.$ac_ext
10023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10024
10025        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10026        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"
10027      else
10028	if test "$host_cpu" = ia64; then
10029	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10030	  allow_undefined_flag="-z nodefs"
10031	  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"
10032	else
10033	 # Determine the default libpath from the value encoded in an
10034	 # empty executable.
10035	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037
10038int
10039main ()
10040{
10041
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"; then :
10047
10048lt_aix_libpath_sed='
10049    /Import File Strings/,/^$/ {
10050	/^0/ {
10051	    s/^0  *\(.*\)$/\1/
10052	    p
10053	}
10054    }'
10055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10056# Check for a 64-bit object if we didn't find anything.
10057if test -z "$aix_libpath"; then
10058  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10059fi
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062    conftest$ac_exeext conftest.$ac_ext
10063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10064
10065	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10066	  # Warning - without using the other run time loading flags,
10067	  # -berok will link without error, but may produce a broken library.
10068	  no_undefined_flag=' ${wl}-bernotok'
10069	  allow_undefined_flag=' ${wl}-berok'
10070	  # Exported symbols can be pulled into shared objects from archives
10071	  whole_archive_flag_spec='$convenience'
10072	  archive_cmds_need_lc=yes
10073	  # This is similar to how AIX traditionally builds its shared libraries.
10074	  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'
10075	fi
10076      fi
10077      ;;
10078
10079    amigaos*)
10080      case $host_cpu in
10081      powerpc)
10082            # see comment about AmigaOS4 .so support
10083            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084            archive_expsym_cmds=''
10085        ;;
10086      m68k)
10087            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)'
10088            hardcode_libdir_flag_spec='-L$libdir'
10089            hardcode_minus_L=yes
10090        ;;
10091      esac
10092      ;;
10093
10094    bsdi[45]*)
10095      export_dynamic_flag_spec=-rdynamic
10096      ;;
10097
10098    cygwin* | mingw* | pw32* | cegcc*)
10099      # When not using gcc, we currently assume that we are using
10100      # Microsoft Visual C++.
10101      # hardcode_libdir_flag_spec is actually meaningless, as there is
10102      # no search path for DLLs.
10103      hardcode_libdir_flag_spec=' '
10104      allow_undefined_flag=unsupported
10105      # Tell ltmain to make .lib files, not .a files.
10106      libext=lib
10107      # Tell ltmain to make .dll files, not .so files.
10108      shrext_cmds=".dll"
10109      # FIXME: Setting linknames here is a bad hack.
10110      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10111      # The linker will automatically build a .lib file if we build a DLL.
10112      old_archive_from_new_cmds='true'
10113      # FIXME: Should let the user specify the lib program.
10114      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10115      fix_srcfile_path='`cygpath -w "$srcfile"`'
10116      enable_shared_with_static_runtimes=yes
10117      ;;
10118
10119    darwin* | rhapsody*)
10120
10121
10122  archive_cmds_need_lc=no
10123  hardcode_direct=no
10124  hardcode_automatic=yes
10125  hardcode_shlibpath_var=unsupported
10126  whole_archive_flag_spec=''
10127  link_all_deplibs=yes
10128  allow_undefined_flag="$_lt_dar_allow_undefined"
10129  case $cc_basename in
10130     ifort*) _lt_dar_can_shared=yes ;;
10131     *) _lt_dar_can_shared=$GCC ;;
10132  esac
10133  if test "$_lt_dar_can_shared" = "yes"; then
10134    output_verbose_link_cmd=echo
10135    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10136    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10137    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}"
10138    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}"
10139
10140  else
10141  ld_shlibs=no
10142  fi
10143
10144      ;;
10145
10146    dgux*)
10147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148      hardcode_libdir_flag_spec='-L$libdir'
10149      hardcode_shlibpath_var=no
10150      ;;
10151
10152    freebsd1*)
10153      ld_shlibs=no
10154      ;;
10155
10156    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10157    # support.  Future versions do this automatically, but an explicit c++rt0.o
10158    # does not break anything, and helps significantly (at the cost of a little
10159    # extra space).
10160    freebsd2.2*)
10161      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10162      hardcode_libdir_flag_spec='-R$libdir'
10163      hardcode_direct=yes
10164      hardcode_shlibpath_var=no
10165      ;;
10166
10167    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10168    freebsd2*)
10169      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10170      hardcode_direct=yes
10171      hardcode_minus_L=yes
10172      hardcode_shlibpath_var=no
10173      ;;
10174
10175    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10176    freebsd* | dragonfly*)
10177      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10178      hardcode_libdir_flag_spec='-R$libdir'
10179      hardcode_direct=yes
10180      hardcode_shlibpath_var=no
10181      ;;
10182
10183    hpux9*)
10184      if test "$GCC" = yes; then
10185	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'
10186      else
10187	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'
10188      fi
10189      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10190      hardcode_libdir_separator=:
10191      hardcode_direct=yes
10192
10193      # hardcode_minus_L: Not really in the search PATH,
10194      # but as the default location of the library.
10195      hardcode_minus_L=yes
10196      export_dynamic_flag_spec='${wl}-E'
10197      ;;
10198
10199    hpux10*)
10200      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10201	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10202      else
10203	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10204      fi
10205      if test "$with_gnu_ld" = no; then
10206	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10207	hardcode_libdir_flag_spec_ld='+b $libdir'
10208	hardcode_libdir_separator=:
10209	hardcode_direct=yes
10210	hardcode_direct_absolute=yes
10211	export_dynamic_flag_spec='${wl}-E'
10212	# hardcode_minus_L: Not really in the search PATH,
10213	# but as the default location of the library.
10214	hardcode_minus_L=yes
10215      fi
10216      ;;
10217
10218    hpux11*)
10219      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10220	case $host_cpu in
10221	hppa*64*)
10222	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10223	  ;;
10224	ia64*)
10225	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10226	  ;;
10227	*)
10228	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10229	  ;;
10230	esac
10231      else
10232	case $host_cpu in
10233	hppa*64*)
10234	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235	  ;;
10236	ia64*)
10237	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10238	  ;;
10239	*)
10240	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241	  ;;
10242	esac
10243      fi
10244      if test "$with_gnu_ld" = no; then
10245	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10246	hardcode_libdir_separator=:
10247
10248	case $host_cpu in
10249	hppa*64*|ia64*)
10250	  hardcode_direct=no
10251	  hardcode_shlibpath_var=no
10252	  ;;
10253	*)
10254	  hardcode_direct=yes
10255	  hardcode_direct_absolute=yes
10256	  export_dynamic_flag_spec='${wl}-E'
10257
10258	  # hardcode_minus_L: Not really in the search PATH,
10259	  # but as the default location of the library.
10260	  hardcode_minus_L=yes
10261	  ;;
10262	esac
10263      fi
10264      ;;
10265
10266    irix5* | irix6* | nonstopux*)
10267      if test "$GCC" = yes; then
10268	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'
10269	# Try to use the -exported_symbol ld option, if it does not
10270	# work, assume that -exports_file does not work either and
10271	# implicitly export all symbols.
10272        save_LDFLAGS="$LDFLAGS"
10273        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10274        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276int foo(void) {}
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"; then :
10279  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'
10280
10281fi
10282rm -f core conftest.err conftest.$ac_objext \
10283    conftest$ac_exeext conftest.$ac_ext
10284        LDFLAGS="$save_LDFLAGS"
10285      else
10286	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'
10287	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'
10288      fi
10289      archive_cmds_need_lc='no'
10290      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10291      hardcode_libdir_separator=:
10292      inherit_rpath=yes
10293      link_all_deplibs=yes
10294      ;;
10295
10296    netbsd*)
10297      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10298	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10299      else
10300	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10301      fi
10302      hardcode_libdir_flag_spec='-R$libdir'
10303      hardcode_direct=yes
10304      hardcode_shlibpath_var=no
10305      ;;
10306
10307    newsos6)
10308      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309      hardcode_direct=yes
10310      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10311      hardcode_libdir_separator=:
10312      hardcode_shlibpath_var=no
10313      ;;
10314
10315    *nto* | *qnx*)
10316      ;;
10317
10318    openbsd*)
10319      if test -f /usr/libexec/ld.so; then
10320	hardcode_direct=yes
10321	hardcode_shlibpath_var=no
10322	hardcode_direct_absolute=yes
10323	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10325	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10326	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10327	  export_dynamic_flag_spec='${wl}-E'
10328	else
10329	  case $host_os in
10330	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10331	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10332	     hardcode_libdir_flag_spec='-R$libdir'
10333	     ;;
10334	   *)
10335	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10336	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10337	     ;;
10338	  esac
10339	fi
10340      else
10341	ld_shlibs=no
10342      fi
10343      ;;
10344
10345    os2*)
10346      hardcode_libdir_flag_spec='-L$libdir'
10347      hardcode_minus_L=yes
10348      allow_undefined_flag=unsupported
10349      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'
10350      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10351      ;;
10352
10353    osf3*)
10354      if test "$GCC" = yes; then
10355	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10356	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'
10357      else
10358	allow_undefined_flag=' -expect_unresolved \*'
10359	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'
10360      fi
10361      archive_cmds_need_lc='no'
10362      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363      hardcode_libdir_separator=:
10364      ;;
10365
10366    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10367      if test "$GCC" = yes; then
10368	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10369	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'
10370	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371      else
10372	allow_undefined_flag=' -expect_unresolved \*'
10373	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'
10374	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~
10375	$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'
10376
10377	# Both c and cxx compiler support -rpath directly
10378	hardcode_libdir_flag_spec='-rpath $libdir'
10379      fi
10380      archive_cmds_need_lc='no'
10381      hardcode_libdir_separator=:
10382      ;;
10383
10384    solaris*)
10385      no_undefined_flag=' -z defs'
10386      if test "$GCC" = yes; then
10387	wlarc='${wl}'
10388	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10389	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10390	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10391      else
10392	case `$CC -V 2>&1` in
10393	*"Compilers 5.0"*)
10394	  wlarc=''
10395	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10397	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10398	  ;;
10399	*)
10400	  wlarc='${wl}'
10401	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10402	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10403	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10404	  ;;
10405	esac
10406      fi
10407      hardcode_libdir_flag_spec='-R$libdir'
10408      hardcode_shlibpath_var=no
10409      case $host_os in
10410      solaris2.[0-5] | solaris2.[0-5].*) ;;
10411      *)
10412	# The compiler driver will combine and reorder linker options,
10413	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10414	# but is careful enough not to reorder.
10415	# Supported since Solaris 2.6 (maybe 2.5.1?)
10416	if test "$GCC" = yes; then
10417	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10418	else
10419	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10420	fi
10421	;;
10422      esac
10423      link_all_deplibs=yes
10424      ;;
10425
10426    sunos4*)
10427      if test "x$host_vendor" = xsequent; then
10428	# Use $CC to link under sequent, because it throws in some extra .o
10429	# files that make .init and .fini sections work.
10430	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10431      else
10432	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10433      fi
10434      hardcode_libdir_flag_spec='-L$libdir'
10435      hardcode_direct=yes
10436      hardcode_minus_L=yes
10437      hardcode_shlibpath_var=no
10438      ;;
10439
10440    sysv4)
10441      case $host_vendor in
10442	sni)
10443	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444	  hardcode_direct=yes # is this really true???
10445	;;
10446	siemens)
10447	  ## LD is ld it makes a PLAMLIB
10448	  ## CC just makes a GrossModule.
10449	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10450	  reload_cmds='$CC -r -o $output$reload_objs'
10451	  hardcode_direct=no
10452        ;;
10453	motorola)
10454	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10456	;;
10457      esac
10458      runpath_var='LD_RUN_PATH'
10459      hardcode_shlibpath_var=no
10460      ;;
10461
10462    sysv4.3*)
10463      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464      hardcode_shlibpath_var=no
10465      export_dynamic_flag_spec='-Bexport'
10466      ;;
10467
10468    sysv4*MP*)
10469      if test -d /usr/nec; then
10470	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471	hardcode_shlibpath_var=no
10472	runpath_var=LD_RUN_PATH
10473	hardcode_runpath_var=yes
10474	ld_shlibs=yes
10475      fi
10476      ;;
10477
10478    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10479      no_undefined_flag='${wl}-z,text'
10480      archive_cmds_need_lc=no
10481      hardcode_shlibpath_var=no
10482      runpath_var='LD_RUN_PATH'
10483
10484      if test "$GCC" = yes; then
10485	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487      else
10488	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490      fi
10491      ;;
10492
10493    sysv5* | sco3.2v5* | sco5v6*)
10494      # Note: We can NOT use -z defs as we might desire, because we do not
10495      # link with -lc, and that would cause any symbols used from libc to
10496      # always be unresolved, which means just about no library would
10497      # ever link correctly.  If we're not using GNU ld we use -z text
10498      # though, which does catch some bad symbols but isn't as heavy-handed
10499      # as -z defs.
10500      no_undefined_flag='${wl}-z,text'
10501      allow_undefined_flag='${wl}-z,nodefs'
10502      archive_cmds_need_lc=no
10503      hardcode_shlibpath_var=no
10504      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10505      hardcode_libdir_separator=':'
10506      link_all_deplibs=yes
10507      export_dynamic_flag_spec='${wl}-Bexport'
10508      runpath_var='LD_RUN_PATH'
10509
10510      if test "$GCC" = yes; then
10511	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513      else
10514	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516      fi
10517      ;;
10518
10519    uts4*)
10520      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521      hardcode_libdir_flag_spec='-L$libdir'
10522      hardcode_shlibpath_var=no
10523      ;;
10524
10525    *)
10526      ld_shlibs=no
10527      ;;
10528    esac
10529
10530    if test x$host_vendor = xsni; then
10531      case $host in
10532      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10533	export_dynamic_flag_spec='${wl}-Blargedynsym'
10534	;;
10535      esac
10536    fi
10537  fi
10538
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10540$as_echo "$ld_shlibs" >&6; }
10541test "$ld_shlibs" = no && can_build_shared=no
10542
10543with_gnu_ld=$with_gnu_ld
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559#
10560# Do we need to explicitly link libc?
10561#
10562case "x$archive_cmds_need_lc" in
10563x|xyes)
10564  # Assume -lc should be added
10565  archive_cmds_need_lc=yes
10566
10567  if test "$enable_shared" = yes && test "$GCC" = yes; then
10568    case $archive_cmds in
10569    *'~'*)
10570      # FIXME: we may have to deal with multi-command sequences.
10571      ;;
10572    '$CC '*)
10573      # Test whether the compiler implicitly links with -lc since on some
10574      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10575      # to ld, don't add -lc before -lgcc.
10576      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10577$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10578      $RM conftest*
10579      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10580
10581      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10582  (eval $ac_compile) 2>&5
10583  ac_status=$?
10584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10585  test $ac_status = 0; } 2>conftest.err; then
10586        soname=conftest
10587        lib=conftest
10588        libobjs=conftest.$ac_objext
10589        deplibs=
10590        wl=$lt_prog_compiler_wl
10591	pic_flag=$lt_prog_compiler_pic
10592        compiler_flags=-v
10593        linker_flags=-v
10594        verstring=
10595        output_objdir=.
10596        libname=conftest
10597        lt_save_allow_undefined_flag=$allow_undefined_flag
10598        allow_undefined_flag=
10599        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10600  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10601  ac_status=$?
10602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10603  test $ac_status = 0; }
10604        then
10605	  archive_cmds_need_lc=no
10606        else
10607	  archive_cmds_need_lc=yes
10608        fi
10609        allow_undefined_flag=$lt_save_allow_undefined_flag
10610      else
10611        cat conftest.err 1>&5
10612      fi
10613      $RM conftest*
10614      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10615$as_echo "$archive_cmds_need_lc" >&6; }
10616      ;;
10617    esac
10618  fi
10619  ;;
10620esac
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10779$as_echo_n "checking dynamic linker characteristics... " >&6; }
10780
10781if test "$GCC" = yes; then
10782  case $host_os in
10783    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10784    *) lt_awk_arg="/^libraries:/" ;;
10785  esac
10786  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10787  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10788    # if the path contains ";" then we assume it to be the separator
10789    # otherwise default to the standard path separator (i.e. ":") - it is
10790    # assumed that no part of a normal pathname contains ";" but that should
10791    # okay in the real world where ";" in dirpaths is itself problematic.
10792    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10793  else
10794    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10795  fi
10796  # Ok, now we have the path, separated by spaces, we can step through it
10797  # and add multilib dir if necessary.
10798  lt_tmp_lt_search_path_spec=
10799  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10800  for lt_sys_path in $lt_search_path_spec; do
10801    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10802      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10803    else
10804      test -d "$lt_sys_path" && \
10805	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10806    fi
10807  done
10808  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10809BEGIN {RS=" "; FS="/|\n";} {
10810  lt_foo="";
10811  lt_count=0;
10812  for (lt_i = NF; lt_i > 0; lt_i--) {
10813    if ($lt_i != "" && $lt_i != ".") {
10814      if ($lt_i == "..") {
10815        lt_count++;
10816      } else {
10817        if (lt_count == 0) {
10818          lt_foo="/" $lt_i lt_foo;
10819        } else {
10820          lt_count--;
10821        }
10822      }
10823    }
10824  }
10825  if (lt_foo != "") { lt_freq[lt_foo]++; }
10826  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10827}'`
10828  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10829else
10830  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10831fi
10832library_names_spec=
10833libname_spec='lib$name'
10834soname_spec=
10835shrext_cmds=".so"
10836postinstall_cmds=
10837postuninstall_cmds=
10838finish_cmds=
10839finish_eval=
10840shlibpath_var=
10841shlibpath_overrides_runpath=unknown
10842version_type=none
10843dynamic_linker="$host_os ld.so"
10844sys_lib_dlsearch_path_spec="/lib /usr/lib"
10845need_lib_prefix=unknown
10846hardcode_into_libs=no
10847
10848# when you set need_version to no, make sure it does not cause -set_version
10849# flags to be left without arguments
10850need_version=unknown
10851
10852case $host_os in
10853aix3*)
10854  version_type=linux
10855  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10856  shlibpath_var=LIBPATH
10857
10858  # AIX 3 has no versioning support, so we append a major version to the name.
10859  soname_spec='${libname}${release}${shared_ext}$major'
10860  ;;
10861
10862aix[4-9]*)
10863  version_type=linux
10864  need_lib_prefix=no
10865  need_version=no
10866  hardcode_into_libs=yes
10867  if test "$host_cpu" = ia64; then
10868    # AIX 5 supports IA64
10869    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10870    shlibpath_var=LD_LIBRARY_PATH
10871  else
10872    # With GCC up to 2.95.x, collect2 would create an import file
10873    # for dependence libraries.  The import file would start with
10874    # the line `#! .'.  This would cause the generated library to
10875    # depend on `.', always an invalid library.  This was fixed in
10876    # development snapshots of GCC prior to 3.0.
10877    case $host_os in
10878      aix4 | aix4.[01] | aix4.[01].*)
10879      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10880	   echo ' yes '
10881	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10882	:
10883      else
10884	can_build_shared=no
10885      fi
10886      ;;
10887    esac
10888    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10889    # soname into executable. Probably we can add versioning support to
10890    # collect2, so additional links can be useful in future.
10891    if test "$aix_use_runtimelinking" = yes; then
10892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10893      # instead of lib<name>.a to let people know that these are not
10894      # typical AIX shared libraries.
10895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896    else
10897      # We preserve .a as extension for shared libraries through AIX4.2
10898      # and later when we are not doing run time linking.
10899      library_names_spec='${libname}${release}.a $libname.a'
10900      soname_spec='${libname}${release}${shared_ext}$major'
10901    fi
10902    shlibpath_var=LIBPATH
10903  fi
10904  ;;
10905
10906amigaos*)
10907  case $host_cpu in
10908  powerpc)
10909    # Since July 2007 AmigaOS4 officially supports .so libraries.
10910    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10911    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912    ;;
10913  m68k)
10914    library_names_spec='$libname.ixlibrary $libname.a'
10915    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10916    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'
10917    ;;
10918  esac
10919  ;;
10920
10921beos*)
10922  library_names_spec='${libname}${shared_ext}'
10923  dynamic_linker="$host_os ld.so"
10924  shlibpath_var=LIBRARY_PATH
10925  ;;
10926
10927bsdi[45]*)
10928  version_type=linux
10929  need_version=no
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931  soname_spec='${libname}${release}${shared_ext}$major'
10932  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10933  shlibpath_var=LD_LIBRARY_PATH
10934  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10935  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10936  # the default ld.so.conf also contains /usr/contrib/lib and
10937  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10938  # libtool to hard-code these into programs
10939  ;;
10940
10941cygwin* | mingw* | pw32* | cegcc*)
10942  version_type=windows
10943  shrext_cmds=".dll"
10944  need_version=no
10945  need_lib_prefix=no
10946
10947  case $GCC,$host_os in
10948  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10949    library_names_spec='$libname.dll.a'
10950    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10951    postinstall_cmds='base_file=`basename \${file}`~
10952      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10953      dldir=$destdir/`dirname \$dlpath`~
10954      test -d \$dldir || mkdir -p \$dldir~
10955      $install_prog $dir/$dlname \$dldir/$dlname~
10956      chmod a+x \$dldir/$dlname~
10957      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10958        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10959      fi'
10960    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10961      dlpath=$dir/\$dldll~
10962       $RM \$dlpath'
10963    shlibpath_overrides_runpath=yes
10964
10965    case $host_os in
10966    cygwin*)
10967      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10968      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10969      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10970      ;;
10971    mingw* | cegcc*)
10972      # MinGW DLLs use traditional 'lib' prefix
10973      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10974      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10975      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10976        # It is most probably a Windows format PATH printed by
10977        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10978        # path with ; separators, and with drive letters. We can handle the
10979        # drive letters (cygwin fileutils understands them), so leave them,
10980        # especially as we might pass files found there to a mingw objdump,
10981        # which wouldn't understand a cygwinified path. Ahh.
10982        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10983      else
10984        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10985      fi
10986      ;;
10987    pw32*)
10988      # pw32 DLLs use 'pw' prefix rather than 'lib'
10989      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10990      ;;
10991    esac
10992    ;;
10993
10994  *)
10995    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10996    ;;
10997  esac
10998  dynamic_linker='Win32 ld.exe'
10999  # FIXME: first we should search . and the directory the executable is in
11000  shlibpath_var=PATH
11001  ;;
11002
11003darwin* | rhapsody*)
11004  dynamic_linker="$host_os dyld"
11005  version_type=darwin
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11009  soname_spec='${libname}${release}${major}$shared_ext'
11010  shlibpath_overrides_runpath=yes
11011  shlibpath_var=DYLD_LIBRARY_PATH
11012  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11013
11014  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11016  ;;
11017
11018dgux*)
11019  version_type=linux
11020  need_lib_prefix=no
11021  need_version=no
11022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11023  soname_spec='${libname}${release}${shared_ext}$major'
11024  shlibpath_var=LD_LIBRARY_PATH
11025  ;;
11026
11027freebsd1*)
11028  dynamic_linker=no
11029  ;;
11030
11031freebsd* | dragonfly*)
11032  # DragonFly does not have aout.  When/if they implement a new
11033  # versioning mechanism, adjust this.
11034  if test -x /usr/bin/objformat; then
11035    objformat=`/usr/bin/objformat`
11036  else
11037    case $host_os in
11038    freebsd[123]*) objformat=aout ;;
11039    *) objformat=elf ;;
11040    esac
11041  fi
11042  version_type=freebsd-$objformat
11043  case $version_type in
11044    freebsd-elf*)
11045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11046      need_version=no
11047      need_lib_prefix=no
11048      ;;
11049    freebsd-*)
11050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11051      need_version=yes
11052      ;;
11053  esac
11054  shlibpath_var=LD_LIBRARY_PATH
11055  case $host_os in
11056  freebsd2*)
11057    shlibpath_overrides_runpath=yes
11058    ;;
11059  freebsd3.[01]* | freebsdelf3.[01]*)
11060    shlibpath_overrides_runpath=yes
11061    hardcode_into_libs=yes
11062    ;;
11063  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11064  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11065    shlibpath_overrides_runpath=no
11066    hardcode_into_libs=yes
11067    ;;
11068  *) # from 4.6 on, and DragonFly
11069    shlibpath_overrides_runpath=yes
11070    hardcode_into_libs=yes
11071    ;;
11072  esac
11073  ;;
11074
11075gnu*)
11076  version_type=linux
11077  need_lib_prefix=no
11078  need_version=no
11079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11080  soname_spec='${libname}${release}${shared_ext}$major'
11081  shlibpath_var=LD_LIBRARY_PATH
11082  hardcode_into_libs=yes
11083  ;;
11084
11085hpux9* | hpux10* | hpux11*)
11086  # Give a soname corresponding to the major version so that dld.sl refuses to
11087  # link against other versions.
11088  version_type=sunos
11089  need_lib_prefix=no
11090  need_version=no
11091  case $host_cpu in
11092  ia64*)
11093    shrext_cmds='.so'
11094    hardcode_into_libs=yes
11095    dynamic_linker="$host_os dld.so"
11096    shlibpath_var=LD_LIBRARY_PATH
11097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099    soname_spec='${libname}${release}${shared_ext}$major'
11100    if test "X$HPUX_IA64_MODE" = X32; then
11101      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11102    else
11103      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11104    fi
11105    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106    ;;
11107  hppa*64*)
11108    shrext_cmds='.sl'
11109    hardcode_into_libs=yes
11110    dynamic_linker="$host_os dld.sl"
11111    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11112    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114    soname_spec='${libname}${release}${shared_ext}$major'
11115    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11116    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11117    ;;
11118  *)
11119    shrext_cmds='.sl'
11120    dynamic_linker="$host_os dld.sl"
11121    shlibpath_var=SHLIB_PATH
11122    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124    soname_spec='${libname}${release}${shared_ext}$major'
11125    ;;
11126  esac
11127  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11128  postinstall_cmds='chmod 555 $lib'
11129  ;;
11130
11131interix[3-9]*)
11132  version_type=linux
11133  need_lib_prefix=no
11134  need_version=no
11135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136  soname_spec='${libname}${release}${shared_ext}$major'
11137  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11138  shlibpath_var=LD_LIBRARY_PATH
11139  shlibpath_overrides_runpath=no
11140  hardcode_into_libs=yes
11141  ;;
11142
11143irix5* | irix6* | nonstopux*)
11144  case $host_os in
11145    nonstopux*) version_type=nonstopux ;;
11146    *)
11147	if test "$lt_cv_prog_gnu_ld" = yes; then
11148		version_type=linux
11149	else
11150		version_type=irix
11151	fi ;;
11152  esac
11153  need_lib_prefix=no
11154  need_version=no
11155  soname_spec='${libname}${release}${shared_ext}$major'
11156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11157  case $host_os in
11158  irix5* | nonstopux*)
11159    libsuff= shlibsuff=
11160    ;;
11161  *)
11162    case $LD in # libtool.m4 will add one of these switches to LD
11163    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11164      libsuff= shlibsuff= libmagic=32-bit;;
11165    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11166      libsuff=32 shlibsuff=N32 libmagic=N32;;
11167    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11168      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11169    *) libsuff= shlibsuff= libmagic=never-match;;
11170    esac
11171    ;;
11172  esac
11173  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11174  shlibpath_overrides_runpath=no
11175  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11176  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11177  hardcode_into_libs=yes
11178  ;;
11179
11180# No shared lib support for Linux oldld, aout, or coff.
11181linux*oldld* | linux*aout* | linux*coff*)
11182  dynamic_linker=no
11183  ;;
11184
11185# This must be Linux ELF.
11186linux* | k*bsd*-gnu)
11187  version_type=linux
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191  soname_spec='${libname}${release}${shared_ext}$major'
11192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11193  shlibpath_var=LD_LIBRARY_PATH
11194  shlibpath_overrides_runpath=no
11195  # Some binutils ld are patched to set DT_RUNPATH
11196  save_LDFLAGS=$LDFLAGS
11197  save_libdir=$libdir
11198  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11199       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201/* end confdefs.h.  */
11202
11203int
11204main ()
11205{
11206
11207  ;
11208  return 0;
11209}
11210_ACEOF
11211if ac_fn_c_try_link "$LINENO"; then :
11212  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11213  shlibpath_overrides_runpath=yes
11214fi
11215fi
11216rm -f core conftest.err conftest.$ac_objext \
11217    conftest$ac_exeext conftest.$ac_ext
11218  LDFLAGS=$save_LDFLAGS
11219  libdir=$save_libdir
11220
11221  # This implies no fast_install, which is unacceptable.
11222  # Some rework will be needed to allow for fast_install
11223  # before this can be enabled.
11224  hardcode_into_libs=yes
11225
11226  # Append ld.so.conf contents to the search path
11227  if test -f /etc/ld.so.conf; then
11228    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' ' '`
11229    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11230  fi
11231
11232  # We used to test for /lib/ld.so.1 and disable shared libraries on
11233  # powerpc, because MkLinux only supported shared libraries with the
11234  # GNU dynamic linker.  Since this was broken with cross compilers,
11235  # most powerpc-linux boxes support dynamic linking these days and
11236  # people can always --disable-shared, the test was removed, and we
11237  # assume the GNU/Linux dynamic linker is in use.
11238  dynamic_linker='GNU/Linux ld.so'
11239  ;;
11240
11241netbsd*)
11242  version_type=sunos
11243  need_lib_prefix=no
11244  need_version=no
11245  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11248    dynamic_linker='NetBSD (a.out) ld.so'
11249  else
11250    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11251    soname_spec='${libname}${release}${shared_ext}$major'
11252    dynamic_linker='NetBSD ld.elf_so'
11253  fi
11254  shlibpath_var=LD_LIBRARY_PATH
11255  shlibpath_overrides_runpath=yes
11256  hardcode_into_libs=yes
11257  ;;
11258
11259newsos6)
11260  version_type=linux
11261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262  shlibpath_var=LD_LIBRARY_PATH
11263  shlibpath_overrides_runpath=yes
11264  ;;
11265
11266*nto* | *qnx*)
11267  version_type=qnx
11268  need_lib_prefix=no
11269  need_version=no
11270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271  soname_spec='${libname}${release}${shared_ext}$major'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  shlibpath_overrides_runpath=no
11274  hardcode_into_libs=yes
11275  dynamic_linker='ldqnx.so'
11276  ;;
11277
11278openbsd*)
11279  version_type=sunos
11280  sys_lib_dlsearch_path_spec="/usr/lib"
11281  need_lib_prefix=no
11282  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11283  case $host_os in
11284    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11285    *)				need_version=no  ;;
11286  esac
11287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11291    case $host_os in
11292      openbsd2.[89] | openbsd2.[89].*)
11293	shlibpath_overrides_runpath=no
11294	;;
11295      *)
11296	shlibpath_overrides_runpath=yes
11297	;;
11298      esac
11299  else
11300    shlibpath_overrides_runpath=yes
11301  fi
11302  ;;
11303
11304os2*)
11305  libname_spec='$name'
11306  shrext_cmds=".dll"
11307  need_lib_prefix=no
11308  library_names_spec='$libname${shared_ext} $libname.a'
11309  dynamic_linker='OS/2 ld.exe'
11310  shlibpath_var=LIBPATH
11311  ;;
11312
11313osf3* | osf4* | osf5*)
11314  version_type=osf
11315  need_lib_prefix=no
11316  need_version=no
11317  soname_spec='${libname}${release}${shared_ext}$major'
11318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319  shlibpath_var=LD_LIBRARY_PATH
11320  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11321  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11322  ;;
11323
11324rdos*)
11325  dynamic_linker=no
11326  ;;
11327
11328solaris*)
11329  version_type=linux
11330  need_lib_prefix=no
11331  need_version=no
11332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333  soname_spec='${libname}${release}${shared_ext}$major'
11334  shlibpath_var=LD_LIBRARY_PATH
11335  shlibpath_overrides_runpath=yes
11336  hardcode_into_libs=yes
11337  # ldd complains unless libraries are executable
11338  postinstall_cmds='chmod +x $lib'
11339  ;;
11340
11341sunos4*)
11342  version_type=sunos
11343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11344  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11345  shlibpath_var=LD_LIBRARY_PATH
11346  shlibpath_overrides_runpath=yes
11347  if test "$with_gnu_ld" = yes; then
11348    need_lib_prefix=no
11349  fi
11350  need_version=yes
11351  ;;
11352
11353sysv4 | sysv4.3*)
11354  version_type=linux
11355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356  soname_spec='${libname}${release}${shared_ext}$major'
11357  shlibpath_var=LD_LIBRARY_PATH
11358  case $host_vendor in
11359    sni)
11360      shlibpath_overrides_runpath=no
11361      need_lib_prefix=no
11362      runpath_var=LD_RUN_PATH
11363      ;;
11364    siemens)
11365      need_lib_prefix=no
11366      ;;
11367    motorola)
11368      need_lib_prefix=no
11369      need_version=no
11370      shlibpath_overrides_runpath=no
11371      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11372      ;;
11373  esac
11374  ;;
11375
11376sysv4*MP*)
11377  if test -d /usr/nec ;then
11378    version_type=linux
11379    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11380    soname_spec='$libname${shared_ext}.$major'
11381    shlibpath_var=LD_LIBRARY_PATH
11382  fi
11383  ;;
11384
11385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11386  version_type=freebsd-elf
11387  need_lib_prefix=no
11388  need_version=no
11389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11390  soname_spec='${libname}${release}${shared_ext}$major'
11391  shlibpath_var=LD_LIBRARY_PATH
11392  shlibpath_overrides_runpath=yes
11393  hardcode_into_libs=yes
11394  if test "$with_gnu_ld" = yes; then
11395    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11396  else
11397    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11398    case $host_os in
11399      sco3.2v5*)
11400        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11401	;;
11402    esac
11403  fi
11404  sys_lib_dlsearch_path_spec='/usr/lib'
11405  ;;
11406
11407tpf*)
11408  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11409  version_type=linux
11410  need_lib_prefix=no
11411  need_version=no
11412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=no
11415  hardcode_into_libs=yes
11416  ;;
11417
11418uts4*)
11419  version_type=linux
11420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421  soname_spec='${libname}${release}${shared_ext}$major'
11422  shlibpath_var=LD_LIBRARY_PATH
11423  ;;
11424
11425*)
11426  dynamic_linker=no
11427  ;;
11428esac
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11430$as_echo "$dynamic_linker" >&6; }
11431test "$dynamic_linker" = no && can_build_shared=no
11432
11433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11434if test "$GCC" = yes; then
11435  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11436fi
11437
11438if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11439  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11440fi
11441if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11442  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11443fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11532$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11533hardcode_action=
11534if test -n "$hardcode_libdir_flag_spec" ||
11535   test -n "$runpath_var" ||
11536   test "X$hardcode_automatic" = "Xyes" ; then
11537
11538  # We can hardcode non-existent directories.
11539  if test "$hardcode_direct" != no &&
11540     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11541     # have to relink, otherwise we might link with an installed library
11542     # when we should be linking with a yet-to-be-installed one
11543     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11544     test "$hardcode_minus_L" != no; then
11545    # Linking always hardcodes the temporary library directory.
11546    hardcode_action=relink
11547  else
11548    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11549    hardcode_action=immediate
11550  fi
11551else
11552  # We cannot hardcode anything, or else we can only hardcode existing
11553  # directories.
11554  hardcode_action=unsupported
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11557$as_echo "$hardcode_action" >&6; }
11558
11559if test "$hardcode_action" = relink ||
11560   test "$inherit_rpath" = yes; then
11561  # Fast installation is not supported
11562  enable_fast_install=no
11563elif test "$shlibpath_overrides_runpath" = yes ||
11564     test "$enable_shared" = no; then
11565  # Fast installation is not necessary
11566  enable_fast_install=needless
11567fi
11568
11569
11570
11571
11572
11573
11574  if test "x$enable_dlopen" != xyes; then
11575  enable_dlopen=unknown
11576  enable_dlopen_self=unknown
11577  enable_dlopen_self_static=unknown
11578else
11579  lt_cv_dlopen=no
11580  lt_cv_dlopen_libs=
11581
11582  case $host_os in
11583  beos*)
11584    lt_cv_dlopen="load_add_on"
11585    lt_cv_dlopen_libs=
11586    lt_cv_dlopen_self=yes
11587    ;;
11588
11589  mingw* | pw32* | cegcc*)
11590    lt_cv_dlopen="LoadLibrary"
11591    lt_cv_dlopen_libs=
11592    ;;
11593
11594  cygwin*)
11595    lt_cv_dlopen="dlopen"
11596    lt_cv_dlopen_libs=
11597    ;;
11598
11599  darwin*)
11600  # if libdl is installed we need to link against it
11601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11602$as_echo_n "checking for dlopen in -ldl... " >&6; }
11603if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  ac_check_lib_save_LIBS=$LIBS
11607LIBS="-ldl  $LIBS"
11608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609/* end confdefs.h.  */
11610
11611/* Override any GCC internal prototype to avoid an error.
11612   Use char because int might match the return type of a GCC
11613   builtin and then its argument prototype would still apply.  */
11614#ifdef __cplusplus
11615extern "C"
11616#endif
11617char dlopen ();
11618int
11619main ()
11620{
11621return dlopen ();
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_link "$LINENO"; then :
11627  ac_cv_lib_dl_dlopen=yes
11628else
11629  ac_cv_lib_dl_dlopen=no
11630fi
11631rm -f core conftest.err conftest.$ac_objext \
11632    conftest$ac_exeext conftest.$ac_ext
11633LIBS=$ac_check_lib_save_LIBS
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11636$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11637if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11638  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11639else
11640
11641    lt_cv_dlopen="dyld"
11642    lt_cv_dlopen_libs=
11643    lt_cv_dlopen_self=yes
11644
11645fi
11646
11647    ;;
11648
11649  *)
11650    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11651if test "x$ac_cv_func_shl_load" = x""yes; then :
11652  lt_cv_dlopen="shl_load"
11653else
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11655$as_echo_n "checking for shl_load in -ldld... " >&6; }
11656if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  ac_check_lib_save_LIBS=$LIBS
11660LIBS="-ldld  $LIBS"
11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h.  */
11663
11664/* Override any GCC internal prototype to avoid an error.
11665   Use char because int might match the return type of a GCC
11666   builtin and then its argument prototype would still apply.  */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char shl_load ();
11671int
11672main ()
11673{
11674return shl_load ();
11675  ;
11676  return 0;
11677}
11678_ACEOF
11679if ac_fn_c_try_link "$LINENO"; then :
11680  ac_cv_lib_dld_shl_load=yes
11681else
11682  ac_cv_lib_dld_shl_load=no
11683fi
11684rm -f core conftest.err conftest.$ac_objext \
11685    conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11689$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11690if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11691  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11692else
11693  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11694if test "x$ac_cv_func_dlopen" = x""yes; then :
11695  lt_cv_dlopen="dlopen"
11696else
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11698$as_echo_n "checking for dlopen in -ldl... " >&6; }
11699if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldl  $LIBS"
11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dlopen ();
11714int
11715main ()
11716{
11717return dlopen ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  ac_cv_lib_dl_dlopen=yes
11724else
11725  ac_cv_lib_dl_dlopen=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11732$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11733if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11734  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11735else
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11737$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11738if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  ac_check_lib_save_LIBS=$LIBS
11742LIBS="-lsvld  $LIBS"
11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745
11746/* Override any GCC internal prototype to avoid an error.
11747   Use char because int might match the return type of a GCC
11748   builtin and then its argument prototype would still apply.  */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char dlopen ();
11753int
11754main ()
11755{
11756return dlopen ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_lib_svld_dlopen=yes
11763else
11764  ac_cv_lib_svld_dlopen=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11771$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11772if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11773  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11774else
11775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11776$as_echo_n "checking for dld_link in -ldld... " >&6; }
11777if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11778  $as_echo_n "(cached) " >&6
11779else
11780  ac_check_lib_save_LIBS=$LIBS
11781LIBS="-ldld  $LIBS"
11782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784
11785/* Override any GCC internal prototype to avoid an error.
11786   Use char because int might match the return type of a GCC
11787   builtin and then its argument prototype would still apply.  */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791char dld_link ();
11792int
11793main ()
11794{
11795return dld_link ();
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800if ac_fn_c_try_link "$LINENO"; then :
11801  ac_cv_lib_dld_dld_link=yes
11802else
11803  ac_cv_lib_dld_dld_link=no
11804fi
11805rm -f core conftest.err conftest.$ac_objext \
11806    conftest$ac_exeext conftest.$ac_ext
11807LIBS=$ac_check_lib_save_LIBS
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11810$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11811if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11812  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11813fi
11814
11815
11816fi
11817
11818
11819fi
11820
11821
11822fi
11823
11824
11825fi
11826
11827
11828fi
11829
11830    ;;
11831  esac
11832
11833  if test "x$lt_cv_dlopen" != xno; then
11834    enable_dlopen=yes
11835  else
11836    enable_dlopen=no
11837  fi
11838
11839  case $lt_cv_dlopen in
11840  dlopen)
11841    save_CPPFLAGS="$CPPFLAGS"
11842    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11843
11844    save_LDFLAGS="$LDFLAGS"
11845    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11846
11847    save_LIBS="$LIBS"
11848    LIBS="$lt_cv_dlopen_libs $LIBS"
11849
11850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11851$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11852if test "${lt_cv_dlopen_self+set}" = set; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855  	  if test "$cross_compiling" = yes; then :
11856  lt_cv_dlopen_self=cross
11857else
11858  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11859  lt_status=$lt_dlunknown
11860  cat > conftest.$ac_ext <<_LT_EOF
11861#line 11861 "configure"
11862#include "confdefs.h"
11863
11864#if HAVE_DLFCN_H
11865#include <dlfcn.h>
11866#endif
11867
11868#include <stdio.h>
11869
11870#ifdef RTLD_GLOBAL
11871#  define LT_DLGLOBAL		RTLD_GLOBAL
11872#else
11873#  ifdef DL_GLOBAL
11874#    define LT_DLGLOBAL		DL_GLOBAL
11875#  else
11876#    define LT_DLGLOBAL		0
11877#  endif
11878#endif
11879
11880/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11881   find out it does not work in some platform. */
11882#ifndef LT_DLLAZY_OR_NOW
11883#  ifdef RTLD_LAZY
11884#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11885#  else
11886#    ifdef DL_LAZY
11887#      define LT_DLLAZY_OR_NOW		DL_LAZY
11888#    else
11889#      ifdef RTLD_NOW
11890#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11891#      else
11892#        ifdef DL_NOW
11893#          define LT_DLLAZY_OR_NOW	DL_NOW
11894#        else
11895#          define LT_DLLAZY_OR_NOW	0
11896#        endif
11897#      endif
11898#    endif
11899#  endif
11900#endif
11901
11902void fnord() { int i=42;}
11903int main ()
11904{
11905  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906  int status = $lt_dlunknown;
11907
11908  if (self)
11909    {
11910      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11911      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11912      /* dlclose (self); */
11913    }
11914  else
11915    puts (dlerror ());
11916
11917  return status;
11918}
11919_LT_EOF
11920  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11921  (eval $ac_link) 2>&5
11922  ac_status=$?
11923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11924  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11925    (./conftest; exit; ) >&5 2>/dev/null
11926    lt_status=$?
11927    case x$lt_status in
11928      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11929      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11930      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11931    esac
11932  else :
11933    # compilation failed
11934    lt_cv_dlopen_self=no
11935  fi
11936fi
11937rm -fr conftest*
11938
11939
11940fi
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11942$as_echo "$lt_cv_dlopen_self" >&6; }
11943
11944    if test "x$lt_cv_dlopen_self" = xyes; then
11945      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11946      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11947$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11948if test "${lt_cv_dlopen_self_static+set}" = set; then :
11949  $as_echo_n "(cached) " >&6
11950else
11951  	  if test "$cross_compiling" = yes; then :
11952  lt_cv_dlopen_self_static=cross
11953else
11954  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11955  lt_status=$lt_dlunknown
11956  cat > conftest.$ac_ext <<_LT_EOF
11957#line 11957 "configure"
11958#include "confdefs.h"
11959
11960#if HAVE_DLFCN_H
11961#include <dlfcn.h>
11962#endif
11963
11964#include <stdio.h>
11965
11966#ifdef RTLD_GLOBAL
11967#  define LT_DLGLOBAL		RTLD_GLOBAL
11968#else
11969#  ifdef DL_GLOBAL
11970#    define LT_DLGLOBAL		DL_GLOBAL
11971#  else
11972#    define LT_DLGLOBAL		0
11973#  endif
11974#endif
11975
11976/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11977   find out it does not work in some platform. */
11978#ifndef LT_DLLAZY_OR_NOW
11979#  ifdef RTLD_LAZY
11980#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11981#  else
11982#    ifdef DL_LAZY
11983#      define LT_DLLAZY_OR_NOW		DL_LAZY
11984#    else
11985#      ifdef RTLD_NOW
11986#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11987#      else
11988#        ifdef DL_NOW
11989#          define LT_DLLAZY_OR_NOW	DL_NOW
11990#        else
11991#          define LT_DLLAZY_OR_NOW	0
11992#        endif
11993#      endif
11994#    endif
11995#  endif
11996#endif
11997
11998void fnord() { int i=42;}
11999int main ()
12000{
12001  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12002  int status = $lt_dlunknown;
12003
12004  if (self)
12005    {
12006      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12007      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12008      /* dlclose (self); */
12009    }
12010  else
12011    puts (dlerror ());
12012
12013  return status;
12014}
12015_LT_EOF
12016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12017  (eval $ac_link) 2>&5
12018  ac_status=$?
12019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12021    (./conftest; exit; ) >&5 2>/dev/null
12022    lt_status=$?
12023    case x$lt_status in
12024      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12025      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12026      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12027    esac
12028  else :
12029    # compilation failed
12030    lt_cv_dlopen_self_static=no
12031  fi
12032fi
12033rm -fr conftest*
12034
12035
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12038$as_echo "$lt_cv_dlopen_self_static" >&6; }
12039    fi
12040
12041    CPPFLAGS="$save_CPPFLAGS"
12042    LDFLAGS="$save_LDFLAGS"
12043    LIBS="$save_LIBS"
12044    ;;
12045  esac
12046
12047  case $lt_cv_dlopen_self in
12048  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12049  *) enable_dlopen_self=unknown ;;
12050  esac
12051
12052  case $lt_cv_dlopen_self_static in
12053  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12054  *) enable_dlopen_self_static=unknown ;;
12055  esac
12056fi
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074striplib=
12075old_striplib=
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12077$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12078if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12079  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12080  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12082$as_echo "yes" >&6; }
12083else
12084# FIXME - insert some real tests, host_os isn't really good enough
12085  case $host_os in
12086  darwin*)
12087    if test -n "$STRIP" ; then
12088      striplib="$STRIP -x"
12089      old_striplib="$STRIP -S"
12090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091$as_echo "yes" >&6; }
12092    else
12093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
12095    fi
12096    ;;
12097  *)
12098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100    ;;
12101  esac
12102fi
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115  # Report which library types will actually be built
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12117$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12119$as_echo "$can_build_shared" >&6; }
12120
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12122$as_echo_n "checking whether to build shared libraries... " >&6; }
12123  test "$can_build_shared" = "no" && enable_shared=no
12124
12125  # On AIX, shared libraries and static libraries use the same namespace, and
12126  # are all built from PIC.
12127  case $host_os in
12128  aix3*)
12129    test "$enable_shared" = yes && enable_static=no
12130    if test -n "$RANLIB"; then
12131      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12132      postinstall_cmds='$RANLIB $lib'
12133    fi
12134    ;;
12135
12136  aix[4-9]*)
12137    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12138      test "$enable_shared" = yes && enable_static=no
12139    fi
12140    ;;
12141  esac
12142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12143$as_echo "$enable_shared" >&6; }
12144
12145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12146$as_echo_n "checking whether to build static libraries... " >&6; }
12147  # Make sure either enable_shared or enable_static is yes.
12148  test "$enable_shared" = yes || enable_static=yes
12149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12150$as_echo "$enable_static" >&6; }
12151
12152
12153
12154
12155fi
12156ac_ext=c
12157ac_cpp='$CPP $CPPFLAGS'
12158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160ac_compiler_gnu=$ac_cv_c_compiler_gnu
12161
12162CC="$lt_save_CC"
12163
12164
12165ac_ext=cpp
12166ac_cpp='$CXXCPP $CPPFLAGS'
12167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12170
12171archive_cmds_need_lc_CXX=no
12172allow_undefined_flag_CXX=
12173always_export_symbols_CXX=no
12174archive_expsym_cmds_CXX=
12175compiler_needs_object_CXX=no
12176export_dynamic_flag_spec_CXX=
12177hardcode_direct_CXX=no
12178hardcode_direct_absolute_CXX=no
12179hardcode_libdir_flag_spec_CXX=
12180hardcode_libdir_flag_spec_ld_CXX=
12181hardcode_libdir_separator_CXX=
12182hardcode_minus_L_CXX=no
12183hardcode_shlibpath_var_CXX=unsupported
12184hardcode_automatic_CXX=no
12185inherit_rpath_CXX=no
12186module_cmds_CXX=
12187module_expsym_cmds_CXX=
12188link_all_deplibs_CXX=unknown
12189old_archive_cmds_CXX=$old_archive_cmds
12190no_undefined_flag_CXX=
12191whole_archive_flag_spec_CXX=
12192enable_shared_with_static_runtimes_CXX=no
12193
12194# Source file extension for C++ test sources.
12195ac_ext=cpp
12196
12197# Object file extension for compiled C++ test sources.
12198objext=o
12199objext_CXX=$objext
12200
12201# No sense in running all these tests if we already determined that
12202# the CXX compiler isn't working.  Some variables (like enable_shared)
12203# are currently assumed to apply to all compilers on this platform,
12204# and will be corrupted by setting them based on a non-working compiler.
12205if test "$_lt_caught_CXX_error" != yes; then
12206  # Code to be used in simple compile tests
12207  lt_simple_compile_test_code="int some_variable = 0;"
12208
12209  # Code to be used in simple link tests
12210  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12211
12212  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12213
12214
12215
12216
12217
12218
12219# If no C compiler was specified, use CC.
12220LTCC=${LTCC-"$CC"}
12221
12222# If no C compiler flags were specified, use CFLAGS.
12223LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12224
12225# Allow CC to be a program name with arguments.
12226compiler=$CC
12227
12228
12229  # save warnings/boilerplate of simple test code
12230  ac_outfile=conftest.$ac_objext
12231echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12233_lt_compiler_boilerplate=`cat conftest.err`
12234$RM conftest*
12235
12236  ac_outfile=conftest.$ac_objext
12237echo "$lt_simple_link_test_code" >conftest.$ac_ext
12238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12239_lt_linker_boilerplate=`cat conftest.err`
12240$RM -r conftest*
12241
12242
12243  # Allow CC to be a program name with arguments.
12244  lt_save_CC=$CC
12245  lt_save_LD=$LD
12246  lt_save_GCC=$GCC
12247  GCC=$GXX
12248  lt_save_with_gnu_ld=$with_gnu_ld
12249  lt_save_path_LD=$lt_cv_path_LD
12250  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12251    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12252  else
12253    $as_unset lt_cv_prog_gnu_ld
12254  fi
12255  if test -n "${lt_cv_path_LDCXX+set}"; then
12256    lt_cv_path_LD=$lt_cv_path_LDCXX
12257  else
12258    $as_unset lt_cv_path_LD
12259  fi
12260  test -z "${LDCXX+set}" || LD=$LDCXX
12261  CC=${CXX-"c++"}
12262  compiler=$CC
12263  compiler_CXX=$CC
12264  for cc_temp in $compiler""; do
12265  case $cc_temp in
12266    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12267    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12268    \-*) ;;
12269    *) break;;
12270  esac
12271done
12272cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12273
12274
12275  if test -n "$compiler"; then
12276    # We don't want -fno-exception when compiling C++ code, so set the
12277    # no_builtin_flag separately
12278    if test "$GXX" = yes; then
12279      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12280    else
12281      lt_prog_compiler_no_builtin_flag_CXX=
12282    fi
12283
12284    if test "$GXX" = yes; then
12285      # Set up default GNU C++ configuration
12286
12287
12288
12289# Check whether --with-gnu-ld was given.
12290if test "${with_gnu_ld+set}" = set; then :
12291  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12292else
12293  with_gnu_ld=no
12294fi
12295
12296ac_prog=ld
12297if test "$GCC" = yes; then
12298  # Check if gcc -print-prog-name=ld gives a path.
12299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12300$as_echo_n "checking for ld used by $CC... " >&6; }
12301  case $host in
12302  *-*-mingw*)
12303    # gcc leaves a trailing carriage return which upsets mingw
12304    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12305  *)
12306    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12307  esac
12308  case $ac_prog in
12309    # Accept absolute paths.
12310    [\\/]* | ?:[\\/]*)
12311      re_direlt='/[^/][^/]*/\.\./'
12312      # Canonicalize the pathname of ld
12313      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12314      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12315	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12316      done
12317      test -z "$LD" && LD="$ac_prog"
12318      ;;
12319  "")
12320    # If it fails, then pretend we aren't using GCC.
12321    ac_prog=ld
12322    ;;
12323  *)
12324    # If it is relative, then search for the first ld in PATH.
12325    with_gnu_ld=unknown
12326    ;;
12327  esac
12328elif test "$with_gnu_ld" = yes; then
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12330$as_echo_n "checking for GNU ld... " >&6; }
12331else
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12333$as_echo_n "checking for non-GNU ld... " >&6; }
12334fi
12335if test "${lt_cv_path_LD+set}" = set; then :
12336  $as_echo_n "(cached) " >&6
12337else
12338  if test -z "$LD"; then
12339  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12340  for ac_dir in $PATH; do
12341    IFS="$lt_save_ifs"
12342    test -z "$ac_dir" && ac_dir=.
12343    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12344      lt_cv_path_LD="$ac_dir/$ac_prog"
12345      # Check to see if the program is GNU ld.  I'd rather use --version,
12346      # but apparently some variants of GNU ld only accept -v.
12347      # Break only if it was the GNU/non-GNU ld that we prefer.
12348      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12349      *GNU* | *'with BFD'*)
12350	test "$with_gnu_ld" != no && break
12351	;;
12352      *)
12353	test "$with_gnu_ld" != yes && break
12354	;;
12355      esac
12356    fi
12357  done
12358  IFS="$lt_save_ifs"
12359else
12360  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12361fi
12362fi
12363
12364LD="$lt_cv_path_LD"
12365if test -n "$LD"; then
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12367$as_echo "$LD" >&6; }
12368else
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
12371fi
12372test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12374$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12375if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12379case `$LD -v 2>&1 </dev/null` in
12380*GNU* | *'with BFD'*)
12381  lt_cv_prog_gnu_ld=yes
12382  ;;
12383*)
12384  lt_cv_prog_gnu_ld=no
12385  ;;
12386esac
12387fi
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12389$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12390with_gnu_ld=$lt_cv_prog_gnu_ld
12391
12392
12393
12394
12395
12396
12397
12398      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12399      # archiving commands below assume that GNU ld is being used.
12400      if test "$with_gnu_ld" = yes; then
12401        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403
12404        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12405        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12406
12407        # If archive_cmds runs LD, not CC, wlarc should be empty
12408        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12409        #     investigate it a little bit more. (MM)
12410        wlarc='${wl}'
12411
12412        # ancient GNU ld didn't support --whole-archive et. al.
12413        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12414	  $GREP 'no-whole-archive' > /dev/null; then
12415          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12416        else
12417          whole_archive_flag_spec_CXX=
12418        fi
12419      else
12420        with_gnu_ld=no
12421        wlarc=
12422
12423        # A generic and very simple default shared library creation
12424        # command for GNU C++ for the case where it uses the native
12425        # linker, instead of GNU ld.  If possible, this setting should
12426        # overridden to take advantage of the native linker features on
12427        # the platform it is being used on.
12428        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429      fi
12430
12431      # Commands to make compiler produce verbose output that lists
12432      # what "hidden" libraries, object files and flags are used when
12433      # linking a shared library.
12434      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12435
12436    else
12437      GXX=no
12438      with_gnu_ld=no
12439      wlarc=
12440    fi
12441
12442    # PORTME: fill in a description of your system's C++ link characteristics
12443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12444$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12445    ld_shlibs_CXX=yes
12446    case $host_os in
12447      aix3*)
12448        # FIXME: insert proper C++ library support
12449        ld_shlibs_CXX=no
12450        ;;
12451      aix[4-9]*)
12452        if test "$host_cpu" = ia64; then
12453          # On IA64, the linker does run time linking by default, so we don't
12454          # have to do anything special.
12455          aix_use_runtimelinking=no
12456          exp_sym_flag='-Bexport'
12457          no_entry_flag=""
12458        else
12459          aix_use_runtimelinking=no
12460
12461          # Test if we are trying to use run time linking or normal
12462          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12463          # need to do runtime linking.
12464          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12465	    for ld_flag in $LDFLAGS; do
12466	      case $ld_flag in
12467	      *-brtl*)
12468	        aix_use_runtimelinking=yes
12469	        break
12470	        ;;
12471	      esac
12472	    done
12473	    ;;
12474          esac
12475
12476          exp_sym_flag='-bexport'
12477          no_entry_flag='-bnoentry'
12478        fi
12479
12480        # When large executables or shared objects are built, AIX ld can
12481        # have problems creating the table of contents.  If linking a library
12482        # or program results in "error TOC overflow" add -mminimal-toc to
12483        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12484        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12485
12486        archive_cmds_CXX=''
12487        hardcode_direct_CXX=yes
12488        hardcode_direct_absolute_CXX=yes
12489        hardcode_libdir_separator_CXX=':'
12490        link_all_deplibs_CXX=yes
12491        file_list_spec_CXX='${wl}-f,'
12492
12493        if test "$GXX" = yes; then
12494          case $host_os in aix4.[012]|aix4.[012].*)
12495          # We only want to do this on AIX 4.2 and lower, the check
12496          # below for broken collect2 doesn't work under 4.3+
12497	  collect2name=`${CC} -print-prog-name=collect2`
12498	  if test -f "$collect2name" &&
12499	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12500	  then
12501	    # We have reworked collect2
12502	    :
12503	  else
12504	    # We have old collect2
12505	    hardcode_direct_CXX=unsupported
12506	    # It fails to find uninstalled libraries when the uninstalled
12507	    # path is not listed in the libpath.  Setting hardcode_minus_L
12508	    # to unsupported forces relinking
12509	    hardcode_minus_L_CXX=yes
12510	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12511	    hardcode_libdir_separator_CXX=
12512	  fi
12513          esac
12514          shared_flag='-shared'
12515	  if test "$aix_use_runtimelinking" = yes; then
12516	    shared_flag="$shared_flag "'${wl}-G'
12517	  fi
12518        else
12519          # not using gcc
12520          if test "$host_cpu" = ia64; then
12521	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12522	  # chokes on -Wl,-G. The following line is correct:
12523	  shared_flag='-G'
12524          else
12525	    if test "$aix_use_runtimelinking" = yes; then
12526	      shared_flag='${wl}-G'
12527	    else
12528	      shared_flag='${wl}-bM:SRE'
12529	    fi
12530          fi
12531        fi
12532
12533        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12534        # It seems that -bexpall does not export symbols beginning with
12535        # underscore (_), so it is better to generate a list of symbols to
12536	# export.
12537        always_export_symbols_CXX=yes
12538        if test "$aix_use_runtimelinking" = yes; then
12539          # Warning - without using the other runtime loading flags (-brtl),
12540          # -berok will link without error, but may produce a broken library.
12541          allow_undefined_flag_CXX='-berok'
12542          # Determine the default libpath from the value encoded in an empty
12543          # executable.
12544          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h.  */
12546
12547int
12548main ()
12549{
12550
12551  ;
12552  return 0;
12553}
12554_ACEOF
12555if ac_fn_cxx_try_link "$LINENO"; then :
12556
12557lt_aix_libpath_sed='
12558    /Import File Strings/,/^$/ {
12559	/^0/ {
12560	    s/^0  *\(.*\)$/\1/
12561	    p
12562	}
12563    }'
12564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12565# Check for a 64-bit object if we didn't find anything.
12566if test -z "$aix_libpath"; then
12567  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12568fi
12569fi
12570rm -f core conftest.err conftest.$ac_objext \
12571    conftest$ac_exeext conftest.$ac_ext
12572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12573
12574          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12575
12576          archive_expsym_cmds_CXX='$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"
12577        else
12578          if test "$host_cpu" = ia64; then
12579	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12580	    allow_undefined_flag_CXX="-z nodefs"
12581	    archive_expsym_cmds_CXX="\$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"
12582          else
12583	    # Determine the default libpath from the value encoded in an
12584	    # empty executable.
12585	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h.  */
12587
12588int
12589main ()
12590{
12591
12592  ;
12593  return 0;
12594}
12595_ACEOF
12596if ac_fn_cxx_try_link "$LINENO"; then :
12597
12598lt_aix_libpath_sed='
12599    /Import File Strings/,/^$/ {
12600	/^0/ {
12601	    s/^0  *\(.*\)$/\1/
12602	    p
12603	}
12604    }'
12605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12606# Check for a 64-bit object if we didn't find anything.
12607if test -z "$aix_libpath"; then
12608  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12609fi
12610fi
12611rm -f core conftest.err conftest.$ac_objext \
12612    conftest$ac_exeext conftest.$ac_ext
12613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12614
12615	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12616	    # Warning - without using the other run time loading flags,
12617	    # -berok will link without error, but may produce a broken library.
12618	    no_undefined_flag_CXX=' ${wl}-bernotok'
12619	    allow_undefined_flag_CXX=' ${wl}-berok'
12620	    # Exported symbols can be pulled into shared objects from archives
12621	    whole_archive_flag_spec_CXX='$convenience'
12622	    archive_cmds_need_lc_CXX=yes
12623	    # This is similar to how AIX traditionally builds its shared
12624	    # libraries.
12625	    archive_expsym_cmds_CXX="\$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'
12626          fi
12627        fi
12628        ;;
12629
12630      beos*)
12631	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12632	  allow_undefined_flag_CXX=unsupported
12633	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12634	  # support --undefined.  This deserves some investigation.  FIXME
12635	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12636	else
12637	  ld_shlibs_CXX=no
12638	fi
12639	;;
12640
12641      chorus*)
12642        case $cc_basename in
12643          *)
12644	  # FIXME: insert proper C++ library support
12645	  ld_shlibs_CXX=no
12646	  ;;
12647        esac
12648        ;;
12649
12650      cygwin* | mingw* | pw32* | cegcc*)
12651        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12652        # as there is no search path for DLLs.
12653        hardcode_libdir_flag_spec_CXX='-L$libdir'
12654        allow_undefined_flag_CXX=unsupported
12655        always_export_symbols_CXX=no
12656        enable_shared_with_static_runtimes_CXX=yes
12657
12658        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12659          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12660          # If the export-symbols file already is a .def file (1st line
12661          # is EXPORTS), use it as is; otherwise, prepend...
12662          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12663	    cp $export_symbols $output_objdir/$soname.def;
12664          else
12665	    echo EXPORTS > $output_objdir/$soname.def;
12666	    cat $export_symbols >> $output_objdir/$soname.def;
12667          fi~
12668          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12669        else
12670          ld_shlibs_CXX=no
12671        fi
12672        ;;
12673      darwin* | rhapsody*)
12674
12675
12676  archive_cmds_need_lc_CXX=no
12677  hardcode_direct_CXX=no
12678  hardcode_automatic_CXX=yes
12679  hardcode_shlibpath_var_CXX=unsupported
12680  whole_archive_flag_spec_CXX=''
12681  link_all_deplibs_CXX=yes
12682  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12683  case $cc_basename in
12684     ifort*) _lt_dar_can_shared=yes ;;
12685     *) _lt_dar_can_shared=$GCC ;;
12686  esac
12687  if test "$_lt_dar_can_shared" = "yes"; then
12688    output_verbose_link_cmd=echo
12689    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12690    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12691    archive_expsym_cmds_CXX="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}"
12692    module_expsym_cmds_CXX="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}"
12693       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12694      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12695      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12696    fi
12697
12698  else
12699  ld_shlibs_CXX=no
12700  fi
12701
12702	;;
12703
12704      dgux*)
12705        case $cc_basename in
12706          ec++*)
12707	    # FIXME: insert proper C++ library support
12708	    ld_shlibs_CXX=no
12709	    ;;
12710          ghcx*)
12711	    # Green Hills C++ Compiler
12712	    # FIXME: insert proper C++ library support
12713	    ld_shlibs_CXX=no
12714	    ;;
12715          *)
12716	    # FIXME: insert proper C++ library support
12717	    ld_shlibs_CXX=no
12718	    ;;
12719        esac
12720        ;;
12721
12722      freebsd[12]*)
12723        # C++ shared libraries reported to be fairly broken before
12724	# switch to ELF
12725        ld_shlibs_CXX=no
12726        ;;
12727
12728      freebsd-elf*)
12729        archive_cmds_need_lc_CXX=no
12730        ;;
12731
12732      freebsd* | dragonfly*)
12733        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12734        # conventions
12735        ld_shlibs_CXX=yes
12736        ;;
12737
12738      gnu*)
12739        ;;
12740
12741      hpux9*)
12742        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12743        hardcode_libdir_separator_CXX=:
12744        export_dynamic_flag_spec_CXX='${wl}-E'
12745        hardcode_direct_CXX=yes
12746        hardcode_minus_L_CXX=yes # Not in the search PATH,
12747				             # but as the default
12748				             # location of the library.
12749
12750        case $cc_basename in
12751          CC*)
12752            # FIXME: insert proper C++ library support
12753            ld_shlibs_CXX=no
12754            ;;
12755          aCC*)
12756            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12757            # Commands to make compiler produce verbose output that lists
12758            # what "hidden" libraries, object files and flags are used when
12759            # linking a shared library.
12760            #
12761            # There doesn't appear to be a way to prevent this compiler from
12762            # explicitly linking system object files so we need to strip them
12763            # from the output so that they don't get included in the library
12764            # dependencies.
12765            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12766            ;;
12767          *)
12768            if test "$GXX" = yes; then
12769              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12770            else
12771              # FIXME: insert proper C++ library support
12772              ld_shlibs_CXX=no
12773            fi
12774            ;;
12775        esac
12776        ;;
12777
12778      hpux10*|hpux11*)
12779        if test $with_gnu_ld = no; then
12780	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12781	  hardcode_libdir_separator_CXX=:
12782
12783          case $host_cpu in
12784            hppa*64*|ia64*)
12785              ;;
12786            *)
12787	      export_dynamic_flag_spec_CXX='${wl}-E'
12788              ;;
12789          esac
12790        fi
12791        case $host_cpu in
12792          hppa*64*|ia64*)
12793            hardcode_direct_CXX=no
12794            hardcode_shlibpath_var_CXX=no
12795            ;;
12796          *)
12797            hardcode_direct_CXX=yes
12798            hardcode_direct_absolute_CXX=yes
12799            hardcode_minus_L_CXX=yes # Not in the search PATH,
12800					         # but as the default
12801					         # location of the library.
12802            ;;
12803        esac
12804
12805        case $cc_basename in
12806          CC*)
12807	    # FIXME: insert proper C++ library support
12808	    ld_shlibs_CXX=no
12809	    ;;
12810          aCC*)
12811	    case $host_cpu in
12812	      hppa*64*)
12813	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814	        ;;
12815	      ia64*)
12816	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12817	        ;;
12818	      *)
12819	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820	        ;;
12821	    esac
12822	    # Commands to make compiler produce verbose output that lists
12823	    # what "hidden" libraries, object files and flags are used when
12824	    # linking a shared library.
12825	    #
12826	    # There doesn't appear to be a way to prevent this compiler from
12827	    # explicitly linking system object files so we need to strip them
12828	    # from the output so that they don't get included in the library
12829	    # dependencies.
12830	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12831	    ;;
12832          *)
12833	    if test "$GXX" = yes; then
12834	      if test $with_gnu_ld = no; then
12835	        case $host_cpu in
12836	          hppa*64*)
12837	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12838	            ;;
12839	          ia64*)
12840	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12841	            ;;
12842	          *)
12843	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844	            ;;
12845	        esac
12846	      fi
12847	    else
12848	      # FIXME: insert proper C++ library support
12849	      ld_shlibs_CXX=no
12850	    fi
12851	    ;;
12852        esac
12853        ;;
12854
12855      interix[3-9]*)
12856	hardcode_direct_CXX=no
12857	hardcode_shlibpath_var_CXX=no
12858	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859	export_dynamic_flag_spec_CXX='${wl}-E'
12860	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861	# Instead, shared libraries are loaded at an image base (0x10000000 by
12862	# default) and relocated if they conflict, which is a slow very memory
12863	# consuming and fragmenting process.  To avoid this, we pick a random,
12864	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12866	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12867	archive_expsym_cmds_CXX='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'
12868	;;
12869      irix5* | irix6*)
12870        case $cc_basename in
12871          CC*)
12872	    # SGI C++
12873	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12874
12875	    # Archives containing C++ object files must be created using
12876	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12877	    # necessary to make sure instantiated templates are included
12878	    # in the archive.
12879	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12880	    ;;
12881          *)
12882	    if test "$GXX" = yes; then
12883	      if test "$with_gnu_ld" = no; then
12884	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12885	      else
12886	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12887	      fi
12888	    fi
12889	    link_all_deplibs_CXX=yes
12890	    ;;
12891        esac
12892        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12893        hardcode_libdir_separator_CXX=:
12894        inherit_rpath_CXX=yes
12895        ;;
12896
12897      linux* | k*bsd*-gnu)
12898        case $cc_basename in
12899          KCC*)
12900	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12901
12902	    # KCC will only create a shared library if the output file
12903	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12904	    # to its proper name (with version) after linking.
12905	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12906	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12907	    # Commands to make compiler produce verbose output that lists
12908	    # what "hidden" libraries, object files and flags are used when
12909	    # linking a shared library.
12910	    #
12911	    # There doesn't appear to be a way to prevent this compiler from
12912	    # explicitly linking system object files so we need to strip them
12913	    # from the output so that they don't get included in the library
12914	    # dependencies.
12915	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12916
12917	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12918	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12919
12920	    # Archives containing C++ object files must be created using
12921	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12922	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12923	    ;;
12924	  icpc* | ecpc* )
12925	    # Intel C++
12926	    with_gnu_ld=yes
12927	    # version 8.0 and above of icpc choke on multiply defined symbols
12928	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12929	    # earlier do not add the objects themselves.
12930	    case `$CC -V 2>&1` in
12931	      *"Version 7."*)
12932	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12934		;;
12935	      *)  # Version 8.0 or newer
12936	        tmp_idyn=
12937	        case $host_cpu in
12938		  ia64*) tmp_idyn=' -i_dynamic';;
12939		esac
12940	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942		;;
12943	    esac
12944	    archive_cmds_need_lc_CXX=no
12945	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12946	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12947	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12948	    ;;
12949          pgCC* | pgcpp*)
12950            # Portland Group C++ compiler
12951	    case `$CC -V` in
12952	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12953	      prelink_cmds_CXX='tpldir=Template.dir~
12954		rm -rf $tpldir~
12955		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12956		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12957	      old_archive_cmds_CXX='tpldir=Template.dir~
12958		rm -rf $tpldir~
12959		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12960		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12961		$RANLIB $oldlib'
12962	      archive_cmds_CXX='tpldir=Template.dir~
12963		rm -rf $tpldir~
12964		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12965		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12966	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12967		rm -rf $tpldir~
12968		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12969		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12970	      ;;
12971	    *) # Version 6 will use weak symbols
12972	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12973	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12974	      ;;
12975	    esac
12976
12977	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12978	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12979	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12980            ;;
12981	  cxx*)
12982	    # Compaq C++
12983	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12985
12986	    runpath_var=LD_RUN_PATH
12987	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12988	    hardcode_libdir_separator_CXX=:
12989
12990	    # Commands to make compiler produce verbose output that lists
12991	    # what "hidden" libraries, object files and flags are used when
12992	    # linking a shared library.
12993	    #
12994	    # There doesn't appear to be a way to prevent this compiler from
12995	    # explicitly linking system object files so we need to strip them
12996	    # from the output so that they don't get included in the library
12997	    # dependencies.
12998	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12999	    ;;
13000	  xl*)
13001	    # IBM XL 8.0 on PPC, with GNU ld
13002	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13004	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13005	    if test "x$supports_anon_versioning" = xyes; then
13006	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13007		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13008		echo "local: *; };" >> $output_objdir/$libname.ver~
13009		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13010	    fi
13011	    ;;
13012	  *)
13013	    case `$CC -V 2>&1 | sed 5q` in
13014	    *Sun\ C*)
13015	      # Sun C++ 5.9
13016	      no_undefined_flag_CXX=' -zdefs'
13017	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13018	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13019	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13020	      whole_archive_flag_spec_CXX='${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'
13021	      compiler_needs_object_CXX=yes
13022
13023	      # Not sure whether something based on
13024	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13025	      # would be better.
13026	      output_verbose_link_cmd='echo'
13027
13028	      # Archives containing C++ object files must be created using
13029	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13030	      # necessary to make sure instantiated templates are included
13031	      # in the archive.
13032	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13033	      ;;
13034	    esac
13035	    ;;
13036	esac
13037	;;
13038
13039      lynxos*)
13040        # FIXME: insert proper C++ library support
13041	ld_shlibs_CXX=no
13042	;;
13043
13044      m88k*)
13045        # FIXME: insert proper C++ library support
13046        ld_shlibs_CXX=no
13047	;;
13048
13049      mvs*)
13050        case $cc_basename in
13051          cxx*)
13052	    # FIXME: insert proper C++ library support
13053	    ld_shlibs_CXX=no
13054	    ;;
13055	  *)
13056	    # FIXME: insert proper C++ library support
13057	    ld_shlibs_CXX=no
13058	    ;;
13059	esac
13060	;;
13061
13062      netbsd*)
13063        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13064	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13065	  wlarc=
13066	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13067	  hardcode_direct_CXX=yes
13068	  hardcode_shlibpath_var_CXX=no
13069	fi
13070	# Workaround some broken pre-1.5 toolchains
13071	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13072	;;
13073
13074      *nto* | *qnx*)
13075        ld_shlibs_CXX=yes
13076	;;
13077
13078      openbsd2*)
13079        # C++ shared libraries are fairly broken
13080	ld_shlibs_CXX=no
13081	;;
13082
13083      openbsd*)
13084	if test -f /usr/libexec/ld.so; then
13085	  hardcode_direct_CXX=yes
13086	  hardcode_shlibpath_var_CXX=no
13087	  hardcode_direct_absolute_CXX=yes
13088	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13089	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13090	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13091	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13092	    export_dynamic_flag_spec_CXX='${wl}-E'
13093	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13094	  fi
13095	  output_verbose_link_cmd=echo
13096	else
13097	  ld_shlibs_CXX=no
13098	fi
13099	;;
13100
13101      osf3* | osf4* | osf5*)
13102        case $cc_basename in
13103          KCC*)
13104	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13105
13106	    # KCC will only create a shared library if the output file
13107	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13108	    # to its proper name (with version) after linking.
13109	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13110
13111	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13112	    hardcode_libdir_separator_CXX=:
13113
13114	    # Archives containing C++ object files must be created using
13115	    # the KAI C++ compiler.
13116	    case $host in
13117	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13118	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13119	    esac
13120	    ;;
13121          RCC*)
13122	    # Rational C++ 2.4.1
13123	    # FIXME: insert proper C++ library support
13124	    ld_shlibs_CXX=no
13125	    ;;
13126          cxx*)
13127	    case $host in
13128	      osf3*)
13129	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13130	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13131	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13132		;;
13133	      *)
13134	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13135	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13136	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13137	          echo "-hidden">> $lib.exp~
13138	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13139	          $RM $lib.exp'
13140	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13141		;;
13142	    esac
13143
13144	    hardcode_libdir_separator_CXX=:
13145
13146	    # Commands to make compiler produce verbose output that lists
13147	    # what "hidden" libraries, object files and flags are used when
13148	    # linking a shared library.
13149	    #
13150	    # There doesn't appear to be a way to prevent this compiler from
13151	    # explicitly linking system object files so we need to strip them
13152	    # from the output so that they don't get included in the library
13153	    # dependencies.
13154	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13155	    ;;
13156	  *)
13157	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13158	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13159	      case $host in
13160	        osf3*)
13161	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13162		  ;;
13163	        *)
13164	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13165		  ;;
13166	      esac
13167
13168	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13169	      hardcode_libdir_separator_CXX=:
13170
13171	      # Commands to make compiler produce verbose output that lists
13172	      # what "hidden" libraries, object files and flags are used when
13173	      # linking a shared library.
13174	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13175
13176	    else
13177	      # FIXME: insert proper C++ library support
13178	      ld_shlibs_CXX=no
13179	    fi
13180	    ;;
13181        esac
13182        ;;
13183
13184      psos*)
13185        # FIXME: insert proper C++ library support
13186        ld_shlibs_CXX=no
13187        ;;
13188
13189      sunos4*)
13190        case $cc_basename in
13191          CC*)
13192	    # Sun C++ 4.x
13193	    # FIXME: insert proper C++ library support
13194	    ld_shlibs_CXX=no
13195	    ;;
13196          lcc*)
13197	    # Lucid
13198	    # FIXME: insert proper C++ library support
13199	    ld_shlibs_CXX=no
13200	    ;;
13201          *)
13202	    # FIXME: insert proper C++ library support
13203	    ld_shlibs_CXX=no
13204	    ;;
13205        esac
13206        ;;
13207
13208      solaris*)
13209        case $cc_basename in
13210          CC*)
13211	    # Sun C++ 4.2, 5.x and Centerline C++
13212            archive_cmds_need_lc_CXX=yes
13213	    no_undefined_flag_CXX=' -zdefs'
13214	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13216	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13217
13218	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13219	    hardcode_shlibpath_var_CXX=no
13220	    case $host_os in
13221	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13222	      *)
13223		# The compiler driver will combine and reorder linker options,
13224		# but understands `-z linker_flag'.
13225	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13226		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13227	        ;;
13228	    esac
13229	    link_all_deplibs_CXX=yes
13230
13231	    output_verbose_link_cmd='echo'
13232
13233	    # Archives containing C++ object files must be created using
13234	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13235	    # necessary to make sure instantiated templates are included
13236	    # in the archive.
13237	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13238	    ;;
13239          gcx*)
13240	    # Green Hills C++ Compiler
13241	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13242
13243	    # The C++ compiler must be used to create the archive.
13244	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13245	    ;;
13246          *)
13247	    # GNU C++ compiler with Solaris linker
13248	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13249	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13250	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13251	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13252	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13253		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13254
13255	        # Commands to make compiler produce verbose output that lists
13256	        # what "hidden" libraries, object files and flags are used when
13257	        # linking a shared library.
13258	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13259	      else
13260	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13261	        # platform.
13262	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13263	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13264		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13265
13266	        # Commands to make compiler produce verbose output that lists
13267	        # what "hidden" libraries, object files and flags are used when
13268	        # linking a shared library.
13269	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13270	      fi
13271
13272	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13273	      case $host_os in
13274		solaris2.[0-5] | solaris2.[0-5].*) ;;
13275		*)
13276		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13277		  ;;
13278	      esac
13279	    fi
13280	    ;;
13281        esac
13282        ;;
13283
13284    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13285      no_undefined_flag_CXX='${wl}-z,text'
13286      archive_cmds_need_lc_CXX=no
13287      hardcode_shlibpath_var_CXX=no
13288      runpath_var='LD_RUN_PATH'
13289
13290      case $cc_basename in
13291        CC*)
13292	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294	  ;;
13295	*)
13296	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298	  ;;
13299      esac
13300      ;;
13301
13302      sysv5* | sco3.2v5* | sco5v6*)
13303	# Note: We can NOT use -z defs as we might desire, because we do not
13304	# link with -lc, and that would cause any symbols used from libc to
13305	# always be unresolved, which means just about no library would
13306	# ever link correctly.  If we're not using GNU ld we use -z text
13307	# though, which does catch some bad symbols but isn't as heavy-handed
13308	# as -z defs.
13309	no_undefined_flag_CXX='${wl}-z,text'
13310	allow_undefined_flag_CXX='${wl}-z,nodefs'
13311	archive_cmds_need_lc_CXX=no
13312	hardcode_shlibpath_var_CXX=no
13313	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13314	hardcode_libdir_separator_CXX=':'
13315	link_all_deplibs_CXX=yes
13316	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13317	runpath_var='LD_RUN_PATH'
13318
13319	case $cc_basename in
13320          CC*)
13321	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323	    ;;
13324	  *)
13325	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327	    ;;
13328	esac
13329      ;;
13330
13331      tandem*)
13332        case $cc_basename in
13333          NCC*)
13334	    # NonStop-UX NCC 3.20
13335	    # FIXME: insert proper C++ library support
13336	    ld_shlibs_CXX=no
13337	    ;;
13338          *)
13339	    # FIXME: insert proper C++ library support
13340	    ld_shlibs_CXX=no
13341	    ;;
13342        esac
13343        ;;
13344
13345      vxworks*)
13346        # FIXME: insert proper C++ library support
13347        ld_shlibs_CXX=no
13348        ;;
13349
13350      *)
13351        # FIXME: insert proper C++ library support
13352        ld_shlibs_CXX=no
13353        ;;
13354    esac
13355
13356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13357$as_echo "$ld_shlibs_CXX" >&6; }
13358    test "$ld_shlibs_CXX" = no && can_build_shared=no
13359
13360    GCC_CXX="$GXX"
13361    LD_CXX="$LD"
13362
13363    ## CAVEAT EMPTOR:
13364    ## There is no encapsulation within the following macros, do not change
13365    ## the running order or otherwise move them around unless you know exactly
13366    ## what you are doing...
13367    # Dependencies to place before and after the object being linked:
13368predep_objects_CXX=
13369postdep_objects_CXX=
13370predeps_CXX=
13371postdeps_CXX=
13372compiler_lib_search_path_CXX=
13373
13374cat > conftest.$ac_ext <<_LT_EOF
13375class Foo
13376{
13377public:
13378  Foo (void) { a = 0; }
13379private:
13380  int a;
13381};
13382_LT_EOF
13383
13384if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13385  (eval $ac_compile) 2>&5
13386  ac_status=$?
13387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13388  test $ac_status = 0; }; then
13389  # Parse the compiler output and extract the necessary
13390  # objects, libraries and library flags.
13391
13392  # Sentinel used to keep track of whether or not we are before
13393  # the conftest object file.
13394  pre_test_object_deps_done=no
13395
13396  for p in `eval "$output_verbose_link_cmd"`; do
13397    case $p in
13398
13399    -L* | -R* | -l*)
13400       # Some compilers place space between "-{L,R}" and the path.
13401       # Remove the space.
13402       if test $p = "-L" ||
13403          test $p = "-R"; then
13404	 prev=$p
13405	 continue
13406       else
13407	 prev=
13408       fi
13409
13410       if test "$pre_test_object_deps_done" = no; then
13411	 case $p in
13412	 -L* | -R*)
13413	   # Internal compiler library paths should come after those
13414	   # provided the user.  The postdeps already come after the
13415	   # user supplied libs so there is no need to process them.
13416	   if test -z "$compiler_lib_search_path_CXX"; then
13417	     compiler_lib_search_path_CXX="${prev}${p}"
13418	   else
13419	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13420	   fi
13421	   ;;
13422	 # The "-l" case would never come before the object being
13423	 # linked, so don't bother handling this case.
13424	 esac
13425       else
13426	 if test -z "$postdeps_CXX"; then
13427	   postdeps_CXX="${prev}${p}"
13428	 else
13429	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13430	 fi
13431       fi
13432       ;;
13433
13434    *.$objext)
13435       # This assumes that the test object file only shows up
13436       # once in the compiler output.
13437       if test "$p" = "conftest.$objext"; then
13438	 pre_test_object_deps_done=yes
13439	 continue
13440       fi
13441
13442       if test "$pre_test_object_deps_done" = no; then
13443	 if test -z "$predep_objects_CXX"; then
13444	   predep_objects_CXX="$p"
13445	 else
13446	   predep_objects_CXX="$predep_objects_CXX $p"
13447	 fi
13448       else
13449	 if test -z "$postdep_objects_CXX"; then
13450	   postdep_objects_CXX="$p"
13451	 else
13452	   postdep_objects_CXX="$postdep_objects_CXX $p"
13453	 fi
13454       fi
13455       ;;
13456
13457    *) ;; # Ignore the rest.
13458
13459    esac
13460  done
13461
13462  # Clean up.
13463  rm -f a.out a.exe
13464else
13465  echo "libtool.m4: error: problem compiling CXX test program"
13466fi
13467
13468$RM -f confest.$objext
13469
13470# PORTME: override above test on systems where it is broken
13471case $host_os in
13472interix[3-9]*)
13473  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13474  # hack all around it, let's just trust "g++" to DTRT.
13475  predep_objects_CXX=
13476  postdep_objects_CXX=
13477  postdeps_CXX=
13478  ;;
13479
13480linux*)
13481  case `$CC -V 2>&1 | sed 5q` in
13482  *Sun\ C*)
13483    # Sun C++ 5.9
13484
13485    # The more standards-conforming stlport4 library is
13486    # incompatible with the Cstd library. Avoid specifying
13487    # it if it's in CXXFLAGS. Ignore libCrun as
13488    # -library=stlport4 depends on it.
13489    case " $CXX $CXXFLAGS " in
13490    *" -library=stlport4 "*)
13491      solaris_use_stlport4=yes
13492      ;;
13493    esac
13494
13495    if test "$solaris_use_stlport4" != yes; then
13496      postdeps_CXX='-library=Cstd -library=Crun'
13497    fi
13498    ;;
13499  esac
13500  ;;
13501
13502solaris*)
13503  case $cc_basename in
13504  CC*)
13505    # The more standards-conforming stlport4 library is
13506    # incompatible with the Cstd library. Avoid specifying
13507    # it if it's in CXXFLAGS. Ignore libCrun as
13508    # -library=stlport4 depends on it.
13509    case " $CXX $CXXFLAGS " in
13510    *" -library=stlport4 "*)
13511      solaris_use_stlport4=yes
13512      ;;
13513    esac
13514
13515    # Adding this requires a known-good setup of shared libraries for
13516    # Sun compiler versions before 5.6, else PIC objects from an old
13517    # archive will be linked into the output, leading to subtle bugs.
13518    if test "$solaris_use_stlport4" != yes; then
13519      postdeps_CXX='-library=Cstd -library=Crun'
13520    fi
13521    ;;
13522  esac
13523  ;;
13524esac
13525
13526
13527case " $postdeps_CXX " in
13528*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13529esac
13530 compiler_lib_search_dirs_CXX=
13531if test -n "${compiler_lib_search_path_CXX}"; then
13532 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13533fi
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565    lt_prog_compiler_wl_CXX=
13566lt_prog_compiler_pic_CXX=
13567lt_prog_compiler_static_CXX=
13568
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13570$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13571
13572  # C++ specific cases for pic, static, wl, etc.
13573  if test "$GXX" = yes; then
13574    lt_prog_compiler_wl_CXX='-Wl,'
13575    lt_prog_compiler_static_CXX='-static'
13576
13577    case $host_os in
13578    aix*)
13579      # All AIX code is PIC.
13580      if test "$host_cpu" = ia64; then
13581	# AIX 5 now supports IA64 processor
13582	lt_prog_compiler_static_CXX='-Bstatic'
13583      fi
13584      ;;
13585
13586    amigaos*)
13587      case $host_cpu in
13588      powerpc)
13589            # see comment about AmigaOS4 .so support
13590            lt_prog_compiler_pic_CXX='-fPIC'
13591        ;;
13592      m68k)
13593            # FIXME: we need at least 68020 code to build shared libraries, but
13594            # adding the `-m68020' flag to GCC prevents building anything better,
13595            # like `-m68040'.
13596            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13597        ;;
13598      esac
13599      ;;
13600
13601    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13602      # PIC is the default for these OSes.
13603      ;;
13604    mingw* | cygwin* | os2* | pw32* | cegcc*)
13605      # This hack is so that the source file can tell whether it is being
13606      # built for inclusion in a dll (and should export symbols for example).
13607      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13608      # (--disable-auto-import) libraries
13609      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13610      ;;
13611    darwin* | rhapsody*)
13612      # PIC is the default on this platform
13613      # Common symbols not allowed in MH_DYLIB files
13614      lt_prog_compiler_pic_CXX='-fno-common'
13615      ;;
13616    *djgpp*)
13617      # DJGPP does not support shared libraries at all
13618      lt_prog_compiler_pic_CXX=
13619      ;;
13620    interix[3-9]*)
13621      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13622      # Instead, we relocate shared libraries at runtime.
13623      ;;
13624    sysv4*MP*)
13625      if test -d /usr/nec; then
13626	lt_prog_compiler_pic_CXX=-Kconform_pic
13627      fi
13628      ;;
13629    hpux*)
13630      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13631      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13632      # sets the default TLS model and affects inlining.
13633      case $host_cpu in
13634      hppa*64*)
13635	;;
13636      *)
13637	lt_prog_compiler_pic_CXX='-fPIC'
13638	;;
13639      esac
13640      ;;
13641    *qnx* | *nto*)
13642      # QNX uses GNU C++, but need to define -shared option too, otherwise
13643      # it will coredump.
13644      lt_prog_compiler_pic_CXX='-fPIC -shared'
13645      ;;
13646    *)
13647      lt_prog_compiler_pic_CXX='-fPIC'
13648      ;;
13649    esac
13650  else
13651    case $host_os in
13652      aix[4-9]*)
13653	# All AIX code is PIC.
13654	if test "$host_cpu" = ia64; then
13655	  # AIX 5 now supports IA64 processor
13656	  lt_prog_compiler_static_CXX='-Bstatic'
13657	else
13658	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13659	fi
13660	;;
13661      chorus*)
13662	case $cc_basename in
13663	cxch68*)
13664	  # Green Hills C++ Compiler
13665	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13666	  ;;
13667	esac
13668	;;
13669      dgux*)
13670	case $cc_basename in
13671	  ec++*)
13672	    lt_prog_compiler_pic_CXX='-KPIC'
13673	    ;;
13674	  ghcx*)
13675	    # Green Hills C++ Compiler
13676	    lt_prog_compiler_pic_CXX='-pic'
13677	    ;;
13678	  *)
13679	    ;;
13680	esac
13681	;;
13682      freebsd* | dragonfly*)
13683	# FreeBSD uses GNU C++
13684	;;
13685      hpux9* | hpux10* | hpux11*)
13686	case $cc_basename in
13687	  CC*)
13688	    lt_prog_compiler_wl_CXX='-Wl,'
13689	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13690	    if test "$host_cpu" != ia64; then
13691	      lt_prog_compiler_pic_CXX='+Z'
13692	    fi
13693	    ;;
13694	  aCC*)
13695	    lt_prog_compiler_wl_CXX='-Wl,'
13696	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13697	    case $host_cpu in
13698	    hppa*64*|ia64*)
13699	      # +Z the default
13700	      ;;
13701	    *)
13702	      lt_prog_compiler_pic_CXX='+Z'
13703	      ;;
13704	    esac
13705	    ;;
13706	  *)
13707	    ;;
13708	esac
13709	;;
13710      interix*)
13711	# This is c89, which is MS Visual C++ (no shared libs)
13712	# Anyone wants to do a port?
13713	;;
13714      irix5* | irix6* | nonstopux*)
13715	case $cc_basename in
13716	  CC*)
13717	    lt_prog_compiler_wl_CXX='-Wl,'
13718	    lt_prog_compiler_static_CXX='-non_shared'
13719	    # CC pic flag -KPIC is the default.
13720	    ;;
13721	  *)
13722	    ;;
13723	esac
13724	;;
13725      linux* | k*bsd*-gnu)
13726	case $cc_basename in
13727	  KCC*)
13728	    # KAI C++ Compiler
13729	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13730	    lt_prog_compiler_pic_CXX='-fPIC'
13731	    ;;
13732	  ecpc* )
13733	    # old Intel C++ for x86_64 which still supported -KPIC.
13734	    lt_prog_compiler_wl_CXX='-Wl,'
13735	    lt_prog_compiler_pic_CXX='-KPIC'
13736	    lt_prog_compiler_static_CXX='-static'
13737	    ;;
13738	  icpc* )
13739	    # Intel C++, used to be incompatible with GCC.
13740	    # ICC 10 doesn't accept -KPIC any more.
13741	    lt_prog_compiler_wl_CXX='-Wl,'
13742	    lt_prog_compiler_pic_CXX='-fPIC'
13743	    lt_prog_compiler_static_CXX='-static'
13744	    ;;
13745	  pgCC* | pgcpp*)
13746	    # Portland Group C++ compiler
13747	    lt_prog_compiler_wl_CXX='-Wl,'
13748	    lt_prog_compiler_pic_CXX='-fpic'
13749	    lt_prog_compiler_static_CXX='-Bstatic'
13750	    ;;
13751	  cxx*)
13752	    # Compaq C++
13753	    # Make sure the PIC flag is empty.  It appears that all Alpha
13754	    # Linux and Compaq Tru64 Unix objects are PIC.
13755	    lt_prog_compiler_pic_CXX=
13756	    lt_prog_compiler_static_CXX='-non_shared'
13757	    ;;
13758	  xlc* | xlC*)
13759	    # IBM XL 8.0 on PPC
13760	    lt_prog_compiler_wl_CXX='-Wl,'
13761	    lt_prog_compiler_pic_CXX='-qpic'
13762	    lt_prog_compiler_static_CXX='-qstaticlink'
13763	    ;;
13764	  *)
13765	    case `$CC -V 2>&1 | sed 5q` in
13766	    *Sun\ C*)
13767	      # Sun C++ 5.9
13768	      lt_prog_compiler_pic_CXX='-KPIC'
13769	      lt_prog_compiler_static_CXX='-Bstatic'
13770	      lt_prog_compiler_wl_CXX='-Qoption ld '
13771	      ;;
13772	    esac
13773	    ;;
13774	esac
13775	;;
13776      lynxos*)
13777	;;
13778      m88k*)
13779	;;
13780      mvs*)
13781	case $cc_basename in
13782	  cxx*)
13783	    lt_prog_compiler_pic_CXX='-W c,exportall'
13784	    ;;
13785	  *)
13786	    ;;
13787	esac
13788	;;
13789      netbsd*)
13790	;;
13791      *qnx* | *nto*)
13792        # QNX uses GNU C++, but need to define -shared option too, otherwise
13793        # it will coredump.
13794        lt_prog_compiler_pic_CXX='-fPIC -shared'
13795        ;;
13796      osf3* | osf4* | osf5*)
13797	case $cc_basename in
13798	  KCC*)
13799	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13800	    ;;
13801	  RCC*)
13802	    # Rational C++ 2.4.1
13803	    lt_prog_compiler_pic_CXX='-pic'
13804	    ;;
13805	  cxx*)
13806	    # Digital/Compaq C++
13807	    lt_prog_compiler_wl_CXX='-Wl,'
13808	    # Make sure the PIC flag is empty.  It appears that all Alpha
13809	    # Linux and Compaq Tru64 Unix objects are PIC.
13810	    lt_prog_compiler_pic_CXX=
13811	    lt_prog_compiler_static_CXX='-non_shared'
13812	    ;;
13813	  *)
13814	    ;;
13815	esac
13816	;;
13817      psos*)
13818	;;
13819      solaris*)
13820	case $cc_basename in
13821	  CC*)
13822	    # Sun C++ 4.2, 5.x and Centerline C++
13823	    lt_prog_compiler_pic_CXX='-KPIC'
13824	    lt_prog_compiler_static_CXX='-Bstatic'
13825	    lt_prog_compiler_wl_CXX='-Qoption ld '
13826	    ;;
13827	  gcx*)
13828	    # Green Hills C++ Compiler
13829	    lt_prog_compiler_pic_CXX='-PIC'
13830	    ;;
13831	  *)
13832	    ;;
13833	esac
13834	;;
13835      sunos4*)
13836	case $cc_basename in
13837	  CC*)
13838	    # Sun C++ 4.x
13839	    lt_prog_compiler_pic_CXX='-pic'
13840	    lt_prog_compiler_static_CXX='-Bstatic'
13841	    ;;
13842	  lcc*)
13843	    # Lucid
13844	    lt_prog_compiler_pic_CXX='-pic'
13845	    ;;
13846	  *)
13847	    ;;
13848	esac
13849	;;
13850      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13851	case $cc_basename in
13852	  CC*)
13853	    lt_prog_compiler_wl_CXX='-Wl,'
13854	    lt_prog_compiler_pic_CXX='-KPIC'
13855	    lt_prog_compiler_static_CXX='-Bstatic'
13856	    ;;
13857	esac
13858	;;
13859      tandem*)
13860	case $cc_basename in
13861	  NCC*)
13862	    # NonStop-UX NCC 3.20
13863	    lt_prog_compiler_pic_CXX='-KPIC'
13864	    ;;
13865	  *)
13866	    ;;
13867	esac
13868	;;
13869      vxworks*)
13870	;;
13871      *)
13872	lt_prog_compiler_can_build_shared_CXX=no
13873	;;
13874    esac
13875  fi
13876
13877case $host_os in
13878  # For platforms which do not support PIC, -DPIC is meaningless:
13879  *djgpp*)
13880    lt_prog_compiler_pic_CXX=
13881    ;;
13882  *)
13883    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13884    ;;
13885esac
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13887$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13888
13889
13890
13891#
13892# Check to make sure the PIC flag actually works.
13893#
13894if test -n "$lt_prog_compiler_pic_CXX"; then
13895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13896$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13897if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13898  $as_echo_n "(cached) " >&6
13899else
13900  lt_cv_prog_compiler_pic_works_CXX=no
13901   ac_outfile=conftest.$ac_objext
13902   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13903   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13904   # Insert the option either (1) after the last *FLAGS variable, or
13905   # (2) before a word containing "conftest.", or (3) at the end.
13906   # Note that $ac_compile itself does not contain backslashes and begins
13907   # with a dollar sign (not a hyphen), so the echo should work correctly.
13908   # The option is referenced via a variable to avoid confusing sed.
13909   lt_compile=`echo "$ac_compile" | $SED \
13910   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13912   -e 's:$: $lt_compiler_flag:'`
13913   (eval echo "\"\$as_me:13913: $lt_compile\"" >&5)
13914   (eval "$lt_compile" 2>conftest.err)
13915   ac_status=$?
13916   cat conftest.err >&5
13917   echo "$as_me:13917: \$? = $ac_status" >&5
13918   if (exit $ac_status) && test -s "$ac_outfile"; then
13919     # The compiler can only warn and ignore the option if not recognized
13920     # So say no if there are warnings other than the usual output.
13921     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13922     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13924       lt_cv_prog_compiler_pic_works_CXX=yes
13925     fi
13926   fi
13927   $RM conftest*
13928
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13931$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13932
13933if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13934    case $lt_prog_compiler_pic_CXX in
13935     "" | " "*) ;;
13936     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13937     esac
13938else
13939    lt_prog_compiler_pic_CXX=
13940     lt_prog_compiler_can_build_shared_CXX=no
13941fi
13942
13943fi
13944
13945
13946
13947#
13948# Check to make sure the static flag actually works.
13949#
13950wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13952$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13953if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13954  $as_echo_n "(cached) " >&6
13955else
13956  lt_cv_prog_compiler_static_works_CXX=no
13957   save_LDFLAGS="$LDFLAGS"
13958   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13959   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13960   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13961     # The linker can only warn and ignore the option if not recognized
13962     # So say no if there are warnings
13963     if test -s conftest.err; then
13964       # Append any errors to the config.log.
13965       cat conftest.err 1>&5
13966       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13967       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968       if diff conftest.exp conftest.er2 >/dev/null; then
13969         lt_cv_prog_compiler_static_works_CXX=yes
13970       fi
13971     else
13972       lt_cv_prog_compiler_static_works_CXX=yes
13973     fi
13974   fi
13975   $RM -r conftest*
13976   LDFLAGS="$save_LDFLAGS"
13977
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13980$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13981
13982if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13983    :
13984else
13985    lt_prog_compiler_static_CXX=
13986fi
13987
13988
13989
13990
13991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13993if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  lt_cv_prog_compiler_c_o_CXX=no
13997   $RM -r conftest 2>/dev/null
13998   mkdir conftest
13999   cd conftest
14000   mkdir out
14001   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003   lt_compiler_flag="-o out/conftest2.$ac_objext"
14004   # Insert the option either (1) after the last *FLAGS variable, or
14005   # (2) before a word containing "conftest.", or (3) at the end.
14006   # Note that $ac_compile itself does not contain backslashes and begins
14007   # with a dollar sign (not a hyphen), so the echo should work correctly.
14008   lt_compile=`echo "$ac_compile" | $SED \
14009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14010   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14011   -e 's:$: $lt_compiler_flag:'`
14012   (eval echo "\"\$as_me:14012: $lt_compile\"" >&5)
14013   (eval "$lt_compile" 2>out/conftest.err)
14014   ac_status=$?
14015   cat out/conftest.err >&5
14016   echo "$as_me:14016: \$? = $ac_status" >&5
14017   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14018   then
14019     # The compiler can only warn and ignore the option if not recognized
14020     # So say no if there are warnings
14021     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14022     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14023     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14024       lt_cv_prog_compiler_c_o_CXX=yes
14025     fi
14026   fi
14027   chmod u+w . 2>&5
14028   $RM conftest*
14029   # SGI C++ compiler will create directory out/ii_files/ for
14030   # template instantiation
14031   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14032   $RM out/* && rmdir out
14033   cd ..
14034   $RM -r conftest
14035   $RM conftest*
14036
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14039$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14040
14041
14042
14043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14044$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14045if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14046  $as_echo_n "(cached) " >&6
14047else
14048  lt_cv_prog_compiler_c_o_CXX=no
14049   $RM -r conftest 2>/dev/null
14050   mkdir conftest
14051   cd conftest
14052   mkdir out
14053   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14054
14055   lt_compiler_flag="-o out/conftest2.$ac_objext"
14056   # Insert the option either (1) after the last *FLAGS variable, or
14057   # (2) before a word containing "conftest.", or (3) at the end.
14058   # Note that $ac_compile itself does not contain backslashes and begins
14059   # with a dollar sign (not a hyphen), so the echo should work correctly.
14060   lt_compile=`echo "$ac_compile" | $SED \
14061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14063   -e 's:$: $lt_compiler_flag:'`
14064   (eval echo "\"\$as_me:14064: $lt_compile\"" >&5)
14065   (eval "$lt_compile" 2>out/conftest.err)
14066   ac_status=$?
14067   cat out/conftest.err >&5
14068   echo "$as_me:14068: \$? = $ac_status" >&5
14069   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14070   then
14071     # The compiler can only warn and ignore the option if not recognized
14072     # So say no if there are warnings
14073     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14074     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14075     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14076       lt_cv_prog_compiler_c_o_CXX=yes
14077     fi
14078   fi
14079   chmod u+w . 2>&5
14080   $RM conftest*
14081   # SGI C++ compiler will create directory out/ii_files/ for
14082   # template instantiation
14083   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14084   $RM out/* && rmdir out
14085   cd ..
14086   $RM -r conftest
14087   $RM conftest*
14088
14089fi
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14091$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14092
14093
14094
14095
14096hard_links="nottested"
14097if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14098  # do not overwrite the value of need_locks provided by the user
14099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14100$as_echo_n "checking if we can lock with hard links... " >&6; }
14101  hard_links=yes
14102  $RM conftest*
14103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14104  touch conftest.a
14105  ln conftest.a conftest.b 2>&5 || hard_links=no
14106  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14108$as_echo "$hard_links" >&6; }
14109  if test "$hard_links" = no; then
14110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14111$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14112    need_locks=warn
14113  fi
14114else
14115  need_locks=no
14116fi
14117
14118
14119
14120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14121$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14122
14123  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14124  case $host_os in
14125  aix[4-9]*)
14126    # If we're using GNU nm, then we don't want the "-C" option.
14127    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14128    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14129      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14130    else
14131      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14132    fi
14133    ;;
14134  pw32*)
14135    export_symbols_cmds_CXX="$ltdll_cmds"
14136  ;;
14137  cygwin* | mingw* | cegcc*)
14138    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14139  ;;
14140  *)
14141    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14142  ;;
14143  esac
14144  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14145
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14147$as_echo "$ld_shlibs_CXX" >&6; }
14148test "$ld_shlibs_CXX" = no && can_build_shared=no
14149
14150with_gnu_ld_CXX=$with_gnu_ld
14151
14152
14153
14154
14155
14156
14157#
14158# Do we need to explicitly link libc?
14159#
14160case "x$archive_cmds_need_lc_CXX" in
14161x|xyes)
14162  # Assume -lc should be added
14163  archive_cmds_need_lc_CXX=yes
14164
14165  if test "$enable_shared" = yes && test "$GCC" = yes; then
14166    case $archive_cmds_CXX in
14167    *'~'*)
14168      # FIXME: we may have to deal with multi-command sequences.
14169      ;;
14170    '$CC '*)
14171      # Test whether the compiler implicitly links with -lc since on some
14172      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14173      # to ld, don't add -lc before -lgcc.
14174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14175$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14176      $RM conftest*
14177      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178
14179      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14180  (eval $ac_compile) 2>&5
14181  ac_status=$?
14182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14183  test $ac_status = 0; } 2>conftest.err; then
14184        soname=conftest
14185        lib=conftest
14186        libobjs=conftest.$ac_objext
14187        deplibs=
14188        wl=$lt_prog_compiler_wl_CXX
14189	pic_flag=$lt_prog_compiler_pic_CXX
14190        compiler_flags=-v
14191        linker_flags=-v
14192        verstring=
14193        output_objdir=.
14194        libname=conftest
14195        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14196        allow_undefined_flag_CXX=
14197        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14198  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14199  ac_status=$?
14200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14201  test $ac_status = 0; }
14202        then
14203	  archive_cmds_need_lc_CXX=no
14204        else
14205	  archive_cmds_need_lc_CXX=yes
14206        fi
14207        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14208      else
14209        cat conftest.err 1>&5
14210      fi
14211      $RM conftest*
14212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14213$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14214      ;;
14215    esac
14216  fi
14217  ;;
14218esac
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14284$as_echo_n "checking dynamic linker characteristics... " >&6; }
14285
14286library_names_spec=
14287libname_spec='lib$name'
14288soname_spec=
14289shrext_cmds=".so"
14290postinstall_cmds=
14291postuninstall_cmds=
14292finish_cmds=
14293finish_eval=
14294shlibpath_var=
14295shlibpath_overrides_runpath=unknown
14296version_type=none
14297dynamic_linker="$host_os ld.so"
14298sys_lib_dlsearch_path_spec="/lib /usr/lib"
14299need_lib_prefix=unknown
14300hardcode_into_libs=no
14301
14302# when you set need_version to no, make sure it does not cause -set_version
14303# flags to be left without arguments
14304need_version=unknown
14305
14306case $host_os in
14307aix3*)
14308  version_type=linux
14309  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14310  shlibpath_var=LIBPATH
14311
14312  # AIX 3 has no versioning support, so we append a major version to the name.
14313  soname_spec='${libname}${release}${shared_ext}$major'
14314  ;;
14315
14316aix[4-9]*)
14317  version_type=linux
14318  need_lib_prefix=no
14319  need_version=no
14320  hardcode_into_libs=yes
14321  if test "$host_cpu" = ia64; then
14322    # AIX 5 supports IA64
14323    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14324    shlibpath_var=LD_LIBRARY_PATH
14325  else
14326    # With GCC up to 2.95.x, collect2 would create an import file
14327    # for dependence libraries.  The import file would start with
14328    # the line `#! .'.  This would cause the generated library to
14329    # depend on `.', always an invalid library.  This was fixed in
14330    # development snapshots of GCC prior to 3.0.
14331    case $host_os in
14332      aix4 | aix4.[01] | aix4.[01].*)
14333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14334	   echo ' yes '
14335	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14336	:
14337      else
14338	can_build_shared=no
14339      fi
14340      ;;
14341    esac
14342    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14343    # soname into executable. Probably we can add versioning support to
14344    # collect2, so additional links can be useful in future.
14345    if test "$aix_use_runtimelinking" = yes; then
14346      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14347      # instead of lib<name>.a to let people know that these are not
14348      # typical AIX shared libraries.
14349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350    else
14351      # We preserve .a as extension for shared libraries through AIX4.2
14352      # and later when we are not doing run time linking.
14353      library_names_spec='${libname}${release}.a $libname.a'
14354      soname_spec='${libname}${release}${shared_ext}$major'
14355    fi
14356    shlibpath_var=LIBPATH
14357  fi
14358  ;;
14359
14360amigaos*)
14361  case $host_cpu in
14362  powerpc)
14363    # Since July 2007 AmigaOS4 officially supports .so libraries.
14364    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366    ;;
14367  m68k)
14368    library_names_spec='$libname.ixlibrary $libname.a'
14369    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14370    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'
14371    ;;
14372  esac
14373  ;;
14374
14375beos*)
14376  library_names_spec='${libname}${shared_ext}'
14377  dynamic_linker="$host_os ld.so"
14378  shlibpath_var=LIBRARY_PATH
14379  ;;
14380
14381bsdi[45]*)
14382  version_type=linux
14383  need_version=no
14384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385  soname_spec='${libname}${release}${shared_ext}$major'
14386  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14387  shlibpath_var=LD_LIBRARY_PATH
14388  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14389  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14390  # the default ld.so.conf also contains /usr/contrib/lib and
14391  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14392  # libtool to hard-code these into programs
14393  ;;
14394
14395cygwin* | mingw* | pw32* | cegcc*)
14396  version_type=windows
14397  shrext_cmds=".dll"
14398  need_version=no
14399  need_lib_prefix=no
14400
14401  case $GCC,$host_os in
14402  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14403    library_names_spec='$libname.dll.a'
14404    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14405    postinstall_cmds='base_file=`basename \${file}`~
14406      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14407      dldir=$destdir/`dirname \$dlpath`~
14408      test -d \$dldir || mkdir -p \$dldir~
14409      $install_prog $dir/$dlname \$dldir/$dlname~
14410      chmod a+x \$dldir/$dlname~
14411      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14412        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14413      fi'
14414    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14415      dlpath=$dir/\$dldll~
14416       $RM \$dlpath'
14417    shlibpath_overrides_runpath=yes
14418
14419    case $host_os in
14420    cygwin*)
14421      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14422      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14423      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14424      ;;
14425    mingw* | cegcc*)
14426      # MinGW DLLs use traditional 'lib' prefix
14427      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14428      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14429      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14430        # It is most probably a Windows format PATH printed by
14431        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14432        # path with ; separators, and with drive letters. We can handle the
14433        # drive letters (cygwin fileutils understands them), so leave them,
14434        # especially as we might pass files found there to a mingw objdump,
14435        # which wouldn't understand a cygwinified path. Ahh.
14436        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14437      else
14438        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14439      fi
14440      ;;
14441    pw32*)
14442      # pw32 DLLs use 'pw' prefix rather than 'lib'
14443      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14444      ;;
14445    esac
14446    ;;
14447
14448  *)
14449    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14450    ;;
14451  esac
14452  dynamic_linker='Win32 ld.exe'
14453  # FIXME: first we should search . and the directory the executable is in
14454  shlibpath_var=PATH
14455  ;;
14456
14457darwin* | rhapsody*)
14458  dynamic_linker="$host_os dyld"
14459  version_type=darwin
14460  need_lib_prefix=no
14461  need_version=no
14462  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14463  soname_spec='${libname}${release}${major}$shared_ext'
14464  shlibpath_overrides_runpath=yes
14465  shlibpath_var=DYLD_LIBRARY_PATH
14466  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14467
14468  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14469  ;;
14470
14471dgux*)
14472  version_type=linux
14473  need_lib_prefix=no
14474  need_version=no
14475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14476  soname_spec='${libname}${release}${shared_ext}$major'
14477  shlibpath_var=LD_LIBRARY_PATH
14478  ;;
14479
14480freebsd1*)
14481  dynamic_linker=no
14482  ;;
14483
14484freebsd* | dragonfly*)
14485  # DragonFly does not have aout.  When/if they implement a new
14486  # versioning mechanism, adjust this.
14487  if test -x /usr/bin/objformat; then
14488    objformat=`/usr/bin/objformat`
14489  else
14490    case $host_os in
14491    freebsd[123]*) objformat=aout ;;
14492    *) objformat=elf ;;
14493    esac
14494  fi
14495  version_type=freebsd-$objformat
14496  case $version_type in
14497    freebsd-elf*)
14498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14499      need_version=no
14500      need_lib_prefix=no
14501      ;;
14502    freebsd-*)
14503      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14504      need_version=yes
14505      ;;
14506  esac
14507  shlibpath_var=LD_LIBRARY_PATH
14508  case $host_os in
14509  freebsd2*)
14510    shlibpath_overrides_runpath=yes
14511    ;;
14512  freebsd3.[01]* | freebsdelf3.[01]*)
14513    shlibpath_overrides_runpath=yes
14514    hardcode_into_libs=yes
14515    ;;
14516  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14517  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14518    shlibpath_overrides_runpath=no
14519    hardcode_into_libs=yes
14520    ;;
14521  *) # from 4.6 on, and DragonFly
14522    shlibpath_overrides_runpath=yes
14523    hardcode_into_libs=yes
14524    ;;
14525  esac
14526  ;;
14527
14528gnu*)
14529  version_type=linux
14530  need_lib_prefix=no
14531  need_version=no
14532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14533  soname_spec='${libname}${release}${shared_ext}$major'
14534  shlibpath_var=LD_LIBRARY_PATH
14535  hardcode_into_libs=yes
14536  ;;
14537
14538hpux9* | hpux10* | hpux11*)
14539  # Give a soname corresponding to the major version so that dld.sl refuses to
14540  # link against other versions.
14541  version_type=sunos
14542  need_lib_prefix=no
14543  need_version=no
14544  case $host_cpu in
14545  ia64*)
14546    shrext_cmds='.so'
14547    hardcode_into_libs=yes
14548    dynamic_linker="$host_os dld.so"
14549    shlibpath_var=LD_LIBRARY_PATH
14550    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552    soname_spec='${libname}${release}${shared_ext}$major'
14553    if test "X$HPUX_IA64_MODE" = X32; then
14554      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14555    else
14556      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14557    fi
14558    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14559    ;;
14560  hppa*64*)
14561    shrext_cmds='.sl'
14562    hardcode_into_libs=yes
14563    dynamic_linker="$host_os dld.sl"
14564    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14565    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14566    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567    soname_spec='${libname}${release}${shared_ext}$major'
14568    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14569    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14570    ;;
14571  *)
14572    shrext_cmds='.sl'
14573    dynamic_linker="$host_os dld.sl"
14574    shlibpath_var=SHLIB_PATH
14575    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577    soname_spec='${libname}${release}${shared_ext}$major'
14578    ;;
14579  esac
14580  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14581  postinstall_cmds='chmod 555 $lib'
14582  ;;
14583
14584interix[3-9]*)
14585  version_type=linux
14586  need_lib_prefix=no
14587  need_version=no
14588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14589  soname_spec='${libname}${release}${shared_ext}$major'
14590  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14591  shlibpath_var=LD_LIBRARY_PATH
14592  shlibpath_overrides_runpath=no
14593  hardcode_into_libs=yes
14594  ;;
14595
14596irix5* | irix6* | nonstopux*)
14597  case $host_os in
14598    nonstopux*) version_type=nonstopux ;;
14599    *)
14600	if test "$lt_cv_prog_gnu_ld" = yes; then
14601		version_type=linux
14602	else
14603		version_type=irix
14604	fi ;;
14605  esac
14606  need_lib_prefix=no
14607  need_version=no
14608  soname_spec='${libname}${release}${shared_ext}$major'
14609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14610  case $host_os in
14611  irix5* | nonstopux*)
14612    libsuff= shlibsuff=
14613    ;;
14614  *)
14615    case $LD in # libtool.m4 will add one of these switches to LD
14616    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14617      libsuff= shlibsuff= libmagic=32-bit;;
14618    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14619      libsuff=32 shlibsuff=N32 libmagic=N32;;
14620    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14621      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14622    *) libsuff= shlibsuff= libmagic=never-match;;
14623    esac
14624    ;;
14625  esac
14626  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14627  shlibpath_overrides_runpath=no
14628  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14629  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14630  hardcode_into_libs=yes
14631  ;;
14632
14633# No shared lib support for Linux oldld, aout, or coff.
14634linux*oldld* | linux*aout* | linux*coff*)
14635  dynamic_linker=no
14636  ;;
14637
14638# This must be Linux ELF.
14639linux* | k*bsd*-gnu)
14640  version_type=linux
14641  need_lib_prefix=no
14642  need_version=no
14643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644  soname_spec='${libname}${release}${shared_ext}$major'
14645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14646  shlibpath_var=LD_LIBRARY_PATH
14647  shlibpath_overrides_runpath=no
14648  # Some binutils ld are patched to set DT_RUNPATH
14649  save_LDFLAGS=$LDFLAGS
14650  save_libdir=$libdir
14651  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14652       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654/* end confdefs.h.  */
14655
14656int
14657main ()
14658{
14659
14660  ;
14661  return 0;
14662}
14663_ACEOF
14664if ac_fn_cxx_try_link "$LINENO"; then :
14665  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14666  shlibpath_overrides_runpath=yes
14667fi
14668fi
14669rm -f core conftest.err conftest.$ac_objext \
14670    conftest$ac_exeext conftest.$ac_ext
14671  LDFLAGS=$save_LDFLAGS
14672  libdir=$save_libdir
14673
14674  # This implies no fast_install, which is unacceptable.
14675  # Some rework will be needed to allow for fast_install
14676  # before this can be enabled.
14677  hardcode_into_libs=yes
14678
14679  # Append ld.so.conf contents to the search path
14680  if test -f /etc/ld.so.conf; then
14681    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' ' '`
14682    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14683  fi
14684
14685  # We used to test for /lib/ld.so.1 and disable shared libraries on
14686  # powerpc, because MkLinux only supported shared libraries with the
14687  # GNU dynamic linker.  Since this was broken with cross compilers,
14688  # most powerpc-linux boxes support dynamic linking these days and
14689  # people can always --disable-shared, the test was removed, and we
14690  # assume the GNU/Linux dynamic linker is in use.
14691  dynamic_linker='GNU/Linux ld.so'
14692  ;;
14693
14694netbsd*)
14695  version_type=sunos
14696  need_lib_prefix=no
14697  need_version=no
14698  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14700    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14701    dynamic_linker='NetBSD (a.out) ld.so'
14702  else
14703    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14704    soname_spec='${libname}${release}${shared_ext}$major'
14705    dynamic_linker='NetBSD ld.elf_so'
14706  fi
14707  shlibpath_var=LD_LIBRARY_PATH
14708  shlibpath_overrides_runpath=yes
14709  hardcode_into_libs=yes
14710  ;;
14711
14712newsos6)
14713  version_type=linux
14714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715  shlibpath_var=LD_LIBRARY_PATH
14716  shlibpath_overrides_runpath=yes
14717  ;;
14718
14719*nto* | *qnx*)
14720  version_type=qnx
14721  need_lib_prefix=no
14722  need_version=no
14723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724  soname_spec='${libname}${release}${shared_ext}$major'
14725  shlibpath_var=LD_LIBRARY_PATH
14726  shlibpath_overrides_runpath=no
14727  hardcode_into_libs=yes
14728  dynamic_linker='ldqnx.so'
14729  ;;
14730
14731openbsd*)
14732  version_type=sunos
14733  sys_lib_dlsearch_path_spec="/usr/lib"
14734  need_lib_prefix=no
14735  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14736  case $host_os in
14737    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14738    *)				need_version=no  ;;
14739  esac
14740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14741  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14742  shlibpath_var=LD_LIBRARY_PATH
14743  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14744    case $host_os in
14745      openbsd2.[89] | openbsd2.[89].*)
14746	shlibpath_overrides_runpath=no
14747	;;
14748      *)
14749	shlibpath_overrides_runpath=yes
14750	;;
14751      esac
14752  else
14753    shlibpath_overrides_runpath=yes
14754  fi
14755  ;;
14756
14757os2*)
14758  libname_spec='$name'
14759  shrext_cmds=".dll"
14760  need_lib_prefix=no
14761  library_names_spec='$libname${shared_ext} $libname.a'
14762  dynamic_linker='OS/2 ld.exe'
14763  shlibpath_var=LIBPATH
14764  ;;
14765
14766osf3* | osf4* | osf5*)
14767  version_type=osf
14768  need_lib_prefix=no
14769  need_version=no
14770  soname_spec='${libname}${release}${shared_ext}$major'
14771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772  shlibpath_var=LD_LIBRARY_PATH
14773  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14774  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14775  ;;
14776
14777rdos*)
14778  dynamic_linker=no
14779  ;;
14780
14781solaris*)
14782  version_type=linux
14783  need_lib_prefix=no
14784  need_version=no
14785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786  soname_spec='${libname}${release}${shared_ext}$major'
14787  shlibpath_var=LD_LIBRARY_PATH
14788  shlibpath_overrides_runpath=yes
14789  hardcode_into_libs=yes
14790  # ldd complains unless libraries are executable
14791  postinstall_cmds='chmod +x $lib'
14792  ;;
14793
14794sunos4*)
14795  version_type=sunos
14796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14798  shlibpath_var=LD_LIBRARY_PATH
14799  shlibpath_overrides_runpath=yes
14800  if test "$with_gnu_ld" = yes; then
14801    need_lib_prefix=no
14802  fi
14803  need_version=yes
14804  ;;
14805
14806sysv4 | sysv4.3*)
14807  version_type=linux
14808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809  soname_spec='${libname}${release}${shared_ext}$major'
14810  shlibpath_var=LD_LIBRARY_PATH
14811  case $host_vendor in
14812    sni)
14813      shlibpath_overrides_runpath=no
14814      need_lib_prefix=no
14815      runpath_var=LD_RUN_PATH
14816      ;;
14817    siemens)
14818      need_lib_prefix=no
14819      ;;
14820    motorola)
14821      need_lib_prefix=no
14822      need_version=no
14823      shlibpath_overrides_runpath=no
14824      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14825      ;;
14826  esac
14827  ;;
14828
14829sysv4*MP*)
14830  if test -d /usr/nec ;then
14831    version_type=linux
14832    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14833    soname_spec='$libname${shared_ext}.$major'
14834    shlibpath_var=LD_LIBRARY_PATH
14835  fi
14836  ;;
14837
14838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14839  version_type=freebsd-elf
14840  need_lib_prefix=no
14841  need_version=no
14842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14843  soname_spec='${libname}${release}${shared_ext}$major'
14844  shlibpath_var=LD_LIBRARY_PATH
14845  shlibpath_overrides_runpath=yes
14846  hardcode_into_libs=yes
14847  if test "$with_gnu_ld" = yes; then
14848    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14849  else
14850    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14851    case $host_os in
14852      sco3.2v5*)
14853        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14854	;;
14855    esac
14856  fi
14857  sys_lib_dlsearch_path_spec='/usr/lib'
14858  ;;
14859
14860tpf*)
14861  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14862  version_type=linux
14863  need_lib_prefix=no
14864  need_version=no
14865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=no
14868  hardcode_into_libs=yes
14869  ;;
14870
14871uts4*)
14872  version_type=linux
14873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874  soname_spec='${libname}${release}${shared_ext}$major'
14875  shlibpath_var=LD_LIBRARY_PATH
14876  ;;
14877
14878*)
14879  dynamic_linker=no
14880  ;;
14881esac
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14883$as_echo "$dynamic_linker" >&6; }
14884test "$dynamic_linker" = no && can_build_shared=no
14885
14886variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14887if test "$GCC" = yes; then
14888  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14889fi
14890
14891if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14892  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14893fi
14894if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14895  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14896fi
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14934$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14935hardcode_action_CXX=
14936if test -n "$hardcode_libdir_flag_spec_CXX" ||
14937   test -n "$runpath_var_CXX" ||
14938   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14939
14940  # We can hardcode non-existent directories.
14941  if test "$hardcode_direct_CXX" != no &&
14942     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14943     # have to relink, otherwise we might link with an installed library
14944     # when we should be linking with a yet-to-be-installed one
14945     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14946     test "$hardcode_minus_L_CXX" != no; then
14947    # Linking always hardcodes the temporary library directory.
14948    hardcode_action_CXX=relink
14949  else
14950    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14951    hardcode_action_CXX=immediate
14952  fi
14953else
14954  # We cannot hardcode anything, or else we can only hardcode existing
14955  # directories.
14956  hardcode_action_CXX=unsupported
14957fi
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14959$as_echo "$hardcode_action_CXX" >&6; }
14960
14961if test "$hardcode_action_CXX" = relink ||
14962   test "$inherit_rpath_CXX" = yes; then
14963  # Fast installation is not supported
14964  enable_fast_install=no
14965elif test "$shlibpath_overrides_runpath" = yes ||
14966     test "$enable_shared" = no; then
14967  # Fast installation is not necessary
14968  enable_fast_install=needless
14969fi
14970
14971
14972
14973
14974
14975
14976
14977  fi # test -n "$compiler"
14978
14979  CC=$lt_save_CC
14980  LDCXX=$LD
14981  LD=$lt_save_LD
14982  GCC=$lt_save_GCC
14983  with_gnu_ld=$lt_save_with_gnu_ld
14984  lt_cv_path_LDCXX=$lt_cv_path_LD
14985  lt_cv_path_LD=$lt_save_path_LD
14986  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14987  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14988fi # test "$_lt_caught_CXX_error" != yes
14989
14990ac_ext=c
14991ac_cpp='$CPP $CPPFLAGS'
14992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994ac_compiler_gnu=$ac_cv_c_compiler_gnu
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008        ac_config_commands="$ac_config_commands libtool"
15009
15010
15011
15012
15013# Only expand once:
15014
15015
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15017$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15018if test "${libltdl_cv_shlibext+set}" = set; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021
15022module=yes
15023eval libltdl_cv_shlibext=$shrext_cmds
15024
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15027$as_echo "$libltdl_cv_shlibext" >&6; }
15028if test -n "$libltdl_cv_shlibext"; then
15029
15030cat >>confdefs.h <<_ACEOF
15031#define LT_MODULE_EXT "$libltdl_cv_shlibext"
15032_ACEOF
15033
15034fi
15035
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15037$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15038if test "${lt_cv_module_path_var+set}" = set; then :
15039  $as_echo_n "(cached) " >&6
15040else
15041  lt_cv_module_path_var="$shlibpath_var"
15042fi
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15044$as_echo "$lt_cv_module_path_var" >&6; }
15045if test -n "$lt_cv_module_path_var"; then
15046
15047cat >>confdefs.h <<_ACEOF
15048#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15049_ACEOF
15050
15051fi
15052
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15054$as_echo_n "checking for the default library search path... " >&6; }
15055if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
15056  $as_echo_n "(cached) " >&6
15057else
15058  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15059fi
15060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15061$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15062if test -n "$lt_cv_sys_dlsearch_path"; then
15063  sys_dlsearch_path=
15064  for dir in $lt_cv_sys_dlsearch_path; do
15065    if test -z "$sys_dlsearch_path"; then
15066      sys_dlsearch_path="$dir"
15067    else
15068      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15069    fi
15070  done
15071
15072cat >>confdefs.h <<_ACEOF
15073#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15074_ACEOF
15075
15076fi
15077
15078
15079LT_DLLOADERS=
15080
15081
15082ac_ext=c
15083ac_cpp='$CPP $CPPFLAGS'
15084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087
15088
15089LIBADD_DLOPEN=
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15091$as_echo_n "checking for library containing dlopen... " >&6; }
15092if test "${ac_cv_search_dlopen+set}" = set; then :
15093  $as_echo_n "(cached) " >&6
15094else
15095  ac_func_search_save_LIBS=$LIBS
15096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098
15099/* Override any GCC internal prototype to avoid an error.
15100   Use char because int might match the return type of a GCC
15101   builtin and then its argument prototype would still apply.  */
15102#ifdef __cplusplus
15103extern "C"
15104#endif
15105char dlopen ();
15106int
15107main ()
15108{
15109return dlopen ();
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114for ac_lib in '' dl; do
15115  if test -z "$ac_lib"; then
15116    ac_res="none required"
15117  else
15118    ac_res=-l$ac_lib
15119    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15120  fi
15121  if ac_fn_c_try_link "$LINENO"; then :
15122  ac_cv_search_dlopen=$ac_res
15123fi
15124rm -f core conftest.err conftest.$ac_objext \
15125    conftest$ac_exeext
15126  if test "${ac_cv_search_dlopen+set}" = set; then :
15127  break
15128fi
15129done
15130if test "${ac_cv_search_dlopen+set}" = set; then :
15131
15132else
15133  ac_cv_search_dlopen=no
15134fi
15135rm conftest.$ac_ext
15136LIBS=$ac_func_search_save_LIBS
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15139$as_echo "$ac_cv_search_dlopen" >&6; }
15140ac_res=$ac_cv_search_dlopen
15141if test "$ac_res" != no; then :
15142  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15143
15144$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15145
15146	if test "$ac_cv_search_dlopen" != "none required" ; then
15147	  LIBADD_DLOPEN="-ldl"
15148	fi
15149	libltdl_cv_lib_dl_dlopen="yes"
15150	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15151else
15152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153/* end confdefs.h.  */
15154#if HAVE_DLFCN_H
15155#  include <dlfcn.h>
15156#endif
15157
15158int
15159main ()
15160{
15161dlopen(0, 0);
15162  ;
15163  return 0;
15164}
15165_ACEOF
15166if ac_fn_c_try_link "$LINENO"; then :
15167
15168$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15169
15170	    libltdl_cv_func_dlopen="yes"
15171	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15172else
15173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15174$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15175if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  ac_check_lib_save_LIBS=$LIBS
15179LIBS="-lsvld  $LIBS"
15180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h.  */
15182
15183/* Override any GCC internal prototype to avoid an error.
15184   Use char because int might match the return type of a GCC
15185   builtin and then its argument prototype would still apply.  */
15186#ifdef __cplusplus
15187extern "C"
15188#endif
15189char dlopen ();
15190int
15191main ()
15192{
15193return dlopen ();
15194  ;
15195  return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_link "$LINENO"; then :
15199  ac_cv_lib_svld_dlopen=yes
15200else
15201  ac_cv_lib_svld_dlopen=no
15202fi
15203rm -f core conftest.err conftest.$ac_objext \
15204    conftest$ac_exeext conftest.$ac_ext
15205LIBS=$ac_check_lib_save_LIBS
15206fi
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15208$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15209if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15210
15211$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15212
15213	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15214		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15215fi
15216
15217fi
15218rm -f core conftest.err conftest.$ac_objext \
15219    conftest$ac_exeext conftest.$ac_ext
15220fi
15221
15222if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15223then
15224  lt_save_LIBS="$LIBS"
15225  LIBS="$LIBS $LIBADD_DLOPEN"
15226  for ac_func in dlerror
15227do :
15228  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15229if test "x$ac_cv_func_dlerror" = x""yes; then :
15230  cat >>confdefs.h <<_ACEOF
15231#define HAVE_DLERROR 1
15232_ACEOF
15233
15234fi
15235done
15236
15237  LIBS="$lt_save_LIBS"
15238fi
15239
15240
15241LIBADD_SHL_LOAD=
15242ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15243if test "x$ac_cv_func_shl_load" = x""yes; then :
15244
15245$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15246
15247	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15248else
15249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15250$as_echo_n "checking for shl_load in -ldld... " >&6; }
15251if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15252  $as_echo_n "(cached) " >&6
15253else
15254  ac_check_lib_save_LIBS=$LIBS
15255LIBS="-ldld  $LIBS"
15256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258
15259/* Override any GCC internal prototype to avoid an error.
15260   Use char because int might match the return type of a GCC
15261   builtin and then its argument prototype would still apply.  */
15262#ifdef __cplusplus
15263extern "C"
15264#endif
15265char shl_load ();
15266int
15267main ()
15268{
15269return shl_load ();
15270  ;
15271  return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_link "$LINENO"; then :
15275  ac_cv_lib_dld_shl_load=yes
15276else
15277  ac_cv_lib_dld_shl_load=no
15278fi
15279rm -f core conftest.err conftest.$ac_objext \
15280    conftest$ac_exeext conftest.$ac_ext
15281LIBS=$ac_check_lib_save_LIBS
15282fi
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15284$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15285if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15286
15287$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15288
15289	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15290	    LIBADD_SHL_LOAD="-ldld"
15291fi
15292
15293fi
15294
15295
15296
15297case $host_os in
15298darwin[1567].*)
15299# We only want this for pre-Mac OS X 10.4.
15300  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15301if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
15302
15303$as_echo "#define HAVE_DYLD 1" >>confdefs.h
15304
15305	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15306fi
15307
15308  ;;
15309beos*)
15310  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15311  ;;
15312cygwin* | mingw* | os2* | pw32*)
15313  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15314"
15315if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
15316  ac_have_decl=1
15317else
15318  ac_have_decl=0
15319fi
15320
15321cat >>confdefs.h <<_ACEOF
15322#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
15323_ACEOF
15324
15325  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15326  ;;
15327esac
15328
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15330$as_echo_n "checking for dld_link in -ldld... " >&6; }
15331if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  ac_check_lib_save_LIBS=$LIBS
15335LIBS="-ldld  $LIBS"
15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h.  */
15338
15339/* Override any GCC internal prototype to avoid an error.
15340   Use char because int might match the return type of a GCC
15341   builtin and then its argument prototype would still apply.  */
15342#ifdef __cplusplus
15343extern "C"
15344#endif
15345char dld_link ();
15346int
15347main ()
15348{
15349return dld_link ();
15350  ;
15351  return 0;
15352}
15353_ACEOF
15354if ac_fn_c_try_link "$LINENO"; then :
15355  ac_cv_lib_dld_dld_link=yes
15356else
15357  ac_cv_lib_dld_dld_link=no
15358fi
15359rm -f core conftest.err conftest.$ac_objext \
15360    conftest$ac_exeext conftest.$ac_ext
15361LIBS=$ac_check_lib_save_LIBS
15362fi
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15364$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15365if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15366
15367$as_echo "#define HAVE_DLD 1" >>confdefs.h
15368
15369		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15370fi
15371
15372
15373
15374
15375LT_DLPREOPEN=
15376if test -n "$LT_DLLOADERS"
15377then
15378  for lt_loader in $LT_DLLOADERS; do
15379    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15380  done
15381
15382$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
15383
15384fi
15385
15386
15387LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15388
15389
15390ac_ext=c
15391ac_cpp='$CPP $CPPFLAGS'
15392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396
15397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15398$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15399if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
15400  $as_echo_n "(cached) " >&6
15401else
15402  lt_cv_sys_symbol_underscore=no
15403  cat > conftest.$ac_ext <<_LT_EOF
15404void nm_test_func(){}
15405int main(){nm_test_func;return 0;}
15406_LT_EOF
15407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15408  (eval $ac_compile) 2>&5
15409  ac_status=$?
15410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15411  test $ac_status = 0; }; then
15412    # Now try to grab the symbols.
15413    ac_nlist=conftest.nm
15414    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
15415  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15416  ac_status=$?
15417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15418  test $ac_status = 0; } && test -s "$ac_nlist"; then
15419      # See whether the symbols have a leading underscore.
15420      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15421        lt_cv_sys_symbol_underscore=yes
15422      else
15423        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15424	  :
15425        else
15426	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15427        fi
15428      fi
15429    else
15430      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15431    fi
15432  else
15433    echo "configure: failed program was:" >&5
15434    cat conftest.c >&5
15435  fi
15436  rm -rf conftest*
15437
15438fi
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15440$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
15441  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15442
15443
15444if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15445  if test x"$libltdl_cv_func_dlopen" = xyes ||
15446     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
15447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15448$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15449if test "${libltdl_cv_need_uscore+set}" = set; then :
15450  $as_echo_n "(cached) " >&6
15451else
15452  libltdl_cv_need_uscore=unknown
15453          save_LIBS="$LIBS"
15454          LIBS="$LIBS $LIBADD_DLOPEN"
15455	  if test "$cross_compiling" = yes; then :
15456  libltdl_cv_need_uscore=cross
15457else
15458  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15459  lt_status=$lt_dlunknown
15460  cat > conftest.$ac_ext <<_LT_EOF
15461#line 15461 "configure"
15462#include "confdefs.h"
15463
15464#if HAVE_DLFCN_H
15465#include <dlfcn.h>
15466#endif
15467
15468#include <stdio.h>
15469
15470#ifdef RTLD_GLOBAL
15471#  define LT_DLGLOBAL		RTLD_GLOBAL
15472#else
15473#  ifdef DL_GLOBAL
15474#    define LT_DLGLOBAL		DL_GLOBAL
15475#  else
15476#    define LT_DLGLOBAL		0
15477#  endif
15478#endif
15479
15480/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15481   find out it does not work in some platform. */
15482#ifndef LT_DLLAZY_OR_NOW
15483#  ifdef RTLD_LAZY
15484#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15485#  else
15486#    ifdef DL_LAZY
15487#      define LT_DLLAZY_OR_NOW		DL_LAZY
15488#    else
15489#      ifdef RTLD_NOW
15490#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15491#      else
15492#        ifdef DL_NOW
15493#          define LT_DLLAZY_OR_NOW	DL_NOW
15494#        else
15495#          define LT_DLLAZY_OR_NOW	0
15496#        endif
15497#      endif
15498#    endif
15499#  endif
15500#endif
15501
15502void fnord() { int i=42;}
15503int main ()
15504{
15505  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15506  int status = $lt_dlunknown;
15507
15508  if (self)
15509    {
15510      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15511      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15512      /* dlclose (self); */
15513    }
15514  else
15515    puts (dlerror ());
15516
15517  return status;
15518}
15519_LT_EOF
15520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15521  (eval $ac_link) 2>&5
15522  ac_status=$?
15523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15524  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15525    (./conftest; exit; ) >&5 2>/dev/null
15526    lt_status=$?
15527    case x$lt_status in
15528      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15529      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15530      x$lt_dlunknown|x*)  ;;
15531    esac
15532  else :
15533    # compilation failed
15534
15535  fi
15536fi
15537rm -fr conftest*
15538
15539	  LIBS="$save_LIBS"
15540
15541fi
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15543$as_echo "$libltdl_cv_need_uscore" >&6; }
15544  fi
15545fi
15546
15547if test x"$libltdl_cv_need_uscore" = xyes; then
15548
15549$as_echo "#define NEED_USCORE 1" >>confdefs.h
15550
15551fi
15552
15553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15554$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15555if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
15556  $as_echo_n "(cached) " >&6
15557else
15558  # PORTME does your system automatically load deplibs for dlopen?
15559  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15560  # For now, we just catch OSes we know something about -- in the
15561  # future, we'll try test this programmatically.
15562  lt_cv_sys_dlopen_deplibs=unknown
15563  case $host_os in
15564  aix3*|aix4.1.*|aix4.2.*)
15565    # Unknown whether this is true for these versions of AIX, but
15566    # we want this `case' here to explicitly catch those versions.
15567    lt_cv_sys_dlopen_deplibs=unknown
15568    ;;
15569  aix[4-9]*)
15570    lt_cv_sys_dlopen_deplibs=yes
15571    ;;
15572  amigaos*)
15573    case $host_cpu in
15574    powerpc)
15575      lt_cv_sys_dlopen_deplibs=no
15576      ;;
15577    esac
15578    ;;
15579  darwin*)
15580    # Assuming the user has installed a libdl from somewhere, this is true
15581    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
15582    lt_cv_sys_dlopen_deplibs=yes
15583    ;;
15584  freebsd* | dragonfly*)
15585    lt_cv_sys_dlopen_deplibs=yes
15586    ;;
15587  gnu* | linux* | k*bsd*-gnu)
15588    # GNU and its variants, using gnu ld.so (Glibc)
15589    lt_cv_sys_dlopen_deplibs=yes
15590    ;;
15591  hpux10*|hpux11*)
15592    lt_cv_sys_dlopen_deplibs=yes
15593    ;;
15594  interix*)
15595    lt_cv_sys_dlopen_deplibs=yes
15596    ;;
15597  irix[12345]*|irix6.[01]*)
15598    # Catch all versions of IRIX before 6.2, and indicate that we don't
15599    # know how it worked for any of those versions.
15600    lt_cv_sys_dlopen_deplibs=unknown
15601    ;;
15602  irix*)
15603    # The case above catches anything before 6.2, and it's known that
15604    # at 6.2 and later dlopen does load deplibs.
15605    lt_cv_sys_dlopen_deplibs=yes
15606    ;;
15607  netbsd*)
15608    lt_cv_sys_dlopen_deplibs=yes
15609    ;;
15610  openbsd*)
15611    lt_cv_sys_dlopen_deplibs=yes
15612    ;;
15613  osf[1234]*)
15614    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
15615    # it did *not* use an RPATH in a shared library to find objects the
15616    # library depends on, so we explicitly say `no'.
15617    lt_cv_sys_dlopen_deplibs=no
15618    ;;
15619  osf5.0|osf5.0a|osf5.1)
15620    # dlopen *does* load deplibs and with the right loader patch applied
15621    # it even uses RPATH in a shared library to search for shared objects
15622    # that the library depends on, but there's no easy way to know if that
15623    # patch is installed.  Since this is the case, all we can really
15624    # say is unknown -- it depends on the patch being installed.  If
15625    # it is, this changes to `yes'.  Without it, it would be `no'.
15626    lt_cv_sys_dlopen_deplibs=unknown
15627    ;;
15628  osf*)
15629    # the two cases above should catch all versions of osf <= 5.1.  Read
15630    # the comments above for what we know about them.
15631    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
15632    # is used to find them so we can finally say `yes'.
15633    lt_cv_sys_dlopen_deplibs=yes
15634    ;;
15635  qnx*)
15636    lt_cv_sys_dlopen_deplibs=yes
15637    ;;
15638  solaris*)
15639    lt_cv_sys_dlopen_deplibs=yes
15640    ;;
15641  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15642    libltdl_cv_sys_dlopen_deplibs=yes
15643    ;;
15644  esac
15645
15646fi
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
15648$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
15649if test "$lt_cv_sys_dlopen_deplibs" != yes; then
15650
15651$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
15652
15653fi
15654
15655:
15656
15657for ac_header in argz.h
15658do :
15659  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
15660"
15661if test "x$ac_cv_header_argz_h" = x""yes; then :
15662  cat >>confdefs.h <<_ACEOF
15663#define HAVE_ARGZ_H 1
15664_ACEOF
15665
15666fi
15667
15668done
15669
15670
15671ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
15672#  include <argz.h>
15673#endif
15674"
15675if test "x$ac_cv_type_error_t" = x""yes; then :
15676
15677cat >>confdefs.h <<_ACEOF
15678#define HAVE_ERROR_T 1
15679_ACEOF
15680
15681
15682else
15683
15684$as_echo "#define error_t int" >>confdefs.h
15685
15686
15687$as_echo "#define __error_t_defined 1" >>confdefs.h
15688
15689fi
15690
15691
15692ARGZ_H=
15693for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
15694	argz_next argz_stringify
15695do :
15696  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15698eval as_val=\$$as_ac_var
15699   if test "x$as_val" = x""yes; then :
15700  cat >>confdefs.h <<_ACEOF
15701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15702_ACEOF
15703
15704else
15705  ARGZ_H=argz.h;
15706
15707  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15708
15709fi
15710done
15711
15712
15713if test -z "$ARGZ_H"; then :
15714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
15715$as_echo_n "checking if argz actually works... " >&6; }
15716if test "${lt_cv_sys_argz_works+set}" = set; then :
15717  $as_echo_n "(cached) " >&6
15718else
15719  case $host_os in #(
15720	 *cygwin*)
15721	   lt_cv_sys_argz_works=no
15722	   if test "$cross_compiling" != no; then
15723	     lt_cv_sys_argz_works="guessing no"
15724	   else
15725	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
15726	     save_IFS=$IFS
15727	     IFS=-.
15728	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
15729	     IFS=$save_IFS
15730	     lt_os_major=${2-0}
15731	     lt_os_minor=${3-0}
15732	     lt_os_micro=${4-0}
15733	     if test "$lt_os_major" -gt 1 \
15734		|| { test "$lt_os_major" -eq 1 \
15735		  && { test "$lt_os_minor" -gt 5 \
15736		    || { test "$lt_os_minor" -eq 5 \
15737		      && test "$lt_os_micro" -gt 24; }; }; }; then
15738	       lt_cv_sys_argz_works=yes
15739	     fi
15740	   fi
15741	   ;; #(
15742	 *) lt_cv_sys_argz_works=yes ;;
15743	 esac
15744fi
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
15746$as_echo "$lt_cv_sys_argz_works" >&6; }
15747     if test $lt_cv_sys_argz_works = yes; then :
15748
15749$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
15750
15751else
15752  ARGZ_H=argz.h
15753
15754
15755  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15756
15757fi
15758fi
15759
15760
15761
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
15763$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
15764if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
15765  $as_echo_n "(cached) " >&6
15766else
15767  if test -n "$lt_cv_sys_global_symbol_pipe"; then
15768    libltdl_cv_preloaded_symbols=yes
15769  else
15770    libltdl_cv_preloaded_symbols=no
15771  fi
15772
15773fi
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
15775$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
15776if test x"$libltdl_cv_preloaded_symbols" = xyes; then
15777
15778$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
15779
15780fi
15781
15782
15783
15784# Set options
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797# Check whether --with-included_ltdl was given.
15798if test "${with_included_ltdl+set}" = set; then :
15799  withval=$with_included_ltdl;
15800fi
15801
15802
15803if test "x$with_included_ltdl" != xyes; then
15804  # We are not being forced to use the included libltdl sources, so
15805  # decide whether there is a useful installed version we can use.
15806  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
15807
15808"
15809if test "x$ac_cv_header_ltdl_h" = x""yes; then :
15810  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
15811	    #include <ltdl.h>
15812"
15813if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
15814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
15815$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
15816if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
15817  $as_echo_n "(cached) " >&6
15818else
15819  ac_check_lib_save_LIBS=$LIBS
15820LIBS="-lltdl  $LIBS"
15821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822/* end confdefs.h.  */
15823
15824/* Override any GCC internal prototype to avoid an error.
15825   Use char because int might match the return type of a GCC
15826   builtin and then its argument prototype would still apply.  */
15827#ifdef __cplusplus
15828extern "C"
15829#endif
15830char lt_dladvise_preload ();
15831int
15832main ()
15833{
15834return lt_dladvise_preload ();
15835  ;
15836  return 0;
15837}
15838_ACEOF
15839if ac_fn_c_try_link "$LINENO"; then :
15840  ac_cv_lib_ltdl_lt_dladvise_preload=yes
15841else
15842  ac_cv_lib_ltdl_lt_dladvise_preload=no
15843fi
15844rm -f core conftest.err conftest.$ac_objext \
15845    conftest$ac_exeext conftest.$ac_ext
15846LIBS=$ac_check_lib_save_LIBS
15847fi
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
15849$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
15850if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
15851  with_included_ltdl=no
15852else
15853  with_included_ltdl=yes
15854fi
15855
15856else
15857  with_included_ltdl=yes
15858fi
15859
15860else
15861  with_included_ltdl=yes
15862fi
15863
15864
15865fi
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875# Check whether --with-ltdl_include was given.
15876if test "${with_ltdl_include+set}" = set; then :
15877  withval=$with_ltdl_include;
15878fi
15879
15880
15881if test -n "$with_ltdl_include"; then
15882  if test -f "$with_ltdl_include/ltdl.h"; then :
15883  else
15884    as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
15885  fi
15886else
15887  with_ltdl_include=no
15888fi
15889
15890
15891# Check whether --with-ltdl_lib was given.
15892if test "${with_ltdl_lib+set}" = set; then :
15893  withval=$with_ltdl_lib;
15894fi
15895
15896
15897if test -n "$with_ltdl_lib"; then
15898  if test -f "$with_ltdl_lib/libltdl.la"; then :
15899  else
15900    as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
15901  fi
15902else
15903  with_ltdl_lib=no
15904fi
15905
15906case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
15907  ,yes,no,no,)
15908	case $enable_ltdl_convenience in
15909  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
15910  "") enable_ltdl_convenience=yes
15911      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
15912esac
15913LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
15914LTDLDEPS=$LIBLTDL
15915LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
15916
15917
15918
15919
15920
15921# For backwards non-gettext consistent compatibility...
15922INCLTDL="$LTDLINCL"
15923
15924
15925	;;
15926  ,no,no,no,)
15927	# If the included ltdl is not to be used, then use the
15928	# preinstalled libltdl we found.
15929
15930$as_echo "#define HAVE_LTDL 1" >>confdefs.h
15931
15932	LIBLTDL=-lltdl
15933	LTDLDEPS=
15934	LTDLINCL=
15935	;;
15936  ,no*,no,*)
15937	as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
15938	;;
15939  *)	with_included_ltdl=no
15940	LIBLTDL="-L$with_ltdl_lib -lltdl"
15941	LTDLDEPS=
15942	LTDLINCL="-I$with_ltdl_include"
15943	;;
15944esac
15945INCLTDL="$LTDLINCL"
15946
15947# Report our decision...
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
15949$as_echo_n "checking where to find libltdl headers... " >&6; }
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
15951$as_echo "$LTDLINCL" >&6; }
15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
15953$as_echo_n "checking where to find libltdl library... " >&6; }
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
15955$as_echo "$LIBLTDL" >&6; }
15956
15957
15958
15959# Check whether --enable-ltdl-install was given.
15960if test "${enable_ltdl_install+set}" = set; then :
15961  enableval=$enable_ltdl_install;
15962fi
15963
15964
15965case ,${enable_ltdl_install},${enable_ltdl_convenience} in
15966  *yes*) ;;
15967  *) enable_ltdl_convenience=yes ;;
15968esac
15969
15970 if test x"${enable_ltdl_install-no}" != xno; then
15971  INSTALL_LTDL_TRUE=
15972  INSTALL_LTDL_FALSE='#'
15973else
15974  INSTALL_LTDL_TRUE='#'
15975  INSTALL_LTDL_FALSE=
15976fi
15977
15978  if test x"${enable_ltdl_convenience-no}" != xno; then
15979  CONVENIENCE_LTDL_TRUE=
15980  CONVENIENCE_LTDL_FALSE='#'
15981else
15982  CONVENIENCE_LTDL_TRUE='#'
15983  CONVENIENCE_LTDL_FALSE=
15984fi
15985
15986
15987
15988    subdirs="$subdirs libltdl"
15989
15990
15991
15992
15993
15994# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
15995# the user used.  This is so that ltdl.h can pick up the parent projects
15996# config.h file, The first file in AC_CONFIG_HEADERS must contain the
15997# definitions required by ltdl.c.
15998# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
15999
16000
16001
16002for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16003do :
16004  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16005ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16006"
16007eval as_val=\$$as_ac_Header
16008   if test "x$as_val" = x""yes; then :
16009  cat >>confdefs.h <<_ACEOF
16010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16011_ACEOF
16012
16013fi
16014
16015done
16016
16017
16018for ac_func in closedir opendir readdir
16019do :
16020  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16022eval as_val=\$$as_ac_var
16023   if test "x$as_val" = x""yes; then :
16024  cat >>confdefs.h <<_ACEOF
16025#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16026_ACEOF
16027
16028else
16029
16030
16031  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16032
16033fi
16034done
16035
16036for ac_func in strlcat strlcpy
16037do :
16038  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16040eval as_val=\$$as_ac_var
16041   if test "x$as_val" = x""yes; then :
16042  cat >>confdefs.h <<_ACEOF
16043#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16044_ACEOF
16045
16046else
16047
16048
16049  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16050
16051fi
16052done
16053
16054
16055
16056cat >>confdefs.h <<_ACEOF
16057#define LT_LIBEXT "$libext"
16058_ACEOF
16059
16060
16061name=ltdl
16062LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
16063
16064
16065
16066
16067
16068
16069
16070
16071# Only expand once:
16072
16073
16074
16075
16076
16077plugindir=$libdir/moc
16078
16079PLUGIN_LDFLAGS='-module -avoid-version'
16080
16081
16082OS=`uname 2>/dev/null`
16083
16084case "$host_os" in
16085	linux*)
16086
16087$as_echo "#define LINUX 1" >>confdefs.h
16088
16089		;;
16090	openbsd*)
16091
16092$as_echo "#define OPENBSD 1" >>confdefs.h
16093
16094		;;
16095	freebsd*)
16096
16097$as_echo "#define FREEBSD 1" >>confdefs.h
16098
16099		;;
16100esac
16101
16102
16103$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
16104
16105
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16107$as_echo_n "checking for ANSI C header files... " >&6; }
16108if test "${ac_cv_header_stdc+set}" = set; then :
16109  $as_echo_n "(cached) " >&6
16110else
16111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h.  */
16113#include <stdlib.h>
16114#include <stdarg.h>
16115#include <string.h>
16116#include <float.h>
16117
16118int
16119main ()
16120{
16121
16122  ;
16123  return 0;
16124}
16125_ACEOF
16126if ac_fn_c_try_compile "$LINENO"; then :
16127  ac_cv_header_stdc=yes
16128else
16129  ac_cv_header_stdc=no
16130fi
16131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132
16133if test $ac_cv_header_stdc = yes; then
16134  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136/* end confdefs.h.  */
16137#include <string.h>
16138
16139_ACEOF
16140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16141  $EGREP "memchr" >/dev/null 2>&1; then :
16142
16143else
16144  ac_cv_header_stdc=no
16145fi
16146rm -f conftest*
16147
16148fi
16149
16150if test $ac_cv_header_stdc = yes; then
16151  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154#include <stdlib.h>
16155
16156_ACEOF
16157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16158  $EGREP "free" >/dev/null 2>&1; then :
16159
16160else
16161  ac_cv_header_stdc=no
16162fi
16163rm -f conftest*
16164
16165fi
16166
16167if test $ac_cv_header_stdc = yes; then
16168  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16169  if test "$cross_compiling" = yes; then :
16170  :
16171else
16172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173/* end confdefs.h.  */
16174#include <ctype.h>
16175#include <stdlib.h>
16176#if ((' ' & 0x0FF) == 0x020)
16177# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16178# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16179#else
16180# define ISLOWER(c) \
16181		   (('a' <= (c) && (c) <= 'i') \
16182		     || ('j' <= (c) && (c) <= 'r') \
16183		     || ('s' <= (c) && (c) <= 'z'))
16184# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16185#endif
16186
16187#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16188int
16189main ()
16190{
16191  int i;
16192  for (i = 0; i < 256; i++)
16193    if (XOR (islower (i), ISLOWER (i))
16194	|| toupper (i) != TOUPPER (i))
16195      return 2;
16196  return 0;
16197}
16198_ACEOF
16199if ac_fn_c_try_run "$LINENO"; then :
16200
16201else
16202  ac_cv_header_stdc=no
16203fi
16204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16205  conftest.$ac_objext conftest.beam conftest.$ac_ext
16206fi
16207
16208fi
16209fi
16210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16211$as_echo "$ac_cv_header_stdc" >&6; }
16212if test $ac_cv_header_stdc = yes; then
16213
16214$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16215
16216fi
16217
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16219$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16220if test "${ac_cv_header_stdbool_h+set}" = set; then :
16221  $as_echo_n "(cached) " >&6
16222else
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225
16226#include <stdbool.h>
16227#ifndef bool
16228 "error: bool is not defined"
16229#endif
16230#ifndef false
16231 "error: false is not defined"
16232#endif
16233#if false
16234 "error: false is not 0"
16235#endif
16236#ifndef true
16237 "error: true is not defined"
16238#endif
16239#if true != 1
16240 "error: true is not 1"
16241#endif
16242#ifndef __bool_true_false_are_defined
16243 "error: __bool_true_false_are_defined is not defined"
16244#endif
16245
16246	struct s { _Bool s: 1; _Bool t; } s;
16247
16248	char a[true == 1 ? 1 : -1];
16249	char b[false == 0 ? 1 : -1];
16250	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16251	char d[(bool) 0.5 == true ? 1 : -1];
16252	bool e = &s;
16253	char f[(_Bool) 0.0 == false ? 1 : -1];
16254	char g[true];
16255	char h[sizeof (_Bool)];
16256	char i[sizeof s.t];
16257	enum { j = false, k = true, l = false * true, m = true * 256 };
16258	/* The following fails for
16259	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16260	_Bool n[m];
16261	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16262	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16263#	if defined __xlc__ || defined __GNUC__
16264	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16265	    reported by James Lemley on 2005-10-05; see
16266	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16267	    This test is not quite right, since xlc is allowed to
16268	    reject this program, as the initializer for xlcbug is
16269	    not one of the forms that C requires support for.
16270	    However, doing the test right would require a runtime
16271	    test, and that would make cross-compilation harder.
16272	    Let us hope that IBM fixes the xlc bug, and also adds
16273	    support for this kind of constant expression.  In the
16274	    meantime, this test will reject xlc, which is OK, since
16275	    our stdbool.h substitute should suffice.  We also test
16276	    this with GCC, where it should work, to detect more
16277	    quickly whether someone messes up the test in the
16278	    future.  */
16279	 char digs[] = "0123456789";
16280	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16281#	endif
16282	/* Catch a bug in an HP-UX C compiler.  See
16283	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16284	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16285	 */
16286	_Bool q = true;
16287	_Bool *pq = &q;
16288
16289int
16290main ()
16291{
16292
16293	*pq |= q;
16294	*pq |= ! q;
16295	/* Refer to every declared value, to avoid compiler optimizations.  */
16296	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16297		+ !m + !n + !o + !p + !q + !pq);
16298
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303if ac_fn_c_try_compile "$LINENO"; then :
16304  ac_cv_header_stdbool_h=yes
16305else
16306  ac_cv_header_stdbool_h=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16311$as_echo "$ac_cv_header_stdbool_h" >&6; }
16312ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16313if test "x$ac_cv_type__Bool" = x""yes; then :
16314
16315cat >>confdefs.h <<_ACEOF
16316#define HAVE__BOOL 1
16317_ACEOF
16318
16319
16320fi
16321
16322if test $ac_cv_header_stdbool_h = yes; then
16323
16324$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16325
16326fi
16327
16328for ac_header in fcntl.h string.h strings.h sys/param.h unistd.h sys/un.h \
16329		  sys/socket.h sys/types.h signal.h sys/time.h limits.h \
16330		  sys/wait.h sys/ioctl.h pwd.h regex.h inttypes.h stdint.h \
16331		  time.h errno.h sys/stat.h assert.h locale.h wchar.h
16332do :
16333  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16335eval as_val=\$$as_ac_Header
16336   if test "x$as_val" = x""yes; then :
16337  cat >>confdefs.h <<_ACEOF
16338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16339_ACEOF
16340
16341else
16342  as_fn_error "Can't find required header files." "$LINENO" 5
16343fi
16344
16345done
16346
16347for ac_header in sys/select.h byteswap.h
16348do :
16349  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16350ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16351eval as_val=\$$as_ac_Header
16352   if test "x$as_val" = x""yes; then :
16353  cat >>confdefs.h <<_ACEOF
16354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16355_ACEOF
16356
16357fi
16358
16359done
16360
16361
16362for ac_func in sched_get_priority_max
16363do :
16364  ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
16365if test "x$ac_cv_func_sched_get_priority_max" = x""yes; then :
16366  cat >>confdefs.h <<_ACEOF
16367#define HAVE_SCHED_GET_PRIORITY_MAX 1
16368_ACEOF
16369
16370fi
16371done
16372
16373
16374for ac_header in langinfo.h
16375do :
16376  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
16377if test "x$ac_cv_header_langinfo_h" = x""yes; then :
16378  cat >>confdefs.h <<_ACEOF
16379#define HAVE_LANGINFO_H 1
16380_ACEOF
16381
16382fi
16383
16384done
16385
16386for ac_header in nl_types.h
16387do :
16388  ac_fn_c_check_header_mongrel "$LINENO" "nl_types.h" "ac_cv_header_nl_types_h" "$ac_includes_default"
16389if test "x$ac_cv_header_nl_types_h" = x""yes; then :
16390  cat >>confdefs.h <<_ACEOF
16391#define HAVE_NL_TYPES_H 1
16392_ACEOF
16393
16394fi
16395
16396done
16397
16398for ac_func in nl_langinfo
16399do :
16400  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
16401if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
16402  cat >>confdefs.h <<_ACEOF
16403#define HAVE_NL_LANGINFO 1
16404_ACEOF
16405
16406fi
16407done
16408
16409
16410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
16411$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
16412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413/* end confdefs.h.  */
16414
16415	     #ifdef HAVE_LANGINFO_H
16416	     # include <langinfo.h>
16417	     #endif
16418
16419int
16420main ()
16421{
16422char *cs = nl_langinfo(CODESET);
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16429$as_echo "yes" >&6; }
16430
16431$as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
16432
16433else
16434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435$as_echo "no" >&6; }
16436fi
16437rm -f core conftest.err conftest.$ac_objext \
16438    conftest$ac_exeext conftest.$ac_ext
16439
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16441$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16442if test "${ac_cv_c_bigendian+set}" = set; then :
16443  $as_echo_n "(cached) " >&6
16444else
16445  ac_cv_c_bigendian=unknown
16446    # See if we're dealing with a universal compiler.
16447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448/* end confdefs.h.  */
16449#ifndef __APPLE_CC__
16450	       not a universal capable compiler
16451	     #endif
16452	     typedef int dummy;
16453
16454_ACEOF
16455if ac_fn_c_try_compile "$LINENO"; then :
16456
16457	# Check for potential -arch flags.  It is not universal unless
16458	# there are at least two -arch flags with different values.
16459	ac_arch=
16460	ac_prev=
16461	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16462	 if test -n "$ac_prev"; then
16463	   case $ac_word in
16464	     i?86 | x86_64 | ppc | ppc64)
16465	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16466		 ac_arch=$ac_word
16467	       else
16468		 ac_cv_c_bigendian=universal
16469		 break
16470	       fi
16471	       ;;
16472	   esac
16473	   ac_prev=
16474	 elif test "x$ac_word" = "x-arch"; then
16475	   ac_prev=arch
16476	 fi
16477       done
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480    if test $ac_cv_c_bigendian = unknown; then
16481      # See if sys/param.h defines the BYTE_ORDER macro.
16482      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484#include <sys/types.h>
16485	     #include <sys/param.h>
16486
16487int
16488main ()
16489{
16490#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16491		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16492		     && LITTLE_ENDIAN)
16493	      bogus endian macros
16494	     #endif
16495
16496  ;
16497  return 0;
16498}
16499_ACEOF
16500if ac_fn_c_try_compile "$LINENO"; then :
16501  # It does; now see whether it defined to BIG_ENDIAN or not.
16502	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h.  */
16504#include <sys/types.h>
16505		#include <sys/param.h>
16506
16507int
16508main ()
16509{
16510#if BYTE_ORDER != BIG_ENDIAN
16511		 not big endian
16512		#endif
16513
16514  ;
16515  return 0;
16516}
16517_ACEOF
16518if ac_fn_c_try_compile "$LINENO"; then :
16519  ac_cv_c_bigendian=yes
16520else
16521  ac_cv_c_bigendian=no
16522fi
16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524fi
16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526    fi
16527    if test $ac_cv_c_bigendian = unknown; then
16528      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530/* end confdefs.h.  */
16531#include <limits.h>
16532
16533int
16534main ()
16535{
16536#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16537	      bogus endian macros
16538	     #endif
16539
16540  ;
16541  return 0;
16542}
16543_ACEOF
16544if ac_fn_c_try_compile "$LINENO"; then :
16545  # It does; now see whether it defined to _BIG_ENDIAN or not.
16546	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547/* end confdefs.h.  */
16548#include <limits.h>
16549
16550int
16551main ()
16552{
16553#ifndef _BIG_ENDIAN
16554		 not big endian
16555		#endif
16556
16557  ;
16558  return 0;
16559}
16560_ACEOF
16561if ac_fn_c_try_compile "$LINENO"; then :
16562  ac_cv_c_bigendian=yes
16563else
16564  ac_cv_c_bigendian=no
16565fi
16566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567fi
16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569    fi
16570    if test $ac_cv_c_bigendian = unknown; then
16571      # Compile a test program.
16572      if test "$cross_compiling" = yes; then :
16573  # Try to guess by grepping values from an object file.
16574	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575/* end confdefs.h.  */
16576short int ascii_mm[] =
16577		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16578		short int ascii_ii[] =
16579		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16580		int use_ascii (int i) {
16581		  return ascii_mm[i] + ascii_ii[i];
16582		}
16583		short int ebcdic_ii[] =
16584		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16585		short int ebcdic_mm[] =
16586		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16587		int use_ebcdic (int i) {
16588		  return ebcdic_mm[i] + ebcdic_ii[i];
16589		}
16590		extern int foo;
16591
16592int
16593main ()
16594{
16595return use_ascii (foo) == use_ebcdic (foo);
16596  ;
16597  return 0;
16598}
16599_ACEOF
16600if ac_fn_c_try_compile "$LINENO"; then :
16601  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16602	      ac_cv_c_bigendian=yes
16603	    fi
16604	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16605	      if test "$ac_cv_c_bigendian" = unknown; then
16606		ac_cv_c_bigendian=no
16607	      else
16608		# finding both strings is unlikely to happen, but who knows?
16609		ac_cv_c_bigendian=unknown
16610	      fi
16611	    fi
16612fi
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614else
16615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616/* end confdefs.h.  */
16617$ac_includes_default
16618int
16619main ()
16620{
16621
16622	     /* Are we little or big endian?  From Harbison&Steele.  */
16623	     union
16624	     {
16625	       long int l;
16626	       char c[sizeof (long int)];
16627	     } u;
16628	     u.l = 1;
16629	     return u.c[sizeof (long int) - 1] == 1;
16630
16631  ;
16632  return 0;
16633}
16634_ACEOF
16635if ac_fn_c_try_run "$LINENO"; then :
16636  ac_cv_c_bigendian=no
16637else
16638  ac_cv_c_bigendian=yes
16639fi
16640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16641  conftest.$ac_objext conftest.beam conftest.$ac_ext
16642fi
16643
16644    fi
16645fi
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16647$as_echo "$ac_cv_c_bigendian" >&6; }
16648 case $ac_cv_c_bigendian in #(
16649   yes)
16650     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16651;; #(
16652   no)
16653      ;; #(
16654   universal)
16655
16656$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16657
16658     ;; #(
16659   *)
16660     as_fn_error "unknown endianness
16661 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16662 esac
16663
16664
16665
16666      if test "X$prefix" = "XNONE"; then
16667    acl_final_prefix="$ac_default_prefix"
16668  else
16669    acl_final_prefix="$prefix"
16670  fi
16671  if test "X$exec_prefix" = "XNONE"; then
16672    acl_final_exec_prefix='${prefix}'
16673  else
16674    acl_final_exec_prefix="$exec_prefix"
16675  fi
16676  acl_save_prefix="$prefix"
16677  prefix="$acl_final_prefix"
16678  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16679  prefix="$acl_save_prefix"
16680
16681
16682# Check whether --with-gnu-ld was given.
16683if test "${with_gnu_ld+set}" = set; then :
16684  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16685else
16686  with_gnu_ld=no
16687fi
16688
16689# Prepare PATH_SEPARATOR.
16690# The user is always right.
16691if test "${PATH_SEPARATOR+set}" != set; then
16692  echo "#! /bin/sh" >conf$$.sh
16693  echo  "exit 0"   >>conf$$.sh
16694  chmod +x conf$$.sh
16695  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16696    PATH_SEPARATOR=';'
16697  else
16698    PATH_SEPARATOR=:
16699  fi
16700  rm -f conf$$.sh
16701fi
16702ac_prog=ld
16703if test "$GCC" = yes; then
16704  # Check if gcc -print-prog-name=ld gives a path.
16705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16706$as_echo_n "checking for ld used by GCC... " >&6; }
16707  case $host in
16708  *-*-mingw*)
16709    # gcc leaves a trailing carriage return which upsets mingw
16710    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16711  *)
16712    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16713  esac
16714  case $ac_prog in
16715    # Accept absolute paths.
16716    [\\/]* | [A-Za-z]:[\\/]*)
16717      re_direlt='/[^/][^/]*/\.\./'
16718      # Canonicalize the path of ld
16719      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16720      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16721	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16722      done
16723      test -z "$LD" && LD="$ac_prog"
16724      ;;
16725  "")
16726    # If it fails, then pretend we aren't using GCC.
16727    ac_prog=ld
16728    ;;
16729  *)
16730    # If it is relative, then search for the first ld in PATH.
16731    with_gnu_ld=unknown
16732    ;;
16733  esac
16734elif test "$with_gnu_ld" = yes; then
16735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16736$as_echo_n "checking for GNU ld... " >&6; }
16737else
16738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16739$as_echo_n "checking for non-GNU ld... " >&6; }
16740fi
16741if test "${acl_cv_path_LD+set}" = set; then :
16742  $as_echo_n "(cached) " >&6
16743else
16744  if test -z "$LD"; then
16745  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16746  for ac_dir in $PATH; do
16747    test -z "$ac_dir" && ac_dir=.
16748    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16749      acl_cv_path_LD="$ac_dir/$ac_prog"
16750      # Check to see if the program is GNU ld.  I'd rather use --version,
16751      # but apparently some GNU ld's only accept -v.
16752      # Break only if it was the GNU/non-GNU ld that we prefer.
16753      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16754      *GNU* | *'with BFD'*)
16755	test "$with_gnu_ld" != no && break ;;
16756      *)
16757	test "$with_gnu_ld" != yes && break ;;
16758      esac
16759    fi
16760  done
16761  IFS="$ac_save_ifs"
16762else
16763  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16764fi
16765fi
16766
16767LD="$acl_cv_path_LD"
16768if test -n "$LD"; then
16769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16770$as_echo "$LD" >&6; }
16771else
16772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773$as_echo "no" >&6; }
16774fi
16775test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16777$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16778if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16779  $as_echo_n "(cached) " >&6
16780else
16781  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16782case `$LD -v 2>&1 </dev/null` in
16783*GNU* | *'with BFD'*)
16784  acl_cv_prog_gnu_ld=yes ;;
16785*)
16786  acl_cv_prog_gnu_ld=no ;;
16787esac
16788fi
16789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16790$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16791with_gnu_ld=$acl_cv_prog_gnu_ld
16792
16793
16794
16795
16796                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16797$as_echo_n "checking for shared library run path origin... " >&6; }
16798if test "${acl_cv_rpath+set}" = set; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801
16802    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16803    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16804    . ./conftest.sh
16805    rm -f ./conftest.sh
16806    acl_cv_rpath=done
16807
16808fi
16809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16810$as_echo "$acl_cv_rpath" >&6; }
16811  wl="$acl_cv_wl"
16812  acl_libext="$acl_cv_libext"
16813  acl_shlibext="$acl_cv_shlibext"
16814  acl_libname_spec="$acl_cv_libname_spec"
16815  acl_library_names_spec="$acl_cv_library_names_spec"
16816  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16817  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16818  acl_hardcode_direct="$acl_cv_hardcode_direct"
16819  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16820    # Check whether --enable-rpath was given.
16821if test "${enable_rpath+set}" = set; then :
16822  enableval=$enable_rpath; :
16823else
16824  enable_rpath=yes
16825fi
16826
16827
16828
16829                  acl_libdirstem=lib
16830  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16831  if test -n "$searchpath"; then
16832    acl_save_IFS="${IFS= 	}"; IFS=":"
16833    for searchdir in $searchpath; do
16834      if test -d "$searchdir"; then
16835        case "$searchdir" in
16836          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16837          *) searchdir=`cd "$searchdir" && pwd`
16838             case "$searchdir" in
16839               */lib64 ) acl_libdirstem=lib64 ;;
16840             esac ;;
16841        esac
16842      fi
16843    done
16844    IFS="$acl_save_IFS"
16845  fi
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855    use_additional=yes
16856
16857  acl_save_prefix="$prefix"
16858  prefix="$acl_final_prefix"
16859  acl_save_exec_prefix="$exec_prefix"
16860  exec_prefix="$acl_final_exec_prefix"
16861
16862    eval additional_includedir=\"$includedir\"
16863    eval additional_libdir=\"$libdir\"
16864
16865  exec_prefix="$acl_save_exec_prefix"
16866  prefix="$acl_save_prefix"
16867
16868
16869# Check whether --with-libiconv-prefix was given.
16870if test "${with_libiconv_prefix+set}" = set; then :
16871  withval=$with_libiconv_prefix;
16872    if test "X$withval" = "Xno"; then
16873      use_additional=no
16874    else
16875      if test "X$withval" = "X"; then
16876
16877  acl_save_prefix="$prefix"
16878  prefix="$acl_final_prefix"
16879  acl_save_exec_prefix="$exec_prefix"
16880  exec_prefix="$acl_final_exec_prefix"
16881
16882          eval additional_includedir=\"$includedir\"
16883          eval additional_libdir=\"$libdir\"
16884
16885  exec_prefix="$acl_save_exec_prefix"
16886  prefix="$acl_save_prefix"
16887
16888      else
16889        additional_includedir="$withval/include"
16890        additional_libdir="$withval/$acl_libdirstem"
16891      fi
16892    fi
16893
16894fi
16895
16896      LIBICONV=
16897  LTLIBICONV=
16898  INCICONV=
16899  LIBICONV_PREFIX=
16900  rpathdirs=
16901  ltrpathdirs=
16902  names_already_handled=
16903  names_next_round='iconv '
16904  while test -n "$names_next_round"; do
16905    names_this_round="$names_next_round"
16906    names_next_round=
16907    for name in $names_this_round; do
16908      already_handled=
16909      for n in $names_already_handled; do
16910        if test "$n" = "$name"; then
16911          already_handled=yes
16912          break
16913        fi
16914      done
16915      if test -z "$already_handled"; then
16916        names_already_handled="$names_already_handled $name"
16917                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16918        eval value=\"\$HAVE_LIB$uppername\"
16919        if test -n "$value"; then
16920          if test "$value" = yes; then
16921            eval value=\"\$LIB$uppername\"
16922            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16923            eval value=\"\$LTLIB$uppername\"
16924            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16925          else
16926                                    :
16927          fi
16928        else
16929                              found_dir=
16930          found_la=
16931          found_so=
16932          found_a=
16933          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16934          if test -n "$acl_shlibext"; then
16935            shrext=".$acl_shlibext"             # typically: shrext=.so
16936          else
16937            shrext=
16938          fi
16939          if test $use_additional = yes; then
16940            dir="$additional_libdir"
16941                                    if test -n "$acl_shlibext"; then
16942              if test -f "$dir/$libname$shrext"; then
16943                found_dir="$dir"
16944                found_so="$dir/$libname$shrext"
16945              else
16946                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16947                  ver=`(cd "$dir" && \
16948                        for f in "$libname$shrext".*; do echo "$f"; done \
16949                        | sed -e "s,^$libname$shrext\\\\.,," \
16950                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16951                        | sed 1q ) 2>/dev/null`
16952                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16953                    found_dir="$dir"
16954                    found_so="$dir/$libname$shrext.$ver"
16955                  fi
16956                else
16957                  eval library_names=\"$acl_library_names_spec\"
16958                  for f in $library_names; do
16959                    if test -f "$dir/$f"; then
16960                      found_dir="$dir"
16961                      found_so="$dir/$f"
16962                      break
16963                    fi
16964                  done
16965                fi
16966              fi
16967            fi
16968                        if test "X$found_dir" = "X"; then
16969              if test -f "$dir/$libname.$acl_libext"; then
16970                found_dir="$dir"
16971                found_a="$dir/$libname.$acl_libext"
16972              fi
16973            fi
16974            if test "X$found_dir" != "X"; then
16975              if test -f "$dir/$libname.la"; then
16976                found_la="$dir/$libname.la"
16977              fi
16978            fi
16979          fi
16980          if test "X$found_dir" = "X"; then
16981            for x in $LDFLAGS $LTLIBICONV; do
16982
16983  acl_save_prefix="$prefix"
16984  prefix="$acl_final_prefix"
16985  acl_save_exec_prefix="$exec_prefix"
16986  exec_prefix="$acl_final_exec_prefix"
16987  eval x=\"$x\"
16988  exec_prefix="$acl_save_exec_prefix"
16989  prefix="$acl_save_prefix"
16990
16991              case "$x" in
16992                -L*)
16993                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16994                                    if test -n "$acl_shlibext"; then
16995                    if test -f "$dir/$libname$shrext"; then
16996                      found_dir="$dir"
16997                      found_so="$dir/$libname$shrext"
16998                    else
16999                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17000                        ver=`(cd "$dir" && \
17001                              for f in "$libname$shrext".*; do echo "$f"; done \
17002                              | sed -e "s,^$libname$shrext\\\\.,," \
17003                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17004                              | sed 1q ) 2>/dev/null`
17005                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17006                          found_dir="$dir"
17007                          found_so="$dir/$libname$shrext.$ver"
17008                        fi
17009                      else
17010                        eval library_names=\"$acl_library_names_spec\"
17011                        for f in $library_names; do
17012                          if test -f "$dir/$f"; then
17013                            found_dir="$dir"
17014                            found_so="$dir/$f"
17015                            break
17016                          fi
17017                        done
17018                      fi
17019                    fi
17020                  fi
17021                                    if test "X$found_dir" = "X"; then
17022                    if test -f "$dir/$libname.$acl_libext"; then
17023                      found_dir="$dir"
17024                      found_a="$dir/$libname.$acl_libext"
17025                    fi
17026                  fi
17027                  if test "X$found_dir" != "X"; then
17028                    if test -f "$dir/$libname.la"; then
17029                      found_la="$dir/$libname.la"
17030                    fi
17031                  fi
17032                  ;;
17033              esac
17034              if test "X$found_dir" != "X"; then
17035                break
17036              fi
17037            done
17038          fi
17039          if test "X$found_dir" != "X"; then
17040                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17041            if test "X$found_so" != "X"; then
17042                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17043                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17044              else
17045                                                                                haveit=
17046                for x in $ltrpathdirs; do
17047                  if test "X$x" = "X$found_dir"; then
17048                    haveit=yes
17049                    break
17050                  fi
17051                done
17052                if test -z "$haveit"; then
17053                  ltrpathdirs="$ltrpathdirs $found_dir"
17054                fi
17055                                if test "$acl_hardcode_direct" = yes; then
17056                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17057                else
17058                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17059                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17060                                                            haveit=
17061                    for x in $rpathdirs; do
17062                      if test "X$x" = "X$found_dir"; then
17063                        haveit=yes
17064                        break
17065                      fi
17066                    done
17067                    if test -z "$haveit"; then
17068                      rpathdirs="$rpathdirs $found_dir"
17069                    fi
17070                  else
17071                                                                                haveit=
17072                    for x in $LDFLAGS $LIBICONV; do
17073
17074  acl_save_prefix="$prefix"
17075  prefix="$acl_final_prefix"
17076  acl_save_exec_prefix="$exec_prefix"
17077  exec_prefix="$acl_final_exec_prefix"
17078  eval x=\"$x\"
17079  exec_prefix="$acl_save_exec_prefix"
17080  prefix="$acl_save_prefix"
17081
17082                      if test "X$x" = "X-L$found_dir"; then
17083                        haveit=yes
17084                        break
17085                      fi
17086                    done
17087                    if test -z "$haveit"; then
17088                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17089                    fi
17090                    if test "$acl_hardcode_minus_L" != no; then
17091                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17092                    else
17093                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17094                    fi
17095                  fi
17096                fi
17097              fi
17098            else
17099              if test "X$found_a" != "X"; then
17100                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17101              else
17102                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17103              fi
17104            fi
17105                        additional_includedir=
17106            case "$found_dir" in
17107              */$acl_libdirstem | */$acl_libdirstem/)
17108                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17109                LIBICONV_PREFIX="$basedir"
17110                additional_includedir="$basedir/include"
17111                ;;
17112            esac
17113            if test "X$additional_includedir" != "X"; then
17114                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17115                haveit=
17116                if test "X$additional_includedir" = "X/usr/local/include"; then
17117                  if test -n "$GCC"; then
17118                    case $host_os in
17119                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17120                    esac
17121                  fi
17122                fi
17123                if test -z "$haveit"; then
17124                  for x in $CPPFLAGS $INCICONV; do
17125
17126  acl_save_prefix="$prefix"
17127  prefix="$acl_final_prefix"
17128  acl_save_exec_prefix="$exec_prefix"
17129  exec_prefix="$acl_final_exec_prefix"
17130  eval x=\"$x\"
17131  exec_prefix="$acl_save_exec_prefix"
17132  prefix="$acl_save_prefix"
17133
17134                    if test "X$x" = "X-I$additional_includedir"; then
17135                      haveit=yes
17136                      break
17137                    fi
17138                  done
17139                  if test -z "$haveit"; then
17140                    if test -d "$additional_includedir"; then
17141                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17142                    fi
17143                  fi
17144                fi
17145              fi
17146            fi
17147                        if test -n "$found_la"; then
17148                                                        save_libdir="$libdir"
17149              case "$found_la" in
17150                */* | *\\*) . "$found_la" ;;
17151                *) . "./$found_la" ;;
17152              esac
17153              libdir="$save_libdir"
17154                            for dep in $dependency_libs; do
17155                case "$dep" in
17156                  -L*)
17157                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17158                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17159                      haveit=
17160                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17161                        if test -n "$GCC"; then
17162                          case $host_os in
17163                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17164                          esac
17165                        fi
17166                      fi
17167                      if test -z "$haveit"; then
17168                        haveit=
17169                        for x in $LDFLAGS $LIBICONV; do
17170
17171  acl_save_prefix="$prefix"
17172  prefix="$acl_final_prefix"
17173  acl_save_exec_prefix="$exec_prefix"
17174  exec_prefix="$acl_final_exec_prefix"
17175  eval x=\"$x\"
17176  exec_prefix="$acl_save_exec_prefix"
17177  prefix="$acl_save_prefix"
17178
17179                          if test "X$x" = "X-L$additional_libdir"; then
17180                            haveit=yes
17181                            break
17182                          fi
17183                        done
17184                        if test -z "$haveit"; then
17185                          if test -d "$additional_libdir"; then
17186                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17187                          fi
17188                        fi
17189                        haveit=
17190                        for x in $LDFLAGS $LTLIBICONV; do
17191
17192  acl_save_prefix="$prefix"
17193  prefix="$acl_final_prefix"
17194  acl_save_exec_prefix="$exec_prefix"
17195  exec_prefix="$acl_final_exec_prefix"
17196  eval x=\"$x\"
17197  exec_prefix="$acl_save_exec_prefix"
17198  prefix="$acl_save_prefix"
17199
17200                          if test "X$x" = "X-L$additional_libdir"; then
17201                            haveit=yes
17202                            break
17203                          fi
17204                        done
17205                        if test -z "$haveit"; then
17206                          if test -d "$additional_libdir"; then
17207                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17208                          fi
17209                        fi
17210                      fi
17211                    fi
17212                    ;;
17213                  -R*)
17214                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17215                    if test "$enable_rpath" != no; then
17216                                                                  haveit=
17217                      for x in $rpathdirs; do
17218                        if test "X$x" = "X$dir"; then
17219                          haveit=yes
17220                          break
17221                        fi
17222                      done
17223                      if test -z "$haveit"; then
17224                        rpathdirs="$rpathdirs $dir"
17225                      fi
17226                                                                  haveit=
17227                      for x in $ltrpathdirs; do
17228                        if test "X$x" = "X$dir"; then
17229                          haveit=yes
17230                          break
17231                        fi
17232                      done
17233                      if test -z "$haveit"; then
17234                        ltrpathdirs="$ltrpathdirs $dir"
17235                      fi
17236                    fi
17237                    ;;
17238                  -l*)
17239                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17240                    ;;
17241                  *.la)
17242                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17243                    ;;
17244                  *)
17245                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17246                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17247                    ;;
17248                esac
17249              done
17250            fi
17251          else
17252                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17253            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17254          fi
17255        fi
17256      fi
17257    done
17258  done
17259  if test "X$rpathdirs" != "X"; then
17260    if test -n "$acl_hardcode_libdir_separator"; then
17261                        alldirs=
17262      for found_dir in $rpathdirs; do
17263        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17264      done
17265            acl_save_libdir="$libdir"
17266      libdir="$alldirs"
17267      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17268      libdir="$acl_save_libdir"
17269      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17270    else
17271            for found_dir in $rpathdirs; do
17272        acl_save_libdir="$libdir"
17273        libdir="$found_dir"
17274        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17275        libdir="$acl_save_libdir"
17276        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17277      done
17278    fi
17279  fi
17280  if test "X$ltrpathdirs" != "X"; then
17281            for found_dir in $ltrpathdirs; do
17282      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17283    done
17284  fi
17285
17286
17287
17288
17289
17290
17291
17292          am_save_CPPFLAGS="$CPPFLAGS"
17293
17294  for element in $INCICONV; do
17295    haveit=
17296    for x in $CPPFLAGS; do
17297
17298  acl_save_prefix="$prefix"
17299  prefix="$acl_final_prefix"
17300  acl_save_exec_prefix="$exec_prefix"
17301  exec_prefix="$acl_final_exec_prefix"
17302  eval x=\"$x\"
17303  exec_prefix="$acl_save_exec_prefix"
17304  prefix="$acl_save_prefix"
17305
17306      if test "X$x" = "X$element"; then
17307        haveit=yes
17308        break
17309      fi
17310    done
17311    if test -z "$haveit"; then
17312      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17313    fi
17314  done
17315
17316
17317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17318$as_echo_n "checking for iconv... " >&6; }
17319if test "${am_cv_func_iconv+set}" = set; then :
17320  $as_echo_n "(cached) " >&6
17321else
17322
17323    am_cv_func_iconv="no, consider installing GNU libiconv"
17324    am_cv_lib_iconv=no
17325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326/* end confdefs.h.  */
17327#include <stdlib.h>
17328#include <iconv.h>
17329int
17330main ()
17331{
17332iconv_t cd = iconv_open("","");
17333       iconv(cd,NULL,NULL,NULL,NULL);
17334       iconv_close(cd);
17335  ;
17336  return 0;
17337}
17338_ACEOF
17339if ac_fn_c_try_link "$LINENO"; then :
17340  am_cv_func_iconv=yes
17341fi
17342rm -f core conftest.err conftest.$ac_objext \
17343    conftest$ac_exeext conftest.$ac_ext
17344    if test "$am_cv_func_iconv" != yes; then
17345      am_save_LIBS="$LIBS"
17346      LIBS="$LIBS $LIBICONV"
17347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348/* end confdefs.h.  */
17349#include <stdlib.h>
17350#include <iconv.h>
17351int
17352main ()
17353{
17354iconv_t cd = iconv_open("","");
17355         iconv(cd,NULL,NULL,NULL,NULL);
17356         iconv_close(cd);
17357  ;
17358  return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_link "$LINENO"; then :
17362  am_cv_lib_iconv=yes
17363        am_cv_func_iconv=yes
17364fi
17365rm -f core conftest.err conftest.$ac_objext \
17366    conftest$ac_exeext conftest.$ac_ext
17367      LIBS="$am_save_LIBS"
17368    fi
17369
17370fi
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17372$as_echo "$am_cv_func_iconv" >&6; }
17373  if test "$am_cv_func_iconv" = yes; then
17374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17375$as_echo_n "checking for working iconv... " >&6; }
17376if test "${am_cv_func_iconv_works+set}" = set; then :
17377  $as_echo_n "(cached) " >&6
17378else
17379
17380            am_save_LIBS="$LIBS"
17381      if test $am_cv_lib_iconv = yes; then
17382        LIBS="$LIBS $LIBICONV"
17383      fi
17384      if test "$cross_compiling" = yes; then :
17385  case "$host_os" in
17386           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17387           *)            am_cv_func_iconv_works="guessing yes" ;;
17388         esac
17389else
17390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h.  */
17392
17393#include <iconv.h>
17394#include <string.h>
17395int main ()
17396{
17397  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17398     returns.  */
17399  {
17400    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17401    if (cd_utf8_to_88591 != (iconv_t)(-1))
17402      {
17403        static const char input[] = "\342\202\254"; /* EURO SIGN */
17404        char buf[10];
17405        const char *inptr = input;
17406        size_t inbytesleft = strlen (input);
17407        char *outptr = buf;
17408        size_t outbytesleft = sizeof (buf);
17409        size_t res = iconv (cd_utf8_to_88591,
17410                            (char **) &inptr, &inbytesleft,
17411                            &outptr, &outbytesleft);
17412        if (res == 0)
17413          return 1;
17414      }
17415  }
17416#if 0 /* This bug could be worked around by the caller.  */
17417  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17418  {
17419    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17420    if (cd_88591_to_utf8 != (iconv_t)(-1))
17421      {
17422        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17423        char buf[50];
17424        const char *inptr = input;
17425        size_t inbytesleft = strlen (input);
17426        char *outptr = buf;
17427        size_t outbytesleft = sizeof (buf);
17428        size_t res = iconv (cd_88591_to_utf8,
17429                            (char **) &inptr, &inbytesleft,
17430                            &outptr, &outbytesleft);
17431        if ((int)res > 0)
17432          return 1;
17433      }
17434  }
17435#endif
17436  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17437     provided.  */
17438  if (/* Try standardized names.  */
17439      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17440      /* Try IRIX, OSF/1 names.  */
17441      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17442      /* Try AIX names.  */
17443      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17444      /* Try HP-UX names.  */
17445      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17446    return 1;
17447  return 0;
17448}
17449_ACEOF
17450if ac_fn_c_try_run "$LINENO"; then :
17451  am_cv_func_iconv_works=yes
17452else
17453  am_cv_func_iconv_works=no
17454fi
17455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17456  conftest.$ac_objext conftest.beam conftest.$ac_ext
17457fi
17458
17459      LIBS="$am_save_LIBS"
17460
17461fi
17462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17463$as_echo "$am_cv_func_iconv_works" >&6; }
17464    case "$am_cv_func_iconv_works" in
17465      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17466      *)   am_func_iconv=yes ;;
17467    esac
17468  else
17469    am_func_iconv=no am_cv_lib_iconv=no
17470  fi
17471  if test "$am_func_iconv" = yes; then
17472
17473$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17474
17475  fi
17476  if test "$am_cv_lib_iconv" = yes; then
17477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17478$as_echo_n "checking how to link with libiconv... " >&6; }
17479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17480$as_echo "$LIBICONV" >&6; }
17481  else
17482            CPPFLAGS="$am_save_CPPFLAGS"
17483    LIBICONV=
17484    LTLIBICONV=
17485  fi
17486
17487
17488
17489  if test "$am_cv_func_iconv" = yes; then
17490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17491$as_echo_n "checking for iconv declaration... " >&6; }
17492    if test "${am_cv_proto_iconv+set}" = set; then :
17493  $as_echo_n "(cached) " >&6
17494else
17495
17496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497/* end confdefs.h.  */
17498
17499#include <stdlib.h>
17500#include <iconv.h>
17501extern
17502#ifdef __cplusplus
17503"C"
17504#endif
17505#if defined(__STDC__) || defined(__cplusplus)
17506size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17507#else
17508size_t iconv();
17509#endif
17510
17511int
17512main ()
17513{
17514
17515  ;
17516  return 0;
17517}
17518_ACEOF
17519if ac_fn_c_try_compile "$LINENO"; then :
17520  am_cv_proto_iconv_arg1=""
17521else
17522  am_cv_proto_iconv_arg1="const"
17523fi
17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17526fi
17527
17528    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
17530         }$am_cv_proto_iconv" >&5
17531$as_echo "${ac_t:-
17532         }$am_cv_proto_iconv" >&6; }
17533
17534cat >>confdefs.h <<_ACEOF
17535#define ICONV_CONST $am_cv_proto_iconv_arg1
17536_ACEOF
17537
17538  fi
17539
17540if test "x$am_cv_func_iconv" != xyes; then
17541	as_fn_error "No iconv library found." "$LINENO" 5
17542fi
17543EXTRA_LIBS="$EXTRA_LIBS $LIBICONV"
17544
17545COMPILE_RCC=no
17546
17547# Check whether --with-rcc was given.
17548if test "${with_rcc+set}" = set; then :
17549  withval=$with_rcc;
17550fi
17551
17552if test "x$with_rcc" != "xno"
17553then
17554for ac_header in librcc.h
17555do :
17556  ac_fn_c_check_header_mongrel "$LINENO" "librcc.h" "ac_cv_header_librcc_h" "$ac_includes_default"
17557if test "x$ac_cv_header_librcc_h" = x""yes; then :
17558  cat >>confdefs.h <<_ACEOF
17559#define HAVE_LIBRCC_H 1
17560_ACEOF
17561
17562$as_echo "#define HAVE_RCC 1" >>confdefs.h
17563
17564                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rccInit in -lrcc" >&5
17565$as_echo_n "checking for rccInit in -lrcc... " >&6; }
17566if test "${ac_cv_lib_rcc_rccInit+set}" = set; then :
17567  $as_echo_n "(cached) " >&6
17568else
17569  ac_check_lib_save_LIBS=$LIBS
17570LIBS="-lrcc  $LIBS"
17571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573
17574/* Override any GCC internal prototype to avoid an error.
17575   Use char because int might match the return type of a GCC
17576   builtin and then its argument prototype would still apply.  */
17577#ifdef __cplusplus
17578extern "C"
17579#endif
17580char rccInit ();
17581int
17582main ()
17583{
17584return rccInit ();
17585  ;
17586  return 0;
17587}
17588_ACEOF
17589if ac_fn_c_try_link "$LINENO"; then :
17590  ac_cv_lib_rcc_rccInit=yes
17591else
17592  ac_cv_lib_rcc_rccInit=no
17593fi
17594rm -f core conftest.err conftest.$ac_objext \
17595    conftest$ac_exeext conftest.$ac_ext
17596LIBS=$ac_check_lib_save_LIBS
17597fi
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rcc_rccInit" >&5
17599$as_echo "$ac_cv_lib_rcc_rccInit" >&6; }
17600if test "x$ac_cv_lib_rcc_rccInit" = x""yes; then :
17601  RCC_LIBS="-lrcc"
17602
17603                                COMPILE_RCC=yes
17604fi
17605
17606
17607fi
17608
17609done
17610
17611fi
17612
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17614$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17615if test "${ac_cv_c_const+set}" = set; then :
17616  $as_echo_n "(cached) " >&6
17617else
17618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620
17621int
17622main ()
17623{
17624/* FIXME: Include the comments suggested by Paul. */
17625#ifndef __cplusplus
17626  /* Ultrix mips cc rejects this.  */
17627  typedef int charset[2];
17628  const charset cs;
17629  /* SunOS 4.1.1 cc rejects this.  */
17630  char const *const *pcpcc;
17631  char **ppc;
17632  /* NEC SVR4.0.2 mips cc rejects this.  */
17633  struct point {int x, y;};
17634  static struct point const zero = {0,0};
17635  /* AIX XL C 1.02.0.0 rejects this.
17636     It does not let you subtract one const X* pointer from another in
17637     an arm of an if-expression whose if-part is not a constant
17638     expression */
17639  const char *g = "string";
17640  pcpcc = &g + (g ? g-g : 0);
17641  /* HPUX 7.0 cc rejects these. */
17642  ++pcpcc;
17643  ppc = (char**) pcpcc;
17644  pcpcc = (char const *const *) ppc;
17645  { /* SCO 3.2v4 cc rejects this.  */
17646    char *t;
17647    char const *s = 0 ? (char *) 0 : (char const *) 0;
17648
17649    *t++ = 0;
17650    if (s) return 0;
17651  }
17652  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17653    int x[] = {25, 17};
17654    const int *foo = &x[0];
17655    ++foo;
17656  }
17657  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17658    typedef const int *iptr;
17659    iptr p = 0;
17660    ++p;
17661  }
17662  { /* AIX XL C 1.02.0.0 rejects this saying
17663       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17664    struct s { int j; const int *ap[3]; };
17665    struct s *b; b->j = 5;
17666  }
17667  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17668    const int foo = 10;
17669    if (!foo) return 0;
17670  }
17671  return !cs[0] && !zero.x;
17672#endif
17673
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678if ac_fn_c_try_compile "$LINENO"; then :
17679  ac_cv_c_const=yes
17680else
17681  ac_cv_c_const=no
17682fi
17683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684fi
17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17686$as_echo "$ac_cv_c_const" >&6; }
17687if test $ac_cv_c_const = no; then
17688
17689$as_echo "#define const /**/" >>confdefs.h
17690
17691fi
17692
17693
17694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
17695$as_echo_n "checking for flexible array members... " >&6; }
17696if test "${ac_cv_c_flexmember+set}" = set; then :
17697  $as_echo_n "(cached) " >&6
17698else
17699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701#include <stdlib.h>
17702	    #include <stdio.h>
17703	    #include <stddef.h>
17704	    struct s { int n; double d[]; };
17705int
17706main ()
17707{
17708int m = getchar ();
17709	    struct s *p = malloc (offsetof (struct s, d)
17710				  + m * sizeof (double));
17711	    p->d[0] = 0.0;
17712	    return p->d != (double *) NULL;
17713  ;
17714  return 0;
17715}
17716_ACEOF
17717if ac_fn_c_try_compile "$LINENO"; then :
17718  ac_cv_c_flexmember=yes
17719else
17720  ac_cv_c_flexmember=no
17721fi
17722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723fi
17724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
17725$as_echo "$ac_cv_c_flexmember" >&6; }
17726  if test $ac_cv_c_flexmember = yes; then
17727
17728$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
17729
17730  else
17731    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
17732
17733  fi
17734
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17736$as_echo_n "checking for inline... " >&6; }
17737if test "${ac_cv_c_inline+set}" = set; then :
17738  $as_echo_n "(cached) " >&6
17739else
17740  ac_cv_c_inline=no
17741for ac_kw in inline __inline__ __inline; do
17742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h.  */
17744#ifndef __cplusplus
17745typedef int foo_t;
17746static $ac_kw foo_t static_foo () {return 0; }
17747$ac_kw foo_t foo () {return 0; }
17748#endif
17749
17750_ACEOF
17751if ac_fn_c_try_compile "$LINENO"; then :
17752  ac_cv_c_inline=$ac_kw
17753fi
17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755  test "$ac_cv_c_inline" != no && break
17756done
17757
17758fi
17759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17760$as_echo "$ac_cv_c_inline" >&6; }
17761
17762case $ac_cv_c_inline in
17763  inline | yes) ;;
17764  *)
17765    case $ac_cv_c_inline in
17766      no) ac_val=;;
17767      *) ac_val=$ac_cv_c_inline;;
17768    esac
17769    cat >>confdefs.h <<_ACEOF
17770#ifndef __cplusplus
17771#define inline $ac_val
17772#endif
17773_ACEOF
17774    ;;
17775esac
17776
17777ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17778if test "x$ac_cv_type_off_t" = x""yes; then :
17779
17780else
17781
17782cat >>confdefs.h <<_ACEOF
17783#define off_t long int
17784_ACEOF
17785
17786fi
17787
17788ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17789if test "x$ac_cv_type_size_t" = x""yes; then :
17790
17791else
17792
17793cat >>confdefs.h <<_ACEOF
17794#define size_t unsigned int
17795_ACEOF
17796
17797fi
17798
17799
17800  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
17801if test "x$ac_cv_type_intptr_t" = x""yes; then :
17802
17803$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
17804
17805else
17806  for ac_type in 'int' 'long int' 'long long int'; do
17807       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808/* end confdefs.h.  */
17809$ac_includes_default
17810int
17811main ()
17812{
17813static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17814test_array [0] = 0
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820if ac_fn_c_try_compile "$LINENO"; then :
17821
17822cat >>confdefs.h <<_ACEOF
17823#define intptr_t $ac_type
17824_ACEOF
17825
17826	  ac_type=
17827fi
17828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829       test -z "$ac_type" && break
17830     done
17831fi
17832
17833
17834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
17835$as_echo_n "checking for lrintf... " >&6; }
17836if test "${ac_cv_c99_lrintf+set}" = set; then :
17837  $as_echo_n "(cached) " >&6
17838else
17839
17840lrintf_save_CFLAGS=$CFLAGS
17841CFLAGS="-O2 -lm"
17842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843/* end confdefs.h.  */
17844
17845#define		_ISOC9X_SOURCE	1
17846#define 	_ISOC99_SOURCE	1
17847#define		__USE_ISOC99	1
17848#define 	__USE_ISOC9X	1
17849
17850#include <math.h>
17851
17852int
17853main ()
17854{
17855if (!lrintf(3.14159)) lrintf(2.7183);
17856  ;
17857  return 0;
17858}
17859_ACEOF
17860if ac_fn_c_try_link "$LINENO"; then :
17861  ac_cv_c99_lrintf=yes
17862else
17863  ac_cv_c99_lrintf=no
17864fi
17865rm -f core conftest.err conftest.$ac_objext \
17866    conftest$ac_exeext conftest.$ac_ext
17867
17868CFLAGS=$lrintf_save_CFLAGS
17869
17870
17871fi
17872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
17873$as_echo "$ac_cv_c99_lrintf" >&6; }
17874
17875if test "$ac_cv_c99_lrintf" = yes; then
17876
17877$as_echo "#define HAVE_LRINTF 1" >>confdefs.h
17878
17879fi
17880
17881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wall" >&5
17882$as_echo_n "checking CFLAGS for gcc -Wall... " >&6; }
17883if test "${ac_cv_cflags_gcc_option__Wall+set}" = set; then :
17884  $as_echo_n "(cached) " >&6
17885else
17886  ac_cv_cflags_gcc_option__Wall="no, unknown"
17887
17888 ac_ext=c
17889ac_cpp='$CPP $CPPFLAGS'
17890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17892ac_compiler_gnu=$ac_cv_c_compiler_gnu
17893
17894 ac_save_CFLAGS="$CFLAGS"
17895for ac_arg in "-pedantic  % -Wall"     #
17896do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898/* end confdefs.h.  */
17899
17900int
17901main ()
17902{
17903return 0;
17904  ;
17905  return 0;
17906}
17907_ACEOF
17908if ac_fn_c_try_compile "$LINENO"; then :
17909  ac_cv_cflags_gcc_option__Wall=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17910fi
17911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912done
17913 CFLAGS="$ac_save_CFLAGS"
17914 ac_ext=c
17915ac_cpp='$CPP $CPPFLAGS'
17916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919
17920
17921fi
17922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wall" >&5
17923$as_echo "$ac_cv_cflags_gcc_option__Wall" >&6; }
17924case ".$ac_cv_cflags_gcc_option__Wall" in
17925     .ok|.ok,*)  ;;
17926   .|.no|.no,*)  ;;
17927   *)
17928   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wall " 2>&1 >/dev/null
17929   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wall"; } >&5
17930  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wall) 2>&5
17931  ac_status=$?
17932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17933  test $ac_status = 0; }
17934   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wall\""; } >&5
17935  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wall") 2>&5
17936  ac_status=$?
17937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938  test $ac_status = 0; }
17939                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wall"
17940   fi
17941 ;;
17942esac
17943
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -W" >&5
17945$as_echo_n "checking CFLAGS for gcc -W... " >&6; }
17946if test "${ac_cv_cflags_gcc_option__W+set}" = set; then :
17947  $as_echo_n "(cached) " >&6
17948else
17949  ac_cv_cflags_gcc_option__W="no, unknown"
17950
17951 ac_ext=c
17952ac_cpp='$CPP $CPPFLAGS'
17953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17955ac_compiler_gnu=$ac_cv_c_compiler_gnu
17956
17957 ac_save_CFLAGS="$CFLAGS"
17958for ac_arg in "-pedantic  % -W"     #
17959do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961/* end confdefs.h.  */
17962
17963int
17964main ()
17965{
17966return 0;
17967  ;
17968  return 0;
17969}
17970_ACEOF
17971if ac_fn_c_try_compile "$LINENO"; then :
17972  ac_cv_cflags_gcc_option__W=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17973fi
17974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975done
17976 CFLAGS="$ac_save_CFLAGS"
17977 ac_ext=c
17978ac_cpp='$CPP $CPPFLAGS'
17979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982
17983
17984fi
17985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__W" >&5
17986$as_echo "$ac_cv_cflags_gcc_option__W" >&6; }
17987case ".$ac_cv_cflags_gcc_option__W" in
17988     .ok|.ok,*)  ;;
17989   .|.no|.no,*)  ;;
17990   *)
17991   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__W " 2>&1 >/dev/null
17992   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__W"; } >&5
17993  (: CFLAGS does contain $ac_cv_cflags_gcc_option__W) 2>&5
17994  ac_status=$?
17995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17996  test $ac_status = 0; }
17997   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__W\""; } >&5
17998  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__W") 2>&5
17999  ac_status=$?
18000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18001  test $ac_status = 0; }
18002                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__W"
18003   fi
18004 ;;
18005esac
18006
18007
18008
18009
18010if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18011	if test -n "$ac_tool_prefix"; then
18012  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18013set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18015$as_echo_n "checking for $ac_word... " >&6; }
18016if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18017  $as_echo_n "(cached) " >&6
18018else
18019  case $PKG_CONFIG in
18020  [\\/]* | ?:[\\/]*)
18021  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18022  ;;
18023  *)
18024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18025for as_dir in $PATH
18026do
18027  IFS=$as_save_IFS
18028  test -z "$as_dir" && as_dir=.
18029    for ac_exec_ext in '' $ac_executable_extensions; do
18030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18031    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18033    break 2
18034  fi
18035done
18036  done
18037IFS=$as_save_IFS
18038
18039  ;;
18040esac
18041fi
18042PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18043if test -n "$PKG_CONFIG"; then
18044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18045$as_echo "$PKG_CONFIG" >&6; }
18046else
18047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048$as_echo "no" >&6; }
18049fi
18050
18051
18052fi
18053if test -z "$ac_cv_path_PKG_CONFIG"; then
18054  ac_pt_PKG_CONFIG=$PKG_CONFIG
18055  # Extract the first word of "pkg-config", so it can be a program name with args.
18056set dummy pkg-config; ac_word=$2
18057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18058$as_echo_n "checking for $ac_word... " >&6; }
18059if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18060  $as_echo_n "(cached) " >&6
18061else
18062  case $ac_pt_PKG_CONFIG in
18063  [\\/]* | ?:[\\/]*)
18064  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18065  ;;
18066  *)
18067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18068for as_dir in $PATH
18069do
18070  IFS=$as_save_IFS
18071  test -z "$as_dir" && as_dir=.
18072    for ac_exec_ext in '' $ac_executable_extensions; do
18073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18074    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18076    break 2
18077  fi
18078done
18079  done
18080IFS=$as_save_IFS
18081
18082  ;;
18083esac
18084fi
18085ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18086if test -n "$ac_pt_PKG_CONFIG"; then
18087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18088$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18089else
18090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18091$as_echo "no" >&6; }
18092fi
18093
18094  if test "x$ac_pt_PKG_CONFIG" = x; then
18095    PKG_CONFIG=""
18096  else
18097    case $cross_compiling:$ac_tool_warned in
18098yes:)
18099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18101ac_tool_warned=yes ;;
18102esac
18103    PKG_CONFIG=$ac_pt_PKG_CONFIG
18104  fi
18105else
18106  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18107fi
18108
18109fi
18110if test -n "$PKG_CONFIG"; then
18111	_pkg_min_version=0.20
18112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18113$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18114	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18116$as_echo "yes" >&6; }
18117	else
18118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119$as_echo "no" >&6; }
18120		PKG_CONFIG=""
18121	fi
18122
18123fi
18124
18125if test "x$PKG_CONFIG" = "x"
18126then
18127	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No pkg-config utility found or it's too old, I will have trouble finding installed libraries." >&5
18128$as_echo "$as_me: WARNING: No pkg-config utility found or it's too old, I will have trouble finding installed libraries." >&2;}
18129fi
18130
18131# Check whether --enable-cache was given.
18132if test "${enable_cache+set}" = set; then :
18133  enableval=$enable_cache;
18134fi
18135
18136
18137if test "x$enable_cache" != "xno"
18138then
18139
18140    ax_path_bdb_ok=no
18141
18142  # Add --with-bdb-dir option to configure.
18143
18144# Check whether --with-bdb-dir was given.
18145if test "${with_bdb_dir+set}" = set; then :
18146  withval=$with_bdb_dir;
18147fi
18148
18149
18150  # Check if --with-bdb-dir was specified.
18151  if test "x$with_bdb_dir" = "x" ; then
18152    # No option specified, so just search the system.
18153
18154    ax_path_bdb_no_options_ok=no
18155
18156  # Values to add to environment to use Berkeley DB.
18157  BDB_VERSION=''
18158  BDB_LIBS=''
18159  BDB_CPPFLAGS=''
18160  BDB_LDFLAGS=''
18161
18162  # Check cross compilation here.
18163  if test "x$cross_compiling" = "xyes" ; then
18164    # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
18165    # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
18166    # and extracts the version number from it.
18167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
18168$as_echo_n "checking for db.h... " >&6; }
18169
18170        ax_path_bdb_no_options_HEADER_VERSION=''
18171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173
18174
18175#include <db.h>
18176AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
18177
18178
18179_ACEOF
18180if ac_fn_c_try_cpp "$LINENO"; then :
18181
18182      # Extract version from preprocessor output.
18183      ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
18184        | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
18185
18186fi
18187rm -f conftest.err conftest.$ac_ext
18188
18189    if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
18190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18191$as_echo "no" >&6; }
18192    else
18193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
18194$as_echo "$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
18195
18196      # Check that version is high enough.
18197
18198  # Used to indicate true or false condition
18199  ax_compare_version=false
18200
18201  # Convert the two version strings to be compared into a format that
18202  # allows a simple string comparison.  The end result is that a version
18203  # string of the form 1.12.5-r617 will be converted to the form
18204  # 0001001200050617.  In other words, each number is zero padded to four
18205  # digits, and non digits are removed.
18206
18207  ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18208                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18209                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18210                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18211                     -e 's/[^0-9]//g'`
18212
18213
18214  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18215                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18216                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18217                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18218                     -e 's/[^0-9]//g'`
18219
18220
18221    ax_compare_version=`echo "x$ax_compare_version_A
18222x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
18223
18224
18225
18226    if test "$ax_compare_version" = "true" ; then
18227
18228        # get major and minor version numbers
18229                ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
18230                ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
18231
18232		ax_path_bdb_no_options_save_LIBS="$LIBS"
18233
18234        # Check that we can link with the library.
18235        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_version" >&5
18236$as_echo_n "checking for library containing db_version... " >&6; }
18237if test "${ac_cv_search_db_version+set}" = set; then :
18238  $as_echo_n "(cached) " >&6
18239else
18240  ac_func_search_save_LIBS=$LIBS
18241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242/* end confdefs.h.  */
18243
18244/* Override any GCC internal prototype to avoid an error.
18245   Use char because int might match the return type of a GCC
18246   builtin and then its argument prototype would still apply.  */
18247#ifdef __cplusplus
18248extern "C"
18249#endif
18250char db_version ();
18251int
18252main ()
18253{
18254return db_version ();
18255  ;
18256  return 0;
18257}
18258_ACEOF
18259for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
18260  if test -z "$ac_lib"; then
18261    ac_res="none required"
18262  else
18263    ac_res=-l$ac_lib
18264    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18265  fi
18266  if ac_fn_c_try_link "$LINENO"; then :
18267  ac_cv_search_db_version=$ac_res
18268fi
18269rm -f core conftest.err conftest.$ac_objext \
18270    conftest$ac_exeext
18271  if test "${ac_cv_search_db_version+set}" = set; then :
18272  break
18273fi
18274done
18275if test "${ac_cv_search_db_version+set}" = set; then :
18276
18277else
18278  ac_cv_search_db_version=no
18279fi
18280rm conftest.$ac_ext
18281LIBS=$ac_func_search_save_LIBS
18282fi
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_version" >&5
18284$as_echo "$ac_cv_search_db_version" >&6; }
18285ac_res=$ac_cv_search_db_version
18286if test "$ac_res" != no; then :
18287  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18288
18289            # Sucessfully found library.
18290            ax_path_bdb_no_options_ok=yes
18291            BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
18292
18293	    # Extract library from LIBS
18294	    ax_path_bdb_no_options_LEN=` \
18295              echo "x$ax_path_bdb_no_options_save_LIBS" \
18296              | awk '{print(length)}'`
18297            BDB_LIBS=`echo "x$LIBS " \
18298              | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
18299
18300fi
18301
18302
18303        	LIBS="$ax_path_bdb_no_options_save_LIBS"
18304
18305
18306      fi
18307
18308    fi
18309
18310      else
18311    # Not cross compiling.
18312    # Check version of Berkeley DB in the current environment.
18313
18314    ax_path_bdb_env_get_version_ok=no
18315
18316  ax_path_bdb_env_get_version_VERSION=''
18317  ax_path_bdb_env_get_version_LIBS=''
18318
18319
18320  # Indicate status of checking for Berkeley DB library.
18321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
18322$as_echo_n "checking for db.h... " >&6; }
18323
18324  # Compile and run a program that determines the Berkeley DB version
18325  # in the header file db.h.
18326  ax_path_bdb_env_get_version_HEADER_VERSION=''
18327  if test "$cross_compiling" = yes; then :
18328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329$as_echo "no" >&6; }
18330else
18331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332/* end confdefs.h.  */
18333
18334
18335#include <stdio.h>
18336#include <db.h>
18337int main(int argc,char **argv)
18338{
18339  (void) argv;
18340  if (argc > 1)
18341    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18342  return 0;
18343}
18344
18345
18346_ACEOF
18347if ac_fn_c_try_run "$LINENO"; then :
18348
18349    # Program compiled and ran, so get version by adding an argument.
18350    ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
18351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
18352$as_echo "$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
18353
18354else
18355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356$as_echo "no" >&6; }
18357fi
18358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18359  conftest.$ac_objext conftest.beam conftest.$ac_ext
18360fi
18361
18362
18363  # Have header version, so try to find corresponding library.
18364  # Looks for library names in the order:
18365  #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
18366  # and stops when it finds the first one that matches the version
18367  # of the header file.
18368  if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
18369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
18370$as_echo_n "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... " >&6; }
18371
18372
18373    # get major and minor version numbers
18374    ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
18375    ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
18376
18377    # see if it is already specified in LIBS
18378    ax_path_bdb_env_get_version_TEST_LIBNAME=''
18379
18380    ax_path_bdb_env_confirm_lib_ok=no
18381
18382    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18383  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18384
18385  # Compile and run a program that compares the version defined in
18386  # the header file with a version defined in the library function
18387  # db_version.
18388  if test "$cross_compiling" = yes; then :
18389  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18391as_fn_error "cannot run test program while cross compiling
18392See \`config.log' for more details." "$LINENO" 5; }
18393else
18394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395/* end confdefs.h.  */
18396
18397
18398#include <stdio.h>
18399#include <db.h>
18400int main(int argc,char **argv)
18401{
18402  int major,minor,patch;
18403  (void) argv;
18404  db_version(&major,&minor,&patch);
18405  if (argc > 1)
18406    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18407  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18408      DB_VERSION_PATCH == patch)
18409    return 0;
18410  else
18411    return 1;
18412}
18413
18414
18415_ACEOF
18416if ac_fn_c_try_run "$LINENO"; then :
18417
18418    # Program compiled and ran, so get version by giving an argument,
18419    # which will tell the program to print the output.
18420    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18421
18422    # If the versions all match up, indicate success.
18423
18424  # Used to indicate true or false condition
18425  ax_compare_version=false
18426
18427  # Convert the two version strings to be compared into a format that
18428  # allows a simple string comparison.  The end result is that a version
18429  # string of the form 1.12.5-r617 will be converted to the form
18430  # 0001001200050617.  In other words, each number is zero padded to four
18431  # digits, and non digits are removed.
18432
18433  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18434                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18435                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18436                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18437                     -e 's/[^0-9]//g'`
18438
18439
18440  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18441                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18442                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18443                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18444                     -e 's/[^0-9]//g'`
18445
18446
18447
18448
18449    # Pad zeros at end of numbers to make same length.
18450    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18451    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18452    ax_compare_version_A="$ax_compare_version_tmp_A"
18453
18454    # Check for equality or inequality as necessary.
18455
18456      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18457
18458
18459
18460
18461    if test "$ax_compare_version" = "true" ; then
18462
18463      ax_path_bdb_env_confirm_lib_ok=yes
18464
18465      fi
18466
18467
18468fi
18469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18470  conftest.$ac_objext conftest.beam conftest.$ac_ext
18471fi
18472
18473
18474    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18475
18476
18477
18478    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18479      # try format "db"
18480      ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
18481
18482    ax_path_bdb_env_confirm_lib_ok=no
18483
18484    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18485  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18486
18487  # Compile and run a program that compares the version defined in
18488  # the header file with a version defined in the library function
18489  # db_version.
18490  if test "$cross_compiling" = yes; then :
18491  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18493as_fn_error "cannot run test program while cross compiling
18494See \`config.log' for more details." "$LINENO" 5; }
18495else
18496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h.  */
18498
18499
18500#include <stdio.h>
18501#include <db.h>
18502int main(int argc,char **argv)
18503{
18504  int major,minor,patch;
18505  (void) argv;
18506  db_version(&major,&minor,&patch);
18507  if (argc > 1)
18508    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18509  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18510      DB_VERSION_PATCH == patch)
18511    return 0;
18512  else
18513    return 1;
18514}
18515
18516
18517_ACEOF
18518if ac_fn_c_try_run "$LINENO"; then :
18519
18520    # Program compiled and ran, so get version by giving an argument,
18521    # which will tell the program to print the output.
18522    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18523
18524    # If the versions all match up, indicate success.
18525
18526  # Used to indicate true or false condition
18527  ax_compare_version=false
18528
18529  # Convert the two version strings to be compared into a format that
18530  # allows a simple string comparison.  The end result is that a version
18531  # string of the form 1.12.5-r617 will be converted to the form
18532  # 0001001200050617.  In other words, each number is zero padded to four
18533  # digits, and non digits are removed.
18534
18535  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18536                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18537                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18538                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18539                     -e 's/[^0-9]//g'`
18540
18541
18542  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18543                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18544                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18545                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18546                     -e 's/[^0-9]//g'`
18547
18548
18549
18550
18551    # Pad zeros at end of numbers to make same length.
18552    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18553    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18554    ax_compare_version_A="$ax_compare_version_tmp_A"
18555
18556    # Check for equality or inequality as necessary.
18557
18558      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18559
18560
18561
18562
18563    if test "$ax_compare_version" = "true" ; then
18564
18565      ax_path_bdb_env_confirm_lib_ok=yes
18566
18567      fi
18568
18569
18570fi
18571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18572  conftest.$ac_objext conftest.beam conftest.$ac_ext
18573fi
18574
18575
18576    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18577
18578
18579    fi
18580
18581    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18582      # try format "db-X.Y"
18583      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
18584
18585    ax_path_bdb_env_confirm_lib_ok=no
18586
18587    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18588  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18589
18590  # Compile and run a program that compares the version defined in
18591  # the header file with a version defined in the library function
18592  # db_version.
18593  if test "$cross_compiling" = yes; then :
18594  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18596as_fn_error "cannot run test program while cross compiling
18597See \`config.log' for more details." "$LINENO" 5; }
18598else
18599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601
18602
18603#include <stdio.h>
18604#include <db.h>
18605int main(int argc,char **argv)
18606{
18607  int major,minor,patch;
18608  (void) argv;
18609  db_version(&major,&minor,&patch);
18610  if (argc > 1)
18611    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18612  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18613      DB_VERSION_PATCH == patch)
18614    return 0;
18615  else
18616    return 1;
18617}
18618
18619
18620_ACEOF
18621if ac_fn_c_try_run "$LINENO"; then :
18622
18623    # Program compiled and ran, so get version by giving an argument,
18624    # which will tell the program to print the output.
18625    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18626
18627    # If the versions all match up, indicate success.
18628
18629  # Used to indicate true or false condition
18630  ax_compare_version=false
18631
18632  # Convert the two version strings to be compared into a format that
18633  # allows a simple string comparison.  The end result is that a version
18634  # string of the form 1.12.5-r617 will be converted to the form
18635  # 0001001200050617.  In other words, each number is zero padded to four
18636  # digits, and non digits are removed.
18637
18638  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18639                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18640                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18641                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18642                     -e 's/[^0-9]//g'`
18643
18644
18645  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18646                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18647                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18648                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18649                     -e 's/[^0-9]//g'`
18650
18651
18652
18653
18654    # Pad zeros at end of numbers to make same length.
18655    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18656    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18657    ax_compare_version_A="$ax_compare_version_tmp_A"
18658
18659    # Check for equality or inequality as necessary.
18660
18661      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18662
18663
18664
18665
18666    if test "$ax_compare_version" = "true" ; then
18667
18668      ax_path_bdb_env_confirm_lib_ok=yes
18669
18670      fi
18671
18672
18673fi
18674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18675  conftest.$ac_objext conftest.beam conftest.$ac_ext
18676fi
18677
18678
18679    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18680
18681
18682    fi
18683
18684    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18685      # try format "dbX.Y"
18686      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
18687
18688    ax_path_bdb_env_confirm_lib_ok=no
18689
18690    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18691  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18692
18693  # Compile and run a program that compares the version defined in
18694  # the header file with a version defined in the library function
18695  # db_version.
18696  if test "$cross_compiling" = yes; then :
18697  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18699as_fn_error "cannot run test program while cross compiling
18700See \`config.log' for more details." "$LINENO" 5; }
18701else
18702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704
18705
18706#include <stdio.h>
18707#include <db.h>
18708int main(int argc,char **argv)
18709{
18710  int major,minor,patch;
18711  (void) argv;
18712  db_version(&major,&minor,&patch);
18713  if (argc > 1)
18714    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18715  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18716      DB_VERSION_PATCH == patch)
18717    return 0;
18718  else
18719    return 1;
18720}
18721
18722
18723_ACEOF
18724if ac_fn_c_try_run "$LINENO"; then :
18725
18726    # Program compiled and ran, so get version by giving an argument,
18727    # which will tell the program to print the output.
18728    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18729
18730    # If the versions all match up, indicate success.
18731
18732  # Used to indicate true or false condition
18733  ax_compare_version=false
18734
18735  # Convert the two version strings to be compared into a format that
18736  # allows a simple string comparison.  The end result is that a version
18737  # string of the form 1.12.5-r617 will be converted to the form
18738  # 0001001200050617.  In other words, each number is zero padded to four
18739  # digits, and non digits are removed.
18740
18741  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18742                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18743                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18744                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18745                     -e 's/[^0-9]//g'`
18746
18747
18748  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18749                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18750                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18751                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18752                     -e 's/[^0-9]//g'`
18753
18754
18755
18756
18757    # Pad zeros at end of numbers to make same length.
18758    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18759    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18760    ax_compare_version_A="$ax_compare_version_tmp_A"
18761
18762    # Check for equality or inequality as necessary.
18763
18764      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18765
18766
18767
18768
18769    if test "$ax_compare_version" = "true" ; then
18770
18771      ax_path_bdb_env_confirm_lib_ok=yes
18772
18773      fi
18774
18775
18776fi
18777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18778  conftest.$ac_objext conftest.beam conftest.$ac_ext
18779fi
18780
18781
18782    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18783
18784
18785    fi
18786
18787    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18788      # try format "dbXY"
18789      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
18790
18791    ax_path_bdb_env_confirm_lib_ok=no
18792
18793    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18794  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18795
18796  # Compile and run a program that compares the version defined in
18797  # the header file with a version defined in the library function
18798  # db_version.
18799  if test "$cross_compiling" = yes; then :
18800  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18802as_fn_error "cannot run test program while cross compiling
18803See \`config.log' for more details." "$LINENO" 5; }
18804else
18805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806/* end confdefs.h.  */
18807
18808
18809#include <stdio.h>
18810#include <db.h>
18811int main(int argc,char **argv)
18812{
18813  int major,minor,patch;
18814  (void) argv;
18815  db_version(&major,&minor,&patch);
18816  if (argc > 1)
18817    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18818  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18819      DB_VERSION_PATCH == patch)
18820    return 0;
18821  else
18822    return 1;
18823}
18824
18825
18826_ACEOF
18827if ac_fn_c_try_run "$LINENO"; then :
18828
18829    # Program compiled and ran, so get version by giving an argument,
18830    # which will tell the program to print the output.
18831    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18832
18833    # If the versions all match up, indicate success.
18834
18835  # Used to indicate true or false condition
18836  ax_compare_version=false
18837
18838  # Convert the two version strings to be compared into a format that
18839  # allows a simple string comparison.  The end result is that a version
18840  # string of the form 1.12.5-r617 will be converted to the form
18841  # 0001001200050617.  In other words, each number is zero padded to four
18842  # digits, and non digits are removed.
18843
18844  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18845                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18846                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18847                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18848                     -e 's/[^0-9]//g'`
18849
18850
18851  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18852                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18853                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18854                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18855                     -e 's/[^0-9]//g'`
18856
18857
18858
18859
18860    # Pad zeros at end of numbers to make same length.
18861    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18862    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18863    ax_compare_version_A="$ax_compare_version_tmp_A"
18864
18865    # Check for equality or inequality as necessary.
18866
18867      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18868
18869
18870
18871
18872    if test "$ax_compare_version" = "true" ; then
18873
18874      ax_path_bdb_env_confirm_lib_ok=yes
18875
18876      fi
18877
18878
18879fi
18880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18881  conftest.$ac_objext conftest.beam conftest.$ac_ext
18882fi
18883
18884
18885    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18886
18887
18888    fi
18889
18890    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18891      # try format "db-X"
18892      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
18893
18894    ax_path_bdb_env_confirm_lib_ok=no
18895
18896    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
18897  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
18898
18899  # Compile and run a program that compares the version defined in
18900  # the header file with a version defined in the library function
18901  # db_version.
18902  if test "$cross_compiling" = yes; then :
18903  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18905as_fn_error "cannot run test program while cross compiling
18906See \`config.log' for more details." "$LINENO" 5; }
18907else
18908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909/* end confdefs.h.  */
18910
18911
18912#include <stdio.h>
18913#include <db.h>
18914int main(int argc,char **argv)
18915{
18916  int major,minor,patch;
18917  (void) argv;
18918  db_version(&major,&minor,&patch);
18919  if (argc > 1)
18920    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
18921  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
18922      DB_VERSION_PATCH == patch)
18923    return 0;
18924  else
18925    return 1;
18926}
18927
18928
18929_ACEOF
18930if ac_fn_c_try_run "$LINENO"; then :
18931
18932    # Program compiled and ran, so get version by giving an argument,
18933    # which will tell the program to print the output.
18934    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
18935
18936    # If the versions all match up, indicate success.
18937
18938  # Used to indicate true or false condition
18939  ax_compare_version=false
18940
18941  # Convert the two version strings to be compared into a format that
18942  # allows a simple string comparison.  The end result is that a version
18943  # string of the form 1.12.5-r617 will be converted to the form
18944  # 0001001200050617.  In other words, each number is zero padded to four
18945  # digits, and non digits are removed.
18946
18947  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18948                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18949                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18950                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18951                     -e 's/[^0-9]//g'`
18952
18953
18954  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18955                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18956                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18957                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18958                     -e 's/[^0-9]//g'`
18959
18960
18961
18962
18963    # Pad zeros at end of numbers to make same length.
18964    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
18965    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
18966    ax_compare_version_A="$ax_compare_version_tmp_A"
18967
18968    # Check for equality or inequality as necessary.
18969
18970      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
18971
18972
18973
18974
18975    if test "$ax_compare_version" = "true" ; then
18976
18977      ax_path_bdb_env_confirm_lib_ok=yes
18978
18979      fi
18980
18981
18982fi
18983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18984  conftest.$ac_objext conftest.beam conftest.$ac_ext
18985fi
18986
18987
18988    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
18989
18990
18991    fi
18992
18993    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
18994      # try format "dbX"
18995      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
18996
18997    ax_path_bdb_env_confirm_lib_ok=no
18998
18999    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
19000  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
19001
19002  # Compile and run a program that compares the version defined in
19003  # the header file with a version defined in the library function
19004  # db_version.
19005  if test "$cross_compiling" = yes; then :
19006  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19008as_fn_error "cannot run test program while cross compiling
19009See \`config.log' for more details." "$LINENO" 5; }
19010else
19011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012/* end confdefs.h.  */
19013
19014
19015#include <stdio.h>
19016#include <db.h>
19017int main(int argc,char **argv)
19018{
19019  int major,minor,patch;
19020  (void) argv;
19021  db_version(&major,&minor,&patch);
19022  if (argc > 1)
19023    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19024  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19025      DB_VERSION_PATCH == patch)
19026    return 0;
19027  else
19028    return 1;
19029}
19030
19031
19032_ACEOF
19033if ac_fn_c_try_run "$LINENO"; then :
19034
19035    # Program compiled and ran, so get version by giving an argument,
19036    # which will tell the program to print the output.
19037    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
19038
19039    # If the versions all match up, indicate success.
19040
19041  # Used to indicate true or false condition
19042  ax_compare_version=false
19043
19044  # Convert the two version strings to be compared into a format that
19045  # allows a simple string comparison.  The end result is that a version
19046  # string of the form 1.12.5-r617 will be converted to the form
19047  # 0001001200050617.  In other words, each number is zero padded to four
19048  # digits, and non digits are removed.
19049
19050  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19051                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19052                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19053                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19054                     -e 's/[^0-9]//g'`
19055
19056
19057  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19058                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19059                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19060                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19061                     -e 's/[^0-9]//g'`
19062
19063
19064
19065
19066    # Pad zeros at end of numbers to make same length.
19067    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
19068    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
19069    ax_compare_version_A="$ax_compare_version_tmp_A"
19070
19071    # Check for equality or inequality as necessary.
19072
19073      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
19074
19075
19076
19077
19078    if test "$ax_compare_version" = "true" ; then
19079
19080      ax_path_bdb_env_confirm_lib_ok=yes
19081
19082      fi
19083
19084
19085fi
19086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19087  conftest.$ac_objext conftest.beam conftest.$ac_ext
19088fi
19089
19090
19091    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
19092
19093
19094    fi
19095
19096        if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
19097      if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
19098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none required" >&5
19099$as_echo "none required" >&6; }
19100      else
19101        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
19102$as_echo "$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
19103      fi
19104      ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
19105      ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
19106      ax_path_bdb_env_get_version_ok=yes
19107    else
19108      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109$as_echo "no" >&6; }
19110    fi
19111
19112          fi
19113
19114
19115    if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
19116
19117
19118  # Used to indicate true or false condition
19119  ax_compare_version=false
19120
19121  # Convert the two version strings to be compared into a format that
19122  # allows a simple string comparison.  The end result is that a version
19123  # string of the form 1.12.5-r617 will be converted to the form
19124  # 0001001200050617.  In other words, each number is zero padded to four
19125  # digits, and non digits are removed.
19126
19127  ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19128                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19129                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19130                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19131                     -e 's/[^0-9]//g'`
19132
19133
19134  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19135                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19136                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19137                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19138                     -e 's/[^0-9]//g'`
19139
19140
19141    ax_compare_version=`echo "x$ax_compare_version_A
19142x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
19143
19144
19145
19146    if test "$ax_compare_version" = "true" ; then
19147
19148        # Found acceptable version in current environment.
19149        ax_path_bdb_no_options_ok=yes
19150        BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
19151        BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
19152
19153      fi
19154
19155
19156      fi
19157
19158
19159
19160    # Determine if we need to search /usr/local/BerkeleyDB*
19161    ax_path_bdb_no_options_DONE=no
19162    if test "xHIGHEST" = "xENVONLY" ; then
19163      ax_path_bdb_no_options_DONE=yes
19164    elif test "xHIGHEST" = "xENVFIRST" ; then
19165      ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
19166    fi
19167
19168    if test "$ax_path_bdb_no_options_DONE" = "no" ; then
19169      # Check for highest in /usr/local/BerkeleyDB*
19170
19171    ax_path_bdb_path_find_highest_ok=no
19172
19173    ax_path_bdb_path_find_highest_VERSION=''
19174
19175  ax_path_bdb_path_find_highest_DIR=''
19176
19177  # find highest verison in default install directory for Berkeley DB
19178
19179  for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
19180  do
19181
19182    ax_path_bdb_path_get_version_ok=no
19183
19184  # Indicate status of checking for Berkeley DB header.
19185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
19186$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... " >&6; }
19187  ax_path_bdb_path_get_version_got_header=no
19188  test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
19189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_got_header" >&5
19190$as_echo "$ax_path_bdb_path_get_version_got_header" >&6; }
19191
19192  # Indicate status of checking for Berkeley DB library.
19193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
19194$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... " >&6; }
19195
19196  ax_path_bdb_path_get_version_VERSION=''
19197
19198  if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
19199     test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
19200        ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
19201    CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
19202
19203    ax_path_bdb_path_get_version_save_LIBS="$LIBS"
19204    LIBS="$LIBS -ldb"
19205
19206    ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
19207    LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
19208
19209    # Compile and run a program that compares the version defined in
19210    # the header file with a version defined in the library function
19211    # db_version.
19212    if test "$cross_compiling" = yes; then :
19213  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19215as_fn_error "cannot run test program while cross compiling
19216See \`config.log' for more details." "$LINENO" 5; }
19217else
19218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219/* end confdefs.h.  */
19220
19221
19222#include <stdio.h>
19223#include <db.h>
19224int main(int argc,char **argv)
19225{
19226  int major,minor,patch;
19227  (void) argv;
19228  db_version(&major,&minor,&patch);
19229  if (argc > 1)
19230    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19231  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19232      DB_VERSION_PATCH == patch)
19233    return 0;
19234  else
19235    return 1;
19236}
19237
19238
19239_ACEOF
19240if ac_fn_c_try_run "$LINENO"; then :
19241
19242      # Program compiled and ran, so get version by adding argument.
19243      ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
19244      ax_path_bdb_path_get_version_ok=yes
19245
19246fi
19247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19248  conftest.$ac_objext conftest.beam conftest.$ac_ext
19249fi
19250
19251
19252        CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
19253    LIBS="$ax_path_bdb_path_get_version_save_LIBS"
19254    LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
19255  fi
19256
19257    if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
19258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_VERSION" >&5
19259$as_echo "$ax_path_bdb_path_get_version_VERSION" >&6; }
19260
19261
19262  # Used to indicate true or false condition
19263  ax_compare_version=false
19264
19265  # Convert the two version strings to be compared into a format that
19266  # allows a simple string comparison.  The end result is that a version
19267  # string of the form 1.12.5-r617 will be converted to the form
19268  # 0001001200050617.  In other words, each number is zero padded to four
19269  # digits, and non digits are removed.
19270
19271  ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19272                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19273                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19274                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19275                     -e 's/[^0-9]//g'`
19276
19277
19278  ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19279                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19280                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19281                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19282                     -e 's/[^0-9]//g'`
19283
19284
19285    ax_compare_version=`echo "x$ax_compare_version_A
19286x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
19287
19288
19289
19290    if test "$ax_compare_version" = "true" ; then
19291
19292        ax_path_bdb_path_find_highest_ok=yes
19293        ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
19294        ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
19295
19296      fi
19297
19298
19299  else
19300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301$as_echo "no" >&6; }
19302      fi
19303
19304  done
19305
19306
19307    if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
19308
19309        if test "$ax_path_bdb_no_options_ok" = "yes" ; then
19310        # If we already have an acceptable version use this if higher.
19311
19312  # Used to indicate true or false condition
19313  ax_compare_version=false
19314
19315  # Convert the two version strings to be compared into a format that
19316  # allows a simple string comparison.  The end result is that a version
19317  # string of the form 1.12.5-r617 will be converted to the form
19318  # 0001001200050617.  In other words, each number is zero padded to four
19319  # digits, and non digits are removed.
19320
19321  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19322                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19323                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19324                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19325                     -e 's/[^0-9]//g'`
19326
19327
19328  ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19329                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19330                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19331                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19332                     -e 's/[^0-9]//g'`
19333
19334
19335    ax_compare_version=`echo "x$ax_compare_version_A
19336x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
19337
19338
19339
19340    if test "$ax_compare_version" = "true" ; then
19341    :
19342      fi
19343
19344        else
19345          # Since we didn't have an acceptable version check if this one is.
19346
19347  # Used to indicate true or false condition
19348  ax_compare_version=false
19349
19350  # Convert the two version strings to be compared into a format that
19351  # allows a simple string comparison.  The end result is that a version
19352  # string of the form 1.12.5-r617 will be converted to the form
19353  # 0001001200050617.  In other words, each number is zero padded to four
19354  # digits, and non digits are removed.
19355
19356  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19357                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19358                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19359                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19360                     -e 's/[^0-9]//g'`
19361
19362
19363  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19364                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19365                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19366                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19367                     -e 's/[^0-9]//g'`
19368
19369
19370    ax_compare_version=`echo "x$ax_compare_version_A
19371x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
19372
19373
19374
19375    if test "$ax_compare_version" = "true" ; then
19376    :
19377      fi
19378
19379        fi
19380
19381      fi
19382
19383
19384
19385            if test "$ax_compare_version" = "true" ; then
19386        ax_path_bdb_no_options_ok=yes
19387        BDB_LIBS="-ldb"
19388	if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
19389	  BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
19390	  BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
19391	fi
19392        BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
19393      fi
19394    fi
19395  fi
19396
19397    if test "$ax_path_bdb_no_options_ok" = "yes" ; then
19398    { $as_echo "$as_me:${as_lineno-$LINENO}: using Berkeley DB version $BDB_VERSION" >&5
19399$as_echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
19400
19401$as_echo "#define HAVE_DB_H 1" >>confdefs.h
19402
19403
19404      ax_path_bdb_ok=yes
19405
19406  else
19407    { $as_echo "$as_me:${as_lineno-$LINENO}: no Berkeley DB version 4.1 or higher found" >&5
19408$as_echo "$as_me: no Berkeley DB version 4.1 or higher found" >&6;}
19409      fi
19410
19411   else
19412     # Set --with-bdb-dir option.
19413     ax_path_bdb_INC="$with_bdb_dir/include"
19414     ax_path_bdb_LIB="$with_bdb_dir/lib"
19415
19416          ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
19417     CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
19418
19419     ax_path_bdb_save_LDFLAGS=$LDFLAGS
19420     LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
19421
19422     # Check for specific header file db.h
19423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking db.h presence in $ax_path_bdb_INC" >&5
19424$as_echo_n "checking db.h presence in $ax_path_bdb_INC... " >&6; }
19425     if test -f "$ax_path_bdb_INC/db.h" ; then
19426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19427$as_echo "yes" >&6; }
19428       # Check for library
19429
19430    ax_path_bdb_no_options_ok=no
19431
19432  # Values to add to environment to use Berkeley DB.
19433  BDB_VERSION=''
19434  BDB_LIBS=''
19435  BDB_CPPFLAGS=''
19436  BDB_LDFLAGS=''
19437
19438  # Check cross compilation here.
19439  if test "x$cross_compiling" = "xyes" ; then
19440    # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
19441    # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
19442    # and extracts the version number from it.
19443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
19444$as_echo_n "checking for db.h... " >&6; }
19445
19446        ax_path_bdb_no_options_HEADER_VERSION=''
19447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448/* end confdefs.h.  */
19449
19450
19451#include <db.h>
19452AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
19453
19454
19455_ACEOF
19456if ac_fn_c_try_cpp "$LINENO"; then :
19457
19458      # Extract version from preprocessor output.
19459      ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
19460        | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
19461
19462fi
19463rm -f conftest.err conftest.$ac_ext
19464
19465    if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
19466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467$as_echo "no" >&6; }
19468    else
19469      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
19470$as_echo "$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
19471
19472      # Check that version is high enough.
19473
19474  # Used to indicate true or false condition
19475  ax_compare_version=false
19476
19477  # Convert the two version strings to be compared into a format that
19478  # allows a simple string comparison.  The end result is that a version
19479  # string of the form 1.12.5-r617 will be converted to the form
19480  # 0001001200050617.  In other words, each number is zero padded to four
19481  # digits, and non digits are removed.
19482
19483  ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19484                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19485                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19486                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19487                     -e 's/[^0-9]//g'`
19488
19489
19490  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19491                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19492                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19493                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19494                     -e 's/[^0-9]//g'`
19495
19496
19497    ax_compare_version=`echo "x$ax_compare_version_A
19498x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
19499
19500
19501
19502    if test "$ax_compare_version" = "true" ; then
19503
19504        # get major and minor version numbers
19505                ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
19506                ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
19507
19508		ax_path_bdb_no_options_save_LIBS="$LIBS"
19509
19510        # Check that we can link with the library.
19511        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_version" >&5
19512$as_echo_n "checking for library containing db_version... " >&6; }
19513if test "${ac_cv_search_db_version+set}" = set; then :
19514  $as_echo_n "(cached) " >&6
19515else
19516  ac_func_search_save_LIBS=$LIBS
19517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518/* end confdefs.h.  */
19519
19520/* Override any GCC internal prototype to avoid an error.
19521   Use char because int might match the return type of a GCC
19522   builtin and then its argument prototype would still apply.  */
19523#ifdef __cplusplus
19524extern "C"
19525#endif
19526char db_version ();
19527int
19528main ()
19529{
19530return db_version ();
19531  ;
19532  return 0;
19533}
19534_ACEOF
19535for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
19536  if test -z "$ac_lib"; then
19537    ac_res="none required"
19538  else
19539    ac_res=-l$ac_lib
19540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19541  fi
19542  if ac_fn_c_try_link "$LINENO"; then :
19543  ac_cv_search_db_version=$ac_res
19544fi
19545rm -f core conftest.err conftest.$ac_objext \
19546    conftest$ac_exeext
19547  if test "${ac_cv_search_db_version+set}" = set; then :
19548  break
19549fi
19550done
19551if test "${ac_cv_search_db_version+set}" = set; then :
19552
19553else
19554  ac_cv_search_db_version=no
19555fi
19556rm conftest.$ac_ext
19557LIBS=$ac_func_search_save_LIBS
19558fi
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_version" >&5
19560$as_echo "$ac_cv_search_db_version" >&6; }
19561ac_res=$ac_cv_search_db_version
19562if test "$ac_res" != no; then :
19563  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19564
19565            # Sucessfully found library.
19566            ax_path_bdb_no_options_ok=yes
19567            BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
19568
19569	    # Extract library from LIBS
19570	    ax_path_bdb_no_options_LEN=` \
19571              echo "x$ax_path_bdb_no_options_save_LIBS" \
19572              | awk '{print(length)}'`
19573            BDB_LIBS=`echo "x$LIBS " \
19574              | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
19575
19576fi
19577
19578
19579        	LIBS="$ax_path_bdb_no_options_save_LIBS"
19580
19581
19582      fi
19583
19584    fi
19585
19586      else
19587    # Not cross compiling.
19588    # Check version of Berkeley DB in the current environment.
19589
19590    ax_path_bdb_env_get_version_ok=no
19591
19592  ax_path_bdb_env_get_version_VERSION=''
19593  ax_path_bdb_env_get_version_LIBS=''
19594
19595
19596  # Indicate status of checking for Berkeley DB library.
19597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
19598$as_echo_n "checking for db.h... " >&6; }
19599
19600  # Compile and run a program that determines the Berkeley DB version
19601  # in the header file db.h.
19602  ax_path_bdb_env_get_version_HEADER_VERSION=''
19603  if test "$cross_compiling" = yes; then :
19604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19605$as_echo "no" >&6; }
19606else
19607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608/* end confdefs.h.  */
19609
19610
19611#include <stdio.h>
19612#include <db.h>
19613int main(int argc,char **argv)
19614{
19615  (void) argv;
19616  if (argc > 1)
19617    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19618  return 0;
19619}
19620
19621
19622_ACEOF
19623if ac_fn_c_try_run "$LINENO"; then :
19624
19625    # Program compiled and ran, so get version by adding an argument.
19626    ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
19627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
19628$as_echo "$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
19629
19630else
19631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632$as_echo "no" >&6; }
19633fi
19634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635  conftest.$ac_objext conftest.beam conftest.$ac_ext
19636fi
19637
19638
19639  # Have header version, so try to find corresponding library.
19640  # Looks for library names in the order:
19641  #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
19642  # and stops when it finds the first one that matches the version
19643  # of the header file.
19644  if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
19645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
19646$as_echo_n "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... " >&6; }
19647
19648
19649    # get major and minor version numbers
19650    ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
19651    ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
19652
19653    # see if it is already specified in LIBS
19654    ax_path_bdb_env_get_version_TEST_LIBNAME=''
19655
19656    ax_path_bdb_env_confirm_lib_ok=no
19657
19658    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
19659  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
19660
19661  # Compile and run a program that compares the version defined in
19662  # the header file with a version defined in the library function
19663  # db_version.
19664  if test "$cross_compiling" = yes; then :
19665  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19667as_fn_error "cannot run test program while cross compiling
19668See \`config.log' for more details." "$LINENO" 5; }
19669else
19670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671/* end confdefs.h.  */
19672
19673
19674#include <stdio.h>
19675#include <db.h>
19676int main(int argc,char **argv)
19677{
19678  int major,minor,patch;
19679  (void) argv;
19680  db_version(&major,&minor,&patch);
19681  if (argc > 1)
19682    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19683  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19684      DB_VERSION_PATCH == patch)
19685    return 0;
19686  else
19687    return 1;
19688}
19689
19690
19691_ACEOF
19692if ac_fn_c_try_run "$LINENO"; then :
19693
19694    # Program compiled and ran, so get version by giving an argument,
19695    # which will tell the program to print the output.
19696    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
19697
19698    # If the versions all match up, indicate success.
19699
19700  # Used to indicate true or false condition
19701  ax_compare_version=false
19702
19703  # Convert the two version strings to be compared into a format that
19704  # allows a simple string comparison.  The end result is that a version
19705  # string of the form 1.12.5-r617 will be converted to the form
19706  # 0001001200050617.  In other words, each number is zero padded to four
19707  # digits, and non digits are removed.
19708
19709  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19710                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19711                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19712                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19713                     -e 's/[^0-9]//g'`
19714
19715
19716  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19717                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19718                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19719                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19720                     -e 's/[^0-9]//g'`
19721
19722
19723
19724
19725    # Pad zeros at end of numbers to make same length.
19726    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
19727    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
19728    ax_compare_version_A="$ax_compare_version_tmp_A"
19729
19730    # Check for equality or inequality as necessary.
19731
19732      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
19733
19734
19735
19736
19737    if test "$ax_compare_version" = "true" ; then
19738
19739      ax_path_bdb_env_confirm_lib_ok=yes
19740
19741      fi
19742
19743
19744fi
19745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19746  conftest.$ac_objext conftest.beam conftest.$ac_ext
19747fi
19748
19749
19750    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
19751
19752
19753
19754    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
19755      # try format "db"
19756      ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
19757
19758    ax_path_bdb_env_confirm_lib_ok=no
19759
19760    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
19761  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
19762
19763  # Compile and run a program that compares the version defined in
19764  # the header file with a version defined in the library function
19765  # db_version.
19766  if test "$cross_compiling" = yes; then :
19767  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19769as_fn_error "cannot run test program while cross compiling
19770See \`config.log' for more details." "$LINENO" 5; }
19771else
19772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773/* end confdefs.h.  */
19774
19775
19776#include <stdio.h>
19777#include <db.h>
19778int main(int argc,char **argv)
19779{
19780  int major,minor,patch;
19781  (void) argv;
19782  db_version(&major,&minor,&patch);
19783  if (argc > 1)
19784    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19785  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19786      DB_VERSION_PATCH == patch)
19787    return 0;
19788  else
19789    return 1;
19790}
19791
19792
19793_ACEOF
19794if ac_fn_c_try_run "$LINENO"; then :
19795
19796    # Program compiled and ran, so get version by giving an argument,
19797    # which will tell the program to print the output.
19798    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
19799
19800    # If the versions all match up, indicate success.
19801
19802  # Used to indicate true or false condition
19803  ax_compare_version=false
19804
19805  # Convert the two version strings to be compared into a format that
19806  # allows a simple string comparison.  The end result is that a version
19807  # string of the form 1.12.5-r617 will be converted to the form
19808  # 0001001200050617.  In other words, each number is zero padded to four
19809  # digits, and non digits are removed.
19810
19811  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19812                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19813                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19814                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19815                     -e 's/[^0-9]//g'`
19816
19817
19818  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19819                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19820                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19821                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19822                     -e 's/[^0-9]//g'`
19823
19824
19825
19826
19827    # Pad zeros at end of numbers to make same length.
19828    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
19829    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
19830    ax_compare_version_A="$ax_compare_version_tmp_A"
19831
19832    # Check for equality or inequality as necessary.
19833
19834      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
19835
19836
19837
19838
19839    if test "$ax_compare_version" = "true" ; then
19840
19841      ax_path_bdb_env_confirm_lib_ok=yes
19842
19843      fi
19844
19845
19846fi
19847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19848  conftest.$ac_objext conftest.beam conftest.$ac_ext
19849fi
19850
19851
19852    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
19853
19854
19855    fi
19856
19857    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
19858      # try format "db-X.Y"
19859      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
19860
19861    ax_path_bdb_env_confirm_lib_ok=no
19862
19863    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
19864  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
19865
19866  # Compile and run a program that compares the version defined in
19867  # the header file with a version defined in the library function
19868  # db_version.
19869  if test "$cross_compiling" = yes; then :
19870  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19872as_fn_error "cannot run test program while cross compiling
19873See \`config.log' for more details." "$LINENO" 5; }
19874else
19875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19876/* end confdefs.h.  */
19877
19878
19879#include <stdio.h>
19880#include <db.h>
19881int main(int argc,char **argv)
19882{
19883  int major,minor,patch;
19884  (void) argv;
19885  db_version(&major,&minor,&patch);
19886  if (argc > 1)
19887    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19888  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19889      DB_VERSION_PATCH == patch)
19890    return 0;
19891  else
19892    return 1;
19893}
19894
19895
19896_ACEOF
19897if ac_fn_c_try_run "$LINENO"; then :
19898
19899    # Program compiled and ran, so get version by giving an argument,
19900    # which will tell the program to print the output.
19901    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
19902
19903    # If the versions all match up, indicate success.
19904
19905  # Used to indicate true or false condition
19906  ax_compare_version=false
19907
19908  # Convert the two version strings to be compared into a format that
19909  # allows a simple string comparison.  The end result is that a version
19910  # string of the form 1.12.5-r617 will be converted to the form
19911  # 0001001200050617.  In other words, each number is zero padded to four
19912  # digits, and non digits are removed.
19913
19914  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19915                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19916                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19917                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19918                     -e 's/[^0-9]//g'`
19919
19920
19921  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19922                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19923                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19924                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19925                     -e 's/[^0-9]//g'`
19926
19927
19928
19929
19930    # Pad zeros at end of numbers to make same length.
19931    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
19932    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
19933    ax_compare_version_A="$ax_compare_version_tmp_A"
19934
19935    # Check for equality or inequality as necessary.
19936
19937      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
19938
19939
19940
19941
19942    if test "$ax_compare_version" = "true" ; then
19943
19944      ax_path_bdb_env_confirm_lib_ok=yes
19945
19946      fi
19947
19948
19949fi
19950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19951  conftest.$ac_objext conftest.beam conftest.$ac_ext
19952fi
19953
19954
19955    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
19956
19957
19958    fi
19959
19960    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
19961      # try format "dbX.Y"
19962      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
19963
19964    ax_path_bdb_env_confirm_lib_ok=no
19965
19966    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
19967  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
19968
19969  # Compile and run a program that compares the version defined in
19970  # the header file with a version defined in the library function
19971  # db_version.
19972  if test "$cross_compiling" = yes; then :
19973  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19975as_fn_error "cannot run test program while cross compiling
19976See \`config.log' for more details." "$LINENO" 5; }
19977else
19978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979/* end confdefs.h.  */
19980
19981
19982#include <stdio.h>
19983#include <db.h>
19984int main(int argc,char **argv)
19985{
19986  int major,minor,patch;
19987  (void) argv;
19988  db_version(&major,&minor,&patch);
19989  if (argc > 1)
19990    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
19991  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
19992      DB_VERSION_PATCH == patch)
19993    return 0;
19994  else
19995    return 1;
19996}
19997
19998
19999_ACEOF
20000if ac_fn_c_try_run "$LINENO"; then :
20001
20002    # Program compiled and ran, so get version by giving an argument,
20003    # which will tell the program to print the output.
20004    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
20005
20006    # If the versions all match up, indicate success.
20007
20008  # Used to indicate true or false condition
20009  ax_compare_version=false
20010
20011  # Convert the two version strings to be compared into a format that
20012  # allows a simple string comparison.  The end result is that a version
20013  # string of the form 1.12.5-r617 will be converted to the form
20014  # 0001001200050617.  In other words, each number is zero padded to four
20015  # digits, and non digits are removed.
20016
20017  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20018                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20019                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20020                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20021                     -e 's/[^0-9]//g'`
20022
20023
20024  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20025                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20026                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20027                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20028                     -e 's/[^0-9]//g'`
20029
20030
20031
20032
20033    # Pad zeros at end of numbers to make same length.
20034    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
20035    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
20036    ax_compare_version_A="$ax_compare_version_tmp_A"
20037
20038    # Check for equality or inequality as necessary.
20039
20040      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
20041
20042
20043
20044
20045    if test "$ax_compare_version" = "true" ; then
20046
20047      ax_path_bdb_env_confirm_lib_ok=yes
20048
20049      fi
20050
20051
20052fi
20053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20054  conftest.$ac_objext conftest.beam conftest.$ac_ext
20055fi
20056
20057
20058    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
20059
20060
20061    fi
20062
20063    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
20064      # try format "dbXY"
20065      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
20066
20067    ax_path_bdb_env_confirm_lib_ok=no
20068
20069    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
20070  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
20071
20072  # Compile and run a program that compares the version defined in
20073  # the header file with a version defined in the library function
20074  # db_version.
20075  if test "$cross_compiling" = yes; then :
20076  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20078as_fn_error "cannot run test program while cross compiling
20079See \`config.log' for more details." "$LINENO" 5; }
20080else
20081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082/* end confdefs.h.  */
20083
20084
20085#include <stdio.h>
20086#include <db.h>
20087int main(int argc,char **argv)
20088{
20089  int major,minor,patch;
20090  (void) argv;
20091  db_version(&major,&minor,&patch);
20092  if (argc > 1)
20093    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20094  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
20095      DB_VERSION_PATCH == patch)
20096    return 0;
20097  else
20098    return 1;
20099}
20100
20101
20102_ACEOF
20103if ac_fn_c_try_run "$LINENO"; then :
20104
20105    # Program compiled and ran, so get version by giving an argument,
20106    # which will tell the program to print the output.
20107    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
20108
20109    # If the versions all match up, indicate success.
20110
20111  # Used to indicate true or false condition
20112  ax_compare_version=false
20113
20114  # Convert the two version strings to be compared into a format that
20115  # allows a simple string comparison.  The end result is that a version
20116  # string of the form 1.12.5-r617 will be converted to the form
20117  # 0001001200050617.  In other words, each number is zero padded to four
20118  # digits, and non digits are removed.
20119
20120  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20121                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20122                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20123                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20124                     -e 's/[^0-9]//g'`
20125
20126
20127  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20128                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20129                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20130                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20131                     -e 's/[^0-9]//g'`
20132
20133
20134
20135
20136    # Pad zeros at end of numbers to make same length.
20137    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
20138    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
20139    ax_compare_version_A="$ax_compare_version_tmp_A"
20140
20141    # Check for equality or inequality as necessary.
20142
20143      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
20144
20145
20146
20147
20148    if test "$ax_compare_version" = "true" ; then
20149
20150      ax_path_bdb_env_confirm_lib_ok=yes
20151
20152      fi
20153
20154
20155fi
20156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20157  conftest.$ac_objext conftest.beam conftest.$ac_ext
20158fi
20159
20160
20161    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
20162
20163
20164    fi
20165
20166    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
20167      # try format "db-X"
20168      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
20169
20170    ax_path_bdb_env_confirm_lib_ok=no
20171
20172    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
20173  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
20174
20175  # Compile and run a program that compares the version defined in
20176  # the header file with a version defined in the library function
20177  # db_version.
20178  if test "$cross_compiling" = yes; then :
20179  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20181as_fn_error "cannot run test program while cross compiling
20182See \`config.log' for more details." "$LINENO" 5; }
20183else
20184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185/* end confdefs.h.  */
20186
20187
20188#include <stdio.h>
20189#include <db.h>
20190int main(int argc,char **argv)
20191{
20192  int major,minor,patch;
20193  (void) argv;
20194  db_version(&major,&minor,&patch);
20195  if (argc > 1)
20196    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20197  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
20198      DB_VERSION_PATCH == patch)
20199    return 0;
20200  else
20201    return 1;
20202}
20203
20204
20205_ACEOF
20206if ac_fn_c_try_run "$LINENO"; then :
20207
20208    # Program compiled and ran, so get version by giving an argument,
20209    # which will tell the program to print the output.
20210    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
20211
20212    # If the versions all match up, indicate success.
20213
20214  # Used to indicate true or false condition
20215  ax_compare_version=false
20216
20217  # Convert the two version strings to be compared into a format that
20218  # allows a simple string comparison.  The end result is that a version
20219  # string of the form 1.12.5-r617 will be converted to the form
20220  # 0001001200050617.  In other words, each number is zero padded to four
20221  # digits, and non digits are removed.
20222
20223  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20224                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20225                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20226                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20227                     -e 's/[^0-9]//g'`
20228
20229
20230  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20231                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20232                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20233                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20234                     -e 's/[^0-9]//g'`
20235
20236
20237
20238
20239    # Pad zeros at end of numbers to make same length.
20240    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
20241    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
20242    ax_compare_version_A="$ax_compare_version_tmp_A"
20243
20244    # Check for equality or inequality as necessary.
20245
20246      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
20247
20248
20249
20250
20251    if test "$ax_compare_version" = "true" ; then
20252
20253      ax_path_bdb_env_confirm_lib_ok=yes
20254
20255      fi
20256
20257
20258fi
20259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20260  conftest.$ac_objext conftest.beam conftest.$ac_ext
20261fi
20262
20263
20264    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
20265
20266
20267    fi
20268
20269    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
20270      # try format "dbX"
20271      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
20272
20273    ax_path_bdb_env_confirm_lib_ok=no
20274
20275    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
20276  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
20277
20278  # Compile and run a program that compares the version defined in
20279  # the header file with a version defined in the library function
20280  # db_version.
20281  if test "$cross_compiling" = yes; then :
20282  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20284as_fn_error "cannot run test program while cross compiling
20285See \`config.log' for more details." "$LINENO" 5; }
20286else
20287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289
20290
20291#include <stdio.h>
20292#include <db.h>
20293int main(int argc,char **argv)
20294{
20295  int major,minor,patch;
20296  (void) argv;
20297  db_version(&major,&minor,&patch);
20298  if (argc > 1)
20299    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20300  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
20301      DB_VERSION_PATCH == patch)
20302    return 0;
20303  else
20304    return 1;
20305}
20306
20307
20308_ACEOF
20309if ac_fn_c_try_run "$LINENO"; then :
20310
20311    # Program compiled and ran, so get version by giving an argument,
20312    # which will tell the program to print the output.
20313    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
20314
20315    # If the versions all match up, indicate success.
20316
20317  # Used to indicate true or false condition
20318  ax_compare_version=false
20319
20320  # Convert the two version strings to be compared into a format that
20321  # allows a simple string comparison.  The end result is that a version
20322  # string of the form 1.12.5-r617 will be converted to the form
20323  # 0001001200050617.  In other words, each number is zero padded to four
20324  # digits, and non digits are removed.
20325
20326  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20327                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20328                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20329                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20330                     -e 's/[^0-9]//g'`
20331
20332
20333  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20334                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20335                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20336                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20337                     -e 's/[^0-9]//g'`
20338
20339
20340
20341
20342    # Pad zeros at end of numbers to make same length.
20343    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
20344    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
20345    ax_compare_version_A="$ax_compare_version_tmp_A"
20346
20347    # Check for equality or inequality as necessary.
20348
20349      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
20350
20351
20352
20353
20354    if test "$ax_compare_version" = "true" ; then
20355
20356      ax_path_bdb_env_confirm_lib_ok=yes
20357
20358      fi
20359
20360
20361fi
20362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20363  conftest.$ac_objext conftest.beam conftest.$ac_ext
20364fi
20365
20366
20367    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
20368
20369
20370    fi
20371
20372        if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
20373      if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
20374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none required" >&5
20375$as_echo "none required" >&6; }
20376      else
20377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
20378$as_echo "$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
20379      fi
20380      ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
20381      ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
20382      ax_path_bdb_env_get_version_ok=yes
20383    else
20384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385$as_echo "no" >&6; }
20386    fi
20387
20388          fi
20389
20390
20391    if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
20392
20393
20394  # Used to indicate true or false condition
20395  ax_compare_version=false
20396
20397  # Convert the two version strings to be compared into a format that
20398  # allows a simple string comparison.  The end result is that a version
20399  # string of the form 1.12.5-r617 will be converted to the form
20400  # 0001001200050617.  In other words, each number is zero padded to four
20401  # digits, and non digits are removed.
20402
20403  ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20404                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20405                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20406                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20407                     -e 's/[^0-9]//g'`
20408
20409
20410  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20411                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20412                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20413                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20414                     -e 's/[^0-9]//g'`
20415
20416
20417    ax_compare_version=`echo "x$ax_compare_version_A
20418x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
20419
20420
20421
20422    if test "$ax_compare_version" = "true" ; then
20423
20424        # Found acceptable version in current environment.
20425        ax_path_bdb_no_options_ok=yes
20426        BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
20427        BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
20428
20429      fi
20430
20431
20432      fi
20433
20434
20435
20436    # Determine if we need to search /usr/local/BerkeleyDB*
20437    ax_path_bdb_no_options_DONE=no
20438    if test "xENVONLY" = "xENVONLY" ; then
20439      ax_path_bdb_no_options_DONE=yes
20440    elif test "xENVONLY" = "xENVFIRST" ; then
20441      ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
20442    fi
20443
20444    if test "$ax_path_bdb_no_options_DONE" = "no" ; then
20445      # Check for highest in /usr/local/BerkeleyDB*
20446
20447    ax_path_bdb_path_find_highest_ok=no
20448
20449    ax_path_bdb_path_find_highest_VERSION=''
20450
20451  ax_path_bdb_path_find_highest_DIR=''
20452
20453  # find highest verison in default install directory for Berkeley DB
20454
20455  for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
20456  do
20457
20458    ax_path_bdb_path_get_version_ok=no
20459
20460  # Indicate status of checking for Berkeley DB header.
20461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
20462$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... " >&6; }
20463  ax_path_bdb_path_get_version_got_header=no
20464  test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
20465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_got_header" >&5
20466$as_echo "$ax_path_bdb_path_get_version_got_header" >&6; }
20467
20468  # Indicate status of checking for Berkeley DB library.
20469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
20470$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... " >&6; }
20471
20472  ax_path_bdb_path_get_version_VERSION=''
20473
20474  if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
20475     test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
20476        ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
20477    CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
20478
20479    ax_path_bdb_path_get_version_save_LIBS="$LIBS"
20480    LIBS="$LIBS -ldb"
20481
20482    ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
20483    LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
20484
20485    # Compile and run a program that compares the version defined in
20486    # the header file with a version defined in the library function
20487    # db_version.
20488    if test "$cross_compiling" = yes; then :
20489  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20491as_fn_error "cannot run test program while cross compiling
20492See \`config.log' for more details." "$LINENO" 5; }
20493else
20494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495/* end confdefs.h.  */
20496
20497
20498#include <stdio.h>
20499#include <db.h>
20500int main(int argc,char **argv)
20501{
20502  int major,minor,patch;
20503  (void) argv;
20504  db_version(&major,&minor,&patch);
20505  if (argc > 1)
20506    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20507  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
20508      DB_VERSION_PATCH == patch)
20509    return 0;
20510  else
20511    return 1;
20512}
20513
20514
20515_ACEOF
20516if ac_fn_c_try_run "$LINENO"; then :
20517
20518      # Program compiled and ran, so get version by adding argument.
20519      ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
20520      ax_path_bdb_path_get_version_ok=yes
20521
20522fi
20523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20524  conftest.$ac_objext conftest.beam conftest.$ac_ext
20525fi
20526
20527
20528        CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
20529    LIBS="$ax_path_bdb_path_get_version_save_LIBS"
20530    LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
20531  fi
20532
20533    if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
20534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_VERSION" >&5
20535$as_echo "$ax_path_bdb_path_get_version_VERSION" >&6; }
20536
20537
20538  # Used to indicate true or false condition
20539  ax_compare_version=false
20540
20541  # Convert the two version strings to be compared into a format that
20542  # allows a simple string comparison.  The end result is that a version
20543  # string of the form 1.12.5-r617 will be converted to the form
20544  # 0001001200050617.  In other words, each number is zero padded to four
20545  # digits, and non digits are removed.
20546
20547  ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20548                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20549                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20550                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20551                     -e 's/[^0-9]//g'`
20552
20553
20554  ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20555                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20556                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20557                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20558                     -e 's/[^0-9]//g'`
20559
20560
20561    ax_compare_version=`echo "x$ax_compare_version_A
20562x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20563
20564
20565
20566    if test "$ax_compare_version" = "true" ; then
20567
20568        ax_path_bdb_path_find_highest_ok=yes
20569        ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
20570        ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
20571
20572      fi
20573
20574
20575  else
20576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20577$as_echo "no" >&6; }
20578      fi
20579
20580  done
20581
20582
20583    if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
20584
20585        if test "$ax_path_bdb_no_options_ok" = "yes" ; then
20586        # If we already have an acceptable version use this if higher.
20587
20588  # Used to indicate true or false condition
20589  ax_compare_version=false
20590
20591  # Convert the two version strings to be compared into a format that
20592  # allows a simple string comparison.  The end result is that a version
20593  # string of the form 1.12.5-r617 will be converted to the form
20594  # 0001001200050617.  In other words, each number is zero padded to four
20595  # digits, and non digits are removed.
20596
20597  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20598                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20599                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20600                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20601                     -e 's/[^0-9]//g'`
20602
20603
20604  ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20605                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20606                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20607                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20608                     -e 's/[^0-9]//g'`
20609
20610
20611    ax_compare_version=`echo "x$ax_compare_version_A
20612x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20613
20614
20615
20616    if test "$ax_compare_version" = "true" ; then
20617    :
20618      fi
20619
20620        else
20621          # Since we didn't have an acceptable version check if this one is.
20622
20623  # Used to indicate true or false condition
20624  ax_compare_version=false
20625
20626  # Convert the two version strings to be compared into a format that
20627  # allows a simple string comparison.  The end result is that a version
20628  # string of the form 1.12.5-r617 will be converted to the form
20629  # 0001001200050617.  In other words, each number is zero padded to four
20630  # digits, and non digits are removed.
20631
20632  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20633                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20634                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20635                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20636                     -e 's/[^0-9]//g'`
20637
20638
20639  ax_compare_version_B=`echo "4.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20640                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20641                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20642                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20643                     -e 's/[^0-9]//g'`
20644
20645
20646    ax_compare_version=`echo "x$ax_compare_version_A
20647x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
20648
20649
20650
20651    if test "$ax_compare_version" = "true" ; then
20652    :
20653      fi
20654
20655        fi
20656
20657      fi
20658
20659
20660
20661            if test "$ax_compare_version" = "true" ; then
20662        ax_path_bdb_no_options_ok=yes
20663        BDB_LIBS="-ldb"
20664	if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
20665	  BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
20666	  BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
20667	fi
20668        BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
20669      fi
20670    fi
20671  fi
20672
20673    if test "$ax_path_bdb_no_options_ok" = "yes" ; then
20674    { $as_echo "$as_me:${as_lineno-$LINENO}: using Berkeley DB version $BDB_VERSION" >&5
20675$as_echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
20676
20677$as_echo "#define HAVE_DB_H 1" >>confdefs.h
20678
20679
20680         ax_path_bdb_ok=yes
20681         BDB_CPPFLAGS="-I$ax_path_bdb_INC"
20682         BDB_LDFLAGS="-L$ax_path_bdb_LIB"
20683
20684  else
20685    { $as_echo "$as_me:${as_lineno-$LINENO}: no Berkeley DB version 4.1 or higher found" >&5
20686$as_echo "$as_me: no Berkeley DB version 4.1 or higher found" >&6;}
20687      fi
20688
20689     else
20690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691$as_echo "no" >&6; }
20692       { $as_echo "$as_me:${as_lineno-$LINENO}: no usable Berkeley DB not found" >&5
20693$as_echo "$as_me: no usable Berkeley DB not found" >&6;}
20694     fi
20695
20696          CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
20697     LDFLAGS="$ax_path_bdb_save_LDFLAGS"
20698
20699  fi
20700
20701    if test "$ax_path_bdb_ok" = "yes" ; then
20702    :
20703    else BDB4_DEPRECATED="yes"
20704  fi
20705
20706
20707
20708    ax_path_bdb_ok=no
20709
20710  # Add --with-bdb-dir option to configure.
20711
20712# Check whether --with-bdb-dir was given.
20713if test "${with_bdb_dir+set}" = set; then :
20714  withval=$with_bdb_dir;
20715fi
20716
20717
20718  # Check if --with-bdb-dir was specified.
20719  if test "x$with_bdb_dir" = "x" ; then
20720    # No option specified, so just search the system.
20721
20722    ax_path_bdb_no_options_ok=no
20723
20724  # Values to add to environment to use Berkeley DB.
20725  BDB_VERSION=''
20726  BDB_LIBS=''
20727  BDB_CPPFLAGS=''
20728  BDB_LDFLAGS=''
20729
20730  # Check cross compilation here.
20731  if test "x$cross_compiling" = "xyes" ; then
20732    # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
20733    # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
20734    # and extracts the version number from it.
20735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
20736$as_echo_n "checking for db.h... " >&6; }
20737
20738        ax_path_bdb_no_options_HEADER_VERSION=''
20739    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20740/* end confdefs.h.  */
20741
20742
20743#include <db.h>
20744AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
20745
20746
20747_ACEOF
20748if ac_fn_c_try_cpp "$LINENO"; then :
20749
20750      # Extract version from preprocessor output.
20751      ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
20752        | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
20753
20754fi
20755rm -f conftest.err conftest.$ac_ext
20756
20757    if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
20758      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759$as_echo "no" >&6; }
20760    else
20761      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
20762$as_echo "$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
20763
20764      # Check that version is high enough.
20765
20766  # Used to indicate true or false condition
20767  ax_compare_version=false
20768
20769  # Convert the two version strings to be compared into a format that
20770  # allows a simple string comparison.  The end result is that a version
20771  # string of the form 1.12.5-r617 will be converted to the form
20772  # 0001001200050617.  In other words, each number is zero padded to four
20773  # digits, and non digits are removed.
20774
20775  ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20776                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20777                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20778                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20779                     -e 's/[^0-9]//g'`
20780
20781
20782  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20783                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20784                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20785                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20786                     -e 's/[^0-9]//g'`
20787
20788
20789    ax_compare_version=`echo "x$ax_compare_version_A
20790x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
20791
20792
20793
20794    if test "$ax_compare_version" = "true" ; then
20795
20796        # get major and minor version numbers
20797                ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
20798                ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
20799
20800		ax_path_bdb_no_options_save_LIBS="$LIBS"
20801
20802        # Check that we can link with the library.
20803        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_version" >&5
20804$as_echo_n "checking for library containing db_version... " >&6; }
20805if test "${ac_cv_search_db_version+set}" = set; then :
20806  $as_echo_n "(cached) " >&6
20807else
20808  ac_func_search_save_LIBS=$LIBS
20809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810/* end confdefs.h.  */
20811
20812/* Override any GCC internal prototype to avoid an error.
20813   Use char because int might match the return type of a GCC
20814   builtin and then its argument prototype would still apply.  */
20815#ifdef __cplusplus
20816extern "C"
20817#endif
20818char db_version ();
20819int
20820main ()
20821{
20822return db_version ();
20823  ;
20824  return 0;
20825}
20826_ACEOF
20827for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
20828  if test -z "$ac_lib"; then
20829    ac_res="none required"
20830  else
20831    ac_res=-l$ac_lib
20832    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20833  fi
20834  if ac_fn_c_try_link "$LINENO"; then :
20835  ac_cv_search_db_version=$ac_res
20836fi
20837rm -f core conftest.err conftest.$ac_objext \
20838    conftest$ac_exeext
20839  if test "${ac_cv_search_db_version+set}" = set; then :
20840  break
20841fi
20842done
20843if test "${ac_cv_search_db_version+set}" = set; then :
20844
20845else
20846  ac_cv_search_db_version=no
20847fi
20848rm conftest.$ac_ext
20849LIBS=$ac_func_search_save_LIBS
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_version" >&5
20852$as_echo "$ac_cv_search_db_version" >&6; }
20853ac_res=$ac_cv_search_db_version
20854if test "$ac_res" != no; then :
20855  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20856
20857            # Sucessfully found library.
20858            ax_path_bdb_no_options_ok=yes
20859            BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
20860
20861	    # Extract library from LIBS
20862	    ax_path_bdb_no_options_LEN=` \
20863              echo "x$ax_path_bdb_no_options_save_LIBS" \
20864              | awk '{print(length)}'`
20865            BDB_LIBS=`echo "x$LIBS " \
20866              | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
20867
20868fi
20869
20870
20871        	LIBS="$ax_path_bdb_no_options_save_LIBS"
20872
20873
20874      fi
20875
20876    fi
20877
20878      else
20879    # Not cross compiling.
20880    # Check version of Berkeley DB in the current environment.
20881
20882    ax_path_bdb_env_get_version_ok=no
20883
20884  ax_path_bdb_env_get_version_VERSION=''
20885  ax_path_bdb_env_get_version_LIBS=''
20886
20887
20888  # Indicate status of checking for Berkeley DB library.
20889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
20890$as_echo_n "checking for db.h... " >&6; }
20891
20892  # Compile and run a program that determines the Berkeley DB version
20893  # in the header file db.h.
20894  ax_path_bdb_env_get_version_HEADER_VERSION=''
20895  if test "$cross_compiling" = yes; then :
20896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897$as_echo "no" >&6; }
20898else
20899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20900/* end confdefs.h.  */
20901
20902
20903#include <stdio.h>
20904#include <db.h>
20905int main(int argc,char **argv)
20906{
20907  (void) argv;
20908  if (argc > 1)
20909    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20910  return 0;
20911}
20912
20913
20914_ACEOF
20915if ac_fn_c_try_run "$LINENO"; then :
20916
20917    # Program compiled and ran, so get version by adding an argument.
20918    ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
20919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
20920$as_echo "$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
20921
20922else
20923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20924$as_echo "no" >&6; }
20925fi
20926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20927  conftest.$ac_objext conftest.beam conftest.$ac_ext
20928fi
20929
20930
20931  # Have header version, so try to find corresponding library.
20932  # Looks for library names in the order:
20933  #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
20934  # and stops when it finds the first one that matches the version
20935  # of the header file.
20936  if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
20937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
20938$as_echo_n "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... " >&6; }
20939
20940
20941    # get major and minor version numbers
20942    ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
20943    ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
20944
20945    # see if it is already specified in LIBS
20946    ax_path_bdb_env_get_version_TEST_LIBNAME=''
20947
20948    ax_path_bdb_env_confirm_lib_ok=no
20949
20950    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
20951  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
20952
20953  # Compile and run a program that compares the version defined in
20954  # the header file with a version defined in the library function
20955  # db_version.
20956  if test "$cross_compiling" = yes; then :
20957  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20959as_fn_error "cannot run test program while cross compiling
20960See \`config.log' for more details." "$LINENO" 5; }
20961else
20962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963/* end confdefs.h.  */
20964
20965
20966#include <stdio.h>
20967#include <db.h>
20968int main(int argc,char **argv)
20969{
20970  int major,minor,patch;
20971  (void) argv;
20972  db_version(&major,&minor,&patch);
20973  if (argc > 1)
20974    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
20975  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
20976      DB_VERSION_PATCH == patch)
20977    return 0;
20978  else
20979    return 1;
20980}
20981
20982
20983_ACEOF
20984if ac_fn_c_try_run "$LINENO"; then :
20985
20986    # Program compiled and ran, so get version by giving an argument,
20987    # which will tell the program to print the output.
20988    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
20989
20990    # If the versions all match up, indicate success.
20991
20992  # Used to indicate true or false condition
20993  ax_compare_version=false
20994
20995  # Convert the two version strings to be compared into a format that
20996  # allows a simple string comparison.  The end result is that a version
20997  # string of the form 1.12.5-r617 will be converted to the form
20998  # 0001001200050617.  In other words, each number is zero padded to four
20999  # digits, and non digits are removed.
21000
21001  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21002                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21003                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21004                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21005                     -e 's/[^0-9]//g'`
21006
21007
21008  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21009                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21010                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21011                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21012                     -e 's/[^0-9]//g'`
21013
21014
21015
21016
21017    # Pad zeros at end of numbers to make same length.
21018    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21019    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21020    ax_compare_version_A="$ax_compare_version_tmp_A"
21021
21022    # Check for equality or inequality as necessary.
21023
21024      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21025
21026
21027
21028
21029    if test "$ax_compare_version" = "true" ; then
21030
21031      ax_path_bdb_env_confirm_lib_ok=yes
21032
21033      fi
21034
21035
21036fi
21037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21038  conftest.$ac_objext conftest.beam conftest.$ac_ext
21039fi
21040
21041
21042    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21043
21044
21045
21046    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21047      # try format "db"
21048      ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
21049
21050    ax_path_bdb_env_confirm_lib_ok=no
21051
21052    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21053  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21054
21055  # Compile and run a program that compares the version defined in
21056  # the header file with a version defined in the library function
21057  # db_version.
21058  if test "$cross_compiling" = yes; then :
21059  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21061as_fn_error "cannot run test program while cross compiling
21062See \`config.log' for more details." "$LINENO" 5; }
21063else
21064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065/* end confdefs.h.  */
21066
21067
21068#include <stdio.h>
21069#include <db.h>
21070int main(int argc,char **argv)
21071{
21072  int major,minor,patch;
21073  (void) argv;
21074  db_version(&major,&minor,&patch);
21075  if (argc > 1)
21076    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21077  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21078      DB_VERSION_PATCH == patch)
21079    return 0;
21080  else
21081    return 1;
21082}
21083
21084
21085_ACEOF
21086if ac_fn_c_try_run "$LINENO"; then :
21087
21088    # Program compiled and ran, so get version by giving an argument,
21089    # which will tell the program to print the output.
21090    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21091
21092    # If the versions all match up, indicate success.
21093
21094  # Used to indicate true or false condition
21095  ax_compare_version=false
21096
21097  # Convert the two version strings to be compared into a format that
21098  # allows a simple string comparison.  The end result is that a version
21099  # string of the form 1.12.5-r617 will be converted to the form
21100  # 0001001200050617.  In other words, each number is zero padded to four
21101  # digits, and non digits are removed.
21102
21103  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21104                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21105                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21106                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21107                     -e 's/[^0-9]//g'`
21108
21109
21110  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21111                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21112                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21113                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21114                     -e 's/[^0-9]//g'`
21115
21116
21117
21118
21119    # Pad zeros at end of numbers to make same length.
21120    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21121    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21122    ax_compare_version_A="$ax_compare_version_tmp_A"
21123
21124    # Check for equality or inequality as necessary.
21125
21126      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21127
21128
21129
21130
21131    if test "$ax_compare_version" = "true" ; then
21132
21133      ax_path_bdb_env_confirm_lib_ok=yes
21134
21135      fi
21136
21137
21138fi
21139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21140  conftest.$ac_objext conftest.beam conftest.$ac_ext
21141fi
21142
21143
21144    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21145
21146
21147    fi
21148
21149    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21150      # try format "db-X.Y"
21151      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
21152
21153    ax_path_bdb_env_confirm_lib_ok=no
21154
21155    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21156  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21157
21158  # Compile and run a program that compares the version defined in
21159  # the header file with a version defined in the library function
21160  # db_version.
21161  if test "$cross_compiling" = yes; then :
21162  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21164as_fn_error "cannot run test program while cross compiling
21165See \`config.log' for more details." "$LINENO" 5; }
21166else
21167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168/* end confdefs.h.  */
21169
21170
21171#include <stdio.h>
21172#include <db.h>
21173int main(int argc,char **argv)
21174{
21175  int major,minor,patch;
21176  (void) argv;
21177  db_version(&major,&minor,&patch);
21178  if (argc > 1)
21179    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21180  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21181      DB_VERSION_PATCH == patch)
21182    return 0;
21183  else
21184    return 1;
21185}
21186
21187
21188_ACEOF
21189if ac_fn_c_try_run "$LINENO"; then :
21190
21191    # Program compiled and ran, so get version by giving an argument,
21192    # which will tell the program to print the output.
21193    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21194
21195    # If the versions all match up, indicate success.
21196
21197  # Used to indicate true or false condition
21198  ax_compare_version=false
21199
21200  # Convert the two version strings to be compared into a format that
21201  # allows a simple string comparison.  The end result is that a version
21202  # string of the form 1.12.5-r617 will be converted to the form
21203  # 0001001200050617.  In other words, each number is zero padded to four
21204  # digits, and non digits are removed.
21205
21206  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21207                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21208                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21209                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21210                     -e 's/[^0-9]//g'`
21211
21212
21213  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21214                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21215                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21216                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21217                     -e 's/[^0-9]//g'`
21218
21219
21220
21221
21222    # Pad zeros at end of numbers to make same length.
21223    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21224    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21225    ax_compare_version_A="$ax_compare_version_tmp_A"
21226
21227    # Check for equality or inequality as necessary.
21228
21229      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21230
21231
21232
21233
21234    if test "$ax_compare_version" = "true" ; then
21235
21236      ax_path_bdb_env_confirm_lib_ok=yes
21237
21238      fi
21239
21240
21241fi
21242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21243  conftest.$ac_objext conftest.beam conftest.$ac_ext
21244fi
21245
21246
21247    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21248
21249
21250    fi
21251
21252    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21253      # try format "dbX.Y"
21254      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
21255
21256    ax_path_bdb_env_confirm_lib_ok=no
21257
21258    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21259  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21260
21261  # Compile and run a program that compares the version defined in
21262  # the header file with a version defined in the library function
21263  # db_version.
21264  if test "$cross_compiling" = yes; then :
21265  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21267as_fn_error "cannot run test program while cross compiling
21268See \`config.log' for more details." "$LINENO" 5; }
21269else
21270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271/* end confdefs.h.  */
21272
21273
21274#include <stdio.h>
21275#include <db.h>
21276int main(int argc,char **argv)
21277{
21278  int major,minor,patch;
21279  (void) argv;
21280  db_version(&major,&minor,&patch);
21281  if (argc > 1)
21282    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21283  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21284      DB_VERSION_PATCH == patch)
21285    return 0;
21286  else
21287    return 1;
21288}
21289
21290
21291_ACEOF
21292if ac_fn_c_try_run "$LINENO"; then :
21293
21294    # Program compiled and ran, so get version by giving an argument,
21295    # which will tell the program to print the output.
21296    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21297
21298    # If the versions all match up, indicate success.
21299
21300  # Used to indicate true or false condition
21301  ax_compare_version=false
21302
21303  # Convert the two version strings to be compared into a format that
21304  # allows a simple string comparison.  The end result is that a version
21305  # string of the form 1.12.5-r617 will be converted to the form
21306  # 0001001200050617.  In other words, each number is zero padded to four
21307  # digits, and non digits are removed.
21308
21309  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21310                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21311                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21312                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21313                     -e 's/[^0-9]//g'`
21314
21315
21316  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21317                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21318                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21319                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21320                     -e 's/[^0-9]//g'`
21321
21322
21323
21324
21325    # Pad zeros at end of numbers to make same length.
21326    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21327    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21328    ax_compare_version_A="$ax_compare_version_tmp_A"
21329
21330    # Check for equality or inequality as necessary.
21331
21332      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21333
21334
21335
21336
21337    if test "$ax_compare_version" = "true" ; then
21338
21339      ax_path_bdb_env_confirm_lib_ok=yes
21340
21341      fi
21342
21343
21344fi
21345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21346  conftest.$ac_objext conftest.beam conftest.$ac_ext
21347fi
21348
21349
21350    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21351
21352
21353    fi
21354
21355    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21356      # try format "dbXY"
21357      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
21358
21359    ax_path_bdb_env_confirm_lib_ok=no
21360
21361    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21362  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21363
21364  # Compile and run a program that compares the version defined in
21365  # the header file with a version defined in the library function
21366  # db_version.
21367  if test "$cross_compiling" = yes; then :
21368  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21370as_fn_error "cannot run test program while cross compiling
21371See \`config.log' for more details." "$LINENO" 5; }
21372else
21373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374/* end confdefs.h.  */
21375
21376
21377#include <stdio.h>
21378#include <db.h>
21379int main(int argc,char **argv)
21380{
21381  int major,minor,patch;
21382  (void) argv;
21383  db_version(&major,&minor,&patch);
21384  if (argc > 1)
21385    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21386  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21387      DB_VERSION_PATCH == patch)
21388    return 0;
21389  else
21390    return 1;
21391}
21392
21393
21394_ACEOF
21395if ac_fn_c_try_run "$LINENO"; then :
21396
21397    # Program compiled and ran, so get version by giving an argument,
21398    # which will tell the program to print the output.
21399    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21400
21401    # If the versions all match up, indicate success.
21402
21403  # Used to indicate true or false condition
21404  ax_compare_version=false
21405
21406  # Convert the two version strings to be compared into a format that
21407  # allows a simple string comparison.  The end result is that a version
21408  # string of the form 1.12.5-r617 will be converted to the form
21409  # 0001001200050617.  In other words, each number is zero padded to four
21410  # digits, and non digits are removed.
21411
21412  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21413                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21414                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21415                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21416                     -e 's/[^0-9]//g'`
21417
21418
21419  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21420                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21421                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21422                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21423                     -e 's/[^0-9]//g'`
21424
21425
21426
21427
21428    # Pad zeros at end of numbers to make same length.
21429    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21430    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21431    ax_compare_version_A="$ax_compare_version_tmp_A"
21432
21433    # Check for equality or inequality as necessary.
21434
21435      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21436
21437
21438
21439
21440    if test "$ax_compare_version" = "true" ; then
21441
21442      ax_path_bdb_env_confirm_lib_ok=yes
21443
21444      fi
21445
21446
21447fi
21448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21449  conftest.$ac_objext conftest.beam conftest.$ac_ext
21450fi
21451
21452
21453    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21454
21455
21456    fi
21457
21458    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21459      # try format "db-X"
21460      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
21461
21462    ax_path_bdb_env_confirm_lib_ok=no
21463
21464    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21465  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21466
21467  # Compile and run a program that compares the version defined in
21468  # the header file with a version defined in the library function
21469  # db_version.
21470  if test "$cross_compiling" = yes; then :
21471  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21473as_fn_error "cannot run test program while cross compiling
21474See \`config.log' for more details." "$LINENO" 5; }
21475else
21476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477/* end confdefs.h.  */
21478
21479
21480#include <stdio.h>
21481#include <db.h>
21482int main(int argc,char **argv)
21483{
21484  int major,minor,patch;
21485  (void) argv;
21486  db_version(&major,&minor,&patch);
21487  if (argc > 1)
21488    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21489  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21490      DB_VERSION_PATCH == patch)
21491    return 0;
21492  else
21493    return 1;
21494}
21495
21496
21497_ACEOF
21498if ac_fn_c_try_run "$LINENO"; then :
21499
21500    # Program compiled and ran, so get version by giving an argument,
21501    # which will tell the program to print the output.
21502    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21503
21504    # If the versions all match up, indicate success.
21505
21506  # Used to indicate true or false condition
21507  ax_compare_version=false
21508
21509  # Convert the two version strings to be compared into a format that
21510  # allows a simple string comparison.  The end result is that a version
21511  # string of the form 1.12.5-r617 will be converted to the form
21512  # 0001001200050617.  In other words, each number is zero padded to four
21513  # digits, and non digits are removed.
21514
21515  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21516                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21517                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21518                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21519                     -e 's/[^0-9]//g'`
21520
21521
21522  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21523                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21524                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21525                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21526                     -e 's/[^0-9]//g'`
21527
21528
21529
21530
21531    # Pad zeros at end of numbers to make same length.
21532    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21533    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21534    ax_compare_version_A="$ax_compare_version_tmp_A"
21535
21536    # Check for equality or inequality as necessary.
21537
21538      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21539
21540
21541
21542
21543    if test "$ax_compare_version" = "true" ; then
21544
21545      ax_path_bdb_env_confirm_lib_ok=yes
21546
21547      fi
21548
21549
21550fi
21551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21552  conftest.$ac_objext conftest.beam conftest.$ac_ext
21553fi
21554
21555
21556    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21557
21558
21559    fi
21560
21561    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
21562      # try format "dbX"
21563      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
21564
21565    ax_path_bdb_env_confirm_lib_ok=no
21566
21567    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
21568  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
21569
21570  # Compile and run a program that compares the version defined in
21571  # the header file with a version defined in the library function
21572  # db_version.
21573  if test "$cross_compiling" = yes; then :
21574  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21576as_fn_error "cannot run test program while cross compiling
21577See \`config.log' for more details." "$LINENO" 5; }
21578else
21579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580/* end confdefs.h.  */
21581
21582
21583#include <stdio.h>
21584#include <db.h>
21585int main(int argc,char **argv)
21586{
21587  int major,minor,patch;
21588  (void) argv;
21589  db_version(&major,&minor,&patch);
21590  if (argc > 1)
21591    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21592  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21593      DB_VERSION_PATCH == patch)
21594    return 0;
21595  else
21596    return 1;
21597}
21598
21599
21600_ACEOF
21601if ac_fn_c_try_run "$LINENO"; then :
21602
21603    # Program compiled and ran, so get version by giving an argument,
21604    # which will tell the program to print the output.
21605    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
21606
21607    # If the versions all match up, indicate success.
21608
21609  # Used to indicate true or false condition
21610  ax_compare_version=false
21611
21612  # Convert the two version strings to be compared into a format that
21613  # allows a simple string comparison.  The end result is that a version
21614  # string of the form 1.12.5-r617 will be converted to the form
21615  # 0001001200050617.  In other words, each number is zero padded to four
21616  # digits, and non digits are removed.
21617
21618  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21619                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21620                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21621                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21622                     -e 's/[^0-9]//g'`
21623
21624
21625  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21626                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21627                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21628                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21629                     -e 's/[^0-9]//g'`
21630
21631
21632
21633
21634    # Pad zeros at end of numbers to make same length.
21635    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
21636    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
21637    ax_compare_version_A="$ax_compare_version_tmp_A"
21638
21639    # Check for equality or inequality as necessary.
21640
21641      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
21642
21643
21644
21645
21646    if test "$ax_compare_version" = "true" ; then
21647
21648      ax_path_bdb_env_confirm_lib_ok=yes
21649
21650      fi
21651
21652
21653fi
21654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21655  conftest.$ac_objext conftest.beam conftest.$ac_ext
21656fi
21657
21658
21659    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
21660
21661
21662    fi
21663
21664        if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
21665      if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
21666        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none required" >&5
21667$as_echo "none required" >&6; }
21668      else
21669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
21670$as_echo "$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
21671      fi
21672      ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
21673      ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
21674      ax_path_bdb_env_get_version_ok=yes
21675    else
21676      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677$as_echo "no" >&6; }
21678    fi
21679
21680          fi
21681
21682
21683    if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
21684
21685
21686  # Used to indicate true or false condition
21687  ax_compare_version=false
21688
21689  # Convert the two version strings to be compared into a format that
21690  # allows a simple string comparison.  The end result is that a version
21691  # string of the form 1.12.5-r617 will be converted to the form
21692  # 0001001200050617.  In other words, each number is zero padded to four
21693  # digits, and non digits are removed.
21694
21695  ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21696                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21697                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21698                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21699                     -e 's/[^0-9]//g'`
21700
21701
21702  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21703                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21704                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21705                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21706                     -e 's/[^0-9]//g'`
21707
21708
21709    ax_compare_version=`echo "x$ax_compare_version_A
21710x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
21711
21712
21713
21714    if test "$ax_compare_version" = "true" ; then
21715
21716        # Found acceptable version in current environment.
21717        ax_path_bdb_no_options_ok=yes
21718        BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
21719        BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
21720
21721      fi
21722
21723
21724      fi
21725
21726
21727
21728    # Determine if we need to search /usr/local/BerkeleyDB*
21729    ax_path_bdb_no_options_DONE=no
21730    if test "xHIGHEST" = "xENVONLY" ; then
21731      ax_path_bdb_no_options_DONE=yes
21732    elif test "xHIGHEST" = "xENVFIRST" ; then
21733      ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
21734    fi
21735
21736    if test "$ax_path_bdb_no_options_DONE" = "no" ; then
21737      # Check for highest in /usr/local/BerkeleyDB*
21738
21739    ax_path_bdb_path_find_highest_ok=no
21740
21741    ax_path_bdb_path_find_highest_VERSION=''
21742
21743  ax_path_bdb_path_find_highest_DIR=''
21744
21745  # find highest verison in default install directory for Berkeley DB
21746
21747  for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
21748  do
21749
21750    ax_path_bdb_path_get_version_ok=no
21751
21752  # Indicate status of checking for Berkeley DB header.
21753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
21754$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... " >&6; }
21755  ax_path_bdb_path_get_version_got_header=no
21756  test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
21757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_got_header" >&5
21758$as_echo "$ax_path_bdb_path_get_version_got_header" >&6; }
21759
21760  # Indicate status of checking for Berkeley DB library.
21761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
21762$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... " >&6; }
21763
21764  ax_path_bdb_path_get_version_VERSION=''
21765
21766  if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
21767     test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
21768        ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
21769    CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
21770
21771    ax_path_bdb_path_get_version_save_LIBS="$LIBS"
21772    LIBS="$LIBS -ldb"
21773
21774    ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
21775    LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
21776
21777    # Compile and run a program that compares the version defined in
21778    # the header file with a version defined in the library function
21779    # db_version.
21780    if test "$cross_compiling" = yes; then :
21781  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21783as_fn_error "cannot run test program while cross compiling
21784See \`config.log' for more details." "$LINENO" 5; }
21785else
21786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21787/* end confdefs.h.  */
21788
21789
21790#include <stdio.h>
21791#include <db.h>
21792int main(int argc,char **argv)
21793{
21794  int major,minor,patch;
21795  (void) argv;
21796  db_version(&major,&minor,&patch);
21797  if (argc > 1)
21798    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
21799  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
21800      DB_VERSION_PATCH == patch)
21801    return 0;
21802  else
21803    return 1;
21804}
21805
21806
21807_ACEOF
21808if ac_fn_c_try_run "$LINENO"; then :
21809
21810      # Program compiled and ran, so get version by adding argument.
21811      ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
21812      ax_path_bdb_path_get_version_ok=yes
21813
21814fi
21815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21816  conftest.$ac_objext conftest.beam conftest.$ac_ext
21817fi
21818
21819
21820        CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
21821    LIBS="$ax_path_bdb_path_get_version_save_LIBS"
21822    LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
21823  fi
21824
21825    if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
21826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_VERSION" >&5
21827$as_echo "$ax_path_bdb_path_get_version_VERSION" >&6; }
21828
21829
21830  # Used to indicate true or false condition
21831  ax_compare_version=false
21832
21833  # Convert the two version strings to be compared into a format that
21834  # allows a simple string comparison.  The end result is that a version
21835  # string of the form 1.12.5-r617 will be converted to the form
21836  # 0001001200050617.  In other words, each number is zero padded to four
21837  # digits, and non digits are removed.
21838
21839  ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21840                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21841                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21842                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21843                     -e 's/[^0-9]//g'`
21844
21845
21846  ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21847                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21848                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21849                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21850                     -e 's/[^0-9]//g'`
21851
21852
21853    ax_compare_version=`echo "x$ax_compare_version_A
21854x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21855
21856
21857
21858    if test "$ax_compare_version" = "true" ; then
21859
21860        ax_path_bdb_path_find_highest_ok=yes
21861        ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
21862        ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
21863
21864      fi
21865
21866
21867  else
21868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21869$as_echo "no" >&6; }
21870      fi
21871
21872  done
21873
21874
21875    if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
21876
21877        if test "$ax_path_bdb_no_options_ok" = "yes" ; then
21878        # If we already have an acceptable version use this if higher.
21879
21880  # Used to indicate true or false condition
21881  ax_compare_version=false
21882
21883  # Convert the two version strings to be compared into a format that
21884  # allows a simple string comparison.  The end result is that a version
21885  # string of the form 1.12.5-r617 will be converted to the form
21886  # 0001001200050617.  In other words, each number is zero padded to four
21887  # digits, and non digits are removed.
21888
21889  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21890                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21891                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21892                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21893                     -e 's/[^0-9]//g'`
21894
21895
21896  ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21897                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21898                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21899                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21900                     -e 's/[^0-9]//g'`
21901
21902
21903    ax_compare_version=`echo "x$ax_compare_version_A
21904x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21905
21906
21907
21908    if test "$ax_compare_version" = "true" ; then
21909    :
21910      fi
21911
21912        else
21913          # Since we didn't have an acceptable version check if this one is.
21914
21915  # Used to indicate true or false condition
21916  ax_compare_version=false
21917
21918  # Convert the two version strings to be compared into a format that
21919  # allows a simple string comparison.  The end result is that a version
21920  # string of the form 1.12.5-r617 will be converted to the form
21921  # 0001001200050617.  In other words, each number is zero padded to four
21922  # digits, and non digits are removed.
21923
21924  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21925                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21926                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21927                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21928                     -e 's/[^0-9]//g'`
21929
21930
21931  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21932                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21933                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21934                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21935                     -e 's/[^0-9]//g'`
21936
21937
21938    ax_compare_version=`echo "x$ax_compare_version_A
21939x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
21940
21941
21942
21943    if test "$ax_compare_version" = "true" ; then
21944    :
21945      fi
21946
21947        fi
21948
21949      fi
21950
21951
21952
21953            if test "$ax_compare_version" = "true" ; then
21954        ax_path_bdb_no_options_ok=yes
21955        BDB_LIBS="-ldb"
21956	if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
21957	  BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
21958	  BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
21959	fi
21960        BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
21961      fi
21962    fi
21963  fi
21964
21965    if test "$ax_path_bdb_no_options_ok" = "yes" ; then
21966    { $as_echo "$as_me:${as_lineno-$LINENO}: using Berkeley DB version $BDB_VERSION" >&5
21967$as_echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
21968
21969$as_echo "#define HAVE_DB_H 1" >>confdefs.h
21970
21971
21972      ax_path_bdb_ok=yes
21973
21974  else
21975    { $as_echo "$as_me:${as_lineno-$LINENO}: no Berkeley DB version 4 or higher found" >&5
21976$as_echo "$as_me: no Berkeley DB version 4 or higher found" >&6;}
21977      fi
21978
21979   else
21980     # Set --with-bdb-dir option.
21981     ax_path_bdb_INC="$with_bdb_dir/include"
21982     ax_path_bdb_LIB="$with_bdb_dir/lib"
21983
21984          ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
21985     CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
21986
21987     ax_path_bdb_save_LDFLAGS=$LDFLAGS
21988     LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
21989
21990     # Check for specific header file db.h
21991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking db.h presence in $ax_path_bdb_INC" >&5
21992$as_echo_n "checking db.h presence in $ax_path_bdb_INC... " >&6; }
21993     if test -f "$ax_path_bdb_INC/db.h" ; then
21994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21995$as_echo "yes" >&6; }
21996       # Check for library
21997
21998    ax_path_bdb_no_options_ok=no
21999
22000  # Values to add to environment to use Berkeley DB.
22001  BDB_VERSION=''
22002  BDB_LIBS=''
22003  BDB_CPPFLAGS=''
22004  BDB_LDFLAGS=''
22005
22006  # Check cross compilation here.
22007  if test "x$cross_compiling" = "xyes" ; then
22008    # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
22009    # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
22010    # and extracts the version number from it.
22011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
22012$as_echo_n "checking for db.h... " >&6; }
22013
22014        ax_path_bdb_no_options_HEADER_VERSION=''
22015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22016/* end confdefs.h.  */
22017
22018
22019#include <db.h>
22020AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
22021
22022
22023_ACEOF
22024if ac_fn_c_try_cpp "$LINENO"; then :
22025
22026      # Extract version from preprocessor output.
22027      ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
22028        | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
22029
22030fi
22031rm -f conftest.err conftest.$ac_ext
22032
22033    if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
22034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035$as_echo "no" >&6; }
22036    else
22037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
22038$as_echo "$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
22039
22040      # Check that version is high enough.
22041
22042  # Used to indicate true or false condition
22043  ax_compare_version=false
22044
22045  # Convert the two version strings to be compared into a format that
22046  # allows a simple string comparison.  The end result is that a version
22047  # string of the form 1.12.5-r617 will be converted to the form
22048  # 0001001200050617.  In other words, each number is zero padded to four
22049  # digits, and non digits are removed.
22050
22051  ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22052                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22053                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22054                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22055                     -e 's/[^0-9]//g'`
22056
22057
22058  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22059                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22060                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22061                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22062                     -e 's/[^0-9]//g'`
22063
22064
22065    ax_compare_version=`echo "x$ax_compare_version_A
22066x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22067
22068
22069
22070    if test "$ax_compare_version" = "true" ; then
22071
22072        # get major and minor version numbers
22073                ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
22074                ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
22075
22076		ax_path_bdb_no_options_save_LIBS="$LIBS"
22077
22078        # Check that we can link with the library.
22079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_version" >&5
22080$as_echo_n "checking for library containing db_version... " >&6; }
22081if test "${ac_cv_search_db_version+set}" = set; then :
22082  $as_echo_n "(cached) " >&6
22083else
22084  ac_func_search_save_LIBS=$LIBS
22085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086/* end confdefs.h.  */
22087
22088/* Override any GCC internal prototype to avoid an error.
22089   Use char because int might match the return type of a GCC
22090   builtin and then its argument prototype would still apply.  */
22091#ifdef __cplusplus
22092extern "C"
22093#endif
22094char db_version ();
22095int
22096main ()
22097{
22098return db_version ();
22099  ;
22100  return 0;
22101}
22102_ACEOF
22103for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
22104  if test -z "$ac_lib"; then
22105    ac_res="none required"
22106  else
22107    ac_res=-l$ac_lib
22108    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22109  fi
22110  if ac_fn_c_try_link "$LINENO"; then :
22111  ac_cv_search_db_version=$ac_res
22112fi
22113rm -f core conftest.err conftest.$ac_objext \
22114    conftest$ac_exeext
22115  if test "${ac_cv_search_db_version+set}" = set; then :
22116  break
22117fi
22118done
22119if test "${ac_cv_search_db_version+set}" = set; then :
22120
22121else
22122  ac_cv_search_db_version=no
22123fi
22124rm conftest.$ac_ext
22125LIBS=$ac_func_search_save_LIBS
22126fi
22127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_version" >&5
22128$as_echo "$ac_cv_search_db_version" >&6; }
22129ac_res=$ac_cv_search_db_version
22130if test "$ac_res" != no; then :
22131  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22132
22133            # Sucessfully found library.
22134            ax_path_bdb_no_options_ok=yes
22135            BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
22136
22137	    # Extract library from LIBS
22138	    ax_path_bdb_no_options_LEN=` \
22139              echo "x$ax_path_bdb_no_options_save_LIBS" \
22140              | awk '{print(length)}'`
22141            BDB_LIBS=`echo "x$LIBS " \
22142              | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
22143
22144fi
22145
22146
22147        	LIBS="$ax_path_bdb_no_options_save_LIBS"
22148
22149
22150      fi
22151
22152    fi
22153
22154      else
22155    # Not cross compiling.
22156    # Check version of Berkeley DB in the current environment.
22157
22158    ax_path_bdb_env_get_version_ok=no
22159
22160  ax_path_bdb_env_get_version_VERSION=''
22161  ax_path_bdb_env_get_version_LIBS=''
22162
22163
22164  # Indicate status of checking for Berkeley DB library.
22165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
22166$as_echo_n "checking for db.h... " >&6; }
22167
22168  # Compile and run a program that determines the Berkeley DB version
22169  # in the header file db.h.
22170  ax_path_bdb_env_get_version_HEADER_VERSION=''
22171  if test "$cross_compiling" = yes; then :
22172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22173$as_echo "no" >&6; }
22174else
22175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176/* end confdefs.h.  */
22177
22178
22179#include <stdio.h>
22180#include <db.h>
22181int main(int argc,char **argv)
22182{
22183  (void) argv;
22184  if (argc > 1)
22185    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22186  return 0;
22187}
22188
22189
22190_ACEOF
22191if ac_fn_c_try_run "$LINENO"; then :
22192
22193    # Program compiled and ran, so get version by adding an argument.
22194    ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
22195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
22196$as_echo "$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
22197
22198else
22199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22200$as_echo "no" >&6; }
22201fi
22202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22203  conftest.$ac_objext conftest.beam conftest.$ac_ext
22204fi
22205
22206
22207  # Have header version, so try to find corresponding library.
22208  # Looks for library names in the order:
22209  #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
22210  # and stops when it finds the first one that matches the version
22211  # of the header file.
22212  if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
22213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
22214$as_echo_n "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... " >&6; }
22215
22216
22217    # get major and minor version numbers
22218    ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
22219    ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
22220
22221    # see if it is already specified in LIBS
22222    ax_path_bdb_env_get_version_TEST_LIBNAME=''
22223
22224    ax_path_bdb_env_confirm_lib_ok=no
22225
22226    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22227  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22228
22229  # Compile and run a program that compares the version defined in
22230  # the header file with a version defined in the library function
22231  # db_version.
22232  if test "$cross_compiling" = yes; then :
22233  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22235as_fn_error "cannot run test program while cross compiling
22236See \`config.log' for more details." "$LINENO" 5; }
22237else
22238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239/* end confdefs.h.  */
22240
22241
22242#include <stdio.h>
22243#include <db.h>
22244int main(int argc,char **argv)
22245{
22246  int major,minor,patch;
22247  (void) argv;
22248  db_version(&major,&minor,&patch);
22249  if (argc > 1)
22250    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22251  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22252      DB_VERSION_PATCH == patch)
22253    return 0;
22254  else
22255    return 1;
22256}
22257
22258
22259_ACEOF
22260if ac_fn_c_try_run "$LINENO"; then :
22261
22262    # Program compiled and ran, so get version by giving an argument,
22263    # which will tell the program to print the output.
22264    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22265
22266    # If the versions all match up, indicate success.
22267
22268  # Used to indicate true or false condition
22269  ax_compare_version=false
22270
22271  # Convert the two version strings to be compared into a format that
22272  # allows a simple string comparison.  The end result is that a version
22273  # string of the form 1.12.5-r617 will be converted to the form
22274  # 0001001200050617.  In other words, each number is zero padded to four
22275  # digits, and non digits are removed.
22276
22277  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22278                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22279                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22280                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22281                     -e 's/[^0-9]//g'`
22282
22283
22284  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22285                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22286                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22287                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22288                     -e 's/[^0-9]//g'`
22289
22290
22291
22292
22293    # Pad zeros at end of numbers to make same length.
22294    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22295    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22296    ax_compare_version_A="$ax_compare_version_tmp_A"
22297
22298    # Check for equality or inequality as necessary.
22299
22300      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22301
22302
22303
22304
22305    if test "$ax_compare_version" = "true" ; then
22306
22307      ax_path_bdb_env_confirm_lib_ok=yes
22308
22309      fi
22310
22311
22312fi
22313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22314  conftest.$ac_objext conftest.beam conftest.$ac_ext
22315fi
22316
22317
22318    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22319
22320
22321
22322    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22323      # try format "db"
22324      ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
22325
22326    ax_path_bdb_env_confirm_lib_ok=no
22327
22328    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22329  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22330
22331  # Compile and run a program that compares the version defined in
22332  # the header file with a version defined in the library function
22333  # db_version.
22334  if test "$cross_compiling" = yes; then :
22335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22337as_fn_error "cannot run test program while cross compiling
22338See \`config.log' for more details." "$LINENO" 5; }
22339else
22340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341/* end confdefs.h.  */
22342
22343
22344#include <stdio.h>
22345#include <db.h>
22346int main(int argc,char **argv)
22347{
22348  int major,minor,patch;
22349  (void) argv;
22350  db_version(&major,&minor,&patch);
22351  if (argc > 1)
22352    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22353  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22354      DB_VERSION_PATCH == patch)
22355    return 0;
22356  else
22357    return 1;
22358}
22359
22360
22361_ACEOF
22362if ac_fn_c_try_run "$LINENO"; then :
22363
22364    # Program compiled and ran, so get version by giving an argument,
22365    # which will tell the program to print the output.
22366    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22367
22368    # If the versions all match up, indicate success.
22369
22370  # Used to indicate true or false condition
22371  ax_compare_version=false
22372
22373  # Convert the two version strings to be compared into a format that
22374  # allows a simple string comparison.  The end result is that a version
22375  # string of the form 1.12.5-r617 will be converted to the form
22376  # 0001001200050617.  In other words, each number is zero padded to four
22377  # digits, and non digits are removed.
22378
22379  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22380                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22381                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22382                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22383                     -e 's/[^0-9]//g'`
22384
22385
22386  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22387                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22388                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22389                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22390                     -e 's/[^0-9]//g'`
22391
22392
22393
22394
22395    # Pad zeros at end of numbers to make same length.
22396    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22397    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22398    ax_compare_version_A="$ax_compare_version_tmp_A"
22399
22400    # Check for equality or inequality as necessary.
22401
22402      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22403
22404
22405
22406
22407    if test "$ax_compare_version" = "true" ; then
22408
22409      ax_path_bdb_env_confirm_lib_ok=yes
22410
22411      fi
22412
22413
22414fi
22415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22416  conftest.$ac_objext conftest.beam conftest.$ac_ext
22417fi
22418
22419
22420    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22421
22422
22423    fi
22424
22425    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22426      # try format "db-X.Y"
22427      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
22428
22429    ax_path_bdb_env_confirm_lib_ok=no
22430
22431    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22432  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22433
22434  # Compile and run a program that compares the version defined in
22435  # the header file with a version defined in the library function
22436  # db_version.
22437  if test "$cross_compiling" = yes; then :
22438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22440as_fn_error "cannot run test program while cross compiling
22441See \`config.log' for more details." "$LINENO" 5; }
22442else
22443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444/* end confdefs.h.  */
22445
22446
22447#include <stdio.h>
22448#include <db.h>
22449int main(int argc,char **argv)
22450{
22451  int major,minor,patch;
22452  (void) argv;
22453  db_version(&major,&minor,&patch);
22454  if (argc > 1)
22455    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22456  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22457      DB_VERSION_PATCH == patch)
22458    return 0;
22459  else
22460    return 1;
22461}
22462
22463
22464_ACEOF
22465if ac_fn_c_try_run "$LINENO"; then :
22466
22467    # Program compiled and ran, so get version by giving an argument,
22468    # which will tell the program to print the output.
22469    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22470
22471    # If the versions all match up, indicate success.
22472
22473  # Used to indicate true or false condition
22474  ax_compare_version=false
22475
22476  # Convert the two version strings to be compared into a format that
22477  # allows a simple string comparison.  The end result is that a version
22478  # string of the form 1.12.5-r617 will be converted to the form
22479  # 0001001200050617.  In other words, each number is zero padded to four
22480  # digits, and non digits are removed.
22481
22482  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22483                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22484                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22485                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22486                     -e 's/[^0-9]//g'`
22487
22488
22489  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22490                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22491                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22492                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22493                     -e 's/[^0-9]//g'`
22494
22495
22496
22497
22498    # Pad zeros at end of numbers to make same length.
22499    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22500    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22501    ax_compare_version_A="$ax_compare_version_tmp_A"
22502
22503    # Check for equality or inequality as necessary.
22504
22505      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22506
22507
22508
22509
22510    if test "$ax_compare_version" = "true" ; then
22511
22512      ax_path_bdb_env_confirm_lib_ok=yes
22513
22514      fi
22515
22516
22517fi
22518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22519  conftest.$ac_objext conftest.beam conftest.$ac_ext
22520fi
22521
22522
22523    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22524
22525
22526    fi
22527
22528    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22529      # try format "dbX.Y"
22530      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
22531
22532    ax_path_bdb_env_confirm_lib_ok=no
22533
22534    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22535  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22536
22537  # Compile and run a program that compares the version defined in
22538  # the header file with a version defined in the library function
22539  # db_version.
22540  if test "$cross_compiling" = yes; then :
22541  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22543as_fn_error "cannot run test program while cross compiling
22544See \`config.log' for more details." "$LINENO" 5; }
22545else
22546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547/* end confdefs.h.  */
22548
22549
22550#include <stdio.h>
22551#include <db.h>
22552int main(int argc,char **argv)
22553{
22554  int major,minor,patch;
22555  (void) argv;
22556  db_version(&major,&minor,&patch);
22557  if (argc > 1)
22558    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22559  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22560      DB_VERSION_PATCH == patch)
22561    return 0;
22562  else
22563    return 1;
22564}
22565
22566
22567_ACEOF
22568if ac_fn_c_try_run "$LINENO"; then :
22569
22570    # Program compiled and ran, so get version by giving an argument,
22571    # which will tell the program to print the output.
22572    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22573
22574    # If the versions all match up, indicate success.
22575
22576  # Used to indicate true or false condition
22577  ax_compare_version=false
22578
22579  # Convert the two version strings to be compared into a format that
22580  # allows a simple string comparison.  The end result is that a version
22581  # string of the form 1.12.5-r617 will be converted to the form
22582  # 0001001200050617.  In other words, each number is zero padded to four
22583  # digits, and non digits are removed.
22584
22585  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22586                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22587                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22588                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22589                     -e 's/[^0-9]//g'`
22590
22591
22592  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22593                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22594                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22595                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22596                     -e 's/[^0-9]//g'`
22597
22598
22599
22600
22601    # Pad zeros at end of numbers to make same length.
22602    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22603    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22604    ax_compare_version_A="$ax_compare_version_tmp_A"
22605
22606    # Check for equality or inequality as necessary.
22607
22608      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22609
22610
22611
22612
22613    if test "$ax_compare_version" = "true" ; then
22614
22615      ax_path_bdb_env_confirm_lib_ok=yes
22616
22617      fi
22618
22619
22620fi
22621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22622  conftest.$ac_objext conftest.beam conftest.$ac_ext
22623fi
22624
22625
22626    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22627
22628
22629    fi
22630
22631    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22632      # try format "dbXY"
22633      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
22634
22635    ax_path_bdb_env_confirm_lib_ok=no
22636
22637    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22638  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22639
22640  # Compile and run a program that compares the version defined in
22641  # the header file with a version defined in the library function
22642  # db_version.
22643  if test "$cross_compiling" = yes; then :
22644  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22646as_fn_error "cannot run test program while cross compiling
22647See \`config.log' for more details." "$LINENO" 5; }
22648else
22649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650/* end confdefs.h.  */
22651
22652
22653#include <stdio.h>
22654#include <db.h>
22655int main(int argc,char **argv)
22656{
22657  int major,minor,patch;
22658  (void) argv;
22659  db_version(&major,&minor,&patch);
22660  if (argc > 1)
22661    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22662  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22663      DB_VERSION_PATCH == patch)
22664    return 0;
22665  else
22666    return 1;
22667}
22668
22669
22670_ACEOF
22671if ac_fn_c_try_run "$LINENO"; then :
22672
22673    # Program compiled and ran, so get version by giving an argument,
22674    # which will tell the program to print the output.
22675    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22676
22677    # If the versions all match up, indicate success.
22678
22679  # Used to indicate true or false condition
22680  ax_compare_version=false
22681
22682  # Convert the two version strings to be compared into a format that
22683  # allows a simple string comparison.  The end result is that a version
22684  # string of the form 1.12.5-r617 will be converted to the form
22685  # 0001001200050617.  In other words, each number is zero padded to four
22686  # digits, and non digits are removed.
22687
22688  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22689                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22690                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22691                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22692                     -e 's/[^0-9]//g'`
22693
22694
22695  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22696                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22697                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22698                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22699                     -e 's/[^0-9]//g'`
22700
22701
22702
22703
22704    # Pad zeros at end of numbers to make same length.
22705    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22706    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22707    ax_compare_version_A="$ax_compare_version_tmp_A"
22708
22709    # Check for equality or inequality as necessary.
22710
22711      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22712
22713
22714
22715
22716    if test "$ax_compare_version" = "true" ; then
22717
22718      ax_path_bdb_env_confirm_lib_ok=yes
22719
22720      fi
22721
22722
22723fi
22724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22725  conftest.$ac_objext conftest.beam conftest.$ac_ext
22726fi
22727
22728
22729    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22730
22731
22732    fi
22733
22734    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22735      # try format "db-X"
22736      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
22737
22738    ax_path_bdb_env_confirm_lib_ok=no
22739
22740    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22741  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22742
22743  # Compile and run a program that compares the version defined in
22744  # the header file with a version defined in the library function
22745  # db_version.
22746  if test "$cross_compiling" = yes; then :
22747  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22749as_fn_error "cannot run test program while cross compiling
22750See \`config.log' for more details." "$LINENO" 5; }
22751else
22752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753/* end confdefs.h.  */
22754
22755
22756#include <stdio.h>
22757#include <db.h>
22758int main(int argc,char **argv)
22759{
22760  int major,minor,patch;
22761  (void) argv;
22762  db_version(&major,&minor,&patch);
22763  if (argc > 1)
22764    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22765  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22766      DB_VERSION_PATCH == patch)
22767    return 0;
22768  else
22769    return 1;
22770}
22771
22772
22773_ACEOF
22774if ac_fn_c_try_run "$LINENO"; then :
22775
22776    # Program compiled and ran, so get version by giving an argument,
22777    # which will tell the program to print the output.
22778    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22779
22780    # If the versions all match up, indicate success.
22781
22782  # Used to indicate true or false condition
22783  ax_compare_version=false
22784
22785  # Convert the two version strings to be compared into a format that
22786  # allows a simple string comparison.  The end result is that a version
22787  # string of the form 1.12.5-r617 will be converted to the form
22788  # 0001001200050617.  In other words, each number is zero padded to four
22789  # digits, and non digits are removed.
22790
22791  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22792                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22793                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22794                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22795                     -e 's/[^0-9]//g'`
22796
22797
22798  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22799                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22800                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22801                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22802                     -e 's/[^0-9]//g'`
22803
22804
22805
22806
22807    # Pad zeros at end of numbers to make same length.
22808    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22809    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22810    ax_compare_version_A="$ax_compare_version_tmp_A"
22811
22812    # Check for equality or inequality as necessary.
22813
22814      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22815
22816
22817
22818
22819    if test "$ax_compare_version" = "true" ; then
22820
22821      ax_path_bdb_env_confirm_lib_ok=yes
22822
22823      fi
22824
22825
22826fi
22827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22828  conftest.$ac_objext conftest.beam conftest.$ac_ext
22829fi
22830
22831
22832    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22833
22834
22835    fi
22836
22837    if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
22838      # try format "dbX"
22839      ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
22840
22841    ax_path_bdb_env_confirm_lib_ok=no
22842
22843    ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
22844  LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
22845
22846  # Compile and run a program that compares the version defined in
22847  # the header file with a version defined in the library function
22848  # db_version.
22849  if test "$cross_compiling" = yes; then :
22850  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22852as_fn_error "cannot run test program while cross compiling
22853See \`config.log' for more details." "$LINENO" 5; }
22854else
22855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856/* end confdefs.h.  */
22857
22858
22859#include <stdio.h>
22860#include <db.h>
22861int main(int argc,char **argv)
22862{
22863  int major,minor,patch;
22864  (void) argv;
22865  db_version(&major,&minor,&patch);
22866  if (argc > 1)
22867    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
22868  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
22869      DB_VERSION_PATCH == patch)
22870    return 0;
22871  else
22872    return 1;
22873}
22874
22875
22876_ACEOF
22877if ac_fn_c_try_run "$LINENO"; then :
22878
22879    # Program compiled and ran, so get version by giving an argument,
22880    # which will tell the program to print the output.
22881    ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
22882
22883    # If the versions all match up, indicate success.
22884
22885  # Used to indicate true or false condition
22886  ax_compare_version=false
22887
22888  # Convert the two version strings to be compared into a format that
22889  # allows a simple string comparison.  The end result is that a version
22890  # string of the form 1.12.5-r617 will be converted to the form
22891  # 0001001200050617.  In other words, each number is zero padded to four
22892  # digits, and non digits are removed.
22893
22894  ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22895                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22896                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22897                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22898                     -e 's/[^0-9]//g'`
22899
22900
22901  ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22902                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22903                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22904                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22905                     -e 's/[^0-9]//g'`
22906
22907
22908
22909
22910    # Pad zeros at end of numbers to make same length.
22911    ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
22912    ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
22913    ax_compare_version_A="$ax_compare_version_tmp_A"
22914
22915    # Check for equality or inequality as necessary.
22916
22917      test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
22918
22919
22920
22921
22922    if test "$ax_compare_version" = "true" ; then
22923
22924      ax_path_bdb_env_confirm_lib_ok=yes
22925
22926      fi
22927
22928
22929fi
22930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22931  conftest.$ac_objext conftest.beam conftest.$ac_ext
22932fi
22933
22934
22935    LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
22936
22937
22938    fi
22939
22940        if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
22941      if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
22942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none required" >&5
22943$as_echo "none required" >&6; }
22944      else
22945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
22946$as_echo "$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
22947      fi
22948      ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
22949      ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
22950      ax_path_bdb_env_get_version_ok=yes
22951    else
22952      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953$as_echo "no" >&6; }
22954    fi
22955
22956          fi
22957
22958
22959    if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
22960
22961
22962  # Used to indicate true or false condition
22963  ax_compare_version=false
22964
22965  # Convert the two version strings to be compared into a format that
22966  # allows a simple string comparison.  The end result is that a version
22967  # string of the form 1.12.5-r617 will be converted to the form
22968  # 0001001200050617.  In other words, each number is zero padded to four
22969  # digits, and non digits are removed.
22970
22971  ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22972                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22973                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22974                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22975                     -e 's/[^0-9]//g'`
22976
22977
22978  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22979                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22980                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22981                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22982                     -e 's/[^0-9]//g'`
22983
22984
22985    ax_compare_version=`echo "x$ax_compare_version_A
22986x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22987
22988
22989
22990    if test "$ax_compare_version" = "true" ; then
22991
22992        # Found acceptable version in current environment.
22993        ax_path_bdb_no_options_ok=yes
22994        BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
22995        BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
22996
22997      fi
22998
22999
23000      fi
23001
23002
23003
23004    # Determine if we need to search /usr/local/BerkeleyDB*
23005    ax_path_bdb_no_options_DONE=no
23006    if test "xENVONLY" = "xENVONLY" ; then
23007      ax_path_bdb_no_options_DONE=yes
23008    elif test "xENVONLY" = "xENVFIRST" ; then
23009      ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
23010    fi
23011
23012    if test "$ax_path_bdb_no_options_DONE" = "no" ; then
23013      # Check for highest in /usr/local/BerkeleyDB*
23014
23015    ax_path_bdb_path_find_highest_ok=no
23016
23017    ax_path_bdb_path_find_highest_VERSION=''
23018
23019  ax_path_bdb_path_find_highest_DIR=''
23020
23021  # find highest verison in default install directory for Berkeley DB
23022
23023  for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
23024  do
23025
23026    ax_path_bdb_path_get_version_ok=no
23027
23028  # Indicate status of checking for Berkeley DB header.
23029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
23030$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... " >&6; }
23031  ax_path_bdb_path_get_version_got_header=no
23032  test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
23033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_got_header" >&5
23034$as_echo "$ax_path_bdb_path_get_version_got_header" >&6; }
23035
23036  # Indicate status of checking for Berkeley DB library.
23037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
23038$as_echo_n "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... " >&6; }
23039
23040  ax_path_bdb_path_get_version_VERSION=''
23041
23042  if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
23043     test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
23044        ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
23045    CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
23046
23047    ax_path_bdb_path_get_version_save_LIBS="$LIBS"
23048    LIBS="$LIBS -ldb"
23049
23050    ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
23051    LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
23052
23053    # Compile and run a program that compares the version defined in
23054    # the header file with a version defined in the library function
23055    # db_version.
23056    if test "$cross_compiling" = yes; then :
23057  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23059as_fn_error "cannot run test program while cross compiling
23060See \`config.log' for more details." "$LINENO" 5; }
23061else
23062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063/* end confdefs.h.  */
23064
23065
23066#include <stdio.h>
23067#include <db.h>
23068int main(int argc,char **argv)
23069{
23070  int major,minor,patch;
23071  (void) argv;
23072  db_version(&major,&minor,&patch);
23073  if (argc > 1)
23074    printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
23075  if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
23076      DB_VERSION_PATCH == patch)
23077    return 0;
23078  else
23079    return 1;
23080}
23081
23082
23083_ACEOF
23084if ac_fn_c_try_run "$LINENO"; then :
23085
23086      # Program compiled and ran, so get version by adding argument.
23087      ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
23088      ax_path_bdb_path_get_version_ok=yes
23089
23090fi
23091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23092  conftest.$ac_objext conftest.beam conftest.$ac_ext
23093fi
23094
23095
23096        CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
23097    LIBS="$ax_path_bdb_path_get_version_save_LIBS"
23098    LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
23099  fi
23100
23101    if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
23102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_path_bdb_path_get_version_VERSION" >&5
23103$as_echo "$ax_path_bdb_path_get_version_VERSION" >&6; }
23104
23105
23106  # Used to indicate true or false condition
23107  ax_compare_version=false
23108
23109  # Convert the two version strings to be compared into a format that
23110  # allows a simple string comparison.  The end result is that a version
23111  # string of the form 1.12.5-r617 will be converted to the form
23112  # 0001001200050617.  In other words, each number is zero padded to four
23113  # digits, and non digits are removed.
23114
23115  ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23116                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23117                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23118                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23119                     -e 's/[^0-9]//g'`
23120
23121
23122  ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23123                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23124                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23125                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23126                     -e 's/[^0-9]//g'`
23127
23128
23129    ax_compare_version=`echo "x$ax_compare_version_A
23130x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
23131
23132
23133
23134    if test "$ax_compare_version" = "true" ; then
23135
23136        ax_path_bdb_path_find_highest_ok=yes
23137        ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
23138        ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
23139
23140      fi
23141
23142
23143  else
23144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23145$as_echo "no" >&6; }
23146      fi
23147
23148  done
23149
23150
23151    if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
23152
23153        if test "$ax_path_bdb_no_options_ok" = "yes" ; then
23154        # If we already have an acceptable version use this if higher.
23155
23156  # Used to indicate true or false condition
23157  ax_compare_version=false
23158
23159  # Convert the two version strings to be compared into a format that
23160  # allows a simple string comparison.  The end result is that a version
23161  # string of the form 1.12.5-r617 will be converted to the form
23162  # 0001001200050617.  In other words, each number is zero padded to four
23163  # digits, and non digits are removed.
23164
23165  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23166                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23167                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23168                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23169                     -e 's/[^0-9]//g'`
23170
23171
23172  ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23173                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23174                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23175                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23176                     -e 's/[^0-9]//g'`
23177
23178
23179    ax_compare_version=`echo "x$ax_compare_version_A
23180x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
23181
23182
23183
23184    if test "$ax_compare_version" = "true" ; then
23185    :
23186      fi
23187
23188        else
23189          # Since we didn't have an acceptable version check if this one is.
23190
23191  # Used to indicate true or false condition
23192  ax_compare_version=false
23193
23194  # Convert the two version strings to be compared into a format that
23195  # allows a simple string comparison.  The end result is that a version
23196  # string of the form 1.12.5-r617 will be converted to the form
23197  # 0001001200050617.  In other words, each number is zero padded to four
23198  # digits, and non digits are removed.
23199
23200  ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23201                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23202                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23203                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23204                     -e 's/[^0-9]//g'`
23205
23206
23207  ax_compare_version_B=`echo "4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23208                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23209                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23210                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23211                     -e 's/[^0-9]//g'`
23212
23213
23214    ax_compare_version=`echo "x$ax_compare_version_A
23215x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
23216
23217
23218
23219    if test "$ax_compare_version" = "true" ; then
23220    :
23221      fi
23222
23223        fi
23224
23225      fi
23226
23227
23228
23229            if test "$ax_compare_version" = "true" ; then
23230        ax_path_bdb_no_options_ok=yes
23231        BDB_LIBS="-ldb"
23232	if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
23233	  BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
23234	  BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
23235	fi
23236        BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
23237      fi
23238    fi
23239  fi
23240
23241    if test "$ax_path_bdb_no_options_ok" = "yes" ; then
23242    { $as_echo "$as_me:${as_lineno-$LINENO}: using Berkeley DB version $BDB_VERSION" >&5
23243$as_echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
23244
23245$as_echo "#define HAVE_DB_H 1" >>confdefs.h
23246
23247
23248         ax_path_bdb_ok=yes
23249         BDB_CPPFLAGS="-I$ax_path_bdb_INC"
23250         BDB_LDFLAGS="-L$ax_path_bdb_LIB"
23251
23252  else
23253    { $as_echo "$as_me:${as_lineno-$LINENO}: no Berkeley DB version 4 or higher found" >&5
23254$as_echo "$as_me: no Berkeley DB version 4 or higher found" >&6;}
23255      fi
23256
23257     else
23258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23259$as_echo "no" >&6; }
23260       { $as_echo "$as_me:${as_lineno-$LINENO}: no usable Berkeley DB not found" >&5
23261$as_echo "$as_me: no usable Berkeley DB not found" >&6;}
23262     fi
23263
23264          CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
23265     LDFLAGS="$ax_path_bdb_save_LDFLAGS"
23266
23267  fi
23268
23269    if test "$ax_path_bdb_ok" = "yes" ; then
23270
23271		       EXTRA_LIBS="$EXTRA_LIBS $BDB_LIBS"
23272		       LDFLAGS="$LDFLAGS $BDB_LDFLAGS"
23273		       CPPFLAGS="$CPPFLAGS $BDB_CPPFLAGS"
23274
23275    else as_fn_error "BerkeleyDB (libdb) not found." "$LINENO" 5
23276  fi
23277
23278
23279fi
23280
23281
23282# Check whether --with-oss was given.
23283if test "${with_oss+set}" = set; then :
23284  withval=$with_oss;
23285fi
23286
23287
23288if test "x$with_oss" != "xno"
23289then
23290	OSSLIBDIR="$with_oss"
23291	if test "x$with_oss" = "x" || test "x$with_oss" = "xyes"
23292	then
23293		OSSLIBDIR="/usr/lib/oss"
23294		if test -f "/etc/oss.conf"
23295		then
23296			. /etc/oss.conf
23297		fi
23298	fi
23299
23300	if test -d "$OSSLIBDIR/include"
23301	then
23302		OSS_CFLAGS="-I$OSSLIBDIR/include"
23303	fi
23304
23305	save_CPPFLAGS="$CPPFLAGS"
23306	CPPFLAGS="$CPPFLAGS $OSS_CFLAGS"
23307	for ac_header in sys/soundcard.h soundcard.h
23308do :
23309  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23310ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23311eval as_val=\$$as_ac_Header
23312   if test "x$as_val" = x""yes; then :
23313  cat >>confdefs.h <<_ACEOF
23314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23315_ACEOF
23316
23317fi
23318
23319done
23320
23321	CPPFLAGS="$save_CPPFLAGS"
23322
23323	if test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
23324	        "$ac_cv_header_soundcard_h" = "yes"
23325	then
23326
23327$as_echo "#define HAVE_OSS 1" >>confdefs.h
23328
23329		EXTRA_OBJS="$EXTRA_OBJS oss.o"
23330		CFLAGS="$CFLAGS $OSS_CFLAGS"
23331		SOUND_DRIVERS="$SOUND_DRIVERS OSS"
23332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
23333$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
23334if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
23335  $as_echo_n "(cached) " >&6
23336else
23337  ac_check_lib_save_LIBS=$LIBS
23338LIBS="-lossaudio  $LIBS"
23339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340/* end confdefs.h.  */
23341
23342/* Override any GCC internal prototype to avoid an error.
23343   Use char because int might match the return type of a GCC
23344   builtin and then its argument prototype would still apply.  */
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char _oss_ioctl ();
23349int
23350main ()
23351{
23352return _oss_ioctl ();
23353  ;
23354  return 0;
23355}
23356_ACEOF
23357if ac_fn_c_try_link "$LINENO"; then :
23358  ac_cv_lib_ossaudio__oss_ioctl=yes
23359else
23360  ac_cv_lib_ossaudio__oss_ioctl=no
23361fi
23362rm -f core conftest.err conftest.$ac_objext \
23363    conftest$ac_exeext conftest.$ac_ext
23364LIBS=$ac_check_lib_save_LIBS
23365fi
23366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
23367$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
23368if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
23369  EXTRA_LIBS="$EXTRA_LIBS -lossaudio"
23370fi
23371
23372	fi
23373fi
23374
23375
23376# Check whether --with-sndio was given.
23377if test "${with_sndio+set}" = set; then :
23378  withval=$with_sndio;
23379fi
23380
23381
23382if test "x$with_sndio" != "xno"
23383then
23384	for ac_header in sndio.h
23385do :
23386  ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
23387if test "x$ac_cv_header_sndio_h" = x""yes; then :
23388  cat >>confdefs.h <<_ACEOF
23389#define HAVE_SNDIO_H 1
23390_ACEOF
23391
23392fi
23393
23394done
23395
23396	if test "$ac_cv_header_sndio_h" = "yes"
23397	then
23398
23399$as_echo "#define HAVE_SNDIO 1" >>confdefs.h
23400
23401		EXTRA_OBJS="$EXTRA_OBJS sndio_out.o"
23402		SOUND_DRIVERS="$SOUND_DRIVERS SNDIO"
23403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
23404$as_echo_n "checking for sio_open in -lsndio... " >&6; }
23405if test "${ac_cv_lib_sndio_sio_open+set}" = set; then :
23406  $as_echo_n "(cached) " >&6
23407else
23408  ac_check_lib_save_LIBS=$LIBS
23409LIBS="-lsndio  $LIBS"
23410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23411/* end confdefs.h.  */
23412
23413/* Override any GCC internal prototype to avoid an error.
23414   Use char because int might match the return type of a GCC
23415   builtin and then its argument prototype would still apply.  */
23416#ifdef __cplusplus
23417extern "C"
23418#endif
23419char sio_open ();
23420int
23421main ()
23422{
23423return sio_open ();
23424  ;
23425  return 0;
23426}
23427_ACEOF
23428if ac_fn_c_try_link "$LINENO"; then :
23429  ac_cv_lib_sndio_sio_open=yes
23430else
23431  ac_cv_lib_sndio_sio_open=no
23432fi
23433rm -f core conftest.err conftest.$ac_objext \
23434    conftest$ac_exeext conftest.$ac_ext
23435LIBS=$ac_check_lib_save_LIBS
23436fi
23437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
23438$as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
23439if test "x$ac_cv_lib_sndio_sio_open" = x""yes; then :
23440  EXTRA_LIBS="$EXTRA_LIBS -lsndio"
23441fi
23442
23443	fi
23444fi
23445
23446
23447# Check whether --with-alsa was given.
23448if test "${with_alsa+set}" = set; then :
23449  withval=$with_alsa;
23450fi
23451
23452
23453COMPILE_ALSA="no"
23454if test "x$with_alsa" != "xno"
23455then
23456
23457pkg_failed=no
23458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
23459$as_echo_n "checking for ALSA... " >&6; }
23460
23461if test -n "$ALSA_CFLAGS"; then
23462    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
23463 elif test -n "$PKG_CONFIG"; then
23464    if test -n "$PKG_CONFIG" && \
23465    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"no-alsa >= 0.9\""; } >&5
23466  ($PKG_CONFIG --exists --print-errors "no-alsa >= 0.9") 2>&5
23467  ac_status=$?
23468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23469  test $ac_status = 0; }; then
23470  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "no-alsa >= 0.9" 2>/dev/null`
23471else
23472  pkg_failed=yes
23473fi
23474 else
23475    pkg_failed=untried
23476fi
23477if test -n "$ALSA_LIBS"; then
23478    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
23479 elif test -n "$PKG_CONFIG"; then
23480    if test -n "$PKG_CONFIG" && \
23481    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"no-alsa >= 0.9\""; } >&5
23482  ($PKG_CONFIG --exists --print-errors "no-alsa >= 0.9") 2>&5
23483  ac_status=$?
23484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23485  test $ac_status = 0; }; then
23486  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "no-alsa >= 0.9" 2>/dev/null`
23487else
23488  pkg_failed=yes
23489fi
23490 else
23491    pkg_failed=untried
23492fi
23493
23494
23495
23496if test $pkg_failed = yes; then
23497
23498if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23499        _pkg_short_errors_supported=yes
23500else
23501        _pkg_short_errors_supported=no
23502fi
23503        if test $_pkg_short_errors_supported = yes; then
23504	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "no-alsa >= 0.9" 2>&1`
23505        else
23506	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "no-alsa >= 0.9" 2>&1`
23507        fi
23508	# Put the nasty error message in config.log where it belongs
23509	echo "$ALSA_PKG_ERRORS" >&5
23510
23511	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23512$as_echo "no" >&6; }
23513                true
23514elif test $pkg_failed = untried; then
23515	true
23516else
23517	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
23518	ALSA_LIBS=$pkg_cv_ALSA_LIBS
23519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23520$as_echo "yes" >&6; }
23521	SOUND_DRIVERS="$SOUND_DRIVERS ALSA"
23522	      EXTRA_OBJS="$EXTRA_OBJS alsa.o"
23523
23524$as_echo "#define HAVE_ALSA 1" >>confdefs.h
23525
23526	      EXTRA_LIBS="$EXTRA_LIBS $ALSA_LIBS"
23527	      CFLAGS="$CFLAGS $ALSA_CFLAGS"
23528		  if ! $PKG_CONFIG --atleast-version 1.0.11 no-alsa
23529		  then
23530			  ALSA_DEPRECATED="yes"
23531		  fi
23532	      COMPILE_ALSA="yes"
23533	      need_usleep="yes"
23534fi
23535fi
23536
23537
23538# Check whether --with-jack was given.
23539if test "${with_jack+set}" = set; then :
23540  withval=$with_jack;
23541fi
23542
23543
23544if test "x$with_jack" != "xno"
23545then
23546
23547pkg_failed=no
23548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
23549$as_echo_n "checking for JACK... " >&6; }
23550
23551if test -n "$JACK_CFLAGS"; then
23552    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
23553 elif test -n "$PKG_CONFIG"; then
23554    if test -n "$PKG_CONFIG" && \
23555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.4\""; } >&5
23556  ($PKG_CONFIG --exists --print-errors "jack >= 0.4") 2>&5
23557  ac_status=$?
23558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559  test $ac_status = 0; }; then
23560  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.4" 2>/dev/null`
23561else
23562  pkg_failed=yes
23563fi
23564 else
23565    pkg_failed=untried
23566fi
23567if test -n "$JACK_LIBS"; then
23568    pkg_cv_JACK_LIBS="$JACK_LIBS"
23569 elif test -n "$PKG_CONFIG"; then
23570    if test -n "$PKG_CONFIG" && \
23571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.4\""; } >&5
23572  ($PKG_CONFIG --exists --print-errors "jack >= 0.4") 2>&5
23573  ac_status=$?
23574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575  test $ac_status = 0; }; then
23576  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.4" 2>/dev/null`
23577else
23578  pkg_failed=yes
23579fi
23580 else
23581    pkg_failed=untried
23582fi
23583
23584
23585
23586if test $pkg_failed = yes; then
23587
23588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23589        _pkg_short_errors_supported=yes
23590else
23591        _pkg_short_errors_supported=no
23592fi
23593        if test $_pkg_short_errors_supported = yes; then
23594	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.4" 2>&1`
23595        else
23596	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.4" 2>&1`
23597        fi
23598	# Put the nasty error message in config.log where it belongs
23599	echo "$JACK_PKG_ERRORS" >&5
23600
23601	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23602$as_echo "no" >&6; }
23603                true
23604elif test $pkg_failed = untried; then
23605	true
23606else
23607	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
23608	JACK_LIBS=$pkg_cv_JACK_LIBS
23609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23610$as_echo "yes" >&6; }
23611	SOUND_DRIVERS="$SOUND_DRIVERS JACK"
23612			   EXTRA_OBJS="$EXTRA_OBJS jack.o"
23613
23614$as_echo "#define HAVE_JACK 1" >>confdefs.h
23615
23616			   EXTRA_LIBS="$EXTRA_LIBS $JACK_LIBS"
23617			   CFLAGS="$CFLAGS $JACK_CFLAGS"
23618			   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jack_client_open" >&5
23619$as_echo_n "checking for library containing jack_client_open... " >&6; }
23620if test "${ac_cv_search_jack_client_open+set}" = set; then :
23621  $as_echo_n "(cached) " >&6
23622else
23623  ac_func_search_save_LIBS=$LIBS
23624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625/* end confdefs.h.  */
23626
23627/* Override any GCC internal prototype to avoid an error.
23628   Use char because int might match the return type of a GCC
23629   builtin and then its argument prototype would still apply.  */
23630#ifdef __cplusplus
23631extern "C"
23632#endif
23633char jack_client_open ();
23634int
23635main ()
23636{
23637return jack_client_open ();
23638  ;
23639  return 0;
23640}
23641_ACEOF
23642for ac_lib in '' jack; do
23643  if test -z "$ac_lib"; then
23644    ac_res="none required"
23645  else
23646    ac_res=-l$ac_lib
23647    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23648  fi
23649  if ac_fn_c_try_link "$LINENO"; then :
23650  ac_cv_search_jack_client_open=$ac_res
23651fi
23652rm -f core conftest.err conftest.$ac_objext \
23653    conftest$ac_exeext
23654  if test "${ac_cv_search_jack_client_open+set}" = set; then :
23655  break
23656fi
23657done
23658if test "${ac_cv_search_jack_client_open+set}" = set; then :
23659
23660else
23661  ac_cv_search_jack_client_open=no
23662fi
23663rm conftest.$ac_ext
23664LIBS=$ac_func_search_save_LIBS
23665fi
23666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jack_client_open" >&5
23667$as_echo "$ac_cv_search_jack_client_open" >&6; }
23668ac_res=$ac_cv_search_jack_client_open
23669if test "$ac_res" != no; then :
23670  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23671
23672$as_echo "#define HAVE_JACK_CLIENT_OPEN 1" >>confdefs.h
23673
23674fi
23675
23676			   need_usleep="yes"
23677fi
23678fi
23679
23680
23681case "$host_os" in
23682	openbsd*) SOUNDDRIVER="SNDIO:JACK:OSS";;
23683	       *) SOUNDDRIVER="JACK:ALSA:OSS";;
23684esac
23685
23686# Check whether --enable-debug was given.
23687if test "${enable_debug+set}" = set; then :
23688  enableval=$enable_debug;
23689fi
23690
23691
23692if test "x$enable_debug" = "xno"
23693then
23694
23695$as_echo "#define NDEBUG 1" >>confdefs.h
23696
23697	COMPILE_DEBUG='no'
23698else
23699	if test "x$enable_debug" = "xgdb"
23700	then
23701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -ggdb" >&5
23702$as_echo_n "checking CFLAGS for gcc -ggdb... " >&6; }
23703if test "${ac_cv_cflags_gcc_option__ggdb+set}" = set; then :
23704  $as_echo_n "(cached) " >&6
23705else
23706  ac_cv_cflags_gcc_option__ggdb="no, unknown"
23707
23708 ac_ext=c
23709ac_cpp='$CPP $CPPFLAGS'
23710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712ac_compiler_gnu=$ac_cv_c_compiler_gnu
23713
23714 ac_save_CFLAGS="$CFLAGS"
23715for ac_arg in "-pedantic  % -ggdb"     #
23716do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
23717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718/* end confdefs.h.  */
23719
23720int
23721main ()
23722{
23723return 0;
23724  ;
23725  return 0;
23726}
23727_ACEOF
23728if ac_fn_c_try_compile "$LINENO"; then :
23729  ac_cv_cflags_gcc_option__ggdb=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
23730fi
23731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732done
23733 CFLAGS="$ac_save_CFLAGS"
23734 ac_ext=c
23735ac_cpp='$CPP $CPPFLAGS'
23736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23738ac_compiler_gnu=$ac_cv_c_compiler_gnu
23739
23740
23741fi
23742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__ggdb" >&5
23743$as_echo "$ac_cv_cflags_gcc_option__ggdb" >&6; }
23744case ".$ac_cv_cflags_gcc_option__ggdb" in
23745     .ok|.ok,*)  ;;
23746   .|.no|.no,*)  ;;
23747   *)
23748   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__ggdb " 2>&1 >/dev/null
23749   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__ggdb"; } >&5
23750  (: CFLAGS does contain $ac_cv_cflags_gcc_option__ggdb) 2>&5
23751  ac_status=$?
23752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753  test $ac_status = 0; }
23754   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__ggdb\""; } >&5
23755  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__ggdb") 2>&5
23756  ac_status=$?
23757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758  test $ac_status = 0; }
23759                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__ggdb"
23760   fi
23761 ;;
23762esac
23763
23764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -O0" >&5
23765$as_echo_n "checking CFLAGS for gcc -O0... " >&6; }
23766if test "${ac_cv_cflags_gcc_option__O0+set}" = set; then :
23767  $as_echo_n "(cached) " >&6
23768else
23769  ac_cv_cflags_gcc_option__O0="no, unknown"
23770
23771 ac_ext=c
23772ac_cpp='$CPP $CPPFLAGS'
23773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23775ac_compiler_gnu=$ac_cv_c_compiler_gnu
23776
23777 ac_save_CFLAGS="$CFLAGS"
23778for ac_arg in "-pedantic  % -O0"     #
23779do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
23780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23781/* end confdefs.h.  */
23782
23783int
23784main ()
23785{
23786return 0;
23787  ;
23788  return 0;
23789}
23790_ACEOF
23791if ac_fn_c_try_compile "$LINENO"; then :
23792  ac_cv_cflags_gcc_option__O0=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
23793fi
23794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23795done
23796 CFLAGS="$ac_save_CFLAGS"
23797 ac_ext=c
23798ac_cpp='$CPP $CPPFLAGS'
23799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23801ac_compiler_gnu=$ac_cv_c_compiler_gnu
23802
23803
23804fi
23805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__O0" >&5
23806$as_echo "$ac_cv_cflags_gcc_option__O0" >&6; }
23807case ".$ac_cv_cflags_gcc_option__O0" in
23808     .ok|.ok,*)  ;;
23809   .|.no|.no,*)  ;;
23810   *)
23811   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__O0 " 2>&1 >/dev/null
23812   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__O0"; } >&5
23813  (: CFLAGS does contain $ac_cv_cflags_gcc_option__O0) 2>&5
23814  ac_status=$?
23815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816  test $ac_status = 0; }
23817   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__O0\""; } >&5
23818  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0") 2>&5
23819  ac_status=$?
23820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821  test $ac_status = 0; }
23822                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0"
23823   fi
23824 ;;
23825esac
23826
23827		COMPILE_DEBUG='gdb'
23828	fi
23829	if test "x$ac_cv_cflags_gcc_option__ggdb" = "x"
23830	then
23831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -g" >&5
23832$as_echo_n "checking CFLAGS for gcc -g... " >&6; }
23833if test "${ac_cv_cflags_gcc_option__g+set}" = set; then :
23834  $as_echo_n "(cached) " >&6
23835else
23836  ac_cv_cflags_gcc_option__g="no, unknown"
23837
23838 ac_ext=c
23839ac_cpp='$CPP $CPPFLAGS'
23840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23842ac_compiler_gnu=$ac_cv_c_compiler_gnu
23843
23844 ac_save_CFLAGS="$CFLAGS"
23845for ac_arg in "-pedantic  % -g"     #
23846do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
23847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848/* end confdefs.h.  */
23849
23850int
23851main ()
23852{
23853return 0;
23854  ;
23855  return 0;
23856}
23857_ACEOF
23858if ac_fn_c_try_compile "$LINENO"; then :
23859  ac_cv_cflags_gcc_option__g=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
23860fi
23861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862done
23863 CFLAGS="$ac_save_CFLAGS"
23864 ac_ext=c
23865ac_cpp='$CPP $CPPFLAGS'
23866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23868ac_compiler_gnu=$ac_cv_c_compiler_gnu
23869
23870
23871fi
23872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__g" >&5
23873$as_echo "$ac_cv_cflags_gcc_option__g" >&6; }
23874case ".$ac_cv_cflags_gcc_option__g" in
23875     .ok|.ok,*)  ;;
23876   .|.no|.no,*)  ;;
23877   *)
23878   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__g " 2>&1 >/dev/null
23879   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__g"; } >&5
23880  (: CFLAGS does contain $ac_cv_cflags_gcc_option__g) 2>&5
23881  ac_status=$?
23882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23883  test $ac_status = 0; }
23884   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__g\""; } >&5
23885  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__g") 2>&5
23886  ac_status=$?
23887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888  test $ac_status = 0; }
23889                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__g"
23890   fi
23891 ;;
23892esac
23893
23894		COMPILE_DEBUG='yes'
23895	fi
23896	EXTRA_OBJS="$EXTRA_OBJS null_out.o md5.o"
23897	need_usleep="yes"
23898fi
23899
23900for ac_header in stdlib.h
23901do :
23902  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23903if test "x$ac_cv_header_stdlib_h" = x""yes; then :
23904  cat >>confdefs.h <<_ACEOF
23905#define HAVE_STDLIB_H 1
23906_ACEOF
23907
23908fi
23909
23910done
23911
23912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23913$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23914if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
23915  $as_echo_n "(cached) " >&6
23916else
23917  if test "$cross_compiling" = yes; then :
23918  ac_cv_func_malloc_0_nonnull=no
23919else
23920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921/* end confdefs.h.  */
23922#if defined STDC_HEADERS || defined HAVE_STDLIB_H
23923# include <stdlib.h>
23924#else
23925char *malloc ();
23926#endif
23927
23928int
23929main ()
23930{
23931return ! malloc (0);
23932  ;
23933  return 0;
23934}
23935_ACEOF
23936if ac_fn_c_try_run "$LINENO"; then :
23937  ac_cv_func_malloc_0_nonnull=yes
23938else
23939  ac_cv_func_malloc_0_nonnull=no
23940fi
23941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23942  conftest.$ac_objext conftest.beam conftest.$ac_ext
23943fi
23944
23945fi
23946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23947$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23948if test $ac_cv_func_malloc_0_nonnull = yes; then :
23949
23950$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
23951
23952else
23953  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
23954
23955   case " $LIBOBJS " in
23956  *" malloc.$ac_objext "* ) ;;
23957  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
23958 ;;
23959esac
23960
23961
23962$as_echo "#define malloc rpl_malloc" >>confdefs.h
23963
23964fi
23965
23966
23967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23968$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
23969if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
23970  $as_echo_n "(cached) " >&6
23971else
23972  rm -f conftest.sym conftest.file
23973echo >conftest.file
23974if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23975  if test "$cross_compiling" = yes; then :
23976  ac_cv_func_lstat_dereferences_slashed_symlink=no
23977else
23978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979/* end confdefs.h.  */
23980$ac_includes_default
23981int
23982main ()
23983{
23984struct stat sbuf;
23985     /* Linux will dereference the symlink and fail, as required by POSIX.
23986	That is better in the sense that it means we will not
23987	have to compile and use the lstat wrapper.  */
23988     return lstat ("conftest.sym/", &sbuf) == 0;
23989  ;
23990  return 0;
23991}
23992_ACEOF
23993if ac_fn_c_try_run "$LINENO"; then :
23994  ac_cv_func_lstat_dereferences_slashed_symlink=yes
23995else
23996  ac_cv_func_lstat_dereferences_slashed_symlink=no
23997fi
23998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23999  conftest.$ac_objext conftest.beam conftest.$ac_ext
24000fi
24001
24002else
24003  # If the `ln -s' command failed, then we probably don't even
24004  # have an lstat function.
24005  ac_cv_func_lstat_dereferences_slashed_symlink=no
24006fi
24007rm -f conftest.sym conftest.file
24008
24009fi
24010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24011$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24012
24013test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24014
24015cat >>confdefs.h <<_ACEOF
24016#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24017_ACEOF
24018
24019
24020if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
24021  case " $LIBOBJS " in
24022  *" lstat.$ac_objext "* ) ;;
24023  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24024 ;;
24025esac
24026
24027fi
24028
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
24030$as_echo_n "checking whether stat accepts an empty string... " >&6; }
24031if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
24032  $as_echo_n "(cached) " >&6
24033else
24034  if test "$cross_compiling" = yes; then :
24035  ac_cv_func_stat_empty_string_bug=yes
24036else
24037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038/* end confdefs.h.  */
24039$ac_includes_default
24040int
24041main ()
24042{
24043struct stat sbuf;
24044  return stat ("", &sbuf) == 0;
24045  ;
24046  return 0;
24047}
24048_ACEOF
24049if ac_fn_c_try_run "$LINENO"; then :
24050  ac_cv_func_stat_empty_string_bug=no
24051else
24052  ac_cv_func_stat_empty_string_bug=yes
24053fi
24054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24055  conftest.$ac_objext conftest.beam conftest.$ac_ext
24056fi
24057
24058fi
24059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
24060$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
24061if test $ac_cv_func_stat_empty_string_bug = yes; then
24062  case " $LIBOBJS " in
24063  *" stat.$ac_objext "* ) ;;
24064  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
24065 ;;
24066esac
24067
24068
24069cat >>confdefs.h <<_ACEOF
24070#define HAVE_STAT_EMPTY_STRING_BUG 1
24071_ACEOF
24072
24073fi
24074
24075for ac_func in getcwd memmove strcasecmp strdup strerror strncasecmp strchr \
24076		strrchr socket gettimeofday getenv fork setsid kill bind listen \
24077		accept time connect unlink send recv select strftime access freopen \
24078		localtime_r mbsrtowcs mbstowcs execvp wcswidth strspn geteuid
24079do :
24080  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24081ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24082eval as_val=\$$as_ac_var
24083   if test "x$as_val" = x""yes; then :
24084  cat >>confdefs.h <<_ACEOF
24085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24086_ACEOF
24087
24088else
24089  as_fn_error "Required standard C/UNIX functions are not present." "$LINENO" 5
24090fi
24091done
24092
24093
24094ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
24095if test "x$ac_cv_func_sin" = x""yes; then :
24096
24097else
24098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
24099$as_echo_n "checking for sin in -lm... " >&6; }
24100if test "${ac_cv_lib_m_sin+set}" = set; then :
24101  $as_echo_n "(cached) " >&6
24102else
24103  ac_check_lib_save_LIBS=$LIBS
24104LIBS="-lm  $LIBS"
24105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24106/* end confdefs.h.  */
24107
24108/* Override any GCC internal prototype to avoid an error.
24109   Use char because int might match the return type of a GCC
24110   builtin and then its argument prototype would still apply.  */
24111#ifdef __cplusplus
24112extern "C"
24113#endif
24114char sin ();
24115int
24116main ()
24117{
24118return sin ();
24119  ;
24120  return 0;
24121}
24122_ACEOF
24123if ac_fn_c_try_link "$LINENO"; then :
24124  ac_cv_lib_m_sin=yes
24125else
24126  ac_cv_lib_m_sin=no
24127fi
24128rm -f core conftest.err conftest.$ac_objext \
24129    conftest$ac_exeext conftest.$ac_ext
24130LIBS=$ac_check_lib_save_LIBS
24131fi
24132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
24133$as_echo "$ac_cv_lib_m_sin" >&6; }
24134if test "x$ac_cv_lib_m_sin" = x""yes; then :
24135  cat >>confdefs.h <<_ACEOF
24136#define HAVE_LIBM 1
24137_ACEOF
24138
24139  LIBS="-lm $LIBS"
24140
24141else
24142  as_fn_error "No sin() function found." "$LINENO" 5
24143fi
24144
24145               EXTRA_LIBS="$EXTRA_LIBS -lm"
24146fi
24147
24148
24149ac_fn_c_check_func "$LINENO" "sinh" "ac_cv_func_sinh"
24150if test "x$ac_cv_func_sinh" = x""yes; then :
24151
24152else
24153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
24154$as_echo_n "checking for sinh in -lm... " >&6; }
24155if test "${ac_cv_lib_m_sinh+set}" = set; then :
24156  $as_echo_n "(cached) " >&6
24157else
24158  ac_check_lib_save_LIBS=$LIBS
24159LIBS="-lm  $LIBS"
24160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24161/* end confdefs.h.  */
24162
24163/* Override any GCC internal prototype to avoid an error.
24164   Use char because int might match the return type of a GCC
24165   builtin and then its argument prototype would still apply.  */
24166#ifdef __cplusplus
24167extern "C"
24168#endif
24169char sinh ();
24170int
24171main ()
24172{
24173return sinh ();
24174  ;
24175  return 0;
24176}
24177_ACEOF
24178if ac_fn_c_try_link "$LINENO"; then :
24179  ac_cv_lib_m_sinh=yes
24180else
24181  ac_cv_lib_m_sinh=no
24182fi
24183rm -f core conftest.err conftest.$ac_objext \
24184    conftest$ac_exeext conftest.$ac_ext
24185LIBS=$ac_check_lib_save_LIBS
24186fi
24187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5
24188$as_echo "$ac_cv_lib_m_sinh" >&6; }
24189if test "x$ac_cv_lib_m_sinh" = x""yes; then :
24190  cat >>confdefs.h <<_ACEOF
24191#define HAVE_LIBM 1
24192_ACEOF
24193
24194  LIBS="-lm $LIBS"
24195
24196else
24197  as_fn_error "No sinh() function found." "$LINENO" 5
24198fi
24199
24200               EXTRA_LIBS="$EXTRA_LIBS -lm"
24201fi
24202
24203
24204for ac_func in strcasestr strerror_r syslog
24205do :
24206  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24208eval as_val=\$$as_ac_var
24209   if test "x$as_val" = x""yes; then :
24210  cat >>confdefs.h <<_ACEOF
24211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24212_ACEOF
24213
24214fi
24215done
24216
24217
24218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uname(2) is POSIX" >&5
24219$as_echo_n "checking whether uname(2) is POSIX... " >&6; }
24220  if test "${ax_cv_uname_syscall+set}" = set; then :
24221  $as_echo_n "(cached) " >&6
24222else
24223
24224  if test "$cross_compiling" = yes; then :
24225  ax_cv_uname_syscall=no
24226
24227else
24228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229/* end confdefs.h.  */
24230#include <sys/utsname.h>
24231int main() { struct utsname unm;
24232return uname( &unm ); }
24233_ACEOF
24234if ac_fn_c_try_run "$LINENO"; then :
24235  ax_cv_uname_syscall=yes
24236else
24237  ax_cv_uname_syscall=no
24238fi
24239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24240  conftest.$ac_objext conftest.beam conftest.$ac_ext
24241fi
24242 # end of TRY_RUN
24243fi
24244 # end of CACHE_VAL
24245
24246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uname_syscall" >&5
24247$as_echo "$ax_cv_uname_syscall" >&6; }
24248  if test x$ax_cv_uname_syscall = xyes
24249  then
24250
24251$as_echo "#define HAVE_UNAME_SYSCALL 1" >>confdefs.h
24252
24253  fi
24254
24255if test "x$need_usleep" = "xyes"
24256then
24257	ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
24258if test "x$ac_cv_func_usleep" = x""yes; then :
24259
24260else
24261  as_fn_error "No usleep() function found." "$LINENO" 5
24262fi
24263
24264fi
24265
24266
24267# Check whether --with-magic was given.
24268if test "${with_magic+set}" = set; then :
24269  withval=$with_magic;
24270fi
24271
24272COMPILE_MAGIC="no"
24273if test "x$with_magic" != "xno"
24274then
24275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
24276$as_echo_n "checking for magic_open in -lmagic... " >&6; }
24277if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
24278  $as_echo_n "(cached) " >&6
24279else
24280  ac_check_lib_save_LIBS=$LIBS
24281LIBS="-lmagic  $LIBS"
24282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24283/* end confdefs.h.  */
24284
24285/* Override any GCC internal prototype to avoid an error.
24286   Use char because int might match the return type of a GCC
24287   builtin and then its argument prototype would still apply.  */
24288#ifdef __cplusplus
24289extern "C"
24290#endif
24291char magic_open ();
24292int
24293main ()
24294{
24295return magic_open ();
24296  ;
24297  return 0;
24298}
24299_ACEOF
24300if ac_fn_c_try_link "$LINENO"; then :
24301  ac_cv_lib_magic_magic_open=yes
24302else
24303  ac_cv_lib_magic_magic_open=no
24304fi
24305rm -f core conftest.err conftest.$ac_objext \
24306    conftest$ac_exeext conftest.$ac_ext
24307LIBS=$ac_check_lib_save_LIBS
24308fi
24309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
24310$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
24311if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
24312  COMPILE_MAGIC="yes"
24313
24314$as_echo "#define HAVE_LIBMAGIC 1" >>confdefs.h
24315
24316		 EXTRA_LIBS="$EXTRA_LIBS -lmagic"
24317fi
24318
24319fi
24320
24321ac_header_dirent=no
24322for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24323  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24325$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
24327  $as_echo_n "(cached) " >&6
24328else
24329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330/* end confdefs.h.  */
24331#include <sys/types.h>
24332#include <$ac_hdr>
24333
24334int
24335main ()
24336{
24337if ((DIR *) 0)
24338return 0;
24339  ;
24340  return 0;
24341}
24342_ACEOF
24343if ac_fn_c_try_compile "$LINENO"; then :
24344  eval "$as_ac_Header=yes"
24345else
24346  eval "$as_ac_Header=no"
24347fi
24348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349fi
24350eval ac_res=\$$as_ac_Header
24351	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24352$as_echo "$ac_res" >&6; }
24353eval as_val=\$$as_ac_Header
24354   if test "x$as_val" = x""yes; then :
24355  cat >>confdefs.h <<_ACEOF
24356#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24357_ACEOF
24358
24359ac_header_dirent=$ac_hdr; break
24360fi
24361
24362done
24363# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24364if test $ac_header_dirent = dirent.h; then
24365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24366$as_echo_n "checking for library containing opendir... " >&6; }
24367if test "${ac_cv_search_opendir+set}" = set; then :
24368  $as_echo_n "(cached) " >&6
24369else
24370  ac_func_search_save_LIBS=$LIBS
24371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24372/* end confdefs.h.  */
24373
24374/* Override any GCC internal prototype to avoid an error.
24375   Use char because int might match the return type of a GCC
24376   builtin and then its argument prototype would still apply.  */
24377#ifdef __cplusplus
24378extern "C"
24379#endif
24380char opendir ();
24381int
24382main ()
24383{
24384return opendir ();
24385  ;
24386  return 0;
24387}
24388_ACEOF
24389for ac_lib in '' dir; do
24390  if test -z "$ac_lib"; then
24391    ac_res="none required"
24392  else
24393    ac_res=-l$ac_lib
24394    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24395  fi
24396  if ac_fn_c_try_link "$LINENO"; then :
24397  ac_cv_search_opendir=$ac_res
24398fi
24399rm -f core conftest.err conftest.$ac_objext \
24400    conftest$ac_exeext
24401  if test "${ac_cv_search_opendir+set}" = set; then :
24402  break
24403fi
24404done
24405if test "${ac_cv_search_opendir+set}" = set; then :
24406
24407else
24408  ac_cv_search_opendir=no
24409fi
24410rm conftest.$ac_ext
24411LIBS=$ac_func_search_save_LIBS
24412fi
24413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24414$as_echo "$ac_cv_search_opendir" >&6; }
24415ac_res=$ac_cv_search_opendir
24416if test "$ac_res" != no; then :
24417  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24418
24419fi
24420
24421else
24422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24423$as_echo_n "checking for library containing opendir... " >&6; }
24424if test "${ac_cv_search_opendir+set}" = set; then :
24425  $as_echo_n "(cached) " >&6
24426else
24427  ac_func_search_save_LIBS=$LIBS
24428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429/* end confdefs.h.  */
24430
24431/* Override any GCC internal prototype to avoid an error.
24432   Use char because int might match the return type of a GCC
24433   builtin and then its argument prototype would still apply.  */
24434#ifdef __cplusplus
24435extern "C"
24436#endif
24437char opendir ();
24438int
24439main ()
24440{
24441return opendir ();
24442  ;
24443  return 0;
24444}
24445_ACEOF
24446for ac_lib in '' x; do
24447  if test -z "$ac_lib"; then
24448    ac_res="none required"
24449  else
24450    ac_res=-l$ac_lib
24451    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24452  fi
24453  if ac_fn_c_try_link "$LINENO"; then :
24454  ac_cv_search_opendir=$ac_res
24455fi
24456rm -f core conftest.err conftest.$ac_objext \
24457    conftest$ac_exeext
24458  if test "${ac_cv_search_opendir+set}" = set; then :
24459  break
24460fi
24461done
24462if test "${ac_cv_search_opendir+set}" = set; then :
24463
24464else
24465  ac_cv_search_opendir=no
24466fi
24467rm conftest.$ac_ext
24468LIBS=$ac_func_search_save_LIBS
24469fi
24470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24471$as_echo "$ac_cv_search_opendir" >&6; }
24472ac_res=$ac_cv_search_opendir
24473if test "$ac_res" != no; then :
24474  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24475
24476fi
24477
24478fi
24479
24480
24481
24482
24483
24484ac_ext=c
24485ac_cpp='$CPP $CPPFLAGS'
24486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24488ac_compiler_gnu=$ac_cv_c_compiler_gnu
24489
24490ax_pthread_ok=no
24491
24492# We used to check for pthread.h first, but this fails if pthread.h
24493# requires special compiler flags (e.g. on True64 or Sequent).
24494# It gets checked for in the link test anyway.
24495
24496# First of all, check if the user has set any of the PTHREAD_LIBS,
24497# etcetera environment variables, and if threads linking works using
24498# them:
24499if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
24500        save_CFLAGS="$CFLAGS"
24501        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24502        save_LIBS="$LIBS"
24503        LIBS="$PTHREAD_LIBS $LIBS"
24504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
24505$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
24506        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507/* end confdefs.h.  */
24508
24509/* Override any GCC internal prototype to avoid an error.
24510   Use char because int might match the return type of a GCC
24511   builtin and then its argument prototype would still apply.  */
24512#ifdef __cplusplus
24513extern "C"
24514#endif
24515char pthread_join ();
24516int
24517main ()
24518{
24519return pthread_join ();
24520  ;
24521  return 0;
24522}
24523_ACEOF
24524if ac_fn_c_try_link "$LINENO"; then :
24525  ax_pthread_ok=yes
24526fi
24527rm -f core conftest.err conftest.$ac_objext \
24528    conftest$ac_exeext conftest.$ac_ext
24529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24530$as_echo "$ax_pthread_ok" >&6; }
24531        if test x"$ax_pthread_ok" = xno; then
24532                PTHREAD_LIBS=""
24533                PTHREAD_CFLAGS=""
24534        fi
24535        LIBS="$save_LIBS"
24536        CFLAGS="$save_CFLAGS"
24537fi
24538
24539# We must check for the threads library under a number of different
24540# names; the ordering is very important because some systems
24541# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24542# libraries is broken (non-POSIX).
24543
24544# Create a list of thread flags to try.  Items starting with a "-" are
24545# C compiler flags, and other items are library names, except for "none"
24546# which indicates that we try without any flags at all, and "pthread-config"
24547# which is a program returning the flags for the Pth emulation library.
24548
24549ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24550
24551# The ordering *is* (sometimes) important.  Some notes on the
24552# individual items follow:
24553
24554# pthreads: AIX (must check this before -lpthread)
24555# none: in case threads are in libc; should be tried before -Kthread and
24556#       other compiler flags to prevent continual compiler warnings
24557# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24558# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24559# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24560# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
24561# -pthreads: Solaris/gcc
24562# -mthreads: Mingw32/gcc, Lynx/gcc
24563# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24564#      doesn't hurt to check since this sometimes defines pthreads too;
24565#      also defines -D_REENTRANT)
24566#      ... -mt is also the pthreads flag for HP/aCC
24567# pthread: Linux, etcetera
24568# --thread-safe: KAI C++
24569# pthread-config: use pthread-config program (for GNU Pth library)
24570
24571case "${host_cpu}-${host_os}" in
24572        *solaris*)
24573
24574        # On Solaris (at least, for some versions), libc contains stubbed
24575        # (non-functional) versions of the pthreads routines, so link-based
24576        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
24577        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
24578        # a function called by this macro, so we could check for that, but
24579        # who knows whether they'll stub that too in a future libc.)  So,
24580        # we'll just look for -pthreads and -lpthread first:
24581
24582        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
24583        ;;
24584
24585	*-darwin*)
24586	ax_pthread_flags="-pthread $ax_pthread_flags"
24587	;;
24588esac
24589
24590if test x"$ax_pthread_ok" = xno; then
24591for flag in $ax_pthread_flags; do
24592
24593        case $flag in
24594                none)
24595                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24596$as_echo_n "checking whether pthreads work without any flags... " >&6; }
24597                ;;
24598
24599                -*)
24600                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
24601$as_echo_n "checking whether pthreads work with $flag... " >&6; }
24602                PTHREAD_CFLAGS="$flag"
24603                ;;
24604
24605		pthread-config)
24606		# Extract the first word of "pthread-config", so it can be a program name with args.
24607set dummy pthread-config; ac_word=$2
24608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24609$as_echo_n "checking for $ac_word... " >&6; }
24610if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
24611  $as_echo_n "(cached) " >&6
24612else
24613  if test -n "$ax_pthread_config"; then
24614  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
24615else
24616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617for as_dir in $PATH
24618do
24619  IFS=$as_save_IFS
24620  test -z "$as_dir" && as_dir=.
24621    for ac_exec_ext in '' $ac_executable_extensions; do
24622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24623    ac_cv_prog_ax_pthread_config="yes"
24624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24625    break 2
24626  fi
24627done
24628  done
24629IFS=$as_save_IFS
24630
24631  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
24632fi
24633fi
24634ax_pthread_config=$ac_cv_prog_ax_pthread_config
24635if test -n "$ax_pthread_config"; then
24636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
24637$as_echo "$ax_pthread_config" >&6; }
24638else
24639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24640$as_echo "no" >&6; }
24641fi
24642
24643
24644		if test x"$ax_pthread_config" = xno; then continue; fi
24645		PTHREAD_CFLAGS="`pthread-config --cflags`"
24646		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
24647		;;
24648
24649                *)
24650                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
24651$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
24652                PTHREAD_LIBS="-l$flag"
24653                ;;
24654        esac
24655
24656        save_LIBS="$LIBS"
24657        save_CFLAGS="$CFLAGS"
24658        LIBS="$PTHREAD_LIBS $LIBS"
24659        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24660
24661        # Check for various functions.  We must include pthread.h,
24662        # since some functions may be macros.  (On the Sequent, we
24663        # need a special flag -Kthread to make this header compile.)
24664        # We check for pthread_join because it is in -lpthread on IRIX
24665        # while pthread_create is in libc.  We check for pthread_attr_init
24666        # due to DEC craziness with -lpthreads.  We check for
24667        # pthread_cleanup_push because it is one of the few pthread
24668        # functions on Solaris that doesn't have a non-functional libc stub.
24669        # We try pthread_create on general principles.
24670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671/* end confdefs.h.  */
24672#include <pthread.h>
24673		     static void routine(void* a) {a=0;}
24674		     static void* start_routine(void* a) {return a;}
24675int
24676main ()
24677{
24678pthread_t th; pthread_attr_t attr;
24679                     pthread_create(&th,0,start_routine,0);
24680                     pthread_join(th, 0);
24681                     pthread_attr_init(&attr);
24682                     pthread_cleanup_push(routine, 0);
24683                     pthread_cleanup_pop(0);
24684  ;
24685  return 0;
24686}
24687_ACEOF
24688if ac_fn_c_try_link "$LINENO"; then :
24689  ax_pthread_ok=yes
24690fi
24691rm -f core conftest.err conftest.$ac_objext \
24692    conftest$ac_exeext conftest.$ac_ext
24693
24694        LIBS="$save_LIBS"
24695        CFLAGS="$save_CFLAGS"
24696
24697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24698$as_echo "$ax_pthread_ok" >&6; }
24699        if test "x$ax_pthread_ok" = xyes; then
24700                break;
24701        fi
24702
24703        PTHREAD_LIBS=""
24704        PTHREAD_CFLAGS=""
24705done
24706fi
24707
24708# Various other checks:
24709if test "x$ax_pthread_ok" = xyes; then
24710        save_LIBS="$LIBS"
24711        LIBS="$PTHREAD_LIBS $LIBS"
24712        save_CFLAGS="$CFLAGS"
24713        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24714
24715        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
24716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
24717$as_echo_n "checking for joinable pthread attribute... " >&6; }
24718	attr_name=unknown
24719	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
24720	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721/* end confdefs.h.  */
24722#include <pthread.h>
24723int
24724main ()
24725{
24726int attr=$attr; return attr;
24727  ;
24728  return 0;
24729}
24730_ACEOF
24731if ac_fn_c_try_link "$LINENO"; then :
24732  attr_name=$attr; break
24733fi
24734rm -f core conftest.err conftest.$ac_objext \
24735    conftest$ac_exeext conftest.$ac_ext
24736	done
24737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
24738$as_echo "$attr_name" >&6; }
24739        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
24740
24741cat >>confdefs.h <<_ACEOF
24742#define PTHREAD_CREATE_JOINABLE $attr_name
24743_ACEOF
24744
24745        fi
24746
24747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
24748$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
24749        flag=no
24750        case "${host_cpu}-${host_os}" in
24751            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
24752            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
24753        esac
24754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
24755$as_echo "${flag}" >&6; }
24756        if test "x$flag" != xno; then
24757            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
24758        fi
24759
24760        LIBS="$save_LIBS"
24761        CFLAGS="$save_CFLAGS"
24762
24763        # More AIX lossage: must compile with xlc_r or cc_r
24764	if test x"$GCC" != xyes; then
24765          for ac_prog in xlc_r cc_r
24766do
24767  # Extract the first word of "$ac_prog", so it can be a program name with args.
24768set dummy $ac_prog; ac_word=$2
24769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24770$as_echo_n "checking for $ac_word... " >&6; }
24771if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
24772  $as_echo_n "(cached) " >&6
24773else
24774  if test -n "$PTHREAD_CC"; then
24775  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
24776else
24777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24778for as_dir in $PATH
24779do
24780  IFS=$as_save_IFS
24781  test -z "$as_dir" && as_dir=.
24782    for ac_exec_ext in '' $ac_executable_extensions; do
24783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24784    ac_cv_prog_PTHREAD_CC="$ac_prog"
24785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24786    break 2
24787  fi
24788done
24789  done
24790IFS=$as_save_IFS
24791
24792fi
24793fi
24794PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
24795if test -n "$PTHREAD_CC"; then
24796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
24797$as_echo "$PTHREAD_CC" >&6; }
24798else
24799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800$as_echo "no" >&6; }
24801fi
24802
24803
24804  test -n "$PTHREAD_CC" && break
24805done
24806test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
24807
24808        else
24809          PTHREAD_CC=$CC
24810	fi
24811else
24812        PTHREAD_CC="$CC"
24813fi
24814
24815
24816
24817
24818
24819# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24820if test x"$ax_pthread_ok" = xyes; then
24821
24822$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
24823
24824        :
24825else
24826        ax_pthread_ok=no
24827
24828fi
24829ac_ext=c
24830ac_cpp='$CPP $CPPFLAGS'
24831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24833ac_compiler_gnu=$ac_cv_c_compiler_gnu
24834
24835
24836
24837
24838
24839  for ac_header in $ac_header_list
24840do :
24841  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24843"
24844eval as_val=\$$as_ac_Header
24845   if test "x$as_val" = x""yes; then :
24846  cat >>confdefs.h <<_ACEOF
24847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24848_ACEOF
24849
24850fi
24851
24852done
24853
24854
24855
24856
24857
24858
24859
24860
24861for ac_func in getpagesize
24862do :
24863  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24864if test "x$ac_cv_func_getpagesize" = x""yes; then :
24865  cat >>confdefs.h <<_ACEOF
24866#define HAVE_GETPAGESIZE 1
24867_ACEOF
24868
24869fi
24870done
24871
24872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24873$as_echo_n "checking for working mmap... " >&6; }
24874if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
24875  $as_echo_n "(cached) " >&6
24876else
24877  if test "$cross_compiling" = yes; then :
24878  ac_cv_func_mmap_fixed_mapped=no
24879else
24880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24881/* end confdefs.h.  */
24882$ac_includes_default
24883/* malloc might have been renamed as rpl_malloc. */
24884#undef malloc
24885
24886/* Thanks to Mike Haertel and Jim Avera for this test.
24887   Here is a matrix of mmap possibilities:
24888	mmap private not fixed
24889	mmap private fixed at somewhere currently unmapped
24890	mmap private fixed at somewhere already mapped
24891	mmap shared not fixed
24892	mmap shared fixed at somewhere currently unmapped
24893	mmap shared fixed at somewhere already mapped
24894   For private mappings, we should verify that changes cannot be read()
24895   back from the file, nor mmap's back from the file at a different
24896   address.  (There have been systems where private was not correctly
24897   implemented like the infamous i386 svr4.0, and systems where the
24898   VM page cache was not coherent with the file system buffer cache
24899   like early versions of FreeBSD and possibly contemporary NetBSD.)
24900   For shared mappings, we should conversely verify that changes get
24901   propagated back to all the places they're supposed to be.
24902
24903   Grep wants private fixed already mapped.
24904   The main things grep needs to know about mmap are:
24905   * does it exist and is it safe to write into the mmap'd area
24906   * how to use it (BSD variants)  */
24907
24908#include <fcntl.h>
24909#include <sys/mman.h>
24910
24911#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24912char *malloc ();
24913#endif
24914
24915/* This mess was copied from the GNU getpagesize.h.  */
24916#ifndef HAVE_GETPAGESIZE
24917# ifdef _SC_PAGESIZE
24918#  define getpagesize() sysconf(_SC_PAGESIZE)
24919# else /* no _SC_PAGESIZE */
24920#  ifdef HAVE_SYS_PARAM_H
24921#   include <sys/param.h>
24922#   ifdef EXEC_PAGESIZE
24923#    define getpagesize() EXEC_PAGESIZE
24924#   else /* no EXEC_PAGESIZE */
24925#    ifdef NBPG
24926#     define getpagesize() NBPG * CLSIZE
24927#     ifndef CLSIZE
24928#      define CLSIZE 1
24929#     endif /* no CLSIZE */
24930#    else /* no NBPG */
24931#     ifdef NBPC
24932#      define getpagesize() NBPC
24933#     else /* no NBPC */
24934#      ifdef PAGESIZE
24935#       define getpagesize() PAGESIZE
24936#      endif /* PAGESIZE */
24937#     endif /* no NBPC */
24938#    endif /* no NBPG */
24939#   endif /* no EXEC_PAGESIZE */
24940#  else /* no HAVE_SYS_PARAM_H */
24941#   define getpagesize() 8192	/* punt totally */
24942#  endif /* no HAVE_SYS_PARAM_H */
24943# endif /* no _SC_PAGESIZE */
24944
24945#endif /* no HAVE_GETPAGESIZE */
24946
24947int
24948main ()
24949{
24950  char *data, *data2, *data3;
24951  int i, pagesize;
24952  int fd, fd2;
24953
24954  pagesize = getpagesize ();
24955
24956  /* First, make a file with some known garbage in it. */
24957  data = (char *) malloc (pagesize);
24958  if (!data)
24959    return 1;
24960  for (i = 0; i < pagesize; ++i)
24961    *(data + i) = rand ();
24962  umask (0);
24963  fd = creat ("conftest.mmap", 0600);
24964  if (fd < 0)
24965    return 2;
24966  if (write (fd, data, pagesize) != pagesize)
24967    return 3;
24968  close (fd);
24969
24970  /* Next, check that the tail of a page is zero-filled.  File must have
24971     non-zero length, otherwise we risk SIGBUS for entire page.  */
24972  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24973  if (fd2 < 0)
24974    return 4;
24975  data2 = "";
24976  if (write (fd2, data2, 1) != 1)
24977    return 5;
24978  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24979  if (data2 == MAP_FAILED)
24980    return 6;
24981  for (i = 0; i < pagesize; ++i)
24982    if (*(data2 + i))
24983      return 7;
24984  close (fd2);
24985  if (munmap (data2, pagesize))
24986    return 8;
24987
24988  /* Next, try to mmap the file at a fixed address which already has
24989     something else allocated at it.  If we can, also make sure that
24990     we see the same garbage.  */
24991  fd = open ("conftest.mmap", O_RDWR);
24992  if (fd < 0)
24993    return 9;
24994  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24995		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24996    return 10;
24997  for (i = 0; i < pagesize; ++i)
24998    if (*(data + i) != *(data2 + i))
24999      return 11;
25000
25001  /* Finally, make sure that changes to the mapped area do not
25002     percolate back to the file as seen by read().  (This is a bug on
25003     some variants of i386 svr4.0.)  */
25004  for (i = 0; i < pagesize; ++i)
25005    *(data2 + i) = *(data2 + i) + 1;
25006  data3 = (char *) malloc (pagesize);
25007  if (!data3)
25008    return 12;
25009  if (read (fd, data3, pagesize) != pagesize)
25010    return 13;
25011  for (i = 0; i < pagesize; ++i)
25012    if (*(data + i) != *(data3 + i))
25013      return 14;
25014  close (fd);
25015  return 0;
25016}
25017_ACEOF
25018if ac_fn_c_try_run "$LINENO"; then :
25019  ac_cv_func_mmap_fixed_mapped=yes
25020else
25021  ac_cv_func_mmap_fixed_mapped=no
25022fi
25023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25024  conftest.$ac_objext conftest.beam conftest.$ac_ext
25025fi
25026
25027fi
25028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
25029$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25030if test $ac_cv_func_mmap_fixed_mapped = yes; then
25031
25032$as_echo "#define HAVE_MMAP 1" >>confdefs.h
25033
25034fi
25035rm -f conftest.mmap conftest.txt
25036
25037
25038if test "$ax_pthread_ok" != "yes"
25039then
25040	as_fn_error "I don't know how to compile pthreads code on this system." "$LINENO" 5
25041fi
25042
25043CC="$PTHREAD_CC"
25044CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
25045EXTRA_LIBS="$EXTRA_LIBS $PTHREAD_LIBS"
25046for ac_func in getrlimit pthread_attr_getstacksize
25047do :
25048  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25050eval as_val=\$$as_ac_var
25051   if test "x$as_val" = x""yes; then :
25052  cat >>confdefs.h <<_ACEOF
25053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25054_ACEOF
25055
25056fi
25057done
25058
25059
25060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25061/* end confdefs.h.  */
25062
25063int
25064main ()
25065{
25066printf(__FUNCTION__);
25067  ;
25068  return 0;
25069}
25070_ACEOF
25071if ac_fn_c_try_compile "$LINENO"; then :
25072
25073$as_echo "#define HAVE__FUNCTION__ 1" >>confdefs.h
25074
25075fi
25076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077
25078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25079/* end confdefs.h.  */
25080#include <stdarg.h>
25081int
25082main ()
25083{
25084int f(const char *f, ...)
25085	       __attribute__((format (printf, 1, 2)))
25086  ;
25087  return 0;
25088}
25089_ACEOF
25090if ac_fn_c_try_compile "$LINENO"; then :
25091
25092$as_echo "#define HAVE__ATTRIBUTE__ 1" >>confdefs.h
25093
25094fi
25095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25096
25097unset pkg_failed
25098
25099
25100
25101
25102# Check whether --with-ncurses was given.
25103if test "${with_ncurses+set}" = set; then :
25104  withval=$with_ncurses;
25105else
25106  with_ncurses=check
25107fi
25108
25109
25110# Check whether --with-ncursesw was given.
25111if test "${with_ncursesw+set}" = set; then :
25112  withval=$with_ncursesw;
25113else
25114  with_ncursesw=check
25115fi
25116
25117
25118    ax_saved_LIBS=$LIBS
25119    ax_saved_CPPFLAGS=$CPPFLAGS
25120
25121    if test "x$with_ncurses" = xyes || test "x$with_ncursesw" = xyes; then :
25122  ax_with_plaincurses=no
25123else
25124  ax_with_plaincurses=check
25125fi
25126
25127    ax_cv_curses_which=no
25128
25129    # Test for NcursesW
25130    if test "x$CURSES_LIBS" = x && test "x$with_ncursesw" != xno; then :
25131
25132
25133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw via pkg-config" >&5
25134$as_echo_n "checking for ncursesw via pkg-config... " >&6; }
25135
25136
25137
25138    if test -n "$_ax_cv_ncursesw_libs"; then
25139    pkg_cv__ax_cv_ncursesw_libs="$_ax_cv_ncursesw_libs"
25140 elif test -n "$PKG_CONFIG"; then
25141    if test -n "$PKG_CONFIG" && \
25142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25143  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25144  ac_status=$?
25145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146  test $ac_status = 0; }; then
25147  pkg_cv__ax_cv_ncursesw_libs=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
25148else
25149  pkg_failed=yes
25150fi
25151 else
25152    pkg_failed=untried
25153fi
25154    if test -n "$_ax_cv_ncursesw_cppflags"; then
25155    pkg_cv__ax_cv_ncursesw_cppflags="$_ax_cv_ncursesw_cppflags"
25156 elif test -n "$PKG_CONFIG"; then
25157    if test -n "$PKG_CONFIG" && \
25158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25159  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25160  ac_status=$?
25161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162  test $ac_status = 0; }; then
25163  pkg_cv__ax_cv_ncursesw_cppflags=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
25164else
25165  pkg_failed=yes
25166fi
25167 else
25168    pkg_failed=untried
25169fi
25170
25171    if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"; then :
25172
25173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25174$as_echo "no" >&6; }
25175        # No suitable .pc file found, have to find flags via fallback
25176        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw via fallback" >&5
25177$as_echo_n "checking for ncursesw via fallback... " >&6; }
25178if test "${ax_cv_ncursesw+set}" = set; then :
25179  $as_echo_n "(cached) " >&6
25180else
25181
25182            $as_echo
25183            pkg_cv__ax_cv_ncursesw_libs="-lncursesw"
25184            pkg_cv__ax_cv_ncursesw_cppflags="-D_GNU_SOURCE $CURSES_CFLAGS"
25185            LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
25186            CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
25187
25188            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncursesw_libs" >&5
25189$as_echo_n "checking for initscr() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
25190            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25191/* end confdefs.h.  */
25192
25193/* Override any GCC internal prototype to avoid an error.
25194   Use char because int might match the return type of a GCC
25195   builtin and then its argument prototype would still apply.  */
25196#ifdef __cplusplus
25197extern "C"
25198#endif
25199char initscr ();
25200int
25201main ()
25202{
25203return initscr ();
25204  ;
25205  return 0;
25206}
25207_ACEOF
25208if ac_fn_c_try_link "$LINENO"; then :
25209
25210                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25211$as_echo "yes" >&6; }
25212                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs" >&5
25213$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
25214                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215/* end confdefs.h.  */
25216
25217/* Override any GCC internal prototype to avoid an error.
25218   Use char because int might match the return type of a GCC
25219   builtin and then its argument prototype would still apply.  */
25220#ifdef __cplusplus
25221extern "C"
25222#endif
25223char nodelay ();
25224int
25225main ()
25226{
25227return nodelay ();
25228  ;
25229  return 0;
25230}
25231_ACEOF
25232if ac_fn_c_try_link "$LINENO"; then :
25233
25234                        ax_cv_ncursesw=yes
25235
25236else
25237
25238                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25239$as_echo "no" >&6; }
25240                        pkg_cv__ax_cv_ncursesw_libs="$pkg_cv__ax_cv_ncursesw_libs -ltinfow"
25241                        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
25242
25243                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs" >&5
25244$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_libs... " >&6; }
25245                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25246/* end confdefs.h.  */
25247
25248/* Override any GCC internal prototype to avoid an error.
25249   Use char because int might match the return type of a GCC
25250   builtin and then its argument prototype would still apply.  */
25251#ifdef __cplusplus
25252extern "C"
25253#endif
25254char nodelay ();
25255int
25256main ()
25257{
25258return nodelay ();
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_link "$LINENO"; then :
25264
25265                            ax_cv_ncursesw=yes
25266
25267else
25268
25269                            ax_cv_ncursesw=no
25270
25271fi
25272rm -f core conftest.err conftest.$ac_objext \
25273    conftest$ac_exeext conftest.$ac_ext
25274
25275fi
25276rm -f core conftest.err conftest.$ac_objext \
25277    conftest$ac_exeext conftest.$ac_ext
25278
25279else
25280
25281                    ax_cv_ncursesw=no
25282
25283fi
25284rm -f core conftest.err conftest.$ac_objext \
25285    conftest$ac_exeext conftest.$ac_ext
25286
25287fi
25288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncursesw" >&5
25289$as_echo "$ax_cv_ncursesw" >&6; }
25290
25291else
25292
25293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25294$as_echo "yes" >&6; }
25295        # Found .pc file, using its information
25296        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_libs"
25297        CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
25298        ax_cv_ncursesw=yes
25299
25300fi
25301
25302
25303        if test "x$ax_cv_ncursesw" = xno && test "x$with_ncursesw" = xyes; then :
25304
25305            as_fn_error "--with-ncursesw specified but could not find NcursesW library" "$LINENO" 5
25306
25307fi
25308
25309        if test "x$ax_cv_ncursesw" = xyes; then :
25310
25311            ax_cv_curses=yes
25312            ax_cv_curses_which=ncursesw
25313            CURSES_LIBS="$pkg_cv__ax_cv_ncursesw_libs"
25314            CURSES_CFLAGS="$pkg_cv__ax_cv_ncursesw_cppflags"
25315
25316$as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
25317
25318
25319$as_echo "#define HAVE_CURSES 1" >>confdefs.h
25320
25321
25322            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw/curses.h" >&5
25323$as_echo_n "checking for working ncursesw/curses.h... " >&6; }
25324if test "${ax_cv_header_ncursesw_curses_h+set}" = set; then :
25325  $as_echo_n "(cached) " >&6
25326else
25327
25328                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329/* end confdefs.h.  */
25330
25331                        #define _XOPEN_SOURCE_EXTENDED 1
25332                        #include <ncursesw/curses.h>
25333
25334int
25335main ()
25336{
25337
25338                        chtype a = A_BOLD;
25339                        int b = KEY_LEFT;
25340                        chtype c = COLOR_PAIR(1) & A_COLOR;
25341                        attr_t d = WA_NORMAL;
25342                        cchar_t e;
25343                        wint_t f;
25344                        int g = getattrs(stdscr);
25345                        int h = getcurx(stdscr) + getmaxx(stdscr);
25346                        initscr();
25347                        init_pair(1, COLOR_WHITE, COLOR_RED);
25348                        wattr_set(stdscr, d, 0, NULL);
25349                        wget_wch(stdscr, &f);
25350
25351  ;
25352  return 0;
25353}
25354_ACEOF
25355if ac_fn_c_try_link "$LINENO"; then :
25356  ax_cv_header_ncursesw_curses_h=yes
25357else
25358  ax_cv_header_ncursesw_curses_h=no
25359fi
25360rm -f core conftest.err conftest.$ac_objext \
25361    conftest$ac_exeext conftest.$ac_ext
25362
25363fi
25364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_curses_h" >&5
25365$as_echo "$ax_cv_header_ncursesw_curses_h" >&6; }
25366            if test "x$ax_cv_header_ncursesw_curses_h" = xyes; then :
25367
25368                ax_cv_curses_enhanced=yes
25369                ax_cv_curses_color=yes
25370                ax_cv_curses_obsolete=yes
25371
25372$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
25373
25374
25375$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
25376
25377
25378$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
25379
25380
25381$as_echo "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
25382
25383
25384fi
25385
25386            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw.h" >&5
25387$as_echo_n "checking for working ncursesw.h... " >&6; }
25388if test "${ax_cv_header_ncursesw_h+set}" = set; then :
25389  $as_echo_n "(cached) " >&6
25390else
25391
25392                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25393/* end confdefs.h.  */
25394
25395                        #define _XOPEN_SOURCE_EXTENDED 1
25396                        #include <ncursesw.h>
25397
25398int
25399main ()
25400{
25401
25402                        chtype a = A_BOLD;
25403                        int b = KEY_LEFT;
25404                        chtype c = COLOR_PAIR(1) & A_COLOR;
25405                        attr_t d = WA_NORMAL;
25406                        cchar_t e;
25407                        wint_t f;
25408                        int g = getattrs(stdscr);
25409                        int h = getcurx(stdscr) + getmaxx(stdscr);
25410                        initscr();
25411                        init_pair(1, COLOR_WHITE, COLOR_RED);
25412                        wattr_set(stdscr, d, 0, NULL);
25413                        wget_wch(stdscr, &f);
25414
25415  ;
25416  return 0;
25417}
25418_ACEOF
25419if ac_fn_c_try_link "$LINENO"; then :
25420  ax_cv_header_ncursesw_h=yes
25421else
25422  ax_cv_header_ncursesw_h=no
25423fi
25424rm -f core conftest.err conftest.$ac_objext \
25425    conftest$ac_exeext conftest.$ac_ext
25426
25427fi
25428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_h" >&5
25429$as_echo "$ax_cv_header_ncursesw_h" >&6; }
25430            if test "x$ax_cv_header_ncursesw_h" = xyes; then :
25431
25432                ax_cv_curses_enhanced=yes
25433                ax_cv_curses_color=yes
25434                ax_cv_curses_obsolete=yes
25435
25436$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
25437
25438
25439$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
25440
25441
25442$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
25443
25444
25445$as_echo "#define HAVE_NCURSESW_H 1" >>confdefs.h
25446
25447
25448fi
25449
25450            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
25451$as_echo_n "checking for working ncurses.h... " >&6; }
25452if test "${ax_cv_header_ncurses_h_with_ncursesw+set}" = set; then :
25453  $as_echo_n "(cached) " >&6
25454else
25455
25456                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25457/* end confdefs.h.  */
25458
25459                        #define _XOPEN_SOURCE_EXTENDED 1
25460                        #include <ncurses.h>
25461
25462int
25463main ()
25464{
25465
25466                        chtype a = A_BOLD;
25467                        int b = KEY_LEFT;
25468                        chtype c = COLOR_PAIR(1) & A_COLOR;
25469                        attr_t d = WA_NORMAL;
25470                        cchar_t e;
25471                        wint_t f;
25472                        int g = getattrs(stdscr);
25473                        int h = getcurx(stdscr) + getmaxx(stdscr);
25474                        initscr();
25475                        init_pair(1, COLOR_WHITE, COLOR_RED);
25476                        wattr_set(stdscr, d, 0, NULL);
25477                        wget_wch(stdscr, &f);
25478
25479  ;
25480  return 0;
25481}
25482_ACEOF
25483if ac_fn_c_try_link "$LINENO"; then :
25484  ax_cv_header_ncurses_h_with_ncursesw=yes
25485else
25486  ax_cv_header_ncurses_h_with_ncursesw=no
25487fi
25488rm -f core conftest.err conftest.$ac_objext \
25489    conftest$ac_exeext conftest.$ac_ext
25490
25491fi
25492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h_with_ncursesw" >&5
25493$as_echo "$ax_cv_header_ncurses_h_with_ncursesw" >&6; }
25494            if test "x$ax_cv_header_ncurses_h_with_ncursesw" = xyes; then :
25495
25496                ax_cv_curses_enhanced=yes
25497                ax_cv_curses_color=yes
25498                ax_cv_curses_obsolete=yes
25499
25500$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
25501
25502
25503$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
25504
25505
25506$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
25507
25508
25509$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
25510
25511
25512fi
25513
25514            if test "x$ax_cv_header_ncursesw_curses_h" = xno && test "x$ax_cv_header_ncursesw_h" = xno && test "x$ax_cv_header_ncurses_h_with_ncursesw" = xno; then :
25515
25516                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&5
25517$as_echo "$as_me: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&2;}
25518
25519fi
25520
25521fi
25522
25523fi
25524    unset pkg_cv__ax_cv_ncursesw_libs
25525    unset pkg_cv__ax_cv_ncursesw_cppflags
25526
25527    # Test for Ncurses
25528    if test "x$CURSES_LIBS" = x && test "x$with_ncurses" != xno && test "x$ax_cv_curses_which" = xno; then :
25529
25530
25531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses via pkg-config" >&5
25532$as_echo_n "checking for ncurses via pkg-config... " >&6; }
25533
25534
25535
25536    if test -n "$_ax_cv_ncurses_libs"; then
25537    pkg_cv__ax_cv_ncurses_libs="$_ax_cv_ncurses_libs"
25538 elif test -n "$PKG_CONFIG"; then
25539    if test -n "$PKG_CONFIG" && \
25540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
25541  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
25542  ac_status=$?
25543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25544  test $ac_status = 0; }; then
25545  pkg_cv__ax_cv_ncurses_libs=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
25546else
25547  pkg_failed=yes
25548fi
25549 else
25550    pkg_failed=untried
25551fi
25552    if test -n "$_ax_cv_ncurses_cppflags"; then
25553    pkg_cv__ax_cv_ncurses_cppflags="$_ax_cv_ncurses_cppflags"
25554 elif test -n "$PKG_CONFIG"; then
25555    if test -n "$PKG_CONFIG" && \
25556    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
25557  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
25558  ac_status=$?
25559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560  test $ac_status = 0; }; then
25561  pkg_cv__ax_cv_ncurses_cppflags=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
25562else
25563  pkg_failed=yes
25564fi
25565 else
25566    pkg_failed=untried
25567fi
25568
25569    if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"; then :
25570
25571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572$as_echo "no" >&6; }
25573        # No suitable .pc file found, have to find flags via fallback
25574        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses via fallback" >&5
25575$as_echo_n "checking for ncurses via fallback... " >&6; }
25576if test "${ax_cv_ncurses+set}" = set; then :
25577  $as_echo_n "(cached) " >&6
25578else
25579
25580            $as_echo
25581            pkg_cv__ax_cv_ncurses_libs="-lncurses"
25582            pkg_cv__ax_cv_ncurses_cppflags="-D_GNU_SOURCE $CURSES_CFLAGS"
25583            LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
25584            CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
25585
25586            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncurses_libs" >&5
25587$as_echo_n "checking for initscr() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
25588            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589/* end confdefs.h.  */
25590
25591/* Override any GCC internal prototype to avoid an error.
25592   Use char because int might match the return type of a GCC
25593   builtin and then its argument prototype would still apply.  */
25594#ifdef __cplusplus
25595extern "C"
25596#endif
25597char initscr ();
25598int
25599main ()
25600{
25601return initscr ();
25602  ;
25603  return 0;
25604}
25605_ACEOF
25606if ac_fn_c_try_link "$LINENO"; then :
25607
25608                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25609$as_echo "yes" >&6; }
25610                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs" >&5
25611$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
25612                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613/* end confdefs.h.  */
25614
25615/* Override any GCC internal prototype to avoid an error.
25616   Use char because int might match the return type of a GCC
25617   builtin and then its argument prototype would still apply.  */
25618#ifdef __cplusplus
25619extern "C"
25620#endif
25621char nodelay ();
25622int
25623main ()
25624{
25625return nodelay ();
25626  ;
25627  return 0;
25628}
25629_ACEOF
25630if ac_fn_c_try_link "$LINENO"; then :
25631
25632                        ax_cv_ncurses=yes
25633
25634else
25635
25636                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25637$as_echo "no" >&6; }
25638                        pkg_cv__ax_cv_ncurses_libs="$pkg_cv__ax_cv_ncurses_libs -ltinfo"
25639
25640                        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
25641
25642                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs" >&5
25643$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncurses_libs... " >&6; }
25644                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25645/* end confdefs.h.  */
25646
25647/* Override any GCC internal prototype to avoid an error.
25648   Use char because int might match the return type of a GCC
25649   builtin and then its argument prototype would still apply.  */
25650#ifdef __cplusplus
25651extern "C"
25652#endif
25653char nodelay ();
25654int
25655main ()
25656{
25657return nodelay ();
25658  ;
25659  return 0;
25660}
25661_ACEOF
25662if ac_fn_c_try_link "$LINENO"; then :
25663
25664                            ax_cv_ncurses=yes
25665
25666else
25667
25668                            ax_cv_ncurses=no
25669
25670fi
25671rm -f core conftest.err conftest.$ac_objext \
25672    conftest$ac_exeext conftest.$ac_ext
25673
25674fi
25675rm -f core conftest.err conftest.$ac_objext \
25676    conftest$ac_exeext conftest.$ac_ext
25677
25678else
25679
25680                    ax_cv_ncurses=no
25681
25682fi
25683rm -f core conftest.err conftest.$ac_objext \
25684    conftest$ac_exeext conftest.$ac_ext
25685
25686fi
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncurses" >&5
25688$as_echo "$ax_cv_ncurses" >&6; }
25689
25690else
25691
25692        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25693$as_echo "yes" >&6; }
25694        # Found .pc file, using its information
25695        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_libs"
25696        CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
25697        ax_cv_ncurses=yes
25698
25699fi
25700
25701
25702        if test "x$ax_cv_ncurses" = xno && test "x$with_ncurses" = xyes; then :
25703
25704            as_fn_error "--with-ncurses specified but could not find Ncurses library" "$LINENO" 5
25705
25706fi
25707
25708        if test "x$ax_cv_ncurses" = xyes; then :
25709
25710            ax_cv_curses=yes
25711            ax_cv_curses_which=ncurses
25712            CURSES_LIBS="$pkg_cv__ax_cv_ncurses_libs"
25713            CURSES_CFLAGS="$pkg_cv__ax_cv_ncurses_cppflags"
25714
25715$as_echo "#define HAVE_NCURSES 1" >>confdefs.h
25716
25717
25718$as_echo "#define HAVE_CURSES 1" >>confdefs.h
25719
25720
25721            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses/curses.h" >&5
25722$as_echo_n "checking for working ncurses/curses.h... " >&6; }
25723if test "${ax_cv_header_ncurses_curses_h+set}" = set; then :
25724  $as_echo_n "(cached) " >&6
25725else
25726
25727                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728/* end confdefs.h.  */
25729
25730                        #include <ncurses/curses.h>
25731
25732int
25733main ()
25734{
25735
25736                        chtype a = A_BOLD;
25737                        int b = KEY_LEFT;
25738                        chtype c = COLOR_PAIR(1) & A_COLOR;
25739                        int g = getattrs(stdscr);
25740                        int h = getcurx(stdscr) + getmaxx(stdscr);
25741                        initscr();
25742                        init_pair(1, COLOR_WHITE, COLOR_RED);
25743
25744  ;
25745  return 0;
25746}
25747_ACEOF
25748if ac_fn_c_try_link "$LINENO"; then :
25749  ax_cv_header_ncurses_curses_h=yes
25750else
25751  ax_cv_header_ncurses_curses_h=no
25752fi
25753rm -f core conftest.err conftest.$ac_objext \
25754    conftest$ac_exeext conftest.$ac_ext
25755
25756fi
25757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_curses_h" >&5
25758$as_echo "$ax_cv_header_ncurses_curses_h" >&6; }
25759            if test "x$ax_cv_header_ncurses_curses_h" = xyes; then :
25760
25761                ax_cv_curses_color=yes
25762                ax_cv_curses_obsolete=yes
25763
25764$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
25765
25766
25767$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
25768
25769
25770$as_echo "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
25771
25772
25773fi
25774
25775            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
25776$as_echo_n "checking for working ncurses.h... " >&6; }
25777if test "${ax_cv_header_ncurses_h+set}" = set; then :
25778  $as_echo_n "(cached) " >&6
25779else
25780
25781                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782/* end confdefs.h.  */
25783
25784                        #include <ncurses.h>
25785
25786int
25787main ()
25788{
25789
25790                        chtype a = A_BOLD;
25791                        int b = KEY_LEFT;
25792                        chtype c = COLOR_PAIR(1) & A_COLOR;
25793                        int g = getattrs(stdscr);
25794                        int h = getcurx(stdscr) + getmaxx(stdscr);
25795                        initscr();
25796                        init_pair(1, COLOR_WHITE, COLOR_RED);
25797
25798  ;
25799  return 0;
25800}
25801_ACEOF
25802if ac_fn_c_try_link "$LINENO"; then :
25803  ax_cv_header_ncurses_h=yes
25804else
25805  ax_cv_header_ncurses_h=no
25806fi
25807rm -f core conftest.err conftest.$ac_objext \
25808    conftest$ac_exeext conftest.$ac_ext
25809
25810fi
25811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h" >&5
25812$as_echo "$ax_cv_header_ncurses_h" >&6; }
25813            if test "x$ax_cv_header_ncurses_h" = xyes; then :
25814
25815                ax_cv_curses_color=yes
25816                ax_cv_curses_obsolete=yes
25817
25818$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
25819
25820
25821$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
25822
25823
25824$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
25825
25826
25827fi
25828
25829            if test "x$ax_cv_header_ncurses_curses_h" = xno && test "x$ax_cv_header_ncurses_h" = xno; then :
25830
25831                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&5
25832$as_echo "$as_me: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&2;}
25833
25834fi
25835
25836fi
25837
25838fi
25839    unset pkg_cv__ax_cv_ncurses_libs
25840    unset pkg_cv__ax_cv_ncurses_cppflags
25841
25842    # Test for plain Curses (or if CURSES_LIBS was set by user)
25843    if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno; then :
25844
25845        if test "x$CURSES_LIBS" != x; then :
25846
25847            LIBS="$ax_saved_LIBS $CURSES_LIBS"
25848
25849else
25850
25851            LIBS="$ax_saved_LIBS -lcurses"
25852
25853fi
25854
25855        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses library" >&5
25856$as_echo_n "checking for Curses library... " >&6; }
25857if test "${ax_cv_plaincurses+set}" = set; then :
25858  $as_echo_n "(cached) " >&6
25859else
25860
25861            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25862/* end confdefs.h.  */
25863
25864/* Override any GCC internal prototype to avoid an error.
25865   Use char because int might match the return type of a GCC
25866   builtin and then its argument prototype would still apply.  */
25867#ifdef __cplusplus
25868extern "C"
25869#endif
25870char initscr ();
25871int
25872main ()
25873{
25874return initscr ();
25875  ;
25876  return 0;
25877}
25878_ACEOF
25879if ac_fn_c_try_link "$LINENO"; then :
25880  ax_cv_plaincurses=yes
25881else
25882  ax_cv_plaincurses=no
25883fi
25884rm -f core conftest.err conftest.$ac_objext \
25885    conftest$ac_exeext conftest.$ac_ext
25886
25887fi
25888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses" >&5
25889$as_echo "$ax_cv_plaincurses" >&6; }
25890
25891        if test "x$ax_cv_plaincurses" = xyes; then :
25892
25893            ax_cv_curses=yes
25894            ax_cv_curses_which=plaincurses
25895            if test "x$CURSES_LIBS" = x; then :
25896
25897                CURSES_LIBS="-lcurses"
25898
25899fi
25900
25901$as_echo "#define HAVE_CURSES 1" >>confdefs.h
25902
25903
25904            # Check for base conformance (and header file)
25905
25906            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working curses.h" >&5
25907$as_echo_n "checking for working curses.h... " >&6; }
25908if test "${ax_cv_header_curses_h+set}" = set; then :
25909  $as_echo_n "(cached) " >&6
25910else
25911
25912                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25913/* end confdefs.h.  */
25914
25915                        #include <curses.h>
25916
25917int
25918main ()
25919{
25920
25921                        chtype a = A_BOLD;
25922                        int b = KEY_LEFT;
25923                        initscr();
25924
25925  ;
25926  return 0;
25927}
25928_ACEOF
25929if ac_fn_c_try_link "$LINENO"; then :
25930  ax_cv_header_curses_h=yes
25931else
25932  ax_cv_header_curses_h=no
25933fi
25934rm -f core conftest.err conftest.$ac_objext \
25935    conftest$ac_exeext conftest.$ac_ext
25936
25937fi
25938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_curses_h" >&5
25939$as_echo "$ax_cv_header_curses_h" >&6; }
25940            if test "x$ax_cv_header_curses_h" = xyes; then :
25941
25942
25943$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
25944
25945
25946                # Check for X/Open Enhanced conformance
25947
25948                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X/Open Enhanced Curses conformance" >&5
25949$as_echo_n "checking for X/Open Enhanced Curses conformance... " >&6; }
25950if test "${ax_cv_plaincurses_enhanced+set}" = set; then :
25951  $as_echo_n "(cached) " >&6
25952else
25953
25954                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955/* end confdefs.h.  */
25956
25957                            #define _XOPEN_SOURCE_EXTENDED 1
25958                            #include <curses.h>
25959                            #ifndef _XOPEN_CURSES
25960                            #error "this Curses library is not enhanced"
25961                            "this Curses library is not enhanced"
25962                            #endif
25963
25964int
25965main ()
25966{
25967
25968                            chtype a = A_BOLD;
25969                            int b = KEY_LEFT;
25970                            chtype c = COLOR_PAIR(1) & A_COLOR;
25971                            attr_t d = WA_NORMAL;
25972                            cchar_t e;
25973                            wint_t f;
25974                            initscr();
25975                            init_pair(1, COLOR_WHITE, COLOR_RED);
25976                            wattr_set(stdscr, d, 0, NULL);
25977                            wget_wch(stdscr, &f);
25978
25979  ;
25980  return 0;
25981}
25982_ACEOF
25983if ac_fn_c_try_link "$LINENO"; then :
25984  ax_cv_plaincurses_enhanced=yes
25985else
25986  ax_cv_plaincurses_enhanced=no
25987fi
25988rm -f core conftest.err conftest.$ac_objext \
25989    conftest$ac_exeext conftest.$ac_ext
25990
25991fi
25992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_enhanced" >&5
25993$as_echo "$ax_cv_plaincurses_enhanced" >&6; }
25994                if test "x$ax_cv_plaincurses_enhanced" = xyes; then :
25995
25996                    ax_cv_curses_enhanced=yes
25997                    ax_cv_curses_color=yes
25998
25999$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
26000
26001
26002$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
26003
26004
26005fi
26006
26007                # Check for color functions
26008
26009                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses color functions" >&5
26010$as_echo_n "checking for Curses color functions... " >&6; }
26011if test "${ax_cv_plaincurses_color+set}" = set; then :
26012  $as_echo_n "(cached) " >&6
26013else
26014
26015                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016/* end confdefs.h.  */
26017
26018                        #define _XOPEN_SOURCE_EXTENDED 1
26019                        #include <curses.h>
26020
26021int
26022main ()
26023{
26024
26025                            chtype a = A_BOLD;
26026                            int b = KEY_LEFT;
26027                            chtype c = COLOR_PAIR(1) & A_COLOR;
26028                            initscr();
26029                            init_pair(1, COLOR_WHITE, COLOR_RED);
26030
26031  ;
26032  return 0;
26033}
26034_ACEOF
26035if ac_fn_c_try_link "$LINENO"; then :
26036  ax_cv_plaincurses_color=yes
26037else
26038  ax_cv_plaincurses_color=no
26039fi
26040rm -f core conftest.err conftest.$ac_objext \
26041    conftest$ac_exeext conftest.$ac_ext
26042
26043fi
26044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_color" >&5
26045$as_echo "$ax_cv_plaincurses_color" >&6; }
26046                if test "x$ax_cv_plaincurses_color" = xyes; then :
26047
26048                    ax_cv_curses_color=yes
26049
26050$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
26051
26052
26053fi
26054
26055                # Check for obsolete functions
26056
26057                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete Curses functions" >&5
26058$as_echo_n "checking for obsolete Curses functions... " >&6; }
26059if test "${ax_cv_plaincurses_obsolete+set}" = set; then :
26060  $as_echo_n "(cached) " >&6
26061else
26062
26063                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064/* end confdefs.h.  */
26065
26066                        #include <curses.h>
26067
26068int
26069main ()
26070{
26071
26072                        chtype a = A_BOLD;
26073                        int b = KEY_LEFT;
26074                        int g = getattrs(stdscr);
26075                        int h = getcurx(stdscr) + getmaxx(stdscr);
26076                        initscr();
26077
26078  ;
26079  return 0;
26080}
26081_ACEOF
26082if ac_fn_c_try_link "$LINENO"; then :
26083  ax_cv_plaincurses_obsolete=yes
26084else
26085  ax_cv_plaincurses_obsolete=no
26086fi
26087rm -f core conftest.err conftest.$ac_objext \
26088    conftest$ac_exeext conftest.$ac_ext
26089
26090fi
26091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_obsolete" >&5
26092$as_echo "$ax_cv_plaincurses_obsolete" >&6; }
26093                if test "x$ax_cv_plaincurses_obsolete" = xyes; then :
26094
26095                    ax_cv_curses_obsolete=yes
26096
26097$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
26098
26099
26100fi
26101
26102fi
26103
26104            if test "x$ax_cv_header_curses_h" = xno; then :
26105
26106                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working curses.h" >&5
26107$as_echo "$as_me: WARNING: could not find a working curses.h" >&2;}
26108
26109fi
26110
26111fi
26112
26113fi
26114
26115    if test "x$ax_cv_curses"          != xyes; then :
26116  ax_cv_curses=no
26117fi
26118    if test "x$ax_cv_curses_enhanced" != xyes; then :
26119  ax_cv_curses_enhanced=no
26120fi
26121    if test "x$ax_cv_curses_color"    != xyes; then :
26122  ax_cv_curses_color=no
26123fi
26124    if test "x$ax_cv_curses_obsolete" != xyes; then :
26125  ax_cv_curses_obsolete=no
26126fi
26127
26128    LIBS=$ax_saved_LIBS
26129    CPPFLAGS=$ax_saved_CPPFLAGS
26130
26131    unset ax_saved_LIBS
26132    unset ax_saved_CPPFLAGS
26133
26134if test "x$ax_cv_curses" != "xyes"
26135then
26136	as_fn_error "You need curses/ncurses library and header files." "$LINENO" 5
26137else
26138	as_ac_Lib=`$as_echo "ac_cv_lib_$CURSES_LIB''_set_escdelay" | $as_tr_sh`
26139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_escdelay in -l$CURSES_LIB" >&5
26140$as_echo_n "checking for set_escdelay in -l$CURSES_LIB... " >&6; }
26141if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
26142  $as_echo_n "(cached) " >&6
26143else
26144  ac_check_lib_save_LIBS=$LIBS
26145LIBS="-l$CURSES_LIB  $LIBS"
26146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147/* end confdefs.h.  */
26148
26149/* Override any GCC internal prototype to avoid an error.
26150   Use char because int might match the return type of a GCC
26151   builtin and then its argument prototype would still apply.  */
26152#ifdef __cplusplus
26153extern "C"
26154#endif
26155char set_escdelay ();
26156int
26157main ()
26158{
26159return set_escdelay ();
26160  ;
26161  return 0;
26162}
26163_ACEOF
26164if ac_fn_c_try_link "$LINENO"; then :
26165  eval "$as_ac_Lib=yes"
26166else
26167  eval "$as_ac_Lib=no"
26168fi
26169rm -f core conftest.err conftest.$ac_objext \
26170    conftest$ac_exeext conftest.$ac_ext
26171LIBS=$ac_check_lib_save_LIBS
26172fi
26173eval ac_res=\$$as_ac_Lib
26174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26175$as_echo "$ac_res" >&6; }
26176eval as_val=\$$as_ac_Lib
26177   if test "x$as_val" = x""yes; then :
26178
26179$as_echo "#define HAVE_SET_ESCDELAY 1" >>confdefs.h
26180
26181else
26182  ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26183if test "x$ac_cv_func_setenv" = x""yes; then :
26184
26185else
26186  as_fn_error "Required function setenv not found." "$LINENO" 5
26187fi
26188
26189fi
26190
26191	EXTRA_LIBS="$EXTRA_LIBS $CURSES_LIB"
26192fi
26193EXTRA_LIBS="$EXTRA_LIBS $CURSES_LIBS"
26194for flag in $CURSES_CFLAGS
26195do
26196	if test "x$flag" != "x-D_GNU_SOURCE"
26197	then
26198		CPPFLAGS="$CPPFLAGS $flag"
26199	fi
26200done
26201{ { $as_echo "$as_me:${as_lineno-$LINENO}: : The test below is actually for set_escdelay in curses library."; } >&5
26202  (: The test below is actually for set_escdelay in curses library.) 2>&5
26203  ac_status=$?
26204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26205  test $ac_status = 0; }
26206{ { $as_echo "$as_me:${as_lineno-$LINENO}: : Using 'm' avoids unpacking CURSES_LIBS."; } >&5
26207  (: Using 'm' avoids unpacking CURSES_LIBS.) 2>&5
26208  ac_status=$?
26209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210  test $ac_status = 0; }
26211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_escdelay in -lm" >&5
26212$as_echo_n "checking for set_escdelay in -lm... " >&6; }
26213if test "${ac_cv_lib_m_set_escdelay+set}" = set; then :
26214  $as_echo_n "(cached) " >&6
26215else
26216  ac_check_lib_save_LIBS=$LIBS
26217LIBS="-lm $CURSES_LIBS $LIBS"
26218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26219/* end confdefs.h.  */
26220
26221/* Override any GCC internal prototype to avoid an error.
26222   Use char because int might match the return type of a GCC
26223   builtin and then its argument prototype would still apply.  */
26224#ifdef __cplusplus
26225extern "C"
26226#endif
26227char set_escdelay ();
26228int
26229main ()
26230{
26231return set_escdelay ();
26232  ;
26233  return 0;
26234}
26235_ACEOF
26236if ac_fn_c_try_link "$LINENO"; then :
26237  ac_cv_lib_m_set_escdelay=yes
26238else
26239  ac_cv_lib_m_set_escdelay=no
26240fi
26241rm -f core conftest.err conftest.$ac_objext \
26242    conftest$ac_exeext conftest.$ac_ext
26243LIBS=$ac_check_lib_save_LIBS
26244fi
26245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_set_escdelay" >&5
26246$as_echo "$ac_cv_lib_m_set_escdelay" >&6; }
26247if test "x$ac_cv_lib_m_set_escdelay" = x""yes; then :
26248
26249$as_echo "#define HAVE_SET_ESCDELAY 1" >>confdefs.h
26250
26251fi
26252
26253
26254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
26255$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
26256if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then :
26257  $as_echo_n "(cached) " >&6
26258else
26259  ac_check_lib_save_LIBS=$LIBS
26260LIBS="-lpopt  $LIBS"
26261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26262/* end confdefs.h.  */
26263
26264/* Override any GCC internal prototype to avoid an error.
26265   Use char because int might match the return type of a GCC
26266   builtin and then its argument prototype would still apply.  */
26267#ifdef __cplusplus
26268extern "C"
26269#endif
26270char poptGetContext ();
26271int
26272main ()
26273{
26274return poptGetContext ();
26275  ;
26276  return 0;
26277}
26278_ACEOF
26279if ac_fn_c_try_link "$LINENO"; then :
26280  ac_cv_lib_popt_poptGetContext=yes
26281else
26282  ac_cv_lib_popt_poptGetContext=no
26283fi
26284rm -f core conftest.err conftest.$ac_objext \
26285    conftest$ac_exeext conftest.$ac_ext
26286LIBS=$ac_check_lib_save_LIBS
26287fi
26288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
26289$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
26290if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then :
26291  true
26292else
26293  POPT_MISSING="yes"
26294fi
26295
26296
26297ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
26298if test "x$ac_cv_func_getopt_long" = x""yes; then :
26299  for ac_header in getopt.h
26300do :
26301  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
26302if test "x$ac_cv_header_getopt_h" = x""yes; then :
26303  cat >>confdefs.h <<_ACEOF
26304#define HAVE_GETOPT_H 1
26305_ACEOF
26306
26307else
26308  as_fn_error "You need getopt.h." "$LINENO" 5
26309fi
26310
26311done
26312
26313else
26314  #FreeBSD has it there
26315	       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
26316$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
26317if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
26318  $as_echo_n "(cached) " >&6
26319else
26320  ac_check_lib_save_LIBS=$LIBS
26321LIBS="-lgnugetopt  $LIBS"
26322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323/* end confdefs.h.  */
26324
26325/* Override any GCC internal prototype to avoid an error.
26326   Use char because int might match the return type of a GCC
26327   builtin and then its argument prototype would still apply.  */
26328#ifdef __cplusplus
26329extern "C"
26330#endif
26331char getopt_long ();
26332int
26333main ()
26334{
26335return getopt_long ();
26336  ;
26337  return 0;
26338}
26339_ACEOF
26340if ac_fn_c_try_link "$LINENO"; then :
26341  ac_cv_lib_gnugetopt_getopt_long=yes
26342else
26343  ac_cv_lib_gnugetopt_getopt_long=no
26344fi
26345rm -f core conftest.err conftest.$ac_objext \
26346    conftest$ac_exeext conftest.$ac_ext
26347LIBS=$ac_check_lib_save_LIBS
26348fi
26349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
26350$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
26351if test "x$ac_cv_lib_gnugetopt_getopt_long" = x""yes; then :
26352  cat >>confdefs.h <<_ACEOF
26353#define HAVE_LIBGNUGETOPT 1
26354_ACEOF
26355
26356  LIBS="-lgnugetopt $LIBS"
26357
26358else
26359  case " $LIBOBJS " in
26360  *" getopt.$ac_objext "* ) ;;
26361  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
26362 ;;
26363esac
26364
26365			    case " $LIBOBJS " in
26366  *" getopt1.$ac_objext "* ) ;;
26367  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
26368 ;;
26369esac
26370
26371			    ac_config_links="$ac_config_links getopt.h:gnugetopt.h"
26372
26373
26374fi
26375
26376
26377fi
26378
26379
26380
26381# Check whether --with-samplerate was given.
26382if test "${with_samplerate+set}" = set; then :
26383  withval=$with_samplerate;
26384fi
26385
26386COMPILE_SAMPLERATE="no"
26387if test "x$with_samplerate" != "xno"
26388then
26389
26390pkg_failed=no
26391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for samplerate" >&5
26392$as_echo_n "checking for samplerate... " >&6; }
26393
26394if test -n "$samplerate_CFLAGS"; then
26395    pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS"
26396 elif test -n "$PKG_CONFIG"; then
26397    if test -n "$PKG_CONFIG" && \
26398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.0\""; } >&5
26399  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.0") 2>&5
26400  ac_status=$?
26401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26402  test $ac_status = 0; }; then
26403  pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.1.0" 2>/dev/null`
26404else
26405  pkg_failed=yes
26406fi
26407 else
26408    pkg_failed=untried
26409fi
26410if test -n "$samplerate_LIBS"; then
26411    pkg_cv_samplerate_LIBS="$samplerate_LIBS"
26412 elif test -n "$PKG_CONFIG"; then
26413    if test -n "$PKG_CONFIG" && \
26414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.0\""; } >&5
26415  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.0") 2>&5
26416  ac_status=$?
26417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26418  test $ac_status = 0; }; then
26419  pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.1.0" 2>/dev/null`
26420else
26421  pkg_failed=yes
26422fi
26423 else
26424    pkg_failed=untried
26425fi
26426
26427
26428
26429if test $pkg_failed = yes; then
26430
26431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26432        _pkg_short_errors_supported=yes
26433else
26434        _pkg_short_errors_supported=no
26435fi
26436        if test $_pkg_short_errors_supported = yes; then
26437	        samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "samplerate >= 0.1.0" 2>&1`
26438        else
26439	        samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors "samplerate >= 0.1.0" 2>&1`
26440        fi
26441	# Put the nasty error message in config.log where it belongs
26442	echo "$samplerate_PKG_ERRORS" >&5
26443
26444	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445$as_echo "no" >&6; }
26446                true
26447elif test $pkg_failed = untried; then
26448	true
26449else
26450	samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
26451	samplerate_LIBS=$pkg_cv_samplerate_LIBS
26452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26453$as_echo "yes" >&6; }
26454	EXTRA_LIBS="$EXTRA_LIBS $samplerate_LIBS"
26455			   CFLAGS="$CFLAGS $samplerate_CFLAGS"
26456
26457$as_echo "#define HAVE_SAMPLERATE 1" >>confdefs.h
26458
26459			   COMPILE_SAMPLERATE="yes"
26460fi
26461fi
26462
26463DECODER_PLUGIN_DIR=decoder_plugins
26464
26465
26466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
26467$as_echo_n "checking for gzopen in -lz... " >&6; }
26468if test "${ac_cv_lib_z_gzopen+set}" = set; then :
26469  $as_echo_n "(cached) " >&6
26470else
26471  ac_check_lib_save_LIBS=$LIBS
26472LIBS="-lz  $LIBS"
26473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474/* end confdefs.h.  */
26475
26476/* Override any GCC internal prototype to avoid an error.
26477   Use char because int might match the return type of a GCC
26478   builtin and then its argument prototype would still apply.  */
26479#ifdef __cplusplus
26480extern "C"
26481#endif
26482char gzopen ();
26483int
26484main ()
26485{
26486return gzopen ();
26487  ;
26488  return 0;
26489}
26490_ACEOF
26491if ac_fn_c_try_link "$LINENO"; then :
26492  ac_cv_lib_z_gzopen=yes
26493else
26494  ac_cv_lib_z_gzopen=no
26495fi
26496rm -f core conftest.err conftest.$ac_objext \
26497    conftest$ac_exeext conftest.$ac_ext
26498LIBS=$ac_check_lib_save_LIBS
26499fi
26500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
26501$as_echo "$ac_cv_lib_z_gzopen" >&6; }
26502if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
26503  HAVE_ZLIB=yes
26504fi
26505
26506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5
26507$as_echo_n "checking for id3_file_open in -lid3tag... " >&6; }
26508if test "${ac_cv_lib_id3tag_id3_file_open+set}" = set; then :
26509  $as_echo_n "(cached) " >&6
26510else
26511  ac_check_lib_save_LIBS=$LIBS
26512LIBS="-lid3tag  $LIBS"
26513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26514/* end confdefs.h.  */
26515
26516/* Override any GCC internal prototype to avoid an error.
26517   Use char because int might match the return type of a GCC
26518   builtin and then its argument prototype would still apply.  */
26519#ifdef __cplusplus
26520extern "C"
26521#endif
26522char id3_file_open ();
26523int
26524main ()
26525{
26526return id3_file_open ();
26527  ;
26528  return 0;
26529}
26530_ACEOF
26531if ac_fn_c_try_link "$LINENO"; then :
26532  ac_cv_lib_id3tag_id3_file_open=yes
26533else
26534  ac_cv_lib_id3tag_id3_file_open=no
26535fi
26536rm -f core conftest.err conftest.$ac_objext \
26537    conftest$ac_exeext conftest.$ac_ext
26538LIBS=$ac_check_lib_save_LIBS
26539fi
26540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5
26541$as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; }
26542if test "x$ac_cv_lib_id3tag_id3_file_open" = x""yes; then :
26543  HAVE_LIBID3TAG=yes
26544fi
26545
26546ac_fn_c_check_header_mongrel "$LINENO" "id3tag.h" "ac_cv_header_id3tag_h" "$ac_includes_default"
26547if test "x$ac_cv_header_id3tag_h" = x""yes; then :
26548  HAVE_LIBID3TAG_H=yes
26549fi
26550
26551
26552
26553if test "x$HAVE_ZLIB" = "xyes" -a "x$HAVE_LIBID3TAG" = "xyes" \
26554	-a "x$HAVE_LIBID3TAG_H" = "xyes"
26555then
26556	HAVE_ID3TAG=yes
26557else
26558	HAVE_ID3TAG=no
26559fi
26560
26561
26562
26563# Check whether --with-aac was given.
26564if test "${with_aac+set}" = set; then :
26565  withval=$with_aac;
26566fi
26567
26568
26569if test "x$with_aac" != "xno"
26570then
26571	faad2_OK="no"
26572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeAACDecInit in -lfaad" >&5
26573$as_echo_n "checking for NeAACDecInit in -lfaad... " >&6; }
26574if test "${ac_cv_lib_faad_NeAACDecInit+set}" = set; then :
26575  $as_echo_n "(cached) " >&6
26576else
26577  ac_check_lib_save_LIBS=$LIBS
26578LIBS="-lfaad  $LIBS"
26579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26580/* end confdefs.h.  */
26581
26582/* Override any GCC internal prototype to avoid an error.
26583   Use char because int might match the return type of a GCC
26584   builtin and then its argument prototype would still apply.  */
26585#ifdef __cplusplus
26586extern "C"
26587#endif
26588char NeAACDecInit ();
26589int
26590main ()
26591{
26592return NeAACDecInit ();
26593  ;
26594  return 0;
26595}
26596_ACEOF
26597if ac_fn_c_try_link "$LINENO"; then :
26598  ac_cv_lib_faad_NeAACDecInit=yes
26599else
26600  ac_cv_lib_faad_NeAACDecInit=no
26601fi
26602rm -f core conftest.err conftest.$ac_objext \
26603    conftest$ac_exeext conftest.$ac_ext
26604LIBS=$ac_check_lib_save_LIBS
26605fi
26606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_faad_NeAACDecInit" >&5
26607$as_echo "$ac_cv_lib_faad_NeAACDecInit" >&6; }
26608if test "x$ac_cv_lib_faad_NeAACDecInit" = x""yes; then :
26609  faad2_OK="yes"
26610fi
26611
26612
26613	if test "x$faad2_OK" = "xyes"; then
26614		ac_fn_c_check_header_mongrel "$LINENO" "neaacdec.h" "ac_cv_header_neaacdec_h" "$ac_includes_default"
26615if test "x$ac_cv_header_neaacdec_h" = x""yes; then :
26616
26617else
26618  as_fn_error "You need a more recent libfaad2 (libfaad2 devel package)." "$LINENO" 5
26619fi
26620
26621
26622	fi
26623
26624	if test "x$faad2_OK" = "xyes" -a "$HAVE_ID3TAG" = "yes"
26625	then
26626		FAAD2_LIBS="-lfaad"
26627
26628
26629		want_aac="yes"
26630		DECODER_PLUGINS="$DECODER_PLUGINS aac"
26631	fi
26632fi
26633
26634 if test "$want_aac"; then
26635  BUILD_aac_TRUE=
26636  BUILD_aac_FALSE='#'
26637else
26638  BUILD_aac_TRUE='#'
26639  BUILD_aac_FALSE=
26640fi
26641
26642ac_config_files="$ac_config_files decoder_plugins/aac/Makefile"
26643
26644
26645
26646
26647# Check whether --with-ffmpeg was given.
26648if test "${with_ffmpeg+set}" = set; then :
26649  withval=$with_ffmpeg;
26650fi
26651
26652
26653if test "x$with_ffmpeg" != "xno"
26654then
26655
26656pkg_failed=no
26657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffmpeg" >&5
26658$as_echo_n "checking for ffmpeg... " >&6; }
26659
26660if test -n "$ffmpeg_CFLAGS"; then
26661    pkg_cv_ffmpeg_CFLAGS="$ffmpeg_CFLAGS"
26662 elif test -n "$PKG_CONFIG"; then
26663    if test -n "$PKG_CONFIG" && \
26664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil libavcodec libavformat\""; } >&5
26665  ($PKG_CONFIG --exists --print-errors "libavutil libavcodec libavformat") 2>&5
26666  ac_status=$?
26667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26668  test $ac_status = 0; }; then
26669  pkg_cv_ffmpeg_CFLAGS=`$PKG_CONFIG --cflags "libavutil libavcodec libavformat" 2>/dev/null`
26670else
26671  pkg_failed=yes
26672fi
26673 else
26674    pkg_failed=untried
26675fi
26676if test -n "$ffmpeg_LIBS"; then
26677    pkg_cv_ffmpeg_LIBS="$ffmpeg_LIBS"
26678 elif test -n "$PKG_CONFIG"; then
26679    if test -n "$PKG_CONFIG" && \
26680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavutil libavcodec libavformat\""; } >&5
26681  ($PKG_CONFIG --exists --print-errors "libavutil libavcodec libavformat") 2>&5
26682  ac_status=$?
26683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684  test $ac_status = 0; }; then
26685  pkg_cv_ffmpeg_LIBS=`$PKG_CONFIG --libs "libavutil libavcodec libavformat" 2>/dev/null`
26686else
26687  pkg_failed=yes
26688fi
26689 else
26690    pkg_failed=untried
26691fi
26692
26693
26694
26695if test $pkg_failed = yes; then
26696
26697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26698        _pkg_short_errors_supported=yes
26699else
26700        _pkg_short_errors_supported=no
26701fi
26702        if test $_pkg_short_errors_supported = yes; then
26703	        ffmpeg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libavutil libavcodec libavformat" 2>&1`
26704        else
26705	        ffmpeg_PKG_ERRORS=`$PKG_CONFIG --print-errors "libavutil libavcodec libavformat" 2>&1`
26706        fi
26707	# Put the nasty error message in config.log where it belongs
26708	echo "$ffmpeg_PKG_ERRORS" >&5
26709
26710	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26711$as_echo "no" >&6; }
26712                # Extract the first word of "ffmpeg-config", so it can be a program name with args.
26713set dummy ffmpeg-config; ac_word=$2
26714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26715$as_echo_n "checking for $ac_word... " >&6; }
26716if test "${ac_cv_prog_FFMPEG_CONFIG+set}" = set; then :
26717  $as_echo_n "(cached) " >&6
26718else
26719  if test -n "$FFMPEG_CONFIG"; then
26720  ac_cv_prog_FFMPEG_CONFIG="$FFMPEG_CONFIG" # Let the user override the test.
26721else
26722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26723for as_dir in $PATH
26724do
26725  IFS=$as_save_IFS
26726  test -z "$as_dir" && as_dir=.
26727    for ac_exec_ext in '' $ac_executable_extensions; do
26728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26729    ac_cv_prog_FFMPEG_CONFIG="yes"
26730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26731    break 2
26732  fi
26733done
26734  done
26735IFS=$as_save_IFS
26736
26737fi
26738fi
26739FFMPEG_CONFIG=$ac_cv_prog_FFMPEG_CONFIG
26740if test -n "$FFMPEG_CONFIG"; then
26741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG_CONFIG" >&5
26742$as_echo "$FFMPEG_CONFIG" >&6; }
26743else
26744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26745$as_echo "no" >&6; }
26746fi
26747
26748
26749		 if test "x$FFMPEG_CONFIG" = "xyes"
26750		 then
26751			 ffmpeg_CPPFLAGS=`ffmpeg-config --cflags`
26752			 ffmpeg_CFLAGS=`ffmpeg-config --cflags`
26753			 avformat_LIBS=`ffmpeg-config --plugin-libs avformat`
26754			 avcodec_LIBS=`ffmpeg-config --plugin-libs avcodec`
26755			 avutil_LIBS=`ffmpeg-config --plugin-libs avutil`
26756			 ffmpeg_LIBS="$avformat_LIBS $avcodec_LIBS $avutil_LIBS"
26757
26758
26759
26760			 want_ffmpeg="yes"
26761		 fi
26762elif test $pkg_failed = untried; then
26763	# Extract the first word of "ffmpeg-config", so it can be a program name with args.
26764set dummy ffmpeg-config; ac_word=$2
26765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26766$as_echo_n "checking for $ac_word... " >&6; }
26767if test "${ac_cv_prog_FFMPEG_CONFIG+set}" = set; then :
26768  $as_echo_n "(cached) " >&6
26769else
26770  if test -n "$FFMPEG_CONFIG"; then
26771  ac_cv_prog_FFMPEG_CONFIG="$FFMPEG_CONFIG" # Let the user override the test.
26772else
26773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26774for as_dir in $PATH
26775do
26776  IFS=$as_save_IFS
26777  test -z "$as_dir" && as_dir=.
26778    for ac_exec_ext in '' $ac_executable_extensions; do
26779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26780    ac_cv_prog_FFMPEG_CONFIG="yes"
26781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26782    break 2
26783  fi
26784done
26785  done
26786IFS=$as_save_IFS
26787
26788fi
26789fi
26790FFMPEG_CONFIG=$ac_cv_prog_FFMPEG_CONFIG
26791if test -n "$FFMPEG_CONFIG"; then
26792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG_CONFIG" >&5
26793$as_echo "$FFMPEG_CONFIG" >&6; }
26794else
26795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26796$as_echo "no" >&6; }
26797fi
26798
26799
26800		 if test "x$FFMPEG_CONFIG" = "xyes"
26801		 then
26802			 ffmpeg_CPPFLAGS=`ffmpeg-config --cflags`
26803			 ffmpeg_CFLAGS=`ffmpeg-config --cflags`
26804			 avformat_LIBS=`ffmpeg-config --plugin-libs avformat`
26805			 avcodec_LIBS=`ffmpeg-config --plugin-libs avcodec`
26806			 avutil_LIBS=`ffmpeg-config --plugin-libs avutil`
26807			 ffmpeg_LIBS="$avformat_LIBS $avcodec_LIBS $avutil_LIBS"
26808
26809
26810
26811			 want_ffmpeg="yes"
26812		 fi
26813else
26814	ffmpeg_CFLAGS=$pkg_cv_ffmpeg_CFLAGS
26815	ffmpeg_LIBS=$pkg_cv_ffmpeg_LIBS
26816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26817$as_echo "yes" >&6; }
26818	ffmpeg_CPPFLAGS=`$PKG_CONFIG --cflags-only-I libavutil libavcodec libavformat`
26819
26820
26821
26822		 want_ffmpeg="yes"
26823fi
26824	if test "x$want_ffmpeg" = "xyes"
26825	then
26826		if $PKG_CONFIG --max-version 53.47.99 libavcodec
26827		then
26828			 FFMPEG_DEPRECATED="yes"
26829			 DECODER_PLUGINS="$DECODER_PLUGINS ffmpeg/libav"
26830		elif test "`$PKG_CONFIG --modversion libavcodec | awk -F. '{ print $3; }'`" -gt 99
26831		then
26832			 if ! $PKG_CONFIG --atleast-version 54.59.100 libavcodec
26833			 then
26834				 FFMPEG_DEPRECATED="yes"
26835			 fi
26836			 DECODER_PLUGINS="$DECODER_PLUGINS ffmpeg"
26837
26838$as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
26839
26840		else
26841			 if ! $PKG_CONFIG --atleast-version 55.34.1 libavcodec
26842			 then
26843				 FFMPEG_DEPRECATED="yes"
26844			 fi
26845			 DECODER_PLUGINS="$DECODER_PLUGINS ffmpeg(libav)"
26846
26847$as_echo "#define HAVE_LIBAV 1" >>confdefs.h
26848
26849		fi
26850		save_CPPFLAGS="$CPPFLAGS"
26851		CPPFLAGS="$CPPFLAGS $ffmpeg_CPPFLAGS"
26852		save_CFLAGS="$CFLAGS"
26853		CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
26854		save_LIBS="$LIBS"
26855		LIBS="$LIBS $ffmpeg_LIBS"
26856		for ac_header in ffmpeg/avformat.h libavformat/avformat.h
26857do :
26858  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26859ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26860eval as_val=\$$as_ac_Header
26861   if test "x$as_val" = x""yes; then :
26862  cat >>confdefs.h <<_ACEOF
26863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26864_ACEOF
26865
26866fi
26867
26868done
26869
26870		if test "x$ac_cv_header_ffmpeg_avformat_h" = "xyes"
26871		then
26872			ac_fn_c_check_member "$LINENO" "struct AVCodecContext" "request_channels" "ac_cv_member_struct_AVCodecContext_request_channels" "#include <ffmpeg/avcodec.h>
26873"
26874if test "x$ac_cv_member_struct_AVCodecContext_request_channels" = x""yes; then :
26875
26876cat >>confdefs.h <<_ACEOF
26877#define HAVE_STRUCT_AVCODECCONTEXT_REQUEST_CHANNELS 1
26878_ACEOF
26879
26880
26881fi
26882
26883		else
26884			ac_fn_c_check_member "$LINENO" "struct AVCodecContext" "request_channels" "ac_cv_member_struct_AVCodecContext_request_channels" "#include <libavcodec/avcodec.h>
26885"
26886if test "x$ac_cv_member_struct_AVCodecContext_request_channels" = x""yes; then :
26887
26888cat >>confdefs.h <<_ACEOF
26889#define HAVE_STRUCT_AVCODECCONTEXT_REQUEST_CHANNELS 1
26890_ACEOF
26891
26892
26893fi
26894
26895		fi
26896		for ac_header in ffmpeg/avformat.h \
26897		                  libavformat/avformat.h libavutil/channel_layout.h
26898do :
26899  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26901eval as_val=\$$as_ac_Header
26902   if test "x$as_val" = x""yes; then :
26903  cat >>confdefs.h <<_ACEOF
26904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26905_ACEOF
26906
26907fi
26908
26909done
26910
26911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_open2" >&5
26912$as_echo_n "checking for library containing avcodec_open2... " >&6; }
26913if test "${ac_cv_search_avcodec_open2+set}" = set; then :
26914  $as_echo_n "(cached) " >&6
26915else
26916  ac_func_search_save_LIBS=$LIBS
26917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918/* end confdefs.h.  */
26919
26920/* Override any GCC internal prototype to avoid an error.
26921   Use char because int might match the return type of a GCC
26922   builtin and then its argument prototype would still apply.  */
26923#ifdef __cplusplus
26924extern "C"
26925#endif
26926char avcodec_open2 ();
26927int
26928main ()
26929{
26930return avcodec_open2 ();
26931  ;
26932  return 0;
26933}
26934_ACEOF
26935for ac_lib in '' avcodec; do
26936  if test -z "$ac_lib"; then
26937    ac_res="none required"
26938  else
26939    ac_res=-l$ac_lib
26940    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26941  fi
26942  if ac_fn_c_try_link "$LINENO"; then :
26943  ac_cv_search_avcodec_open2=$ac_res
26944fi
26945rm -f core conftest.err conftest.$ac_objext \
26946    conftest$ac_exeext
26947  if test "${ac_cv_search_avcodec_open2+set}" = set; then :
26948  break
26949fi
26950done
26951if test "${ac_cv_search_avcodec_open2+set}" = set; then :
26952
26953else
26954  ac_cv_search_avcodec_open2=no
26955fi
26956rm conftest.$ac_ext
26957LIBS=$ac_func_search_save_LIBS
26958fi
26959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_open2" >&5
26960$as_echo "$ac_cv_search_avcodec_open2" >&6; }
26961ac_res=$ac_cv_search_avcodec_open2
26962if test "$ac_res" != no; then :
26963  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26964
26965$as_echo "#define HAVE_AVCODEC_OPEN2 1" >>confdefs.h
26966
26967fi
26968
26969		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_decode_audio2" >&5
26970$as_echo_n "checking for library containing avcodec_decode_audio2... " >&6; }
26971if test "${ac_cv_search_avcodec_decode_audio2+set}" = set; then :
26972  $as_echo_n "(cached) " >&6
26973else
26974  ac_func_search_save_LIBS=$LIBS
26975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976/* end confdefs.h.  */
26977
26978/* Override any GCC internal prototype to avoid an error.
26979   Use char because int might match the return type of a GCC
26980   builtin and then its argument prototype would still apply.  */
26981#ifdef __cplusplus
26982extern "C"
26983#endif
26984char avcodec_decode_audio2 ();
26985int
26986main ()
26987{
26988return avcodec_decode_audio2 ();
26989  ;
26990  return 0;
26991}
26992_ACEOF
26993for ac_lib in '' avcodec; do
26994  if test -z "$ac_lib"; then
26995    ac_res="none required"
26996  else
26997    ac_res=-l$ac_lib
26998    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26999  fi
27000  if ac_fn_c_try_link "$LINENO"; then :
27001  ac_cv_search_avcodec_decode_audio2=$ac_res
27002fi
27003rm -f core conftest.err conftest.$ac_objext \
27004    conftest$ac_exeext
27005  if test "${ac_cv_search_avcodec_decode_audio2+set}" = set; then :
27006  break
27007fi
27008done
27009if test "${ac_cv_search_avcodec_decode_audio2+set}" = set; then :
27010
27011else
27012  ac_cv_search_avcodec_decode_audio2=no
27013fi
27014rm conftest.$ac_ext
27015LIBS=$ac_func_search_save_LIBS
27016fi
27017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_decode_audio2" >&5
27018$as_echo "$ac_cv_search_avcodec_decode_audio2" >&6; }
27019ac_res=$ac_cv_search_avcodec_decode_audio2
27020if test "$ac_res" != no; then :
27021  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27022
27023$as_echo "#define HAVE_AVCODEC_DECODE_AUDIO2 1" >>confdefs.h
27024
27025fi
27026
27027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_decode_audio3" >&5
27028$as_echo_n "checking for library containing avcodec_decode_audio3... " >&6; }
27029if test "${ac_cv_search_avcodec_decode_audio3+set}" = set; then :
27030  $as_echo_n "(cached) " >&6
27031else
27032  ac_func_search_save_LIBS=$LIBS
27033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27034/* end confdefs.h.  */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037   Use char because int might match the return type of a GCC
27038   builtin and then its argument prototype would still apply.  */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char avcodec_decode_audio3 ();
27043int
27044main ()
27045{
27046return avcodec_decode_audio3 ();
27047  ;
27048  return 0;
27049}
27050_ACEOF
27051for ac_lib in '' avcodec; do
27052  if test -z "$ac_lib"; then
27053    ac_res="none required"
27054  else
27055    ac_res=-l$ac_lib
27056    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27057  fi
27058  if ac_fn_c_try_link "$LINENO"; then :
27059  ac_cv_search_avcodec_decode_audio3=$ac_res
27060fi
27061rm -f core conftest.err conftest.$ac_objext \
27062    conftest$ac_exeext
27063  if test "${ac_cv_search_avcodec_decode_audio3+set}" = set; then :
27064  break
27065fi
27066done
27067if test "${ac_cv_search_avcodec_decode_audio3+set}" = set; then :
27068
27069else
27070  ac_cv_search_avcodec_decode_audio3=no
27071fi
27072rm conftest.$ac_ext
27073LIBS=$ac_func_search_save_LIBS
27074fi
27075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_decode_audio3" >&5
27076$as_echo "$ac_cv_search_avcodec_decode_audio3" >&6; }
27077ac_res=$ac_cv_search_avcodec_decode_audio3
27078if test "$ac_res" != no; then :
27079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27080
27081$as_echo "#define HAVE_AVCODEC_DECODE_AUDIO3 1" >>confdefs.h
27082
27083fi
27084
27085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_decode_audio4" >&5
27086$as_echo_n "checking for library containing avcodec_decode_audio4... " >&6; }
27087if test "${ac_cv_search_avcodec_decode_audio4+set}" = set; then :
27088  $as_echo_n "(cached) " >&6
27089else
27090  ac_func_search_save_LIBS=$LIBS
27091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27092/* end confdefs.h.  */
27093
27094/* Override any GCC internal prototype to avoid an error.
27095   Use char because int might match the return type of a GCC
27096   builtin and then its argument prototype would still apply.  */
27097#ifdef __cplusplus
27098extern "C"
27099#endif
27100char avcodec_decode_audio4 ();
27101int
27102main ()
27103{
27104return avcodec_decode_audio4 ();
27105  ;
27106  return 0;
27107}
27108_ACEOF
27109for ac_lib in '' avcodec; do
27110  if test -z "$ac_lib"; then
27111    ac_res="none required"
27112  else
27113    ac_res=-l$ac_lib
27114    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27115  fi
27116  if ac_fn_c_try_link "$LINENO"; then :
27117  ac_cv_search_avcodec_decode_audio4=$ac_res
27118fi
27119rm -f core conftest.err conftest.$ac_objext \
27120    conftest$ac_exeext
27121  if test "${ac_cv_search_avcodec_decode_audio4+set}" = set; then :
27122  break
27123fi
27124done
27125if test "${ac_cv_search_avcodec_decode_audio4+set}" = set; then :
27126
27127else
27128  ac_cv_search_avcodec_decode_audio4=no
27129fi
27130rm conftest.$ac_ext
27131LIBS=$ac_func_search_save_LIBS
27132fi
27133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_decode_audio4" >&5
27134$as_echo "$ac_cv_search_avcodec_decode_audio4" >&6; }
27135ac_res=$ac_cv_search_avcodec_decode_audio4
27136if test "$ac_res" != no; then :
27137  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27138
27139$as_echo "#define HAVE_AVCODEC_DECODE_AUDIO4 1" >>confdefs.h
27140
27141else
27142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working posix_memalign" >&5
27143$as_echo_n "checking for working posix_memalign... " >&6; }
27144if test "${ax_cv_func_posix_memalign_works+set}" = set; then :
27145  $as_echo_n "(cached) " >&6
27146else
27147  if test "$cross_compiling" = yes; then :
27148  ax_cv_func_posix_memalign_works=no
27149else
27150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27151/* end confdefs.h.  */
27152
27153#include <stdlib.h>
27154
27155int
27156main ()
27157{
27158  void *buffer;
27159
27160  /* Some versions of glibc incorrectly perform the alignment check on
27161   * the size word. */
27162  exit (posix_memalign (&buffer, sizeof(void *), 123) != 0);
27163}
27164
27165_ACEOF
27166if ac_fn_c_try_run "$LINENO"; then :
27167  ax_cv_func_posix_memalign_works=yes
27168else
27169  ax_cv_func_posix_memalign_works=no
27170fi
27171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27172  conftest.$ac_objext conftest.beam conftest.$ac_ext
27173fi
27174
27175fi
27176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_func_posix_memalign_works" >&5
27177$as_echo "$ax_cv_func_posix_memalign_works" >&6; }
27178if test "$ax_cv_func_posix_memalign_works" = "yes" ; then
27179
27180$as_echo "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
27181
27182fi
27183
27184fi
27185
27186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_packet_unref" >&5
27187$as_echo_n "checking for library containing av_packet_unref... " >&6; }
27188if test "${ac_cv_search_av_packet_unref+set}" = set; then :
27189  $as_echo_n "(cached) " >&6
27190else
27191  ac_func_search_save_LIBS=$LIBS
27192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27193/* end confdefs.h.  */
27194
27195/* Override any GCC internal prototype to avoid an error.
27196   Use char because int might match the return type of a GCC
27197   builtin and then its argument prototype would still apply.  */
27198#ifdef __cplusplus
27199extern "C"
27200#endif
27201char av_packet_unref ();
27202int
27203main ()
27204{
27205return av_packet_unref ();
27206  ;
27207  return 0;
27208}
27209_ACEOF
27210for ac_lib in '' avcodec; do
27211  if test -z "$ac_lib"; then
27212    ac_res="none required"
27213  else
27214    ac_res=-l$ac_lib
27215    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27216  fi
27217  if ac_fn_c_try_link "$LINENO"; then :
27218  ac_cv_search_av_packet_unref=$ac_res
27219fi
27220rm -f core conftest.err conftest.$ac_objext \
27221    conftest$ac_exeext
27222  if test "${ac_cv_search_av_packet_unref+set}" = set; then :
27223  break
27224fi
27225done
27226if test "${ac_cv_search_av_packet_unref+set}" = set; then :
27227
27228else
27229  ac_cv_search_av_packet_unref=no
27230fi
27231rm conftest.$ac_ext
27232LIBS=$ac_func_search_save_LIBS
27233fi
27234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_packet_unref" >&5
27235$as_echo "$ac_cv_search_av_packet_unref" >&6; }
27236ac_res=$ac_cv_search_av_packet_unref
27237if test "$ac_res" != no; then :
27238  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27239
27240$as_echo "#define HAVE_AV_PACKET_UNREF 1" >>confdefs.h
27241
27242fi
27243
27244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avformat_open_input" >&5
27245$as_echo_n "checking for library containing avformat_open_input... " >&6; }
27246if test "${ac_cv_search_avformat_open_input+set}" = set; then :
27247  $as_echo_n "(cached) " >&6
27248else
27249  ac_func_search_save_LIBS=$LIBS
27250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251/* end confdefs.h.  */
27252
27253/* Override any GCC internal prototype to avoid an error.
27254   Use char because int might match the return type of a GCC
27255   builtin and then its argument prototype would still apply.  */
27256#ifdef __cplusplus
27257extern "C"
27258#endif
27259char avformat_open_input ();
27260int
27261main ()
27262{
27263return avformat_open_input ();
27264  ;
27265  return 0;
27266}
27267_ACEOF
27268for ac_lib in '' avformat; do
27269  if test -z "$ac_lib"; then
27270    ac_res="none required"
27271  else
27272    ac_res=-l$ac_lib
27273    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27274  fi
27275  if ac_fn_c_try_link "$LINENO"; then :
27276  ac_cv_search_avformat_open_input=$ac_res
27277fi
27278rm -f core conftest.err conftest.$ac_objext \
27279    conftest$ac_exeext
27280  if test "${ac_cv_search_avformat_open_input+set}" = set; then :
27281  break
27282fi
27283done
27284if test "${ac_cv_search_avformat_open_input+set}" = set; then :
27285
27286else
27287  ac_cv_search_avformat_open_input=no
27288fi
27289rm conftest.$ac_ext
27290LIBS=$ac_func_search_save_LIBS
27291fi
27292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avformat_open_input" >&5
27293$as_echo "$ac_cv_search_avformat_open_input" >&6; }
27294ac_res=$ac_cv_search_avformat_open_input
27295if test "$ac_res" != no; then :
27296  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27297
27298$as_echo "#define HAVE_AVFORMAT_OPEN_INPUT 1" >>confdefs.h
27299
27300fi
27301
27302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avformat_close_input" >&5
27303$as_echo_n "checking for library containing avformat_close_input... " >&6; }
27304if test "${ac_cv_search_avformat_close_input+set}" = set; then :
27305  $as_echo_n "(cached) " >&6
27306else
27307  ac_func_search_save_LIBS=$LIBS
27308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309/* end confdefs.h.  */
27310
27311/* Override any GCC internal prototype to avoid an error.
27312   Use char because int might match the return type of a GCC
27313   builtin and then its argument prototype would still apply.  */
27314#ifdef __cplusplus
27315extern "C"
27316#endif
27317char avformat_close_input ();
27318int
27319main ()
27320{
27321return avformat_close_input ();
27322  ;
27323  return 0;
27324}
27325_ACEOF
27326for ac_lib in '' avformat; do
27327  if test -z "$ac_lib"; then
27328    ac_res="none required"
27329  else
27330    ac_res=-l$ac_lib
27331    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27332  fi
27333  if ac_fn_c_try_link "$LINENO"; then :
27334  ac_cv_search_avformat_close_input=$ac_res
27335fi
27336rm -f core conftest.err conftest.$ac_objext \
27337    conftest$ac_exeext
27338  if test "${ac_cv_search_avformat_close_input+set}" = set; then :
27339  break
27340fi
27341done
27342if test "${ac_cv_search_avformat_close_input+set}" = set; then :
27343
27344else
27345  ac_cv_search_avformat_close_input=no
27346fi
27347rm conftest.$ac_ext
27348LIBS=$ac_func_search_save_LIBS
27349fi
27350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avformat_close_input" >&5
27351$as_echo "$ac_cv_search_avformat_close_input" >&6; }
27352ac_res=$ac_cv_search_avformat_close_input
27353if test "$ac_res" != no; then :
27354  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27355
27356$as_echo "#define HAVE_AVFORMAT_CLOSE_INPUT 1" >>confdefs.h
27357
27358fi
27359
27360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avformat_find_stream_info" >&5
27361$as_echo_n "checking for library containing avformat_find_stream_info... " >&6; }
27362if test "${ac_cv_search_avformat_find_stream_info+set}" = set; then :
27363  $as_echo_n "(cached) " >&6
27364else
27365  ac_func_search_save_LIBS=$LIBS
27366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27367/* end confdefs.h.  */
27368
27369/* Override any GCC internal prototype to avoid an error.
27370   Use char because int might match the return type of a GCC
27371   builtin and then its argument prototype would still apply.  */
27372#ifdef __cplusplus
27373extern "C"
27374#endif
27375char avformat_find_stream_info ();
27376int
27377main ()
27378{
27379return avformat_find_stream_info ();
27380  ;
27381  return 0;
27382}
27383_ACEOF
27384for ac_lib in '' avformat; do
27385  if test -z "$ac_lib"; then
27386    ac_res="none required"
27387  else
27388    ac_res=-l$ac_lib
27389    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27390  fi
27391  if ac_fn_c_try_link "$LINENO"; then :
27392  ac_cv_search_avformat_find_stream_info=$ac_res
27393fi
27394rm -f core conftest.err conftest.$ac_objext \
27395    conftest$ac_exeext
27396  if test "${ac_cv_search_avformat_find_stream_info+set}" = set; then :
27397  break
27398fi
27399done
27400if test "${ac_cv_search_avformat_find_stream_info+set}" = set; then :
27401
27402else
27403  ac_cv_search_avformat_find_stream_info=no
27404fi
27405rm conftest.$ac_ext
27406LIBS=$ac_func_search_save_LIBS
27407fi
27408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avformat_find_stream_info" >&5
27409$as_echo "$ac_cv_search_avformat_find_stream_info" >&6; }
27410ac_res=$ac_cv_search_avformat_find_stream_info
27411if test "$ac_res" != no; then :
27412  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27413
27414$as_echo "#define HAVE_AVFORMAT_FIND_STREAM_INFO 1" >>confdefs.h
27415
27416fi
27417
27418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avio_size" >&5
27419$as_echo_n "checking for library containing avio_size... " >&6; }
27420if test "${ac_cv_search_avio_size+set}" = set; then :
27421  $as_echo_n "(cached) " >&6
27422else
27423  ac_func_search_save_LIBS=$LIBS
27424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27425/* end confdefs.h.  */
27426
27427/* Override any GCC internal prototype to avoid an error.
27428   Use char because int might match the return type of a GCC
27429   builtin and then its argument prototype would still apply.  */
27430#ifdef __cplusplus
27431extern "C"
27432#endif
27433char avio_size ();
27434int
27435main ()
27436{
27437return avio_size ();
27438  ;
27439  return 0;
27440}
27441_ACEOF
27442for ac_lib in '' avformat; do
27443  if test -z "$ac_lib"; then
27444    ac_res="none required"
27445  else
27446    ac_res=-l$ac_lib
27447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27448  fi
27449  if ac_fn_c_try_link "$LINENO"; then :
27450  ac_cv_search_avio_size=$ac_res
27451fi
27452rm -f core conftest.err conftest.$ac_objext \
27453    conftest$ac_exeext
27454  if test "${ac_cv_search_avio_size+set}" = set; then :
27455  break
27456fi
27457done
27458if test "${ac_cv_search_avio_size+set}" = set; then :
27459
27460else
27461  ac_cv_search_avio_size=no
27462fi
27463rm conftest.$ac_ext
27464LIBS=$ac_func_search_save_LIBS
27465fi
27466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avio_size" >&5
27467$as_echo "$ac_cv_search_avio_size" >&6; }
27468ac_res=$ac_cv_search_avio_size
27469if test "$ac_res" != no; then :
27470  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27471
27472$as_echo "#define HAVE_AVIO_SIZE 1" >>confdefs.h
27473
27474fi
27475
27476		ac_fn_c_check_member "$LINENO" "AVIOContext" "seekable" "ac_cv_member_AVIOContext_seekable" "#include <libavformat/avformat.h>
27477"
27478if test "x$ac_cv_member_AVIOContext_seekable" = x""yes; then :
27479
27480cat >>confdefs.h <<_ACEOF
27481#define HAVE_AVIOCONTEXT_SEEKABLE 1
27482_ACEOF
27483
27484
27485fi
27486
27487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_metadata_get" >&5
27488$as_echo_n "checking for library containing av_metadata_get... " >&6; }
27489if test "${ac_cv_search_av_metadata_get+set}" = set; then :
27490  $as_echo_n "(cached) " >&6
27491else
27492  ac_func_search_save_LIBS=$LIBS
27493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27494/* end confdefs.h.  */
27495
27496/* Override any GCC internal prototype to avoid an error.
27497   Use char because int might match the return type of a GCC
27498   builtin and then its argument prototype would still apply.  */
27499#ifdef __cplusplus
27500extern "C"
27501#endif
27502char av_metadata_get ();
27503int
27504main ()
27505{
27506return av_metadata_get ();
27507  ;
27508  return 0;
27509}
27510_ACEOF
27511for ac_lib in '' avformat; do
27512  if test -z "$ac_lib"; then
27513    ac_res="none required"
27514  else
27515    ac_res=-l$ac_lib
27516    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27517  fi
27518  if ac_fn_c_try_link "$LINENO"; then :
27519  ac_cv_search_av_metadata_get=$ac_res
27520fi
27521rm -f core conftest.err conftest.$ac_objext \
27522    conftest$ac_exeext
27523  if test "${ac_cv_search_av_metadata_get+set}" = set; then :
27524  break
27525fi
27526done
27527if test "${ac_cv_search_av_metadata_get+set}" = set; then :
27528
27529else
27530  ac_cv_search_av_metadata_get=no
27531fi
27532rm conftest.$ac_ext
27533LIBS=$ac_func_search_save_LIBS
27534fi
27535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_metadata_get" >&5
27536$as_echo "$ac_cv_search_av_metadata_get" >&6; }
27537ac_res=$ac_cv_search_av_metadata_get
27538if test "$ac_res" != no; then :
27539  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27540
27541$as_echo "#define HAVE_AV_METADATA_GET 1" >>confdefs.h
27542
27543fi
27544
27545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_dict_get" >&5
27546$as_echo_n "checking for library containing av_dict_get... " >&6; }
27547if test "${ac_cv_search_av_dict_get+set}" = set; then :
27548  $as_echo_n "(cached) " >&6
27549else
27550  ac_func_search_save_LIBS=$LIBS
27551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552/* end confdefs.h.  */
27553
27554/* Override any GCC internal prototype to avoid an error.
27555   Use char because int might match the return type of a GCC
27556   builtin and then its argument prototype would still apply.  */
27557#ifdef __cplusplus
27558extern "C"
27559#endif
27560char av_dict_get ();
27561int
27562main ()
27563{
27564return av_dict_get ();
27565  ;
27566  return 0;
27567}
27568_ACEOF
27569for ac_lib in '' avutil; do
27570  if test -z "$ac_lib"; then
27571    ac_res="none required"
27572  else
27573    ac_res=-l$ac_lib
27574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27575  fi
27576  if ac_fn_c_try_link "$LINENO"; then :
27577  ac_cv_search_av_dict_get=$ac_res
27578fi
27579rm -f core conftest.err conftest.$ac_objext \
27580    conftest$ac_exeext
27581  if test "${ac_cv_search_av_dict_get+set}" = set; then :
27582  break
27583fi
27584done
27585if test "${ac_cv_search_av_dict_get+set}" = set; then :
27586
27587else
27588  ac_cv_search_av_dict_get=no
27589fi
27590rm conftest.$ac_ext
27591LIBS=$ac_func_search_save_LIBS
27592fi
27593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_dict_get" >&5
27594$as_echo "$ac_cv_search_av_dict_get" >&6; }
27595ac_res=$ac_cv_search_av_dict_get
27596if test "$ac_res" != no; then :
27597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27598
27599$as_echo "#define HAVE_AV_DICT_GET 1" >>confdefs.h
27600
27601fi
27602
27603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_get_channel_layout_nb_channels" >&5
27604$as_echo_n "checking for library containing av_get_channel_layout_nb_channels... " >&6; }
27605if test "${ac_cv_search_av_get_channel_layout_nb_channels+set}" = set; then :
27606  $as_echo_n "(cached) " >&6
27607else
27608  ac_func_search_save_LIBS=$LIBS
27609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27610/* end confdefs.h.  */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613   Use char because int might match the return type of a GCC
27614   builtin and then its argument prototype would still apply.  */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char av_get_channel_layout_nb_channels ();
27619int
27620main ()
27621{
27622return av_get_channel_layout_nb_channels ();
27623  ;
27624  return 0;
27625}
27626_ACEOF
27627for ac_lib in '' avutil; do
27628  if test -z "$ac_lib"; then
27629    ac_res="none required"
27630  else
27631    ac_res=-l$ac_lib
27632    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27633  fi
27634  if ac_fn_c_try_link "$LINENO"; then :
27635  ac_cv_search_av_get_channel_layout_nb_channels=$ac_res
27636fi
27637rm -f core conftest.err conftest.$ac_objext \
27638    conftest$ac_exeext
27639  if test "${ac_cv_search_av_get_channel_layout_nb_channels+set}" = set; then :
27640  break
27641fi
27642done
27643if test "${ac_cv_search_av_get_channel_layout_nb_channels+set}" = set; then :
27644
27645else
27646  ac_cv_search_av_get_channel_layout_nb_channels=no
27647fi
27648rm conftest.$ac_ext
27649LIBS=$ac_func_search_save_LIBS
27650fi
27651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_get_channel_layout_nb_channels" >&5
27652$as_echo "$ac_cv_search_av_get_channel_layout_nb_channels" >&6; }
27653ac_res=$ac_cv_search_av_get_channel_layout_nb_channels
27654if test "$ac_res" != no; then :
27655  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27656
27657$as_echo "#define HAVE_AV_GET_CHANNEL_LAYOUT_NB_CHANNELS 1" >>confdefs.h
27658
27659fi
27660
27661		ac_fn_c_check_decl "$LINENO" "CODEC_ID_MP2" "ac_cv_have_decl_CODEC_ID_MP2" "#include <libavcodec/avcodec.h>
27662"
27663if test "x$ac_cv_have_decl_CODEC_ID_MP2" = x""yes; then :
27664  ac_have_decl=1
27665else
27666  ac_have_decl=0
27667fi
27668
27669cat >>confdefs.h <<_ACEOF
27670#define HAVE_DECL_CODEC_ID_MP2 $ac_have_decl
27671_ACEOF
27672
27673		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_MP2" "ac_cv_have_decl_AV_CODEC_ID_MP2" "#include <libavcodec/avcodec.h>
27674"
27675if test "x$ac_cv_have_decl_AV_CODEC_ID_MP2" = x""yes; then :
27676  ac_have_decl=1
27677else
27678  ac_have_decl=0
27679fi
27680
27681cat >>confdefs.h <<_ACEOF
27682#define HAVE_DECL_AV_CODEC_ID_MP2 $ac_have_decl
27683_ACEOF
27684
27685		ac_fn_c_check_decl "$LINENO" "CODEC_ID_OPUS" "ac_cv_have_decl_CODEC_ID_OPUS" "#include <libavcodec/avcodec.h>
27686"
27687if test "x$ac_cv_have_decl_CODEC_ID_OPUS" = x""yes; then :
27688  ac_have_decl=1
27689else
27690  ac_have_decl=0
27691fi
27692
27693cat >>confdefs.h <<_ACEOF
27694#define HAVE_DECL_CODEC_ID_OPUS $ac_have_decl
27695_ACEOF
27696
27697		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_OPUS" "ac_cv_have_decl_AV_CODEC_ID_OPUS" "#include <libavcodec/avcodec.h>
27698"
27699if test "x$ac_cv_have_decl_AV_CODEC_ID_OPUS" = x""yes; then :
27700  ac_have_decl=1
27701else
27702  ac_have_decl=0
27703fi
27704
27705cat >>confdefs.h <<_ACEOF
27706#define HAVE_DECL_AV_CODEC_ID_OPUS $ac_have_decl
27707_ACEOF
27708
27709		ac_fn_c_check_decl "$LINENO" "CODEC_ID_SPEEX" "ac_cv_have_decl_CODEC_ID_SPEEX" "#include <libavcodec/avcodec.h>
27710"
27711if test "x$ac_cv_have_decl_CODEC_ID_SPEEX" = x""yes; then :
27712  ac_have_decl=1
27713else
27714  ac_have_decl=0
27715fi
27716
27717cat >>confdefs.h <<_ACEOF
27718#define HAVE_DECL_CODEC_ID_SPEEX $ac_have_decl
27719_ACEOF
27720
27721		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_SPEEX" "ac_cv_have_decl_AV_CODEC_ID_SPEEX" "#include <libavcodec/avcodec.h>
27722"
27723if test "x$ac_cv_have_decl_AV_CODEC_ID_SPEEX" = x""yes; then :
27724  ac_have_decl=1
27725else
27726  ac_have_decl=0
27727fi
27728
27729cat >>confdefs.h <<_ACEOF
27730#define HAVE_DECL_AV_CODEC_ID_SPEEX $ac_have_decl
27731_ACEOF
27732
27733		ac_fn_c_check_decl "$LINENO" "CODEC_ID_THEORA" "ac_cv_have_decl_CODEC_ID_THEORA" "#include <libavcodec/avcodec.h>
27734"
27735if test "x$ac_cv_have_decl_CODEC_ID_THEORA" = x""yes; then :
27736  ac_have_decl=1
27737else
27738  ac_have_decl=0
27739fi
27740
27741cat >>confdefs.h <<_ACEOF
27742#define HAVE_DECL_CODEC_ID_THEORA $ac_have_decl
27743_ACEOF
27744
27745		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_THEORA" "ac_cv_have_decl_AV_CODEC_ID_THEORA" "#include <libavcodec/avcodec.h>
27746"
27747if test "x$ac_cv_have_decl_AV_CODEC_ID_THEORA" = x""yes; then :
27748  ac_have_decl=1
27749else
27750  ac_have_decl=0
27751fi
27752
27753cat >>confdefs.h <<_ACEOF
27754#define HAVE_DECL_AV_CODEC_ID_THEORA $ac_have_decl
27755_ACEOF
27756
27757		ac_fn_c_check_decl "$LINENO" "CODEC_ID_VORBIS" "ac_cv_have_decl_CODEC_ID_VORBIS" "#include <libavcodec/avcodec.h>
27758"
27759if test "x$ac_cv_have_decl_CODEC_ID_VORBIS" = x""yes; then :
27760  ac_have_decl=1
27761else
27762  ac_have_decl=0
27763fi
27764
27765cat >>confdefs.h <<_ACEOF
27766#define HAVE_DECL_CODEC_ID_VORBIS $ac_have_decl
27767_ACEOF
27768
27769		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_VORBIS" "ac_cv_have_decl_AV_CODEC_ID_VORBIS" "#include <libavcodec/avcodec.h>
27770"
27771if test "x$ac_cv_have_decl_AV_CODEC_ID_VORBIS" = x""yes; then :
27772  ac_have_decl=1
27773else
27774  ac_have_decl=0
27775fi
27776
27777cat >>confdefs.h <<_ACEOF
27778#define HAVE_DECL_AV_CODEC_ID_VORBIS $ac_have_decl
27779_ACEOF
27780
27781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_frame_alloc" >&5
27782$as_echo_n "checking for library containing av_frame_alloc... " >&6; }
27783if test "${ac_cv_search_av_frame_alloc+set}" = set; then :
27784  $as_echo_n "(cached) " >&6
27785else
27786  ac_func_search_save_LIBS=$LIBS
27787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788/* end confdefs.h.  */
27789
27790/* Override any GCC internal prototype to avoid an error.
27791   Use char because int might match the return type of a GCC
27792   builtin and then its argument prototype would still apply.  */
27793#ifdef __cplusplus
27794extern "C"
27795#endif
27796char av_frame_alloc ();
27797int
27798main ()
27799{
27800return av_frame_alloc ();
27801  ;
27802  return 0;
27803}
27804_ACEOF
27805for ac_lib in '' avutil; do
27806  if test -z "$ac_lib"; then
27807    ac_res="none required"
27808  else
27809    ac_res=-l$ac_lib
27810    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27811  fi
27812  if ac_fn_c_try_link "$LINENO"; then :
27813  ac_cv_search_av_frame_alloc=$ac_res
27814fi
27815rm -f core conftest.err conftest.$ac_objext \
27816    conftest$ac_exeext
27817  if test "${ac_cv_search_av_frame_alloc+set}" = set; then :
27818  break
27819fi
27820done
27821if test "${ac_cv_search_av_frame_alloc+set}" = set; then :
27822
27823else
27824  ac_cv_search_av_frame_alloc=no
27825fi
27826rm conftest.$ac_ext
27827LIBS=$ac_func_search_save_LIBS
27828fi
27829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_frame_alloc" >&5
27830$as_echo "$ac_cv_search_av_frame_alloc" >&6; }
27831ac_res=$ac_cv_search_av_frame_alloc
27832if test "$ac_res" != no; then :
27833  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27834
27835$as_echo "#define HAVE_AV_FRAME_ALLOC 1" >>confdefs.h
27836
27837fi
27838
27839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_frame_unref" >&5
27840$as_echo_n "checking for library containing av_frame_unref... " >&6; }
27841if test "${ac_cv_search_av_frame_unref+set}" = set; then :
27842  $as_echo_n "(cached) " >&6
27843else
27844  ac_func_search_save_LIBS=$LIBS
27845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27846/* end confdefs.h.  */
27847
27848/* Override any GCC internal prototype to avoid an error.
27849   Use char because int might match the return type of a GCC
27850   builtin and then its argument prototype would still apply.  */
27851#ifdef __cplusplus
27852extern "C"
27853#endif
27854char av_frame_unref ();
27855int
27856main ()
27857{
27858return av_frame_unref ();
27859  ;
27860  return 0;
27861}
27862_ACEOF
27863for ac_lib in '' avutil; do
27864  if test -z "$ac_lib"; then
27865    ac_res="none required"
27866  else
27867    ac_res=-l$ac_lib
27868    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27869  fi
27870  if ac_fn_c_try_link "$LINENO"; then :
27871  ac_cv_search_av_frame_unref=$ac_res
27872fi
27873rm -f core conftest.err conftest.$ac_objext \
27874    conftest$ac_exeext
27875  if test "${ac_cv_search_av_frame_unref+set}" = set; then :
27876  break
27877fi
27878done
27879if test "${ac_cv_search_av_frame_unref+set}" = set; then :
27880
27881else
27882  ac_cv_search_av_frame_unref=no
27883fi
27884rm conftest.$ac_ext
27885LIBS=$ac_func_search_save_LIBS
27886fi
27887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_frame_unref" >&5
27888$as_echo "$ac_cv_search_av_frame_unref" >&6; }
27889ac_res=$ac_cv_search_av_frame_unref
27890if test "$ac_res" != no; then :
27891  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27892
27893$as_echo "#define HAVE_AV_FRAME_UNREF 1" >>confdefs.h
27894
27895fi
27896
27897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_frame_free" >&5
27898$as_echo_n "checking for library containing av_frame_free... " >&6; }
27899if test "${ac_cv_search_av_frame_free+set}" = set; then :
27900  $as_echo_n "(cached) " >&6
27901else
27902  ac_func_search_save_LIBS=$LIBS
27903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27904/* end confdefs.h.  */
27905
27906/* Override any GCC internal prototype to avoid an error.
27907   Use char because int might match the return type of a GCC
27908   builtin and then its argument prototype would still apply.  */
27909#ifdef __cplusplus
27910extern "C"
27911#endif
27912char av_frame_free ();
27913int
27914main ()
27915{
27916return av_frame_free ();
27917  ;
27918  return 0;
27919}
27920_ACEOF
27921for ac_lib in '' avutil; do
27922  if test -z "$ac_lib"; then
27923    ac_res="none required"
27924  else
27925    ac_res=-l$ac_lib
27926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27927  fi
27928  if ac_fn_c_try_link "$LINENO"; then :
27929  ac_cv_search_av_frame_free=$ac_res
27930fi
27931rm -f core conftest.err conftest.$ac_objext \
27932    conftest$ac_exeext
27933  if test "${ac_cv_search_av_frame_free+set}" = set; then :
27934  break
27935fi
27936done
27937if test "${ac_cv_search_av_frame_free+set}" = set; then :
27938
27939else
27940  ac_cv_search_av_frame_free=no
27941fi
27942rm conftest.$ac_ext
27943LIBS=$ac_func_search_save_LIBS
27944fi
27945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_frame_free" >&5
27946$as_echo "$ac_cv_search_av_frame_free" >&6; }
27947ac_res=$ac_cv_search_av_frame_free
27948if test "$ac_res" != no; then :
27949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27950
27951$as_echo "#define HAVE_AV_FRAME_FREE 1" >>confdefs.h
27952
27953fi
27954
27955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_free_frame" >&5
27956$as_echo_n "checking for library containing avcodec_free_frame... " >&6; }
27957if test "${ac_cv_search_avcodec_free_frame+set}" = set; then :
27958  $as_echo_n "(cached) " >&6
27959else
27960  ac_func_search_save_LIBS=$LIBS
27961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27962/* end confdefs.h.  */
27963
27964/* Override any GCC internal prototype to avoid an error.
27965   Use char because int might match the return type of a GCC
27966   builtin and then its argument prototype would still apply.  */
27967#ifdef __cplusplus
27968extern "C"
27969#endif
27970char avcodec_free_frame ();
27971int
27972main ()
27973{
27974return avcodec_free_frame ();
27975  ;
27976  return 0;
27977}
27978_ACEOF
27979for ac_lib in '' avcodec; do
27980  if test -z "$ac_lib"; then
27981    ac_res="none required"
27982  else
27983    ac_res=-l$ac_lib
27984    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27985  fi
27986  if ac_fn_c_try_link "$LINENO"; then :
27987  ac_cv_search_avcodec_free_frame=$ac_res
27988fi
27989rm -f core conftest.err conftest.$ac_objext \
27990    conftest$ac_exeext
27991  if test "${ac_cv_search_avcodec_free_frame+set}" = set; then :
27992  break
27993fi
27994done
27995if test "${ac_cv_search_avcodec_free_frame+set}" = set; then :
27996
27997else
27998  ac_cv_search_avcodec_free_frame=no
27999fi
28000rm conftest.$ac_ext
28001LIBS=$ac_func_search_save_LIBS
28002fi
28003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_free_frame" >&5
28004$as_echo "$ac_cv_search_avcodec_free_frame" >&6; }
28005ac_res=$ac_cv_search_avcodec_free_frame
28006if test "$ac_res" != no; then :
28007  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28008
28009$as_echo "#define HAVE_AVCODEC_FREE_FRAME 1" >>confdefs.h
28010
28011fi
28012
28013		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S8" "ac_cv_have_decl_CODEC_ID_PCM_S8" "#include <libavcodec/avcodec.h>
28014"
28015if test "x$ac_cv_have_decl_CODEC_ID_PCM_S8" = x""yes; then :
28016  ac_have_decl=1
28017else
28018  ac_have_decl=0
28019fi
28020
28021cat >>confdefs.h <<_ACEOF
28022#define HAVE_DECL_CODEC_ID_PCM_S8 $ac_have_decl
28023_ACEOF
28024
28025		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S8_PLANAR" "ac_cv_have_decl_CODEC_ID_PCM_S8_PLANAR" "#include <libavcodec/avcodec.h>
28026"
28027if test "x$ac_cv_have_decl_CODEC_ID_PCM_S8_PLANAR" = x""yes; then :
28028  ac_have_decl=1
28029else
28030  ac_have_decl=0
28031fi
28032
28033cat >>confdefs.h <<_ACEOF
28034#define HAVE_DECL_CODEC_ID_PCM_S8_PLANAR $ac_have_decl
28035_ACEOF
28036
28037		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_PCM_S8_PLANAR" "ac_cv_have_decl_AV_CODEC_ID_PCM_S8_PLANAR" "#include <libavcodec/avcodec.h>
28038"
28039if test "x$ac_cv_have_decl_AV_CODEC_ID_PCM_S8_PLANAR" = x""yes; then :
28040  ac_have_decl=1
28041else
28042  ac_have_decl=0
28043fi
28044
28045cat >>confdefs.h <<_ACEOF
28046#define HAVE_DECL_AV_CODEC_ID_PCM_S8_PLANAR $ac_have_decl
28047_ACEOF
28048
28049		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U8" "ac_cv_have_decl_CODEC_ID_PCM_U8" "#include <libavcodec/avcodec.h>
28050"
28051if test "x$ac_cv_have_decl_CODEC_ID_PCM_U8" = x""yes; then :
28052  ac_have_decl=1
28053else
28054  ac_have_decl=0
28055fi
28056
28057cat >>confdefs.h <<_ACEOF
28058#define HAVE_DECL_CODEC_ID_PCM_U8 $ac_have_decl
28059_ACEOF
28060
28061		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S16LE" "ac_cv_have_decl_CODEC_ID_PCM_S16LE" "#include <libavcodec/avcodec.h>
28062"
28063if test "x$ac_cv_have_decl_CODEC_ID_PCM_S16LE" = x""yes; then :
28064  ac_have_decl=1
28065else
28066  ac_have_decl=0
28067fi
28068
28069cat >>confdefs.h <<_ACEOF
28070#define HAVE_DECL_CODEC_ID_PCM_S16LE $ac_have_decl
28071_ACEOF
28072
28073		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S16LE_PLANAR" "ac_cv_have_decl_CODEC_ID_PCM_S16LE_PLANAR" "#include <libavcodec/avcodec.h>
28074"
28075if test "x$ac_cv_have_decl_CODEC_ID_PCM_S16LE_PLANAR" = x""yes; then :
28076  ac_have_decl=1
28077else
28078  ac_have_decl=0
28079fi
28080
28081cat >>confdefs.h <<_ACEOF
28082#define HAVE_DECL_CODEC_ID_PCM_S16LE_PLANAR $ac_have_decl
28083_ACEOF
28084
28085		ac_fn_c_check_decl "$LINENO" "AV_CODEC_ID_PCM_S16LE_PLANAR" "ac_cv_have_decl_AV_CODEC_ID_PCM_S16LE_PLANAR" "#include <libavcodec/avcodec.h>
28086"
28087if test "x$ac_cv_have_decl_AV_CODEC_ID_PCM_S16LE_PLANAR" = x""yes; then :
28088  ac_have_decl=1
28089else
28090  ac_have_decl=0
28091fi
28092
28093cat >>confdefs.h <<_ACEOF
28094#define HAVE_DECL_AV_CODEC_ID_PCM_S16LE_PLANAR $ac_have_decl
28095_ACEOF
28096
28097		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S16BE" "ac_cv_have_decl_CODEC_ID_PCM_S16BE" "#include <libavcodec/avcodec.h>
28098"
28099if test "x$ac_cv_have_decl_CODEC_ID_PCM_S16BE" = x""yes; then :
28100  ac_have_decl=1
28101else
28102  ac_have_decl=0
28103fi
28104
28105cat >>confdefs.h <<_ACEOF
28106#define HAVE_DECL_CODEC_ID_PCM_S16BE $ac_have_decl
28107_ACEOF
28108
28109		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U16LE" "ac_cv_have_decl_CODEC_ID_PCM_U16LE" "#include <libavcodec/avcodec.h>
28110"
28111if test "x$ac_cv_have_decl_CODEC_ID_PCM_U16LE" = x""yes; then :
28112  ac_have_decl=1
28113else
28114  ac_have_decl=0
28115fi
28116
28117cat >>confdefs.h <<_ACEOF
28118#define HAVE_DECL_CODEC_ID_PCM_U16LE $ac_have_decl
28119_ACEOF
28120
28121		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U16BE" "ac_cv_have_decl_CODEC_ID_PCM_U16BE" "#include <libavcodec/avcodec.h>
28122"
28123if test "x$ac_cv_have_decl_CODEC_ID_PCM_U16BE" = x""yes; then :
28124  ac_have_decl=1
28125else
28126  ac_have_decl=0
28127fi
28128
28129cat >>confdefs.h <<_ACEOF
28130#define HAVE_DECL_CODEC_ID_PCM_U16BE $ac_have_decl
28131_ACEOF
28132
28133		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S24LE" "ac_cv_have_decl_CODEC_ID_PCM_S24LE" "#include <libavcodec/avcodec.h>
28134"
28135if test "x$ac_cv_have_decl_CODEC_ID_PCM_S24LE" = x""yes; then :
28136  ac_have_decl=1
28137else
28138  ac_have_decl=0
28139fi
28140
28141cat >>confdefs.h <<_ACEOF
28142#define HAVE_DECL_CODEC_ID_PCM_S24LE $ac_have_decl
28143_ACEOF
28144
28145		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S24BE" "ac_cv_have_decl_CODEC_ID_PCM_S24BE" "#include <libavcodec/avcodec.h>
28146"
28147if test "x$ac_cv_have_decl_CODEC_ID_PCM_S24BE" = x""yes; then :
28148  ac_have_decl=1
28149else
28150  ac_have_decl=0
28151fi
28152
28153cat >>confdefs.h <<_ACEOF
28154#define HAVE_DECL_CODEC_ID_PCM_S24BE $ac_have_decl
28155_ACEOF
28156
28157		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U24LE" "ac_cv_have_decl_CODEC_ID_PCM_U24LE" "#include <libavcodec/avcodec.h>
28158"
28159if test "x$ac_cv_have_decl_CODEC_ID_PCM_U24LE" = x""yes; then :
28160  ac_have_decl=1
28161else
28162  ac_have_decl=0
28163fi
28164
28165cat >>confdefs.h <<_ACEOF
28166#define HAVE_DECL_CODEC_ID_PCM_U24LE $ac_have_decl
28167_ACEOF
28168
28169		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U24BE" "ac_cv_have_decl_CODEC_ID_PCM_U24BE" "#include <libavcodec/avcodec.h>
28170"
28171if test "x$ac_cv_have_decl_CODEC_ID_PCM_U24BE" = x""yes; then :
28172  ac_have_decl=1
28173else
28174  ac_have_decl=0
28175fi
28176
28177cat >>confdefs.h <<_ACEOF
28178#define HAVE_DECL_CODEC_ID_PCM_U24BE $ac_have_decl
28179_ACEOF
28180
28181		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S32LE" "ac_cv_have_decl_CODEC_ID_PCM_S32LE" "#include <libavcodec/avcodec.h>
28182"
28183if test "x$ac_cv_have_decl_CODEC_ID_PCM_S32LE" = x""yes; then :
28184  ac_have_decl=1
28185else
28186  ac_have_decl=0
28187fi
28188
28189cat >>confdefs.h <<_ACEOF
28190#define HAVE_DECL_CODEC_ID_PCM_S32LE $ac_have_decl
28191_ACEOF
28192
28193		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_S32BE" "ac_cv_have_decl_CODEC_ID_PCM_S32BE" "#include <libavcodec/avcodec.h>
28194"
28195if test "x$ac_cv_have_decl_CODEC_ID_PCM_S32BE" = x""yes; then :
28196  ac_have_decl=1
28197else
28198  ac_have_decl=0
28199fi
28200
28201cat >>confdefs.h <<_ACEOF
28202#define HAVE_DECL_CODEC_ID_PCM_S32BE $ac_have_decl
28203_ACEOF
28204
28205		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U32LE" "ac_cv_have_decl_CODEC_ID_PCM_U32LE" "#include <libavcodec/avcodec.h>
28206"
28207if test "x$ac_cv_have_decl_CODEC_ID_PCM_U32LE" = x""yes; then :
28208  ac_have_decl=1
28209else
28210  ac_have_decl=0
28211fi
28212
28213cat >>confdefs.h <<_ACEOF
28214#define HAVE_DECL_CODEC_ID_PCM_U32LE $ac_have_decl
28215_ACEOF
28216
28217		ac_fn_c_check_decl "$LINENO" "CODEC_ID_PCM_U32BE" "ac_cv_have_decl_CODEC_ID_PCM_U32BE" "#include <libavcodec/avcodec.h>
28218"
28219if test "x$ac_cv_have_decl_CODEC_ID_PCM_U32BE" = x""yes; then :
28220  ac_have_decl=1
28221else
28222  ac_have_decl=0
28223fi
28224
28225cat >>confdefs.h <<_ACEOF
28226#define HAVE_DECL_CODEC_ID_PCM_U32BE $ac_have_decl
28227_ACEOF
28228
28229		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U8" "ac_cv_have_decl_AV_SAMPLE_FMT_U8" "#include <libavcodec/avcodec.h>
28230"
28231if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U8" = x""yes; then :
28232  ac_have_decl=1
28233else
28234  ac_have_decl=0
28235fi
28236
28237cat >>confdefs.h <<_ACEOF
28238#define HAVE_DECL_AV_SAMPLE_FMT_U8 $ac_have_decl
28239_ACEOF
28240
28241		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U8P" "ac_cv_have_decl_AV_SAMPLE_FMT_U8P" "#include <libavcodec/avcodec.h>
28242"
28243if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U8P" = x""yes; then :
28244  ac_have_decl=1
28245else
28246  ac_have_decl=0
28247fi
28248
28249cat >>confdefs.h <<_ACEOF
28250#define HAVE_DECL_AV_SAMPLE_FMT_U8P $ac_have_decl
28251_ACEOF
28252
28253		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_S16P" "ac_cv_have_decl_AV_SAMPLE_FMT_S16P" "#include <libavcodec/avcodec.h>
28254"
28255if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_S16P" = x""yes; then :
28256  ac_have_decl=1
28257else
28258  ac_have_decl=0
28259fi
28260
28261cat >>confdefs.h <<_ACEOF
28262#define HAVE_DECL_AV_SAMPLE_FMT_S16P $ac_have_decl
28263_ACEOF
28264
28265		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U16LE" "ac_cv_have_decl_AV_SAMPLE_FMT_U16LE" "#include <libavcodec/avcodec.h>
28266"
28267if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U16LE" = x""yes; then :
28268  ac_have_decl=1
28269else
28270  ac_have_decl=0
28271fi
28272
28273cat >>confdefs.h <<_ACEOF
28274#define HAVE_DECL_AV_SAMPLE_FMT_U16LE $ac_have_decl
28275_ACEOF
28276
28277		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U16BE" "ac_cv_have_decl_AV_SAMPLE_FMT_U16BE" "#include <libavcodec/avcodec.h>
28278"
28279if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U16BE" = x""yes; then :
28280  ac_have_decl=1
28281else
28282  ac_have_decl=0
28283fi
28284
28285cat >>confdefs.h <<_ACEOF
28286#define HAVE_DECL_AV_SAMPLE_FMT_U16BE $ac_have_decl
28287_ACEOF
28288
28289		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U24LE" "ac_cv_have_decl_AV_SAMPLE_FMT_U24LE" "#include <libavcodec/avcodec.h>
28290"
28291if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U24LE" = x""yes; then :
28292  ac_have_decl=1
28293else
28294  ac_have_decl=0
28295fi
28296
28297cat >>confdefs.h <<_ACEOF
28298#define HAVE_DECL_AV_SAMPLE_FMT_U24LE $ac_have_decl
28299_ACEOF
28300
28301		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U24BE" "ac_cv_have_decl_AV_SAMPLE_FMT_U24BE" "#include <libavcodec/avcodec.h>
28302"
28303if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U24BE" = x""yes; then :
28304  ac_have_decl=1
28305else
28306  ac_have_decl=0
28307fi
28308
28309cat >>confdefs.h <<_ACEOF
28310#define HAVE_DECL_AV_SAMPLE_FMT_U24BE $ac_have_decl
28311_ACEOF
28312
28313		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_S32P" "ac_cv_have_decl_AV_SAMPLE_FMT_S32P" "#include <libavcodec/avcodec.h>
28314"
28315if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_S32P" = x""yes; then :
28316  ac_have_decl=1
28317else
28318  ac_have_decl=0
28319fi
28320
28321cat >>confdefs.h <<_ACEOF
28322#define HAVE_DECL_AV_SAMPLE_FMT_S32P $ac_have_decl
28323_ACEOF
28324
28325		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U32LE" "ac_cv_have_decl_AV_SAMPLE_FMT_U32LE" "#include <libavcodec/avcodec.h>
28326"
28327if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U32LE" = x""yes; then :
28328  ac_have_decl=1
28329else
28330  ac_have_decl=0
28331fi
28332
28333cat >>confdefs.h <<_ACEOF
28334#define HAVE_DECL_AV_SAMPLE_FMT_U32LE $ac_have_decl
28335_ACEOF
28336
28337		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_U32BE" "ac_cv_have_decl_AV_SAMPLE_FMT_U32BE" "#include <libavcodec/avcodec.h>
28338"
28339if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_U32BE" = x""yes; then :
28340  ac_have_decl=1
28341else
28342  ac_have_decl=0
28343fi
28344
28345cat >>confdefs.h <<_ACEOF
28346#define HAVE_DECL_AV_SAMPLE_FMT_U32BE $ac_have_decl
28347_ACEOF
28348
28349		ac_fn_c_check_decl "$LINENO" "AV_SAMPLE_FMT_FLTP" "ac_cv_have_decl_AV_SAMPLE_FMT_FLTP" "#include <libavcodec/avcodec.h>
28350"
28351if test "x$ac_cv_have_decl_AV_SAMPLE_FMT_FLTP" = x""yes; then :
28352  ac_have_decl=1
28353else
28354  ac_have_decl=0
28355fi
28356
28357cat >>confdefs.h <<_ACEOF
28358#define HAVE_DECL_AV_SAMPLE_FMT_FLTP $ac_have_decl
28359_ACEOF
28360
28361		ac_fn_c_check_decl "$LINENO" "CODEC_CAP_EXPERIMENTAL" "ac_cv_have_decl_CODEC_CAP_EXPERIMENTAL" "#include <libavcodec/avcodec.h>
28362"
28363if test "x$ac_cv_have_decl_CODEC_CAP_EXPERIMENTAL" = x""yes; then :
28364  ac_have_decl=1
28365else
28366  ac_have_decl=0
28367fi
28368
28369cat >>confdefs.h <<_ACEOF
28370#define HAVE_DECL_CODEC_CAP_EXPERIMENTAL $ac_have_decl
28371_ACEOF
28372
28373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_get_sample_fmt_name" >&5
28374$as_echo_n "checking for library containing av_get_sample_fmt_name... " >&6; }
28375if test "${ac_cv_search_av_get_sample_fmt_name+set}" = set; then :
28376  $as_echo_n "(cached) " >&6
28377else
28378  ac_func_search_save_LIBS=$LIBS
28379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380/* end confdefs.h.  */
28381
28382/* Override any GCC internal prototype to avoid an error.
28383   Use char because int might match the return type of a GCC
28384   builtin and then its argument prototype would still apply.  */
28385#ifdef __cplusplus
28386extern "C"
28387#endif
28388char av_get_sample_fmt_name ();
28389int
28390main ()
28391{
28392return av_get_sample_fmt_name ();
28393  ;
28394  return 0;
28395}
28396_ACEOF
28397for ac_lib in '' avutil; do
28398  if test -z "$ac_lib"; then
28399    ac_res="none required"
28400  else
28401    ac_res=-l$ac_lib
28402    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28403  fi
28404  if ac_fn_c_try_link "$LINENO"; then :
28405  ac_cv_search_av_get_sample_fmt_name=$ac_res
28406fi
28407rm -f core conftest.err conftest.$ac_objext \
28408    conftest$ac_exeext
28409  if test "${ac_cv_search_av_get_sample_fmt_name+set}" = set; then :
28410  break
28411fi
28412done
28413if test "${ac_cv_search_av_get_sample_fmt_name+set}" = set; then :
28414
28415else
28416  ac_cv_search_av_get_sample_fmt_name=no
28417fi
28418rm conftest.$ac_ext
28419LIBS=$ac_func_search_save_LIBS
28420fi
28421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_get_sample_fmt_name" >&5
28422$as_echo "$ac_cv_search_av_get_sample_fmt_name" >&6; }
28423ac_res=$ac_cv_search_av_get_sample_fmt_name
28424if test "$ac_res" != no; then :
28425  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28426
28427$as_echo "#define HAVE_AV_GET_SAMPLE_FMT_NAME 1" >>confdefs.h
28428
28429fi
28430
28431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_lockmgr_register" >&5
28432$as_echo_n "checking for library containing av_lockmgr_register... " >&6; }
28433if test "${ac_cv_search_av_lockmgr_register+set}" = set; then :
28434  $as_echo_n "(cached) " >&6
28435else
28436  ac_func_search_save_LIBS=$LIBS
28437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28438/* end confdefs.h.  */
28439
28440/* Override any GCC internal prototype to avoid an error.
28441   Use char because int might match the return type of a GCC
28442   builtin and then its argument prototype would still apply.  */
28443#ifdef __cplusplus
28444extern "C"
28445#endif
28446char av_lockmgr_register ();
28447int
28448main ()
28449{
28450return av_lockmgr_register ();
28451  ;
28452  return 0;
28453}
28454_ACEOF
28455for ac_lib in '' avcodec; do
28456  if test -z "$ac_lib"; then
28457    ac_res="none required"
28458  else
28459    ac_res=-l$ac_lib
28460    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28461  fi
28462  if ac_fn_c_try_link "$LINENO"; then :
28463  ac_cv_search_av_lockmgr_register=$ac_res
28464fi
28465rm -f core conftest.err conftest.$ac_objext \
28466    conftest$ac_exeext
28467  if test "${ac_cv_search_av_lockmgr_register+set}" = set; then :
28468  break
28469fi
28470done
28471if test "${ac_cv_search_av_lockmgr_register+set}" = set; then :
28472
28473else
28474  ac_cv_search_av_lockmgr_register=no
28475fi
28476rm conftest.$ac_ext
28477LIBS=$ac_func_search_save_LIBS
28478fi
28479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_lockmgr_register" >&5
28480$as_echo "$ac_cv_search_av_lockmgr_register" >&6; }
28481ac_res=$ac_cv_search_av_lockmgr_register
28482if test "$ac_res" != no; then :
28483  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28484
28485$as_echo "#define HAVE_LOCKMGR_REGISTER 1" >>confdefs.h
28486
28487fi
28488
28489		CPPFLAGS="$save_CPPFLAGS"
28490		CFLAGS="$save_CFLAGS"
28491		LIBS="$save_LIBS"
28492	fi
28493fi
28494
28495 if test "$want_ffmpeg"; then
28496  BUILD_ffmpeg_TRUE=
28497  BUILD_ffmpeg_FALSE='#'
28498else
28499  BUILD_ffmpeg_TRUE='#'
28500  BUILD_ffmpeg_FALSE=
28501fi
28502
28503ac_config_files="$ac_config_files decoder_plugins/ffmpeg/Makefile"
28504
28505
28506
28507
28508# Check whether --with-flac was given.
28509if test "${with_flac+set}" = set; then :
28510  withval=$with_flac;
28511fi
28512
28513
28514if test "x$with_flac" != "xno"
28515then
28516
28517pkg_failed=no
28518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFLAC" >&5
28519$as_echo_n "checking for LIBFLAC... " >&6; }
28520
28521if test -n "$LIBFLAC_CFLAGS"; then
28522    pkg_cv_LIBFLAC_CFLAGS="$LIBFLAC_CFLAGS"
28523 elif test -n "$PKG_CONFIG"; then
28524    if test -n "$PKG_CONFIG" && \
28525    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.1\""; } >&5
28526  ($PKG_CONFIG --exists --print-errors "flac >= 1.1") 2>&5
28527  ac_status=$?
28528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28529  test $ac_status = 0; }; then
28530  pkg_cv_LIBFLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.1" 2>/dev/null`
28531else
28532  pkg_failed=yes
28533fi
28534 else
28535    pkg_failed=untried
28536fi
28537if test -n "$LIBFLAC_LIBS"; then
28538    pkg_cv_LIBFLAC_LIBS="$LIBFLAC_LIBS"
28539 elif test -n "$PKG_CONFIG"; then
28540    if test -n "$PKG_CONFIG" && \
28541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.1\""; } >&5
28542  ($PKG_CONFIG --exists --print-errors "flac >= 1.1") 2>&5
28543  ac_status=$?
28544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28545  test $ac_status = 0; }; then
28546  pkg_cv_LIBFLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.1" 2>/dev/null`
28547else
28548  pkg_failed=yes
28549fi
28550 else
28551    pkg_failed=untried
28552fi
28553
28554
28555
28556if test $pkg_failed = yes; then
28557
28558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28559        _pkg_short_errors_supported=yes
28560else
28561        _pkg_short_errors_supported=no
28562fi
28563        if test $_pkg_short_errors_supported = yes; then
28564	        LIBFLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "flac >= 1.1" 2>&1`
28565        else
28566	        LIBFLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "flac >= 1.1" 2>&1`
28567        fi
28568	# Put the nasty error message in config.log where it belongs
28569	echo "$LIBFLAC_PKG_ERRORS" >&5
28570
28571	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28572$as_echo "no" >&6; }
28573                true
28574elif test $pkg_failed = untried; then
28575	true
28576else
28577	LIBFLAC_CFLAGS=$pkg_cv_LIBFLAC_CFLAGS
28578	LIBFLAC_LIBS=$pkg_cv_LIBFLAC_LIBS
28579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28580$as_echo "yes" >&6; }
28581
28582
28583			   want_flac="yes"
28584			   DECODER_PLUGINS="$DECODER_PLUGINS flac"
28585fi
28586	if test "x$want_flac" = "xyes"
28587	then
28588		if ! $PKG_CONFIG --atleast-version 1.1.3 flac
28589		then
28590			FLAC_DEPRECATED="yes"
28591		fi
28592	fi
28593fi
28594
28595 if test "$want_flac"; then
28596  BUILD_flac_TRUE=
28597  BUILD_flac_FALSE='#'
28598else
28599  BUILD_flac_TRUE='#'
28600  BUILD_flac_FALSE=
28601fi
28602
28603ac_config_files="$ac_config_files decoder_plugins/flac/Makefile"
28604
28605
28606
28607
28608# Check whether --with-modplug was given.
28609if test "${with_modplug+set}" = set; then :
28610  withval=$with_modplug;
28611fi
28612
28613
28614if test "x$with_modplug" != "xno"
28615then
28616
28617pkg_failed=no
28618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modplug" >&5
28619$as_echo_n "checking for modplug... " >&6; }
28620
28621if test -n "$modplug_CFLAGS"; then
28622    pkg_cv_modplug_CFLAGS="$modplug_CFLAGS"
28623 elif test -n "$PKG_CONFIG"; then
28624    if test -n "$PKG_CONFIG" && \
28625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.7\""; } >&5
28626  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.7") 2>&5
28627  ac_status=$?
28628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629  test $ac_status = 0; }; then
28630  pkg_cv_modplug_CFLAGS=`$PKG_CONFIG --cflags "libmodplug >= 0.7" 2>/dev/null`
28631else
28632  pkg_failed=yes
28633fi
28634 else
28635    pkg_failed=untried
28636fi
28637if test -n "$modplug_LIBS"; then
28638    pkg_cv_modplug_LIBS="$modplug_LIBS"
28639 elif test -n "$PKG_CONFIG"; then
28640    if test -n "$PKG_CONFIG" && \
28641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.7\""; } >&5
28642  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.7") 2>&5
28643  ac_status=$?
28644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28645  test $ac_status = 0; }; then
28646  pkg_cv_modplug_LIBS=`$PKG_CONFIG --libs "libmodplug >= 0.7" 2>/dev/null`
28647else
28648  pkg_failed=yes
28649fi
28650 else
28651    pkg_failed=untried
28652fi
28653
28654
28655
28656if test $pkg_failed = yes; then
28657
28658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28659        _pkg_short_errors_supported=yes
28660else
28661        _pkg_short_errors_supported=no
28662fi
28663        if test $_pkg_short_errors_supported = yes; then
28664	        modplug_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmodplug >= 0.7" 2>&1`
28665        else
28666	        modplug_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmodplug >= 0.7" 2>&1`
28667        fi
28668	# Put the nasty error message in config.log where it belongs
28669	echo "$modplug_PKG_ERRORS" >&5
28670
28671	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28672$as_echo "no" >&6; }
28673                true
28674elif test $pkg_failed = untried; then
28675	true
28676else
28677	modplug_CFLAGS=$pkg_cv_modplug_CFLAGS
28678	modplug_LIBS=$pkg_cv_modplug_LIBS
28679        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28680$as_echo "yes" >&6; }
28681
28682
28683			   want_modplug="yes"
28684			   DECODER_PLUGINS="$DECODER_PLUGINS modplug"
28685fi
28686fi
28687
28688 if test "$want_modplug"; then
28689  BUILD_modplug_TRUE=
28690  BUILD_modplug_FALSE='#'
28691else
28692  BUILD_modplug_TRUE='#'
28693  BUILD_modplug_FALSE=
28694fi
28695
28696ac_config_files="$ac_config_files decoder_plugins/modplug/Makefile"
28697
28698
28699
28700
28701# Check whether --with-mp3 was given.
28702if test "${with_mp3+set}" = set; then :
28703  withval=$with_mp3;
28704fi
28705
28706
28707if test "x$with_mp3" != "xno"
28708then
28709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_stream_init in -lmad" >&5
28710$as_echo_n "checking for mad_stream_init in -lmad... " >&6; }
28711if test "${ac_cv_lib_mad_mad_stream_init+set}" = set; then :
28712  $as_echo_n "(cached) " >&6
28713else
28714  ac_check_lib_save_LIBS=$LIBS
28715LIBS="-lmad  $LIBS"
28716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717/* end confdefs.h.  */
28718
28719/* Override any GCC internal prototype to avoid an error.
28720   Use char because int might match the return type of a GCC
28721   builtin and then its argument prototype would still apply.  */
28722#ifdef __cplusplus
28723extern "C"
28724#endif
28725char mad_stream_init ();
28726int
28727main ()
28728{
28729return mad_stream_init ();
28730  ;
28731  return 0;
28732}
28733_ACEOF
28734if ac_fn_c_try_link "$LINENO"; then :
28735  ac_cv_lib_mad_mad_stream_init=yes
28736else
28737  ac_cv_lib_mad_mad_stream_init=no
28738fi
28739rm -f core conftest.err conftest.$ac_objext \
28740    conftest$ac_exeext conftest.$ac_ext
28741LIBS=$ac_check_lib_save_LIBS
28742fi
28743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mad_mad_stream_init" >&5
28744$as_echo "$ac_cv_lib_mad_mad_stream_init" >&6; }
28745if test "x$ac_cv_lib_mad_mad_stream_init" = x""yes; then :
28746
28747		ac_fn_c_check_header_mongrel "$LINENO" "mad.h" "ac_cv_header_mad_h" "$ac_includes_default"
28748if test "x$ac_cv_header_mad_h" = x""yes; then :
28749
28750fi
28751
28752
28753fi
28754
28755
28756	if test "$ac_cv_lib_mad_mad_stream_init" = "yes" -a "$HAVE_ID3TAG" = "yes"
28757	then
28758		want_mp3="yes"
28759		DECODER_PLUGINS="$DECODER_PLUGINS mp3"
28760	fi
28761fi
28762
28763 if test "$want_mp3"; then
28764  BUILD_mp3_TRUE=
28765  BUILD_mp3_FALSE='#'
28766else
28767  BUILD_mp3_TRUE='#'
28768  BUILD_mp3_FALSE=
28769fi
28770
28771ac_config_files="$ac_config_files decoder_plugins/mp3/Makefile"
28772
28773
28774
28775
28776# Check whether --with-musepack was given.
28777if test "${with_musepack+set}" = set; then :
28778  withval=$with_musepack;
28779fi
28780
28781
28782if test "x$with_musepack" != "xno"
28783then
28784		ac_fn_c_check_header_mongrel "$LINENO" "mpc/mpcdec.h" "ac_cv_header_mpc_mpcdec_h" "$ac_includes_default"
28785if test "x$ac_cv_header_mpc_mpcdec_h" = x""yes; then :
28786  have_musepack="yes"
28787else
28788  ac_fn_c_check_header_mongrel "$LINENO" "mpcdec/mpcdec.h" "ac_cv_header_mpcdec_mpcdec_h" "$ac_includes_default"
28789if test "x$ac_cv_header_mpcdec_mpcdec_h" = x""yes; then :
28790  have_musepack="yes"
28791			 UPGRADE_MUSEPACK="yes"
28792
28793$as_echo "#define MPC_IS_OLD_API 1" >>confdefs.h
28794
28795else
28796  have_musepack="no"
28797fi
28798
28799
28800fi
28801
28802
28803
28804	if test "x$have_musepack" = "xyes"
28805	then
28806
28807		MUSEPACK_LIBS="-lmpcdec"
28808
28809
28810				# Extract the first word of "taglib-config", so it can be a program name with args.
28811set dummy taglib-config; ac_word=$2
28812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28813$as_echo_n "checking for $ac_word... " >&6; }
28814if test "${ac_cv_prog_TAGLIB_CONFIG+set}" = set; then :
28815  $as_echo_n "(cached) " >&6
28816else
28817  if test -n "$TAGLIB_CONFIG"; then
28818  ac_cv_prog_TAGLIB_CONFIG="$TAGLIB_CONFIG" # Let the user override the test.
28819else
28820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28821for as_dir in $PATH
28822do
28823  IFS=$as_save_IFS
28824  test -z "$as_dir" && as_dir=.
28825    for ac_exec_ext in '' $ac_executable_extensions; do
28826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28827    ac_cv_prog_TAGLIB_CONFIG="yes"
28828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28829    break 2
28830  fi
28831done
28832  done
28833IFS=$as_save_IFS
28834
28835fi
28836fi
28837TAGLIB_CONFIG=$ac_cv_prog_TAGLIB_CONFIG
28838if test -n "$TAGLIB_CONFIG"; then
28839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGLIB_CONFIG" >&5
28840$as_echo "$TAGLIB_CONFIG" >&6; }
28841else
28842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28843$as_echo "no" >&6; }
28844fi
28845
28846
28847		if test "x$TAGLIB_CONFIG" = "xyes"
28848		then
28849			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking taglib version" >&5
28850$as_echo_n "checking taglib version... " >&6; }
28851			taglib_ver=`taglib-config --version`
28852			taglib_ver_major=`echo "$taglib_ver" | awk -F. '{print $1}'`
28853			taglib_ver_minor=`echo "$taglib_ver" | awk -F. '{print $2}'`
28854			taglib_ver_extra=`echo "$taglib_ver" | awk -F. '{print $3}'`
28855
28856			if test -z "$taglib_ver_extra"
28857			then
28858				taglib_ver_extra="0"
28859			fi
28860
28861			if test \( "$taglib_ver_major" = "1" -a "$taglib_ver_minor" -ge 4 \) \
28862				-o \( "$taglib_ver_major" = "1" -a "$taglib_ver_minor" = "3" \
28863				-a "$taglib_ver_extra" -ge 1 \)
28864			then
28865				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $taglib_ver, OK" >&5
28866$as_echo "$taglib_ver, OK" >&6; }
28867
28868				TAGLIB_CFLAGS="`taglib-config --cflags`"
28869								TAGLIB_LIBS="-ltag_c"
28870
28871
28872
28873								old_cflags="$CFLAGS"
28874				old_cppflags="$CPPFLAGS"
28875				CFLAGS="$CFLAGS $TAGLIB_CFLAGS"
28876				CPPFLAGS="$CPPFLAGS $TAGLIB_CFLAGS"
28877				ac_fn_c_check_header_mongrel "$LINENO" "tag_c.h" "ac_cv_header_tag_c_h" "$ac_includes_default"
28878if test "x$ac_cv_header_tag_c_h" = x""yes; then :
28879
28880						 want_musepack="yes"
28881						 DECODER_PLUGINS="$DECODER_PLUGINS musepack"
28882
28883fi
28884
28885
28886				CFLAGS="$old_cflags"
28887				CPPFLAGS="$old_cppflags"
28888
28889
28890  # Used to indicate true or false condition
28891  ax_compare_version=false
28892
28893  # Convert the two version strings to be compared into a format that
28894  # allows a simple string comparison.  The end result is that a version
28895  # string of the form 1.12.5-r617 will be converted to the form
28896  # 0001001200050617.  In other words, each number is zero padded to four
28897  # digits, and non digits are removed.
28898
28899  ax_compare_version_A=`echo "$taglib_ver" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28900                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28901                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28902                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28903                     -e 's/[^0-9]//g'`
28904
28905
28906  ax_compare_version_B=`echo "1.5" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28907                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28908                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28909                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28910                     -e 's/[^0-9]//g'`
28911
28912
28913    ax_compare_version=`echo "x$ax_compare_version_A
28914x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
28915
28916
28917
28918    if test "$ax_compare_version" = "true" ; then
28919    :
28920      fi
28921
28922				if test "x$ax_compare_version" = "xtrue"
28923				then
28924					UPGRADE_TAGLIB="yes"
28925				fi
28926			else
28927				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $taglib_ver, but minimum is 1.3.1 - required for musepack" >&5
28928$as_echo "$taglib_ver, but minimum is 1.3.1 - required for musepack" >&6; }
28929			fi
28930		fi
28931	fi
28932fi
28933
28934 if test "$want_musepack"; then
28935  BUILD_musepack_TRUE=
28936  BUILD_musepack_FALSE='#'
28937else
28938  BUILD_musepack_TRUE='#'
28939  BUILD_musepack_FALSE=
28940fi
28941
28942ac_config_files="$ac_config_files decoder_plugins/musepack/Makefile"
28943
28944
28945
28946
28947# Check whether --with-sidplay2 was given.
28948if test "${with_sidplay2+set}" = set; then :
28949  withval=$with_sidplay2;
28950fi
28951
28952
28953if test "x$with_sidplay2" != "xno"
28954then
28955
28956pkg_failed=no
28957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sidplay2" >&5
28958$as_echo_n "checking for sidplay2... " >&6; }
28959
28960if test -n "$sidplay2_CFLAGS"; then
28961    pkg_cv_sidplay2_CFLAGS="$sidplay2_CFLAGS"
28962 elif test -n "$PKG_CONFIG"; then
28963    if test -n "$PKG_CONFIG" && \
28964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsidplay2 >= 2.1.1\""; } >&5
28965  ($PKG_CONFIG --exists --print-errors "libsidplay2 >= 2.1.1") 2>&5
28966  ac_status=$?
28967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28968  test $ac_status = 0; }; then
28969  pkg_cv_sidplay2_CFLAGS=`$PKG_CONFIG --cflags "libsidplay2 >= 2.1.1" 2>/dev/null`
28970else
28971  pkg_failed=yes
28972fi
28973 else
28974    pkg_failed=untried
28975fi
28976if test -n "$sidplay2_LIBS"; then
28977    pkg_cv_sidplay2_LIBS="$sidplay2_LIBS"
28978 elif test -n "$PKG_CONFIG"; then
28979    if test -n "$PKG_CONFIG" && \
28980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsidplay2 >= 2.1.1\""; } >&5
28981  ($PKG_CONFIG --exists --print-errors "libsidplay2 >= 2.1.1") 2>&5
28982  ac_status=$?
28983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28984  test $ac_status = 0; }; then
28985  pkg_cv_sidplay2_LIBS=`$PKG_CONFIG --libs "libsidplay2 >= 2.1.1" 2>/dev/null`
28986else
28987  pkg_failed=yes
28988fi
28989 else
28990    pkg_failed=untried
28991fi
28992
28993
28994
28995if test $pkg_failed = yes; then
28996
28997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28998        _pkg_short_errors_supported=yes
28999else
29000        _pkg_short_errors_supported=no
29001fi
29002        if test $_pkg_short_errors_supported = yes; then
29003	        sidplay2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsidplay2 >= 2.1.1" 2>&1`
29004        else
29005	        sidplay2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsidplay2 >= 2.1.1" 2>&1`
29006        fi
29007	# Put the nasty error message in config.log where it belongs
29008	echo "$sidplay2_PKG_ERRORS" >&5
29009
29010	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29011$as_echo "no" >&6; }
29012                true
29013elif test $pkg_failed = untried; then
29014	true
29015else
29016	sidplay2_CFLAGS=$pkg_cv_sidplay2_CFLAGS
29017	sidplay2_LIBS=$pkg_cv_sidplay2_LIBS
29018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29019$as_echo "yes" >&6; }
29020	sidplay2_OK="yes"
29021fi
29022
29023
29024pkg_failed=no
29025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sidutils" >&5
29026$as_echo_n "checking for sidutils... " >&6; }
29027
29028if test -n "$sidutils_CFLAGS"; then
29029    pkg_cv_sidutils_CFLAGS="$sidutils_CFLAGS"
29030 elif test -n "$PKG_CONFIG"; then
29031    if test -n "$PKG_CONFIG" && \
29032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsidutils >= 1.0.4\""; } >&5
29033  ($PKG_CONFIG --exists --print-errors "libsidutils >= 1.0.4") 2>&5
29034  ac_status=$?
29035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29036  test $ac_status = 0; }; then
29037  pkg_cv_sidutils_CFLAGS=`$PKG_CONFIG --cflags "libsidutils >= 1.0.4" 2>/dev/null`
29038else
29039  pkg_failed=yes
29040fi
29041 else
29042    pkg_failed=untried
29043fi
29044if test -n "$sidutils_LIBS"; then
29045    pkg_cv_sidutils_LIBS="$sidutils_LIBS"
29046 elif test -n "$PKG_CONFIG"; then
29047    if test -n "$PKG_CONFIG" && \
29048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsidutils >= 1.0.4\""; } >&5
29049  ($PKG_CONFIG --exists --print-errors "libsidutils >= 1.0.4") 2>&5
29050  ac_status=$?
29051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29052  test $ac_status = 0; }; then
29053  pkg_cv_sidutils_LIBS=`$PKG_CONFIG --libs "libsidutils >= 1.0.4" 2>/dev/null`
29054else
29055  pkg_failed=yes
29056fi
29057 else
29058    pkg_failed=untried
29059fi
29060
29061
29062
29063if test $pkg_failed = yes; then
29064
29065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29066        _pkg_short_errors_supported=yes
29067else
29068        _pkg_short_errors_supported=no
29069fi
29070        if test $_pkg_short_errors_supported = yes; then
29071	        sidutils_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsidutils >= 1.0.4" 2>&1`
29072        else
29073	        sidutils_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsidutils >= 1.0.4" 2>&1`
29074        fi
29075	# Put the nasty error message in config.log where it belongs
29076	echo "$sidutils_PKG_ERRORS" >&5
29077
29078	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079$as_echo "no" >&6; }
29080                true
29081elif test $pkg_failed = untried; then
29082	true
29083else
29084	sidutils_CFLAGS=$pkg_cv_sidutils_CFLAGS
29085	sidutils_LIBS=$pkg_cv_sidutils_LIBS
29086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29087$as_echo "yes" >&6; }
29088	sidutils_OK="yes"
29089fi
29090	if test "x$sidplay2_OK" = "xyes"; then
29091		if test "x$sidutils_OK" = "xyes"; then
29092			s2lib=`$PKG_CONFIG --variable=builders libsidplay2 2>/dev/null`
29093			if test "x$s2lib" != "x"; then
29094				sidplay2_LDFLAGS="-L$s2lib -lresid-builder"
29095
29096
29097
29098
29099
29100				want_sidplay2="yes"
29101				DECODER_PLUGINS="$DECODER_PLUGINS sidplay2"
29102			fi
29103		fi
29104	fi
29105fi
29106
29107 if test "$want_sidplay2"; then
29108  BUILD_sidplay2_TRUE=
29109  BUILD_sidplay2_FALSE='#'
29110else
29111  BUILD_sidplay2_TRUE='#'
29112  BUILD_sidplay2_FALSE=
29113fi
29114
29115ac_config_files="$ac_config_files decoder_plugins/sidplay2/Makefile"
29116
29117
29118
29119
29120# Check whether --with-sndfile was given.
29121if test "${with_sndfile+set}" = set; then :
29122  withval=$with_sndfile;
29123fi
29124
29125
29126if test "x$with_sndfile" != "xno"
29127then
29128
29129pkg_failed=no
29130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
29131$as_echo_n "checking for sndfile... " >&6; }
29132
29133if test -n "$sndfile_CFLAGS"; then
29134    pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
29135 elif test -n "$PKG_CONFIG"; then
29136    if test -n "$PKG_CONFIG" && \
29137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\""; } >&5
29138  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
29139  ac_status=$?
29140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29141  test $ac_status = 0; }; then
29142  pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.0" 2>/dev/null`
29143else
29144  pkg_failed=yes
29145fi
29146 else
29147    pkg_failed=untried
29148fi
29149if test -n "$sndfile_LIBS"; then
29150    pkg_cv_sndfile_LIBS="$sndfile_LIBS"
29151 elif test -n "$PKG_CONFIG"; then
29152    if test -n "$PKG_CONFIG" && \
29153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\""; } >&5
29154  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
29155  ac_status=$?
29156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29157  test $ac_status = 0; }; then
29158  pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.0" 2>/dev/null`
29159else
29160  pkg_failed=yes
29161fi
29162 else
29163    pkg_failed=untried
29164fi
29165
29166
29167
29168if test $pkg_failed = yes; then
29169
29170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29171        _pkg_short_errors_supported=yes
29172else
29173        _pkg_short_errors_supported=no
29174fi
29175        if test $_pkg_short_errors_supported = yes; then
29176	        sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sndfile >= 1.0.0" 2>&1`
29177        else
29178	        sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors "sndfile >= 1.0.0" 2>&1`
29179        fi
29180	# Put the nasty error message in config.log where it belongs
29181	echo "$sndfile_PKG_ERRORS" >&5
29182
29183	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29184$as_echo "no" >&6; }
29185                true
29186elif test $pkg_failed = untried; then
29187	true
29188else
29189	sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
29190	sndfile_LIBS=$pkg_cv_sndfile_LIBS
29191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29192$as_echo "yes" >&6; }
29193
29194
29195			   want_sndfile="yes"
29196			   DECODER_PLUGINS="$DECODER_PLUGINS sndfile"
29197fi
29198fi
29199
29200 if test "$want_sndfile"; then
29201  BUILD_sndfile_TRUE=
29202  BUILD_sndfile_FALSE='#'
29203else
29204  BUILD_sndfile_TRUE='#'
29205  BUILD_sndfile_FALSE=
29206fi
29207
29208ac_config_files="$ac_config_files decoder_plugins/sndfile/Makefile"
29209
29210
29211
29212
29213# Check whether --with-speex was given.
29214if test "${with_speex+set}" = set; then :
29215  withval=$with_speex;
29216fi
29217
29218
29219if test "x$with_speex" != "xno"
29220then
29221
29222pkg_failed=no
29223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex" >&5
29224$as_echo_n "checking for speex... " >&6; }
29225
29226if test -n "$speex_CFLAGS"; then
29227    pkg_cv_speex_CFLAGS="$speex_CFLAGS"
29228 elif test -n "$PKG_CONFIG"; then
29229    if test -n "$PKG_CONFIG" && \
29230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0 speex >= 1.0.0\""; } >&5
29231  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0 speex >= 1.0.0") 2>&5
29232  ac_status=$?
29233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234  test $ac_status = 0; }; then
29235  pkg_cv_speex_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0 speex >= 1.0.0" 2>/dev/null`
29236else
29237  pkg_failed=yes
29238fi
29239 else
29240    pkg_failed=untried
29241fi
29242if test -n "$speex_LIBS"; then
29243    pkg_cv_speex_LIBS="$speex_LIBS"
29244 elif test -n "$PKG_CONFIG"; then
29245    if test -n "$PKG_CONFIG" && \
29246    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0 speex >= 1.0.0\""; } >&5
29247  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0 speex >= 1.0.0") 2>&5
29248  ac_status=$?
29249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29250  test $ac_status = 0; }; then
29251  pkg_cv_speex_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0 speex >= 1.0.0" 2>/dev/null`
29252else
29253  pkg_failed=yes
29254fi
29255 else
29256    pkg_failed=untried
29257fi
29258
29259
29260
29261if test $pkg_failed = yes; then
29262
29263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29264        _pkg_short_errors_supported=yes
29265else
29266        _pkg_short_errors_supported=no
29267fi
29268        if test $_pkg_short_errors_supported = yes; then
29269	        speex_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ogg >= 1.0 speex >= 1.0.0" 2>&1`
29270        else
29271	        speex_PKG_ERRORS=`$PKG_CONFIG --print-errors "ogg >= 1.0 speex >= 1.0.0" 2>&1`
29272        fi
29273	# Put the nasty error message in config.log where it belongs
29274	echo "$speex_PKG_ERRORS" >&5
29275
29276	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29277$as_echo "no" >&6; }
29278                true
29279elif test $pkg_failed = untried; then
29280	true
29281else
29282	speex_CFLAGS=$pkg_cv_speex_CFLAGS
29283	speex_LIBS=$pkg_cv_speex_LIBS
29284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29285$as_echo "yes" >&6; }
29286
29287
29288			  want_speex="yes"
29289			  DECODER_PLUGINS="$DECODER_PLUGINS speex"
29290fi
29291fi
29292
29293 if test "$want_speex"; then
29294  BUILD_speex_TRUE=
29295  BUILD_speex_FALSE='#'
29296else
29297  BUILD_speex_TRUE='#'
29298  BUILD_speex_FALSE=
29299fi
29300
29301ac_config_files="$ac_config_files decoder_plugins/speex/Makefile"
29302
29303
29304
29305
29306# Check whether --with-timidity was given.
29307if test "${with_timidity+set}" = set; then :
29308  withval=$with_timidity;
29309fi
29310
29311
29312if test "x$with_timidity" != "xno"
29313then
29314
29315pkg_failed=no
29316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timidity" >&5
29317$as_echo_n "checking for timidity... " >&6; }
29318
29319if test -n "$timidity_CFLAGS"; then
29320    pkg_cv_timidity_CFLAGS="$timidity_CFLAGS"
29321 elif test -n "$PKG_CONFIG"; then
29322    if test -n "$PKG_CONFIG" && \
29323    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtimidity >= 0.1.0\""; } >&5
29324  ($PKG_CONFIG --exists --print-errors "libtimidity >= 0.1.0") 2>&5
29325  ac_status=$?
29326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29327  test $ac_status = 0; }; then
29328  pkg_cv_timidity_CFLAGS=`$PKG_CONFIG --cflags "libtimidity >= 0.1.0" 2>/dev/null`
29329else
29330  pkg_failed=yes
29331fi
29332 else
29333    pkg_failed=untried
29334fi
29335if test -n "$timidity_LIBS"; then
29336    pkg_cv_timidity_LIBS="$timidity_LIBS"
29337 elif test -n "$PKG_CONFIG"; then
29338    if test -n "$PKG_CONFIG" && \
29339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtimidity >= 0.1.0\""; } >&5
29340  ($PKG_CONFIG --exists --print-errors "libtimidity >= 0.1.0") 2>&5
29341  ac_status=$?
29342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29343  test $ac_status = 0; }; then
29344  pkg_cv_timidity_LIBS=`$PKG_CONFIG --libs "libtimidity >= 0.1.0" 2>/dev/null`
29345else
29346  pkg_failed=yes
29347fi
29348 else
29349    pkg_failed=untried
29350fi
29351
29352
29353
29354if test $pkg_failed = yes; then
29355
29356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29357        _pkg_short_errors_supported=yes
29358else
29359        _pkg_short_errors_supported=no
29360fi
29361        if test $_pkg_short_errors_supported = yes; then
29362	        timidity_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libtimidity >= 0.1.0" 2>&1`
29363        else
29364	        timidity_PKG_ERRORS=`$PKG_CONFIG --print-errors "libtimidity >= 0.1.0" 2>&1`
29365        fi
29366	# Put the nasty error message in config.log where it belongs
29367	echo "$timidity_PKG_ERRORS" >&5
29368
29369	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29370$as_echo "no" >&6; }
29371                true
29372elif test $pkg_failed = untried; then
29373	true
29374else
29375	timidity_CFLAGS=$pkg_cv_timidity_CFLAGS
29376	timidity_LIBS=$pkg_cv_timidity_LIBS
29377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378$as_echo "yes" >&6; }
29379
29380
29381			   want_timidity="yes"
29382			   DECODER_PLUGINS="$DECODER_PLUGINS timidity"
29383fi
29384fi
29385
29386 if test "$want_timidity"; then
29387  BUILD_timidity_TRUE=
29388  BUILD_timidity_FALSE='#'
29389else
29390  BUILD_timidity_TRUE='#'
29391  BUILD_timidity_FALSE=
29392fi
29393
29394ac_config_files="$ac_config_files decoder_plugins/timidity/Makefile"
29395
29396
29397
29398
29399# Check whether --with-vorbis was given.
29400if test "${with_vorbis+set}" = set; then :
29401  withval=$with_vorbis;
29402fi
29403
29404
29405if test "x$with_vorbis" == "xtremor"
29406then
29407
29408pkg_failed=no
29409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG_VORBIS" >&5
29410$as_echo_n "checking for OGG_VORBIS... " >&6; }
29411
29412if test -n "$OGG_VORBIS_CFLAGS"; then
29413    pkg_cv_OGG_VORBIS_CFLAGS="$OGG_VORBIS_CFLAGS"
29414 elif test -n "$PKG_CONFIG"; then
29415    if test -n "$PKG_CONFIG" && \
29416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisidec >= 1.0\""; } >&5
29417  ($PKG_CONFIG --exists --print-errors "vorbisidec >= 1.0") 2>&5
29418  ac_status=$?
29419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29420  test $ac_status = 0; }; then
29421  pkg_cv_OGG_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbisidec >= 1.0" 2>/dev/null`
29422else
29423  pkg_failed=yes
29424fi
29425 else
29426    pkg_failed=untried
29427fi
29428if test -n "$OGG_VORBIS_LIBS"; then
29429    pkg_cv_OGG_VORBIS_LIBS="$OGG_VORBIS_LIBS"
29430 elif test -n "$PKG_CONFIG"; then
29431    if test -n "$PKG_CONFIG" && \
29432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisidec >= 1.0\""; } >&5
29433  ($PKG_CONFIG --exists --print-errors "vorbisidec >= 1.0") 2>&5
29434  ac_status=$?
29435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29436  test $ac_status = 0; }; then
29437  pkg_cv_OGG_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbisidec >= 1.0" 2>/dev/null`
29438else
29439  pkg_failed=yes
29440fi
29441 else
29442    pkg_failed=untried
29443fi
29444
29445
29446
29447if test $pkg_failed = yes; then
29448
29449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29450        _pkg_short_errors_supported=yes
29451else
29452        _pkg_short_errors_supported=no
29453fi
29454        if test $_pkg_short_errors_supported = yes; then
29455	        OGG_VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "vorbisidec >= 1.0" 2>&1`
29456        else
29457	        OGG_VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors "vorbisidec >= 1.0" 2>&1`
29458        fi
29459	# Put the nasty error message in config.log where it belongs
29460	echo "$OGG_VORBIS_PKG_ERRORS" >&5
29461
29462	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463$as_echo "no" >&6; }
29464                true
29465elif test $pkg_failed = untried; then
29466	true
29467else
29468	OGG_VORBIS_CFLAGS=$pkg_cv_OGG_VORBIS_CFLAGS
29469	OGG_VORBIS_LIBS=$pkg_cv_OGG_VORBIS_LIBS
29470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29471$as_echo "yes" >&6; }
29472
29473
29474
29475$as_echo "#define HAVE_TREMOR 1" >>confdefs.h
29476
29477			   want_vorbis="yes"
29478			   DECODER_PLUGINS="$DECODER_PLUGINS vorbis(tremor)"
29479fi
29480else
29481	if test "x$with_vorbis" != "xno"
29482	then
29483
29484pkg_failed=no
29485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG_VORBIS" >&5
29486$as_echo_n "checking for OGG_VORBIS... " >&6; }
29487
29488if test -n "$OGG_VORBIS_CFLAGS"; then
29489    pkg_cv_OGG_VORBIS_CFLAGS="$OGG_VORBIS_CFLAGS"
29490 elif test -n "$PKG_CONFIG"; then
29491    if test -n "$PKG_CONFIG" && \
29492    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0\""; } >&5
29493  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0") 2>&5
29494  ac_status=$?
29495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29496  test $ac_status = 0; }; then
29497  pkg_cv_OGG_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" 2>/dev/null`
29498else
29499  pkg_failed=yes
29500fi
29501 else
29502    pkg_failed=untried
29503fi
29504if test -n "$OGG_VORBIS_LIBS"; then
29505    pkg_cv_OGG_VORBIS_LIBS="$OGG_VORBIS_LIBS"
29506 elif test -n "$PKG_CONFIG"; then
29507    if test -n "$PKG_CONFIG" && \
29508    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0\""; } >&5
29509  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0") 2>&5
29510  ac_status=$?
29511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29512  test $ac_status = 0; }; then
29513  pkg_cv_OGG_VORBIS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" 2>/dev/null`
29514else
29515  pkg_failed=yes
29516fi
29517 else
29518    pkg_failed=untried
29519fi
29520
29521
29522
29523if test $pkg_failed = yes; then
29524
29525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29526        _pkg_short_errors_supported=yes
29527else
29528        _pkg_short_errors_supported=no
29529fi
29530        if test $_pkg_short_errors_supported = yes; then
29531	        OGG_VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" 2>&1`
29532        else
29533	        OGG_VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" 2>&1`
29534        fi
29535	# Put the nasty error message in config.log where it belongs
29536	echo "$OGG_VORBIS_PKG_ERRORS" >&5
29537
29538	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29539$as_echo "no" >&6; }
29540                true
29541elif test $pkg_failed = untried; then
29542	true
29543else
29544	OGG_VORBIS_CFLAGS=$pkg_cv_OGG_VORBIS_CFLAGS
29545	OGG_VORBIS_LIBS=$pkg_cv_OGG_VORBIS_LIBS
29546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29547$as_echo "yes" >&6; }
29548
29549
29550			       want_vorbis="yes"
29551			       DECODER_PLUGINS="$DECODER_PLUGINS vorbis"
29552fi
29553	fi
29554fi
29555
29556 if test "$want_vorbis"; then
29557  BUILD_vorbis_TRUE=
29558  BUILD_vorbis_FALSE='#'
29559else
29560  BUILD_vorbis_TRUE='#'
29561  BUILD_vorbis_FALSE=
29562fi
29563
29564ac_config_files="$ac_config_files decoder_plugins/vorbis/Makefile"
29565
29566
29567
29568
29569# Check whether --with-wavpack was given.
29570if test "${with_wavpack+set}" = set; then :
29571  withval=$with_wavpack;
29572fi
29573
29574
29575if test "x$with_wavpack" != "xno"
29576then
29577
29578pkg_failed=no
29579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAVPACK" >&5
29580$as_echo_n "checking for WAVPACK... " >&6; }
29581
29582if test -n "$WAVPACK_CFLAGS"; then
29583    pkg_cv_WAVPACK_CFLAGS="$WAVPACK_CFLAGS"
29584 elif test -n "$PKG_CONFIG"; then
29585    if test -n "$PKG_CONFIG" && \
29586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wavpack >= 4.31\""; } >&5
29587  ($PKG_CONFIG --exists --print-errors "wavpack >= 4.31") 2>&5
29588  ac_status=$?
29589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29590  test $ac_status = 0; }; then
29591  pkg_cv_WAVPACK_CFLAGS=`$PKG_CONFIG --cflags "wavpack >= 4.31" 2>/dev/null`
29592else
29593  pkg_failed=yes
29594fi
29595 else
29596    pkg_failed=untried
29597fi
29598if test -n "$WAVPACK_LIBS"; then
29599    pkg_cv_WAVPACK_LIBS="$WAVPACK_LIBS"
29600 elif test -n "$PKG_CONFIG"; then
29601    if test -n "$PKG_CONFIG" && \
29602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wavpack >= 4.31\""; } >&5
29603  ($PKG_CONFIG --exists --print-errors "wavpack >= 4.31") 2>&5
29604  ac_status=$?
29605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29606  test $ac_status = 0; }; then
29607  pkg_cv_WAVPACK_LIBS=`$PKG_CONFIG --libs "wavpack >= 4.31" 2>/dev/null`
29608else
29609  pkg_failed=yes
29610fi
29611 else
29612    pkg_failed=untried
29613fi
29614
29615
29616
29617if test $pkg_failed = yes; then
29618
29619if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29620        _pkg_short_errors_supported=yes
29621else
29622        _pkg_short_errors_supported=no
29623fi
29624        if test $_pkg_short_errors_supported = yes; then
29625	        WAVPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "wavpack >= 4.31" 2>&1`
29626        else
29627	        WAVPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "wavpack >= 4.31" 2>&1`
29628        fi
29629	# Put the nasty error message in config.log where it belongs
29630	echo "$WAVPACK_PKG_ERRORS" >&5
29631
29632	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29633$as_echo "no" >&6; }
29634                true
29635elif test $pkg_failed = untried; then
29636	true
29637else
29638	WAVPACK_CFLAGS=$pkg_cv_WAVPACK_CFLAGS
29639	WAVPACK_LIBS=$pkg_cv_WAVPACK_LIBS
29640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29641$as_echo "yes" >&6; }
29642
29643
29644			want_wavpack="yes"
29645			DECODER_PLUGINS="$DECODER_PLUGINS wavpack"
29646fi
29647fi
29648
29649 if test "$want_wavpack"; then
29650  BUILD_wavpack_TRUE=
29651  BUILD_wavpack_FALSE='#'
29652else
29653  BUILD_wavpack_TRUE='#'
29654  BUILD_wavpack_FALSE=
29655fi
29656
29657ac_config_files="$ac_config_files decoder_plugins/wavpack/Makefile"
29658
29659
29660
29661ac_config_files="$ac_config_files decoder_plugins/Makefile"
29662
29663
29664
29665COMPILE_CURL="no"
29666
29667# Check whether --with-curl was given.
29668if test "${with_curl+set}" = set; then :
29669  withval=$with_curl;
29670fi
29671
29672if test "x$with_curl" != "xno"
29673then
29674		# Extract the first word of "curl-config", so it can be a program name with args.
29675set dummy curl-config; ac_word=$2
29676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29677$as_echo_n "checking for $ac_word... " >&6; }
29678if test "${ac_cv_prog_CURL_CONFIG+set}" = set; then :
29679  $as_echo_n "(cached) " >&6
29680else
29681  if test -n "$CURL_CONFIG"; then
29682  ac_cv_prog_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test.
29683else
29684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29685for as_dir in $PATH
29686do
29687  IFS=$as_save_IFS
29688  test -z "$as_dir" && as_dir=.
29689    for ac_exec_ext in '' $ac_executable_extensions; do
29690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29691    ac_cv_prog_CURL_CONFIG="yes"
29692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29693    break 2
29694  fi
29695done
29696  done
29697IFS=$as_save_IFS
29698
29699fi
29700fi
29701CURL_CONFIG=$ac_cv_prog_CURL_CONFIG
29702if test -n "$CURL_CONFIG"; then
29703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
29704$as_echo "$CURL_CONFIG" >&6; }
29705else
29706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29707$as_echo "no" >&6; }
29708fi
29709
29710
29711	if test "x$CURL_CONFIG" = "xyes"
29712	then
29713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurl version" >&5
29714$as_echo_n "checking libcurl version... " >&6; }
29715		curl_ver=`curl-config --version | $AWK '{print $2}'`
29716		curl_ver_major=`echo $curl_ver | $AWK -F. '{print $1}'`
29717		curl_ver_minor=`echo $curl_ver | $AWK -F. '{print $2}'`
29718		curl_ver_fix=`echo $curl_ver | $AWK -F. '{print $3}'`
29719
29720		# make 071202 from 7.12.2
29721		curl_ver_number=`printf "%02d%02d%02d" $curl_ver_major \
29722			$curl_ver_minor $curl_ver_fix`
29723
29724		if test "$curl_ver_number" -lt "071501"
29725		then
29726			CURL_DEPRECATED="yes"
29727		fi
29728
29729		if test "$curl_ver_number" -ge "071202"
29730		then
29731			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_ver, OK" >&5
29732$as_echo "$curl_ver, OK" >&6; }
29733			CFLAGS="$CFLAGS `curl-config --cflags`"
29734			EXTRA_LIBS="$EXTRA_LIBS `curl-config --libs`"
29735			EXTRA_OBJS="$EXTRA_OBJS io_curl.o"
29736
29737$as_echo "#define HAVE_CURL 1" >>confdefs.h
29738
29739			COMPILE_CURL="yes"
29740		else
29741			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_ver, but minimum is 7.12.2" >&5
29742$as_echo "$curl_ver, but minimum is 7.12.2" >&6; }
29743		fi
29744	fi
29745fi
29746
29747# Extract the first word of "xz", so it can be a program name with args.
29748set dummy xz; ac_word=$2
29749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29750$as_echo_n "checking for $ac_word... " >&6; }
29751if test "${ac_cv_prog_XZ_MISSING+set}" = set; then :
29752  $as_echo_n "(cached) " >&6
29753else
29754  if test -n "$XZ_MISSING"; then
29755  ac_cv_prog_XZ_MISSING="$XZ_MISSING" # Let the user override the test.
29756else
29757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29758for as_dir in $PATH
29759do
29760  IFS=$as_save_IFS
29761  test -z "$as_dir" && as_dir=.
29762    for ac_exec_ext in '' $ac_executable_extensions; do
29763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29764    ac_cv_prog_XZ_MISSING="no"
29765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29766    break 2
29767  fi
29768done
29769  done
29770IFS=$as_save_IFS
29771
29772  test -z "$ac_cv_prog_XZ_MISSING" && ac_cv_prog_XZ_MISSING="yes"
29773fi
29774fi
29775XZ_MISSING=$ac_cv_prog_XZ_MISSING
29776if test -n "$XZ_MISSING"; then
29777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ_MISSING" >&5
29778$as_echo "$XZ_MISSING" >&6; }
29779else
29780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29781$as_echo "no" >&6; }
29782fi
29783
29784
29785
29786
29787
29788
29789ac_config_files="$ac_config_files Makefile themes/Makefile config.example"
29790
29791cat >confcache <<\_ACEOF
29792# This file is a shell script that caches the results of configure
29793# tests run on this system so they can be shared between configure
29794# scripts and configure runs, see configure's option --config-cache.
29795# It is not useful on other systems.  If it contains results you don't
29796# want to keep, you may remove or edit it.
29797#
29798# config.status only pays attention to the cache file if you give it
29799# the --recheck option to rerun configure.
29800#
29801# `ac_cv_env_foo' variables (set or unset) will be overridden when
29802# loading this file, other *unset* `ac_cv_foo' will be assigned the
29803# following values.
29804
29805_ACEOF
29806
29807# The following way of writing the cache mishandles newlines in values,
29808# but we know of no workaround that is simple, portable, and efficient.
29809# So, we kill variables containing newlines.
29810# Ultrix sh set writes to stderr and can't be redirected directly,
29811# and sets the high bit in the cache file unless we assign to the vars.
29812(
29813  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29814    eval ac_val=\$$ac_var
29815    case $ac_val in #(
29816    *${as_nl}*)
29817      case $ac_var in #(
29818      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29819$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29820      esac
29821      case $ac_var in #(
29822      _ | IFS | as_nl) ;; #(
29823      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29824      *) { eval $ac_var=; unset $ac_var;} ;;
29825      esac ;;
29826    esac
29827  done
29828
29829  (set) 2>&1 |
29830    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29831    *${as_nl}ac_space=\ *)
29832      # `set' does not quote correctly, so add quotes: double-quote
29833      # substitution turns \\\\ into \\, and sed turns \\ into \.
29834      sed -n \
29835	"s/'/'\\\\''/g;
29836	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29837      ;; #(
29838    *)
29839      # `set' quotes correctly as required by POSIX, so do not add quotes.
29840      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29841      ;;
29842    esac |
29843    sort
29844) |
29845  sed '
29846     /^ac_cv_env_/b end
29847     t clear
29848     :clear
29849     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29850     t end
29851     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29852     :end' >>confcache
29853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29854  if test -w "$cache_file"; then
29855    test "x$cache_file" != "x/dev/null" &&
29856      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29857$as_echo "$as_me: updating cache $cache_file" >&6;}
29858    cat confcache >$cache_file
29859  else
29860    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29861$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29862  fi
29863fi
29864rm -f confcache
29865
29866test "x$prefix" = xNONE && prefix=$ac_default_prefix
29867# Let make expand exec_prefix.
29868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29869
29870DEFS=-DHAVE_CONFIG_H
29871
29872ac_libobjs=
29873ac_ltlibobjs=
29874for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29875  # 1. Remove the extension, and $U if already installed.
29876  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29877  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29878  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29879  #    will be set to the directory where LIBOBJS objects are built.
29880  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29881  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29882done
29883LIBOBJS=$ac_libobjs
29884
29885LTLIBOBJS=$ac_ltlibobjs
29886
29887
29888 if test -n "$EXEEXT"; then
29889  am__EXEEXT_TRUE=
29890  am__EXEEXT_FALSE='#'
29891else
29892  am__EXEEXT_TRUE='#'
29893  am__EXEEXT_FALSE=
29894fi
29895
29896if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29897  as_fn_error "conditional \"AMDEP\" was never defined.
29898Usually this means the macro was only invoked conditionally." "$LINENO" 5
29899fi
29900if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29901  as_fn_error "conditional \"am__fastdepCC\" was never defined.
29902Usually this means the macro was only invoked conditionally." "$LINENO" 5
29903fi
29904if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29905  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
29906Usually this means the macro was only invoked conditionally." "$LINENO" 5
29907fi
29908if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29909  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
29910Usually this means the macro was only invoked conditionally." "$LINENO" 5
29911fi
29912if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29913  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
29914Usually this means the macro was only invoked conditionally." "$LINENO" 5
29915fi
29916if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29917  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
29918Usually this means the macro was only invoked conditionally." "$LINENO" 5
29919fi
29920LT_CONFIG_H=config.h
29921
29922    _ltdl_libobjs=
29923    _ltdl_ltlibobjs=
29924    if test -n "$_LT_LIBOBJS"; then
29925      # Remove the extension.
29926      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
29927      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
29928        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
29929        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
29930      done
29931    fi
29932    ltdl_LIBOBJS=$_ltdl_libobjs
29933
29934    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
29935
29936
29937
29938if test -z "${BUILD_aac_TRUE}" && test -z "${BUILD_aac_FALSE}"; then
29939  as_fn_error "conditional \"BUILD_aac\" was never defined.
29940Usually this means the macro was only invoked conditionally." "$LINENO" 5
29941fi
29942if test -z "${BUILD_ffmpeg_TRUE}" && test -z "${BUILD_ffmpeg_FALSE}"; then
29943  as_fn_error "conditional \"BUILD_ffmpeg\" was never defined.
29944Usually this means the macro was only invoked conditionally." "$LINENO" 5
29945fi
29946if test -z "${BUILD_flac_TRUE}" && test -z "${BUILD_flac_FALSE}"; then
29947  as_fn_error "conditional \"BUILD_flac\" was never defined.
29948Usually this means the macro was only invoked conditionally." "$LINENO" 5
29949fi
29950if test -z "${BUILD_modplug_TRUE}" && test -z "${BUILD_modplug_FALSE}"; then
29951  as_fn_error "conditional \"BUILD_modplug\" was never defined.
29952Usually this means the macro was only invoked conditionally." "$LINENO" 5
29953fi
29954if test -z "${BUILD_mp3_TRUE}" && test -z "${BUILD_mp3_FALSE}"; then
29955  as_fn_error "conditional \"BUILD_mp3\" was never defined.
29956Usually this means the macro was only invoked conditionally." "$LINENO" 5
29957fi
29958if test -z "${BUILD_musepack_TRUE}" && test -z "${BUILD_musepack_FALSE}"; then
29959  as_fn_error "conditional \"BUILD_musepack\" was never defined.
29960Usually this means the macro was only invoked conditionally." "$LINENO" 5
29961fi
29962if test -z "${BUILD_sidplay2_TRUE}" && test -z "${BUILD_sidplay2_FALSE}"; then
29963  as_fn_error "conditional \"BUILD_sidplay2\" was never defined.
29964Usually this means the macro was only invoked conditionally." "$LINENO" 5
29965fi
29966if test -z "${BUILD_sndfile_TRUE}" && test -z "${BUILD_sndfile_FALSE}"; then
29967  as_fn_error "conditional \"BUILD_sndfile\" was never defined.
29968Usually this means the macro was only invoked conditionally." "$LINENO" 5
29969fi
29970if test -z "${BUILD_speex_TRUE}" && test -z "${BUILD_speex_FALSE}"; then
29971  as_fn_error "conditional \"BUILD_speex\" was never defined.
29972Usually this means the macro was only invoked conditionally." "$LINENO" 5
29973fi
29974if test -z "${BUILD_timidity_TRUE}" && test -z "${BUILD_timidity_FALSE}"; then
29975  as_fn_error "conditional \"BUILD_timidity\" was never defined.
29976Usually this means the macro was only invoked conditionally." "$LINENO" 5
29977fi
29978if test -z "${BUILD_vorbis_TRUE}" && test -z "${BUILD_vorbis_FALSE}"; then
29979  as_fn_error "conditional \"BUILD_vorbis\" was never defined.
29980Usually this means the macro was only invoked conditionally." "$LINENO" 5
29981fi
29982if test -z "${BUILD_wavpack_TRUE}" && test -z "${BUILD_wavpack_FALSE}"; then
29983  as_fn_error "conditional \"BUILD_wavpack\" was never defined.
29984Usually this means the macro was only invoked conditionally." "$LINENO" 5
29985fi
29986
29987: ${CONFIG_STATUS=./config.status}
29988ac_write_fail=0
29989ac_clean_files_save=$ac_clean_files
29990ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29991{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29992$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29993as_write_fail=0
29994cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29995#! $SHELL
29996# Generated by $as_me.
29997# Run this file to recreate the current configuration.
29998# Compiler output produced by configure, useful for debugging
29999# configure, is in config.log if it exists.
30000
30001debug=false
30002ac_cs_recheck=false
30003ac_cs_silent=false
30004
30005SHELL=\${CONFIG_SHELL-$SHELL}
30006export SHELL
30007_ASEOF
30008cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30009## -------------------- ##
30010## M4sh Initialization. ##
30011## -------------------- ##
30012
30013# Be more Bourne compatible
30014DUALCASE=1; export DUALCASE # for MKS sh
30015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30016  emulate sh
30017  NULLCMD=:
30018  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30019  # is contrary to our usage.  Disable this feature.
30020  alias -g '${1+"$@"}'='"$@"'
30021  setopt NO_GLOB_SUBST
30022else
30023  case `(set -o) 2>/dev/null` in #(
30024  *posix*) :
30025    set -o posix ;; #(
30026  *) :
30027     ;;
30028esac
30029fi
30030
30031
30032as_nl='
30033'
30034export as_nl
30035# Printing a long string crashes Solaris 7 /usr/bin/printf.
30036as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30039# Prefer a ksh shell builtin over an external printf program on Solaris,
30040# but without wasting forks for bash or zsh.
30041if test -z "$BASH_VERSION$ZSH_VERSION" \
30042    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30043  as_echo='print -r --'
30044  as_echo_n='print -rn --'
30045elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30046  as_echo='printf %s\n'
30047  as_echo_n='printf %s'
30048else
30049  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30050    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30051    as_echo_n='/usr/ucb/echo -n'
30052  else
30053    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30054    as_echo_n_body='eval
30055      arg=$1;
30056      case $arg in #(
30057      *"$as_nl"*)
30058	expr "X$arg" : "X\\(.*\\)$as_nl";
30059	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30060      esac;
30061      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30062    '
30063    export as_echo_n_body
30064    as_echo_n='sh -c $as_echo_n_body as_echo'
30065  fi
30066  export as_echo_body
30067  as_echo='sh -c $as_echo_body as_echo'
30068fi
30069
30070# The user is always right.
30071if test "${PATH_SEPARATOR+set}" != set; then
30072  PATH_SEPARATOR=:
30073  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30074    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30075      PATH_SEPARATOR=';'
30076  }
30077fi
30078
30079
30080# IFS
30081# We need space, tab and new line, in precisely that order.  Quoting is
30082# there to prevent editors from complaining about space-tab.
30083# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30084# splitting by setting IFS to empty value.)
30085IFS=" ""	$as_nl"
30086
30087# Find who we are.  Look in the path if we contain no directory separator.
30088case $0 in #((
30089  *[\\/]* ) as_myself=$0 ;;
30090  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30091for as_dir in $PATH
30092do
30093  IFS=$as_save_IFS
30094  test -z "$as_dir" && as_dir=.
30095    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30096  done
30097IFS=$as_save_IFS
30098
30099     ;;
30100esac
30101# We did not find ourselves, most probably we were run as `sh COMMAND'
30102# in which case we are not to be found in the path.
30103if test "x$as_myself" = x; then
30104  as_myself=$0
30105fi
30106if test ! -f "$as_myself"; then
30107  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30108  exit 1
30109fi
30110
30111# Unset variables that we do not need and which cause bugs (e.g. in
30112# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30113# suppresses any "Segmentation fault" message there.  '((' could
30114# trigger a bug in pdksh 5.2.14.
30115for as_var in BASH_ENV ENV MAIL MAILPATH
30116do eval test x\${$as_var+set} = xset \
30117  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30118done
30119PS1='$ '
30120PS2='> '
30121PS4='+ '
30122
30123# NLS nuisances.
30124LC_ALL=C
30125export LC_ALL
30126LANGUAGE=C
30127export LANGUAGE
30128
30129# CDPATH.
30130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30131
30132
30133# as_fn_error ERROR [LINENO LOG_FD]
30134# ---------------------------------
30135# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30136# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30137# script with status $?, using 1 if that was 0.
30138as_fn_error ()
30139{
30140  as_status=$?; test $as_status -eq 0 && as_status=1
30141  if test "$3"; then
30142    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30143    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30144  fi
30145  $as_echo "$as_me: error: $1" >&2
30146  as_fn_exit $as_status
30147} # as_fn_error
30148
30149
30150# as_fn_set_status STATUS
30151# -----------------------
30152# Set $? to STATUS, without forking.
30153as_fn_set_status ()
30154{
30155  return $1
30156} # as_fn_set_status
30157
30158# as_fn_exit STATUS
30159# -----------------
30160# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30161as_fn_exit ()
30162{
30163  set +e
30164  as_fn_set_status $1
30165  exit $1
30166} # as_fn_exit
30167
30168# as_fn_unset VAR
30169# ---------------
30170# Portably unset VAR.
30171as_fn_unset ()
30172{
30173  { eval $1=; unset $1;}
30174}
30175as_unset=as_fn_unset
30176# as_fn_append VAR VALUE
30177# ----------------------
30178# Append the text in VALUE to the end of the definition contained in VAR. Take
30179# advantage of any shell optimizations that allow amortized linear growth over
30180# repeated appends, instead of the typical quadratic growth present in naive
30181# implementations.
30182if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30183  eval 'as_fn_append ()
30184  {
30185    eval $1+=\$2
30186  }'
30187else
30188  as_fn_append ()
30189  {
30190    eval $1=\$$1\$2
30191  }
30192fi # as_fn_append
30193
30194# as_fn_arith ARG...
30195# ------------------
30196# Perform arithmetic evaluation on the ARGs, and store the result in the
30197# global $as_val. Take advantage of shells that can avoid forks. The arguments
30198# must be portable across $(()) and expr.
30199if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30200  eval 'as_fn_arith ()
30201  {
30202    as_val=$(( $* ))
30203  }'
30204else
30205  as_fn_arith ()
30206  {
30207    as_val=`expr "$@" || test $? -eq 1`
30208  }
30209fi # as_fn_arith
30210
30211
30212if expr a : '\(a\)' >/dev/null 2>&1 &&
30213   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30214  as_expr=expr
30215else
30216  as_expr=false
30217fi
30218
30219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30220  as_basename=basename
30221else
30222  as_basename=false
30223fi
30224
30225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30226  as_dirname=dirname
30227else
30228  as_dirname=false
30229fi
30230
30231as_me=`$as_basename -- "$0" ||
30232$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30233	 X"$0" : 'X\(//\)$' \| \
30234	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30235$as_echo X/"$0" |
30236    sed '/^.*\/\([^/][^/]*\)\/*$/{
30237	    s//\1/
30238	    q
30239	  }
30240	  /^X\/\(\/\/\)$/{
30241	    s//\1/
30242	    q
30243	  }
30244	  /^X\/\(\/\).*/{
30245	    s//\1/
30246	    q
30247	  }
30248	  s/.*/./; q'`
30249
30250# Avoid depending upon Character Ranges.
30251as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30252as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30253as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30254as_cr_digits='0123456789'
30255as_cr_alnum=$as_cr_Letters$as_cr_digits
30256
30257ECHO_C= ECHO_N= ECHO_T=
30258case `echo -n x` in #(((((
30259-n*)
30260  case `echo 'xy\c'` in
30261  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30262  xy)  ECHO_C='\c';;
30263  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30264       ECHO_T='	';;
30265  esac;;
30266*)
30267  ECHO_N='-n';;
30268esac
30269
30270rm -f conf$$ conf$$.exe conf$$.file
30271if test -d conf$$.dir; then
30272  rm -f conf$$.dir/conf$$.file
30273else
30274  rm -f conf$$.dir
30275  mkdir conf$$.dir 2>/dev/null
30276fi
30277if (echo >conf$$.file) 2>/dev/null; then
30278  if ln -s conf$$.file conf$$ 2>/dev/null; then
30279    as_ln_s='ln -s'
30280    # ... but there are two gotchas:
30281    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30282    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30283    # In both cases, we have to default to `cp -p'.
30284    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30285      as_ln_s='cp -p'
30286  elif ln conf$$.file conf$$ 2>/dev/null; then
30287    as_ln_s=ln
30288  else
30289    as_ln_s='cp -p'
30290  fi
30291else
30292  as_ln_s='cp -p'
30293fi
30294rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30295rmdir conf$$.dir 2>/dev/null
30296
30297
30298# as_fn_mkdir_p
30299# -------------
30300# Create "$as_dir" as a directory, including parents if necessary.
30301as_fn_mkdir_p ()
30302{
30303
30304  case $as_dir in #(
30305  -*) as_dir=./$as_dir;;
30306  esac
30307  test -d "$as_dir" || eval $as_mkdir_p || {
30308    as_dirs=
30309    while :; do
30310      case $as_dir in #(
30311      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30312      *) as_qdir=$as_dir;;
30313      esac
30314      as_dirs="'$as_qdir' $as_dirs"
30315      as_dir=`$as_dirname -- "$as_dir" ||
30316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30317	 X"$as_dir" : 'X\(//\)[^/]' \| \
30318	 X"$as_dir" : 'X\(//\)$' \| \
30319	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30320$as_echo X"$as_dir" |
30321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30322	    s//\1/
30323	    q
30324	  }
30325	  /^X\(\/\/\)[^/].*/{
30326	    s//\1/
30327	    q
30328	  }
30329	  /^X\(\/\/\)$/{
30330	    s//\1/
30331	    q
30332	  }
30333	  /^X\(\/\).*/{
30334	    s//\1/
30335	    q
30336	  }
30337	  s/.*/./; q'`
30338      test -d "$as_dir" && break
30339    done
30340    test -z "$as_dirs" || eval "mkdir $as_dirs"
30341  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30342
30343
30344} # as_fn_mkdir_p
30345if mkdir -p . 2>/dev/null; then
30346  as_mkdir_p='mkdir -p "$as_dir"'
30347else
30348  test -d ./-p && rmdir ./-p
30349  as_mkdir_p=false
30350fi
30351
30352if test -x / >/dev/null 2>&1; then
30353  as_test_x='test -x'
30354else
30355  if ls -dL / >/dev/null 2>&1; then
30356    as_ls_L_option=L
30357  else
30358    as_ls_L_option=
30359  fi
30360  as_test_x='
30361    eval sh -c '\''
30362      if test -d "$1"; then
30363	test -d "$1/.";
30364      else
30365	case $1 in #(
30366	-*)set "./$1";;
30367	esac;
30368	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30369	???[sx]*):;;*)false;;esac;fi
30370    '\'' sh
30371  '
30372fi
30373as_executable_p=$as_test_x
30374
30375# Sed expression to map a string onto a valid CPP name.
30376as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30377
30378# Sed expression to map a string onto a valid variable name.
30379as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30380
30381
30382exec 6>&1
30383## ----------------------------------- ##
30384## Main body of $CONFIG_STATUS script. ##
30385## ----------------------------------- ##
30386_ASEOF
30387test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30388
30389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30390# Save the log message, to keep $0 and so on meaningful, and to
30391# report actual input values of CONFIG_FILES etc. instead of their
30392# values after options handling.
30393ac_log="
30394This file was extended by Music On Console $as_me 2.5.2, which was
30395generated by GNU Autoconf 2.65.  Invocation command line was
30396
30397  CONFIG_FILES    = $CONFIG_FILES
30398  CONFIG_HEADERS  = $CONFIG_HEADERS
30399  CONFIG_LINKS    = $CONFIG_LINKS
30400  CONFIG_COMMANDS = $CONFIG_COMMANDS
30401  $ $0 $@
30402
30403on `(hostname || uname -n) 2>/dev/null | sed 1q`
30404"
30405
30406_ACEOF
30407
30408case $ac_config_files in *"
30409"*) set x $ac_config_files; shift; ac_config_files=$*;;
30410esac
30411
30412case $ac_config_headers in *"
30413"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30414esac
30415
30416
30417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30418# Files that config.status was made for.
30419config_files="$ac_config_files"
30420config_headers="$ac_config_headers"
30421config_links="$ac_config_links"
30422config_commands="$ac_config_commands"
30423
30424_ACEOF
30425
30426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30427ac_cs_usage="\
30428\`$as_me' instantiates files and other configuration actions
30429from templates according to the current configuration.  Unless the files
30430and actions are specified as TAGs, all are instantiated by default.
30431
30432Usage: $0 [OPTION]... [TAG]...
30433
30434  -h, --help       print this help, then exit
30435  -V, --version    print version number and configuration settings, then exit
30436      --config     print configuration, then exit
30437  -q, --quiet, --silent
30438                   do not print progress messages
30439  -d, --debug      don't remove temporary files
30440      --recheck    update $as_me by reconfiguring in the same conditions
30441      --file=FILE[:TEMPLATE]
30442                   instantiate the configuration file FILE
30443      --header=FILE[:TEMPLATE]
30444                   instantiate the configuration header FILE
30445
30446Configuration files:
30447$config_files
30448
30449Configuration headers:
30450$config_headers
30451
30452Configuration links:
30453$config_links
30454
30455Configuration commands:
30456$config_commands
30457
30458Report bugs to <mocmaint@daper.net>.
30459Music On Console home page: <http://moc.daper.net/>."
30460
30461_ACEOF
30462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30463ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30464ac_cs_version="\\
30465Music On Console config.status 2.5.2
30466configured by $0, generated by GNU Autoconf 2.65,
30467  with options \\"\$ac_cs_config\\"
30468
30469Copyright (C) 2009 Free Software Foundation, Inc.
30470This config.status script is free software; the Free Software Foundation
30471gives unlimited permission to copy, distribute and modify it."
30472
30473ac_pwd='$ac_pwd'
30474srcdir='$srcdir'
30475INSTALL='$INSTALL'
30476MKDIR_P='$MKDIR_P'
30477AWK='$AWK'
30478test -n "\$AWK" || AWK=awk
30479_ACEOF
30480
30481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482# The default lists apply if the user does not specify any file.
30483ac_need_defaults=:
30484while test $# != 0
30485do
30486  case $1 in
30487  --*=*)
30488    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30489    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30490    ac_shift=:
30491    ;;
30492  *)
30493    ac_option=$1
30494    ac_optarg=$2
30495    ac_shift=shift
30496    ;;
30497  esac
30498
30499  case $ac_option in
30500  # Handling of the options.
30501  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30502    ac_cs_recheck=: ;;
30503  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30504    $as_echo "$ac_cs_version"; exit ;;
30505  --config | --confi | --conf | --con | --co | --c )
30506    $as_echo "$ac_cs_config"; exit ;;
30507  --debug | --debu | --deb | --de | --d | -d )
30508    debug=: ;;
30509  --file | --fil | --fi | --f )
30510    $ac_shift
30511    case $ac_optarg in
30512    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30513    esac
30514    as_fn_append CONFIG_FILES " '$ac_optarg'"
30515    ac_need_defaults=false;;
30516  --header | --heade | --head | --hea )
30517    $ac_shift
30518    case $ac_optarg in
30519    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30520    esac
30521    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30522    ac_need_defaults=false;;
30523  --he | --h)
30524    # Conflict between --help and --header
30525    as_fn_error "ambiguous option: \`$1'
30526Try \`$0 --help' for more information.";;
30527  --help | --hel | -h )
30528    $as_echo "$ac_cs_usage"; exit ;;
30529  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30530  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30531    ac_cs_silent=: ;;
30532
30533  # This is an error.
30534  -*) as_fn_error "unrecognized option: \`$1'
30535Try \`$0 --help' for more information." ;;
30536
30537  *) as_fn_append ac_config_targets " $1"
30538     ac_need_defaults=false ;;
30539
30540  esac
30541  shift
30542done
30543
30544ac_configure_extra_args=
30545
30546if $ac_cs_silent; then
30547  exec 6>/dev/null
30548  ac_configure_extra_args="$ac_configure_extra_args --silent"
30549fi
30550
30551_ACEOF
30552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553if \$ac_cs_recheck; then
30554  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30555  shift
30556  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30557  CONFIG_SHELL='$SHELL'
30558  export CONFIG_SHELL
30559  exec "\$@"
30560fi
30561
30562_ACEOF
30563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30564exec 5>>config.log
30565{
30566  echo
30567  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30568## Running $as_me. ##
30569_ASBOX
30570  $as_echo "$ac_log"
30571} >&5
30572
30573_ACEOF
30574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30575#
30576# INIT-COMMANDS
30577#
30578AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30579
30580
30581# The HP-UX ksh and POSIX shell print the target directory to stdout
30582# if CDPATH is set.
30583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30584
30585sed_quote_subst='$sed_quote_subst'
30586double_quote_subst='$double_quote_subst'
30587delay_variable_subst='$delay_variable_subst'
30588enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30589enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30590macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30591macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30592pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30593enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30594host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30595host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30596host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30597build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30598build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30599build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30600SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30601Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30602GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30603EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30604FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30605LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30606NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30607LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30608max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30609ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30610exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30611lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30612lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30613lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30614reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30615reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30616OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30617deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30618file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30619AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30620AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30621STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30622RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30623old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30624old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30625old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30626CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30627CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30628compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30629GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30630lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30631lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30632lt_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"`'
30633lt_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"`'
30634objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30635SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30636ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30637MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30638lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30639lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30640lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30641lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30642lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30643need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30644DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30645NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30646LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30647OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30648OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30649libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30650shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30651extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30652archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30653enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30654export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30655whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30656compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30657old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30658old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30659archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30660archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30661module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30662module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30663with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30664allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30665no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30666hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30667hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30668hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30669hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30670hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30671hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30672hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30673hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30674inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30675link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30676fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30677always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30678export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30679exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30680include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30681prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30682file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30683variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30684need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30685need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30686version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30687runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30688shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30689shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30690libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30691library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30692soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30693postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30694postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30695finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30696finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30697hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30698sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30699sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30700hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30701enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30702enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30703enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30704old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30705striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30706compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30707predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30708postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30709predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30710postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30711compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30712LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30713old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30714compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30715GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30716lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30717lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30718lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30719lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30720lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30721archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30722enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30723export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30724whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30725compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30726old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30727old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30728archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30729archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30730module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30731module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30732with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30733allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30734no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30735hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30736hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30737hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30738hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30739hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30740hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30741hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30742hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30743inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30744link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30745fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30746always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30747export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30748exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30749include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30750prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30751file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30752hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30753compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30754predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30755postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30756predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30757postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30758compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30759
30760LTCC='$LTCC'
30761LTCFLAGS='$LTCFLAGS'
30762compiler='$compiler_DEFAULT'
30763
30764# Quote evaled strings.
30765for var in SED \
30766GREP \
30767EGREP \
30768FGREP \
30769LD \
30770NM \
30771LN_S \
30772lt_SP2NL \
30773lt_NL2SP \
30774reload_flag \
30775OBJDUMP \
30776deplibs_check_method \
30777file_magic_cmd \
30778AR \
30779AR_FLAGS \
30780STRIP \
30781RANLIB \
30782CC \
30783CFLAGS \
30784compiler \
30785lt_cv_sys_global_symbol_pipe \
30786lt_cv_sys_global_symbol_to_cdecl \
30787lt_cv_sys_global_symbol_to_c_name_address \
30788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30789SHELL \
30790ECHO \
30791lt_prog_compiler_no_builtin_flag \
30792lt_prog_compiler_wl \
30793lt_prog_compiler_pic \
30794lt_prog_compiler_static \
30795lt_cv_prog_compiler_c_o \
30796need_locks \
30797DSYMUTIL \
30798NMEDIT \
30799LIPO \
30800OTOOL \
30801OTOOL64 \
30802shrext_cmds \
30803export_dynamic_flag_spec \
30804whole_archive_flag_spec \
30805compiler_needs_object \
30806with_gnu_ld \
30807allow_undefined_flag \
30808no_undefined_flag \
30809hardcode_libdir_flag_spec \
30810hardcode_libdir_flag_spec_ld \
30811hardcode_libdir_separator \
30812fix_srcfile_path \
30813exclude_expsyms \
30814include_expsyms \
30815file_list_spec \
30816variables_saved_for_relink \
30817libname_spec \
30818library_names_spec \
30819soname_spec \
30820finish_eval \
30821old_striplib \
30822striplib \
30823compiler_lib_search_dirs \
30824predep_objects \
30825postdep_objects \
30826predeps \
30827postdeps \
30828compiler_lib_search_path \
30829LD_CXX \
30830compiler_CXX \
30831lt_prog_compiler_no_builtin_flag_CXX \
30832lt_prog_compiler_wl_CXX \
30833lt_prog_compiler_pic_CXX \
30834lt_prog_compiler_static_CXX \
30835lt_cv_prog_compiler_c_o_CXX \
30836export_dynamic_flag_spec_CXX \
30837whole_archive_flag_spec_CXX \
30838compiler_needs_object_CXX \
30839with_gnu_ld_CXX \
30840allow_undefined_flag_CXX \
30841no_undefined_flag_CXX \
30842hardcode_libdir_flag_spec_CXX \
30843hardcode_libdir_flag_spec_ld_CXX \
30844hardcode_libdir_separator_CXX \
30845fix_srcfile_path_CXX \
30846exclude_expsyms_CXX \
30847include_expsyms_CXX \
30848file_list_spec_CXX \
30849compiler_lib_search_dirs_CXX \
30850predep_objects_CXX \
30851postdep_objects_CXX \
30852predeps_CXX \
30853postdeps_CXX \
30854compiler_lib_search_path_CXX; do
30855    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30856    *[\\\\\\\`\\"\\\$]*)
30857      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30858      ;;
30859    *)
30860      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30861      ;;
30862    esac
30863done
30864
30865# Double-quote double-evaled strings.
30866for var in reload_cmds \
30867old_postinstall_cmds \
30868old_postuninstall_cmds \
30869old_archive_cmds \
30870extract_expsyms_cmds \
30871old_archive_from_new_cmds \
30872old_archive_from_expsyms_cmds \
30873archive_cmds \
30874archive_expsym_cmds \
30875module_cmds \
30876module_expsym_cmds \
30877export_symbols_cmds \
30878prelink_cmds \
30879postinstall_cmds \
30880postuninstall_cmds \
30881finish_cmds \
30882sys_lib_search_path_spec \
30883sys_lib_dlsearch_path_spec \
30884old_archive_cmds_CXX \
30885old_archive_from_new_cmds_CXX \
30886old_archive_from_expsyms_cmds_CXX \
30887archive_cmds_CXX \
30888archive_expsym_cmds_CXX \
30889module_cmds_CXX \
30890module_expsym_cmds_CXX \
30891export_symbols_cmds_CXX \
30892prelink_cmds_CXX; do
30893    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30894    *[\\\\\\\`\\"\\\$]*)
30895      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30896      ;;
30897    *)
30898      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30899      ;;
30900    esac
30901done
30902
30903# Fix-up fallback echo if it was mangled by the above quoting rules.
30904case \$lt_ECHO in
30905*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30906  ;;
30907esac
30908
30909ac_aux_dir='$ac_aux_dir'
30910xsi_shell='$xsi_shell'
30911lt_shell_append='$lt_shell_append'
30912
30913# See if we are running on zsh, and set the options which allow our
30914# commands through without removal of \ escapes INIT.
30915if test -n "\${ZSH_VERSION+set}" ; then
30916   setopt NO_GLOB_SUBST
30917fi
30918
30919
30920    PACKAGE='$PACKAGE'
30921    VERSION='$VERSION'
30922    TIMESTAMP='$TIMESTAMP'
30923    RM='$RM'
30924    ofile='$ofile'
30925
30926
30927
30928
30929
30930
30931_ACEOF
30932
30933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30934
30935# Handling of arguments.
30936for ac_config_target in $ac_config_targets
30937do
30938  case $ac_config_target in
30939    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30940    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30941    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30942    "getopt.h") CONFIG_LINKS="$CONFIG_LINKS getopt.h:gnugetopt.h" ;;
30943    "decoder_plugins/aac/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/aac/Makefile" ;;
30944    "decoder_plugins/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/ffmpeg/Makefile" ;;
30945    "decoder_plugins/flac/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/flac/Makefile" ;;
30946    "decoder_plugins/modplug/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/modplug/Makefile" ;;
30947    "decoder_plugins/mp3/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/mp3/Makefile" ;;
30948    "decoder_plugins/musepack/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/musepack/Makefile" ;;
30949    "decoder_plugins/sidplay2/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/sidplay2/Makefile" ;;
30950    "decoder_plugins/sndfile/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/sndfile/Makefile" ;;
30951    "decoder_plugins/speex/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/speex/Makefile" ;;
30952    "decoder_plugins/timidity/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/timidity/Makefile" ;;
30953    "decoder_plugins/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/vorbis/Makefile" ;;
30954    "decoder_plugins/wavpack/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/wavpack/Makefile" ;;
30955    "decoder_plugins/Makefile") CONFIG_FILES="$CONFIG_FILES decoder_plugins/Makefile" ;;
30956    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30957    "themes/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
30958    "config.example") CONFIG_FILES="$CONFIG_FILES config.example" ;;
30959
30960  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30961  esac
30962done
30963
30964
30965# If the user did not use the arguments to specify the items to instantiate,
30966# then the envvar interface is used.  Set only those that are not.
30967# We use the long form for the default assignment because of an extremely
30968# bizarre bug on SunOS 4.1.3.
30969if $ac_need_defaults; then
30970  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30971  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30972  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30973  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30974fi
30975
30976# Have a temporary directory for convenience.  Make it in the build tree
30977# simply because there is no reason against having it here, and in addition,
30978# creating and moving files from /tmp can sometimes cause problems.
30979# Hook for its removal unless debugging.
30980# Note that there is a small window in which the directory will not be cleaned:
30981# after its creation but before its name has been assigned to `$tmp'.
30982$debug ||
30983{
30984  tmp=
30985  trap 'exit_status=$?
30986  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30987' 0
30988  trap 'as_fn_exit 1' 1 2 13 15
30989}
30990# Create a (secure) tmp directory for tmp files.
30991
30992{
30993  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30994  test -n "$tmp" && test -d "$tmp"
30995}  ||
30996{
30997  tmp=./conf$$-$RANDOM
30998  (umask 077 && mkdir "$tmp")
30999} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31000
31001# Set up the scripts for CONFIG_FILES section.
31002# No need to generate them if there are no CONFIG_FILES.
31003# This happens for instance with `./config.status config.h'.
31004if test -n "$CONFIG_FILES"; then
31005
31006
31007ac_cr=`echo X | tr X '\015'`
31008# On cygwin, bash can eat \r inside `` if the user requested igncr.
31009# But we know of no other shell where ac_cr would be empty at this
31010# point, so we can use a bashism as a fallback.
31011if test "x$ac_cr" = x; then
31012  eval ac_cr=\$\'\\r\'
31013fi
31014ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31015if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31016  ac_cs_awk_cr='\r'
31017else
31018  ac_cs_awk_cr=$ac_cr
31019fi
31020
31021echo 'BEGIN {' >"$tmp/subs1.awk" &&
31022_ACEOF
31023
31024
31025{
31026  echo "cat >conf$$subs.awk <<_ACEOF" &&
31027  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31028  echo "_ACEOF"
31029} >conf$$subs.sh ||
31030  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31031ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31032ac_delim='%!_!# '
31033for ac_last_try in false false false false false :; do
31034  . ./conf$$subs.sh ||
31035    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31036
31037  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31038  if test $ac_delim_n = $ac_delim_num; then
31039    break
31040  elif $ac_last_try; then
31041    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31042  else
31043    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31044  fi
31045done
31046rm -f conf$$subs.sh
31047
31048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31049cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31050_ACEOF
31051sed -n '
31052h
31053s/^/S["/; s/!.*/"]=/
31054p
31055g
31056s/^[^!]*!//
31057:repl
31058t repl
31059s/'"$ac_delim"'$//
31060t delim
31061:nl
31062h
31063s/\(.\{148\}\)..*/\1/
31064t more1
31065s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31066p
31067n
31068b repl
31069:more1
31070s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31071p
31072g
31073s/.\{148\}//
31074t nl
31075:delim
31076h
31077s/\(.\{148\}\)..*/\1/
31078t more2
31079s/["\\]/\\&/g; s/^/"/; s/$/"/
31080p
31081b
31082:more2
31083s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31084p
31085g
31086s/.\{148\}//
31087t delim
31088' <conf$$subs.awk | sed '
31089/^[^""]/{
31090  N
31091  s/\n//
31092}
31093' >>$CONFIG_STATUS || ac_write_fail=1
31094rm -f conf$$subs.awk
31095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31096_ACAWK
31097cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31098  for (key in S) S_is_set[key] = 1
31099  FS = ""
31100
31101}
31102{
31103  line = $ 0
31104  nfields = split(line, field, "@")
31105  substed = 0
31106  len = length(field[1])
31107  for (i = 2; i < nfields; i++) {
31108    key = field[i]
31109    keylen = length(key)
31110    if (S_is_set[key]) {
31111      value = S[key]
31112      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31113      len += length(value) + length(field[++i])
31114      substed = 1
31115    } else
31116      len += 1 + keylen
31117  }
31118
31119  print line
31120}
31121
31122_ACAWK
31123_ACEOF
31124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31125if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31126  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31127else
31128  cat
31129fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31130  || as_fn_error "could not setup config files machinery" "$LINENO" 5
31131_ACEOF
31132
31133# VPATH may cause trouble with some makes, so we remove $(srcdir),
31134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31135# trailing colons and then remove the whole line if VPATH becomes empty
31136# (actually we leave an empty line to preserve line numbers).
31137if test "x$srcdir" = x.; then
31138  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31139s/:*\$(srcdir):*/:/
31140s/:*\${srcdir}:*/:/
31141s/:*@srcdir@:*/:/
31142s/^\([^=]*=[	 ]*\):*/\1/
31143s/:*$//
31144s/^[^=]*=[	 ]*$//
31145}'
31146fi
31147
31148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31149fi # test -n "$CONFIG_FILES"
31150
31151# Set up the scripts for CONFIG_HEADERS section.
31152# No need to generate them if there are no CONFIG_HEADERS.
31153# This happens for instance with `./config.status Makefile'.
31154if test -n "$CONFIG_HEADERS"; then
31155cat >"$tmp/defines.awk" <<\_ACAWK ||
31156BEGIN {
31157_ACEOF
31158
31159# Transform confdefs.h into an awk script `defines.awk', embedded as
31160# here-document in config.status, that substitutes the proper values into
31161# config.h.in to produce config.h.
31162
31163# Create a delimiter string that does not exist in confdefs.h, to ease
31164# handling of long lines.
31165ac_delim='%!_!# '
31166for ac_last_try in false false :; do
31167  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31168  if test -z "$ac_t"; then
31169    break
31170  elif $ac_last_try; then
31171    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31172  else
31173    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31174  fi
31175done
31176
31177# For the awk script, D is an array of macro values keyed by name,
31178# likewise P contains macro parameters if any.  Preserve backslash
31179# newline sequences.
31180
31181ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31182sed -n '
31183s/.\{148\}/&'"$ac_delim"'/g
31184t rset
31185:rset
31186s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31187t def
31188d
31189:def
31190s/\\$//
31191t bsnl
31192s/["\\]/\\&/g
31193s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31194D["\1"]=" \3"/p
31195s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31196d
31197:bsnl
31198s/["\\]/\\&/g
31199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31200D["\1"]=" \3\\\\\\n"\\/p
31201t cont
31202s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31203t cont
31204d
31205:cont
31206n
31207s/.\{148\}/&'"$ac_delim"'/g
31208t clear
31209:clear
31210s/\\$//
31211t bsnlc
31212s/["\\]/\\&/g; s/^/"/; s/$/"/p
31213d
31214:bsnlc
31215s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31216b cont
31217' <confdefs.h | sed '
31218s/'"$ac_delim"'/"\\\
31219"/g' >>$CONFIG_STATUS || ac_write_fail=1
31220
31221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31222  for (key in D) D_is_set[key] = 1
31223  FS = ""
31224}
31225/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31226  line = \$ 0
31227  split(line, arg, " ")
31228  if (arg[1] == "#") {
31229    defundef = arg[2]
31230    mac1 = arg[3]
31231  } else {
31232    defundef = substr(arg[1], 2)
31233    mac1 = arg[2]
31234  }
31235  split(mac1, mac2, "(") #)
31236  macro = mac2[1]
31237  prefix = substr(line, 1, index(line, defundef) - 1)
31238  if (D_is_set[macro]) {
31239    # Preserve the white space surrounding the "#".
31240    print prefix "define", macro P[macro] D[macro]
31241    next
31242  } else {
31243    # Replace #undef with comments.  This is necessary, for example,
31244    # in the case of _POSIX_SOURCE, which is predefined and required
31245    # on some systems where configure will not decide to define it.
31246    if (defundef == "undef") {
31247      print "/*", prefix defundef, macro, "*/"
31248      next
31249    }
31250  }
31251}
31252{ print }
31253_ACAWK
31254_ACEOF
31255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31256  as_fn_error "could not setup config headers machinery" "$LINENO" 5
31257fi # test -n "$CONFIG_HEADERS"
31258
31259
31260eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31261shift
31262for ac_tag
31263do
31264  case $ac_tag in
31265  :[FHLC]) ac_mode=$ac_tag; continue;;
31266  esac
31267  case $ac_mode$ac_tag in
31268  :[FHL]*:*);;
31269  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31270  :[FH]-) ac_tag=-:-;;
31271  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31272  esac
31273  ac_save_IFS=$IFS
31274  IFS=:
31275  set x $ac_tag
31276  IFS=$ac_save_IFS
31277  shift
31278  ac_file=$1
31279  shift
31280
31281  case $ac_mode in
31282  :L) ac_source=$1;;
31283  :[FH])
31284    ac_file_inputs=
31285    for ac_f
31286    do
31287      case $ac_f in
31288      -) ac_f="$tmp/stdin";;
31289      *) # Look for the file first in the build tree, then in the source tree
31290	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31291	 # because $ac_f cannot contain `:'.
31292	 test -f "$ac_f" ||
31293	   case $ac_f in
31294	   [\\/$]*) false;;
31295	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31296	   esac ||
31297	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31298      esac
31299      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31300      as_fn_append ac_file_inputs " '$ac_f'"
31301    done
31302
31303    # Let's still pretend it is `configure' which instantiates (i.e., don't
31304    # use $as_me), people would be surprised to read:
31305    #    /* config.h.  Generated by config.status.  */
31306    configure_input='Generated from '`
31307	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31308	`' by configure.'
31309    if test x"$ac_file" != x-; then
31310      configure_input="$ac_file.  $configure_input"
31311      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31312$as_echo "$as_me: creating $ac_file" >&6;}
31313    fi
31314    # Neutralize special characters interpreted by sed in replacement strings.
31315    case $configure_input in #(
31316    *\&* | *\|* | *\\* )
31317       ac_sed_conf_input=`$as_echo "$configure_input" |
31318       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31319    *) ac_sed_conf_input=$configure_input;;
31320    esac
31321
31322    case $ac_tag in
31323    *:-:* | *:-) cat >"$tmp/stdin" \
31324      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31325    esac
31326    ;;
31327  esac
31328
31329  ac_dir=`$as_dirname -- "$ac_file" ||
31330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31331	 X"$ac_file" : 'X\(//\)[^/]' \| \
31332	 X"$ac_file" : 'X\(//\)$' \| \
31333	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31334$as_echo X"$ac_file" |
31335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31336	    s//\1/
31337	    q
31338	  }
31339	  /^X\(\/\/\)[^/].*/{
31340	    s//\1/
31341	    q
31342	  }
31343	  /^X\(\/\/\)$/{
31344	    s//\1/
31345	    q
31346	  }
31347	  /^X\(\/\).*/{
31348	    s//\1/
31349	    q
31350	  }
31351	  s/.*/./; q'`
31352  as_dir="$ac_dir"; as_fn_mkdir_p
31353  ac_builddir=.
31354
31355case "$ac_dir" in
31356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31357*)
31358  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31359  # A ".." for each directory in $ac_dir_suffix.
31360  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31361  case $ac_top_builddir_sub in
31362  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31363  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31364  esac ;;
31365esac
31366ac_abs_top_builddir=$ac_pwd
31367ac_abs_builddir=$ac_pwd$ac_dir_suffix
31368# for backward compatibility:
31369ac_top_builddir=$ac_top_build_prefix
31370
31371case $srcdir in
31372  .)  # We are building in place.
31373    ac_srcdir=.
31374    ac_top_srcdir=$ac_top_builddir_sub
31375    ac_abs_top_srcdir=$ac_pwd ;;
31376  [\\/]* | ?:[\\/]* )  # Absolute name.
31377    ac_srcdir=$srcdir$ac_dir_suffix;
31378    ac_top_srcdir=$srcdir
31379    ac_abs_top_srcdir=$srcdir ;;
31380  *) # Relative name.
31381    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31382    ac_top_srcdir=$ac_top_build_prefix$srcdir
31383    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31384esac
31385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31386
31387
31388  case $ac_mode in
31389  :F)
31390  #
31391  # CONFIG_FILE
31392  #
31393
31394  case $INSTALL in
31395  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31396  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31397  esac
31398  ac_MKDIR_P=$MKDIR_P
31399  case $MKDIR_P in
31400  [\\/$]* | ?:[\\/]* ) ;;
31401  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31402  esac
31403_ACEOF
31404
31405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31406# If the template does not know about datarootdir, expand it.
31407# FIXME: This hack should be removed a few years after 2.60.
31408ac_datarootdir_hack=; ac_datarootdir_seen=
31409ac_sed_dataroot='
31410/datarootdir/ {
31411  p
31412  q
31413}
31414/@datadir@/p
31415/@docdir@/p
31416/@infodir@/p
31417/@localedir@/p
31418/@mandir@/p'
31419case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31420*datarootdir*) ac_datarootdir_seen=yes;;
31421*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31422  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31423$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31424_ACEOF
31425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31426  ac_datarootdir_hack='
31427  s&@datadir@&$datadir&g
31428  s&@docdir@&$docdir&g
31429  s&@infodir@&$infodir&g
31430  s&@localedir@&$localedir&g
31431  s&@mandir@&$mandir&g
31432  s&\\\${datarootdir}&$datarootdir&g' ;;
31433esac
31434_ACEOF
31435
31436# Neutralize VPATH when `$srcdir' = `.'.
31437# Shell code in configure.ac might set extrasub.
31438# FIXME: do we really want to maintain this feature?
31439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31440ac_sed_extra="$ac_vpsub
31441$extrasub
31442_ACEOF
31443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31444:t
31445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31446s|@configure_input@|$ac_sed_conf_input|;t t
31447s&@top_builddir@&$ac_top_builddir_sub&;t t
31448s&@top_build_prefix@&$ac_top_build_prefix&;t t
31449s&@srcdir@&$ac_srcdir&;t t
31450s&@abs_srcdir@&$ac_abs_srcdir&;t t
31451s&@top_srcdir@&$ac_top_srcdir&;t t
31452s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31453s&@builddir@&$ac_builddir&;t t
31454s&@abs_builddir@&$ac_abs_builddir&;t t
31455s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31456s&@INSTALL@&$ac_INSTALL&;t t
31457s&@MKDIR_P@&$ac_MKDIR_P&;t t
31458$ac_datarootdir_hack
31459"
31460eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31461  || as_fn_error "could not create $ac_file" "$LINENO" 5
31462
31463test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31464  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31465  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31466  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31467which seems to be undefined.  Please make sure it is defined." >&5
31468$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31469which seems to be undefined.  Please make sure it is defined." >&2;}
31470
31471  rm -f "$tmp/stdin"
31472  case $ac_file in
31473  -) cat "$tmp/out" && rm -f "$tmp/out";;
31474  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31475  esac \
31476  || as_fn_error "could not create $ac_file" "$LINENO" 5
31477 ;;
31478  :H)
31479  #
31480  # CONFIG_HEADER
31481  #
31482  if test x"$ac_file" != x-; then
31483    {
31484      $as_echo "/* $configure_input  */" \
31485      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31486    } >"$tmp/config.h" \
31487      || as_fn_error "could not create $ac_file" "$LINENO" 5
31488    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31489      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31490$as_echo "$as_me: $ac_file is unchanged" >&6;}
31491    else
31492      rm -f "$ac_file"
31493      mv "$tmp/config.h" "$ac_file" \
31494	|| as_fn_error "could not create $ac_file" "$LINENO" 5
31495    fi
31496  else
31497    $as_echo "/* $configure_input  */" \
31498      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31499      || as_fn_error "could not create -" "$LINENO" 5
31500  fi
31501# Compute "$ac_file"'s index in $config_headers.
31502_am_arg="$ac_file"
31503_am_stamp_count=1
31504for _am_header in $config_headers :; do
31505  case $_am_header in
31506    $_am_arg | $_am_arg:* )
31507      break ;;
31508    * )
31509      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31510  esac
31511done
31512echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31513$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31514	 X"$_am_arg" : 'X\(//\)[^/]' \| \
31515	 X"$_am_arg" : 'X\(//\)$' \| \
31516	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31517$as_echo X"$_am_arg" |
31518    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31519	    s//\1/
31520	    q
31521	  }
31522	  /^X\(\/\/\)[^/].*/{
31523	    s//\1/
31524	    q
31525	  }
31526	  /^X\(\/\/\)$/{
31527	    s//\1/
31528	    q
31529	  }
31530	  /^X\(\/\).*/{
31531	    s//\1/
31532	    q
31533	  }
31534	  s/.*/./; q'`/stamp-h$_am_stamp_count
31535 ;;
31536  :L)
31537  #
31538  # CONFIG_LINK
31539  #
31540
31541  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31542    :
31543  else
31544    # Prefer the file from the source tree if names are identical.
31545    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31546      ac_source=$srcdir/$ac_source
31547    fi
31548
31549    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31550$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31551
31552    if test ! -r "$ac_source"; then
31553      as_fn_error "$ac_source: file not found" "$LINENO" 5
31554    fi
31555    rm -f "$ac_file"
31556
31557    # Try a relative symlink, then a hard link, then a copy.
31558    case $srcdir in
31559    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31560	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31561    esac
31562    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31563      ln "$ac_source" "$ac_file" 2>/dev/null ||
31564      cp -p "$ac_source" "$ac_file" ||
31565      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31566  fi
31567 ;;
31568  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31569$as_echo "$as_me: executing $ac_file commands" >&6;}
31570 ;;
31571  esac
31572
31573
31574  case $ac_file$ac_mode in
31575    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31576  # Autoconf 2.62 quotes --file arguments for eval, but not when files
31577  # are listed without --file.  Let's play safe and only enable the eval
31578  # if we detect the quoting.
31579  case $CONFIG_FILES in
31580  *\'*) eval set x "$CONFIG_FILES" ;;
31581  *)   set x $CONFIG_FILES ;;
31582  esac
31583  shift
31584  for mf
31585  do
31586    # Strip MF so we end up with the name of the file.
31587    mf=`echo "$mf" | sed -e 's/:.*$//'`
31588    # Check whether this is an Automake generated Makefile or not.
31589    # We used to match only the files named `Makefile.in', but
31590    # some people rename them; so instead we look at the file content.
31591    # Grep'ing the first line is not enough: some people post-process
31592    # each Makefile.in and add a new line on top of each file to say so.
31593    # Grep'ing the whole file is not good either: AIX grep has a line
31594    # limit of 2048, but all sed's we know have understand at least 4000.
31595    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31596      dirpart=`$as_dirname -- "$mf" ||
31597$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31598	 X"$mf" : 'X\(//\)[^/]' \| \
31599	 X"$mf" : 'X\(//\)$' \| \
31600	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31601$as_echo X"$mf" |
31602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31603	    s//\1/
31604	    q
31605	  }
31606	  /^X\(\/\/\)[^/].*/{
31607	    s//\1/
31608	    q
31609	  }
31610	  /^X\(\/\/\)$/{
31611	    s//\1/
31612	    q
31613	  }
31614	  /^X\(\/\).*/{
31615	    s//\1/
31616	    q
31617	  }
31618	  s/.*/./; q'`
31619    else
31620      continue
31621    fi
31622    # Extract the definition of DEPDIR, am__include, and am__quote
31623    # from the Makefile without running `make'.
31624    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31625    test -z "$DEPDIR" && continue
31626    am__include=`sed -n 's/^am__include = //p' < "$mf"`
31627    test -z "am__include" && continue
31628    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31629    # When using ansi2knr, U may be empty or an underscore; expand it
31630    U=`sed -n 's/^U = //p' < "$mf"`
31631    # Find all dependency output files, they are included files with
31632    # $(DEPDIR) in their names.  We invoke sed twice because it is the
31633    # simplest approach to changing $(DEPDIR) to its actual value in the
31634    # expansion.
31635    for file in `sed -n "
31636      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31637	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31638      # Make sure the directory exists.
31639      test -f "$dirpart/$file" && continue
31640      fdir=`$as_dirname -- "$file" ||
31641$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31642	 X"$file" : 'X\(//\)[^/]' \| \
31643	 X"$file" : 'X\(//\)$' \| \
31644	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31645$as_echo X"$file" |
31646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31647	    s//\1/
31648	    q
31649	  }
31650	  /^X\(\/\/\)[^/].*/{
31651	    s//\1/
31652	    q
31653	  }
31654	  /^X\(\/\/\)$/{
31655	    s//\1/
31656	    q
31657	  }
31658	  /^X\(\/\).*/{
31659	    s//\1/
31660	    q
31661	  }
31662	  s/.*/./; q'`
31663      as_dir=$dirpart/$fdir; as_fn_mkdir_p
31664      # echo "creating $dirpart/$file"
31665      echo '# dummy' > "$dirpart/$file"
31666    done
31667  done
31668}
31669 ;;
31670    "libtool":C)
31671
31672    # See if we are running on zsh, and set the options which allow our
31673    # commands through without removal of \ escapes.
31674    if test -n "${ZSH_VERSION+set}" ; then
31675      setopt NO_GLOB_SUBST
31676    fi
31677
31678    cfgfile="${ofile}T"
31679    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31680    $RM "$cfgfile"
31681
31682    cat <<_LT_EOF >> "$cfgfile"
31683#! $SHELL
31684
31685# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31686# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31687# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31688# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31689#
31690#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31691#                 2006, 2007, 2008 Free Software Foundation, Inc.
31692#   Written by Gordon Matzigkeit, 1996
31693#
31694#   This file is part of GNU Libtool.
31695#
31696# GNU Libtool is free software; you can redistribute it and/or
31697# modify it under the terms of the GNU General Public License as
31698# published by the Free Software Foundation; either version 2 of
31699# the License, or (at your option) any later version.
31700#
31701# As a special exception to the GNU General Public License,
31702# if you distribute this file as part of a program or library that
31703# is built using GNU Libtool, you may include this file under the
31704# same distribution terms that you use for the rest of that program.
31705#
31706# GNU Libtool is distributed in the hope that it will be useful,
31707# but WITHOUT ANY WARRANTY; without even the implied warranty of
31708# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31709# GNU General Public License for more details.
31710#
31711# You should have received a copy of the GNU General Public License
31712# along with GNU Libtool; see the file COPYING.  If not, a copy
31713# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31714# obtained by writing to the Free Software Foundation, Inc.,
31715# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31716
31717
31718# The names of the tagged configurations supported by this script.
31719available_tags="CXX "
31720
31721# ### BEGIN LIBTOOL CONFIG
31722
31723# Whether or not to build static libraries.
31724build_old_libs=$enable_static
31725
31726# Whether or not to build shared libraries.
31727build_libtool_libs=$enable_shared
31728
31729# Which release of libtool.m4 was used?
31730macro_version=$macro_version
31731macro_revision=$macro_revision
31732
31733# What type of objects to build.
31734pic_mode=$pic_mode
31735
31736# Whether or not to optimize for fast installation.
31737fast_install=$enable_fast_install
31738
31739# The host system.
31740host_alias=$host_alias
31741host=$host
31742host_os=$host_os
31743
31744# The build system.
31745build_alias=$build_alias
31746build=$build
31747build_os=$build_os
31748
31749# A sed program that does not truncate output.
31750SED=$lt_SED
31751
31752# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31753Xsed="\$SED -e 1s/^X//"
31754
31755# A grep program that handles long lines.
31756GREP=$lt_GREP
31757
31758# An ERE matcher.
31759EGREP=$lt_EGREP
31760
31761# A literal string matcher.
31762FGREP=$lt_FGREP
31763
31764# A BSD- or MS-compatible name lister.
31765NM=$lt_NM
31766
31767# Whether we need soft or hard links.
31768LN_S=$lt_LN_S
31769
31770# What is the maximum length of a command?
31771max_cmd_len=$max_cmd_len
31772
31773# Object file suffix (normally "o").
31774objext=$ac_objext
31775
31776# Executable file suffix (normally "").
31777exeext=$exeext
31778
31779# whether the shell understands "unset".
31780lt_unset=$lt_unset
31781
31782# turn spaces into newlines.
31783SP2NL=$lt_lt_SP2NL
31784
31785# turn newlines into spaces.
31786NL2SP=$lt_lt_NL2SP
31787
31788# How to create reloadable object files.
31789reload_flag=$lt_reload_flag
31790reload_cmds=$lt_reload_cmds
31791
31792# An object symbol dumper.
31793OBJDUMP=$lt_OBJDUMP
31794
31795# Method to check whether dependent libraries are shared objects.
31796deplibs_check_method=$lt_deplibs_check_method
31797
31798# Command to use when deplibs_check_method == "file_magic".
31799file_magic_cmd=$lt_file_magic_cmd
31800
31801# The archiver.
31802AR=$lt_AR
31803AR_FLAGS=$lt_AR_FLAGS
31804
31805# A symbol stripping program.
31806STRIP=$lt_STRIP
31807
31808# Commands used to install an old-style archive.
31809RANLIB=$lt_RANLIB
31810old_postinstall_cmds=$lt_old_postinstall_cmds
31811old_postuninstall_cmds=$lt_old_postuninstall_cmds
31812
31813# A C compiler.
31814LTCC=$lt_CC
31815
31816# LTCC compiler flags.
31817LTCFLAGS=$lt_CFLAGS
31818
31819# Take the output of nm and produce a listing of raw symbols and C names.
31820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31821
31822# Transform the output of nm in a proper C declaration.
31823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31824
31825# Transform the output of nm in a C name address pair.
31826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31827
31828# Transform the output of nm in a C name address pair when lib prefix is needed.
31829global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31830
31831# The name of the directory that contains temporary libtool files.
31832objdir=$objdir
31833
31834# Shell to use when invoking shell scripts.
31835SHELL=$lt_SHELL
31836
31837# An echo program that does not interpret backslashes.
31838ECHO=$lt_ECHO
31839
31840# Used to examine libraries when file_magic_cmd begins with "file".
31841MAGIC_CMD=$MAGIC_CMD
31842
31843# Must we lock files when doing compilation?
31844need_locks=$lt_need_locks
31845
31846# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31847DSYMUTIL=$lt_DSYMUTIL
31848
31849# Tool to change global to local symbols on Mac OS X.
31850NMEDIT=$lt_NMEDIT
31851
31852# Tool to manipulate fat objects and archives on Mac OS X.
31853LIPO=$lt_LIPO
31854
31855# ldd/readelf like tool for Mach-O binaries on Mac OS X.
31856OTOOL=$lt_OTOOL
31857
31858# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31859OTOOL64=$lt_OTOOL64
31860
31861# Old archive suffix (normally "a").
31862libext=$libext
31863
31864# Shared library suffix (normally ".so").
31865shrext_cmds=$lt_shrext_cmds
31866
31867# The commands to extract the exported symbol list from a shared archive.
31868extract_expsyms_cmds=$lt_extract_expsyms_cmds
31869
31870# Variables whose values should be saved in libtool wrapper scripts and
31871# restored at link time.
31872variables_saved_for_relink=$lt_variables_saved_for_relink
31873
31874# Do we need the "lib" prefix for modules?
31875need_lib_prefix=$need_lib_prefix
31876
31877# Do we need a version for libraries?
31878need_version=$need_version
31879
31880# Library versioning type.
31881version_type=$version_type
31882
31883# Shared library runtime path variable.
31884runpath_var=$runpath_var
31885
31886# Shared library path variable.
31887shlibpath_var=$shlibpath_var
31888
31889# Is shlibpath searched before the hard-coded library search path?
31890shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31891
31892# Format of library name prefix.
31893libname_spec=$lt_libname_spec
31894
31895# List of archive names.  First name is the real one, the rest are links.
31896# The last name is the one that the linker finds with -lNAME
31897library_names_spec=$lt_library_names_spec
31898
31899# The coded name of the library, if different from the real name.
31900soname_spec=$lt_soname_spec
31901
31902# Command to use after installation of a shared archive.
31903postinstall_cmds=$lt_postinstall_cmds
31904
31905# Command to use after uninstallation of a shared archive.
31906postuninstall_cmds=$lt_postuninstall_cmds
31907
31908# Commands used to finish a libtool library installation in a directory.
31909finish_cmds=$lt_finish_cmds
31910
31911# As "finish_cmds", except a single script fragment to be evaled but
31912# not shown.
31913finish_eval=$lt_finish_eval
31914
31915# Whether we should hardcode library paths into libraries.
31916hardcode_into_libs=$hardcode_into_libs
31917
31918# Compile-time system search path for libraries.
31919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31920
31921# Run-time system search path for libraries.
31922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31923
31924# Whether dlopen is supported.
31925dlopen_support=$enable_dlopen
31926
31927# Whether dlopen of programs is supported.
31928dlopen_self=$enable_dlopen_self
31929
31930# Whether dlopen of statically linked programs is supported.
31931dlopen_self_static=$enable_dlopen_self_static
31932
31933# Commands to strip libraries.
31934old_striplib=$lt_old_striplib
31935striplib=$lt_striplib
31936
31937
31938# The linker used to build libraries.
31939LD=$lt_LD
31940
31941# Commands used to build an old-style archive.
31942old_archive_cmds=$lt_old_archive_cmds
31943
31944# A language specific compiler.
31945CC=$lt_compiler
31946
31947# Is the compiler the GNU compiler?
31948with_gcc=$GCC
31949
31950# Compiler flag to turn off builtin functions.
31951no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31952
31953# How to pass a linker flag through the compiler.
31954wl=$lt_lt_prog_compiler_wl
31955
31956# Additional compiler flags for building library objects.
31957pic_flag=$lt_lt_prog_compiler_pic
31958
31959# Compiler flag to prevent dynamic linking.
31960link_static_flag=$lt_lt_prog_compiler_static
31961
31962# Does compiler simultaneously support -c and -o options?
31963compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31964
31965# Whether or not to add -lc for building shared libraries.
31966build_libtool_need_lc=$archive_cmds_need_lc
31967
31968# Whether or not to disallow shared libs when runtime libs are static.
31969allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31970
31971# Compiler flag to allow reflexive dlopens.
31972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31973
31974# Compiler flag to generate shared objects directly from archives.
31975whole_archive_flag_spec=$lt_whole_archive_flag_spec
31976
31977# Whether the compiler copes with passing no objects directly.
31978compiler_needs_object=$lt_compiler_needs_object
31979
31980# Create an old-style archive from a shared archive.
31981old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31982
31983# Create a temporary old-style archive to link instead of a shared archive.
31984old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31985
31986# Commands used to build a shared archive.
31987archive_cmds=$lt_archive_cmds
31988archive_expsym_cmds=$lt_archive_expsym_cmds
31989
31990# Commands used to build a loadable module if different from building
31991# a shared archive.
31992module_cmds=$lt_module_cmds
31993module_expsym_cmds=$lt_module_expsym_cmds
31994
31995# Whether we are building with GNU ld or not.
31996with_gnu_ld=$lt_with_gnu_ld
31997
31998# Flag that allows shared libraries with undefined symbols to be built.
31999allow_undefined_flag=$lt_allow_undefined_flag
32000
32001# Flag that enforces no undefined symbols.
32002no_undefined_flag=$lt_no_undefined_flag
32003
32004# Flag to hardcode \$libdir into a binary during linking.
32005# This must work even if \$libdir does not exist
32006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32007
32008# If ld is used when linking, flag to hardcode \$libdir into a binary
32009# during linking.  This must work even if \$libdir does not exist.
32010hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32011
32012# Whether we need a single "-rpath" flag with a separated argument.
32013hardcode_libdir_separator=$lt_hardcode_libdir_separator
32014
32015# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32016# DIR into the resulting binary.
32017hardcode_direct=$hardcode_direct
32018
32019# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32020# DIR into the resulting binary and the resulting library dependency is
32021# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32022# library is relocated.
32023hardcode_direct_absolute=$hardcode_direct_absolute
32024
32025# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32026# into the resulting binary.
32027hardcode_minus_L=$hardcode_minus_L
32028
32029# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32030# into the resulting binary.
32031hardcode_shlibpath_var=$hardcode_shlibpath_var
32032
32033# Set to "yes" if building a shared library automatically hardcodes DIR
32034# into the library and all subsequent libraries and executables linked
32035# against it.
32036hardcode_automatic=$hardcode_automatic
32037
32038# Set to yes if linker adds runtime paths of dependent libraries
32039# to runtime path list.
32040inherit_rpath=$inherit_rpath
32041
32042# Whether libtool must link a program against all its dependency libraries.
32043link_all_deplibs=$link_all_deplibs
32044
32045# Fix the shell variable \$srcfile for the compiler.
32046fix_srcfile_path=$lt_fix_srcfile_path
32047
32048# Set to "yes" if exported symbols are required.
32049always_export_symbols=$always_export_symbols
32050
32051# The commands to list exported symbols.
32052export_symbols_cmds=$lt_export_symbols_cmds
32053
32054# Symbols that should not be listed in the preloaded symbols.
32055exclude_expsyms=$lt_exclude_expsyms
32056
32057# Symbols that must always be exported.
32058include_expsyms=$lt_include_expsyms
32059
32060# Commands necessary for linking programs (against libraries) with templates.
32061prelink_cmds=$lt_prelink_cmds
32062
32063# Specify filename containing input files.
32064file_list_spec=$lt_file_list_spec
32065
32066# How to hardcode a shared library path into an executable.
32067hardcode_action=$hardcode_action
32068
32069# The directories searched by this compiler when creating a shared library.
32070compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32071
32072# Dependencies to place before and after the objects being linked to
32073# create a shared library.
32074predep_objects=$lt_predep_objects
32075postdep_objects=$lt_postdep_objects
32076predeps=$lt_predeps
32077postdeps=$lt_postdeps
32078
32079# The library search path used internally by the compiler when linking
32080# a shared library.
32081compiler_lib_search_path=$lt_compiler_lib_search_path
32082
32083# ### END LIBTOOL CONFIG
32084
32085_LT_EOF
32086
32087  case $host_os in
32088  aix3*)
32089    cat <<\_LT_EOF >> "$cfgfile"
32090# AIX sometimes has problems with the GCC collect2 program.  For some
32091# reason, if we set the COLLECT_NAMES environment variable, the problems
32092# vanish in a puff of smoke.
32093if test "X${COLLECT_NAMES+set}" != Xset; then
32094  COLLECT_NAMES=
32095  export COLLECT_NAMES
32096fi
32097_LT_EOF
32098    ;;
32099  esac
32100
32101
32102ltmain="$ac_aux_dir/ltmain.sh"
32103
32104
32105  # We use sed instead of cat because bash on DJGPP gets confused if
32106  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32107  # text mode, it properly converts lines to CR/LF.  This bash problem
32108  # is reportedly fixed, but why not run on old versions too?
32109  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32110    || (rm -f "$cfgfile"; exit 1)
32111
32112  case $xsi_shell in
32113  yes)
32114    cat << \_LT_EOF >> "$cfgfile"
32115
32116# func_dirname file append nondir_replacement
32117# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32118# otherwise set result to NONDIR_REPLACEMENT.
32119func_dirname ()
32120{
32121  case ${1} in
32122    */*) func_dirname_result="${1%/*}${2}" ;;
32123    *  ) func_dirname_result="${3}" ;;
32124  esac
32125}
32126
32127# func_basename file
32128func_basename ()
32129{
32130  func_basename_result="${1##*/}"
32131}
32132
32133# func_dirname_and_basename file append nondir_replacement
32134# perform func_basename and func_dirname in a single function
32135# call:
32136#   dirname:  Compute the dirname of FILE.  If nonempty,
32137#             add APPEND to the result, otherwise set result
32138#             to NONDIR_REPLACEMENT.
32139#             value returned in "$func_dirname_result"
32140#   basename: Compute filename of FILE.
32141#             value retuned in "$func_basename_result"
32142# Implementation must be kept synchronized with func_dirname
32143# and func_basename. For efficiency, we do not delegate to
32144# those functions but instead duplicate the functionality here.
32145func_dirname_and_basename ()
32146{
32147  case ${1} in
32148    */*) func_dirname_result="${1%/*}${2}" ;;
32149    *  ) func_dirname_result="${3}" ;;
32150  esac
32151  func_basename_result="${1##*/}"
32152}
32153
32154# func_stripname prefix suffix name
32155# strip PREFIX and SUFFIX off of NAME.
32156# PREFIX and SUFFIX must not contain globbing or regex special
32157# characters, hashes, percent signs, but SUFFIX may contain a leading
32158# dot (in which case that matches only a dot).
32159func_stripname ()
32160{
32161  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32162  # positional parameters, so assign one to ordinary parameter first.
32163  func_stripname_result=${3}
32164  func_stripname_result=${func_stripname_result#"${1}"}
32165  func_stripname_result=${func_stripname_result%"${2}"}
32166}
32167
32168# func_opt_split
32169func_opt_split ()
32170{
32171  func_opt_split_opt=${1%%=*}
32172  func_opt_split_arg=${1#*=}
32173}
32174
32175# func_lo2o object
32176func_lo2o ()
32177{
32178  case ${1} in
32179    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32180    *)    func_lo2o_result=${1} ;;
32181  esac
32182}
32183
32184# func_xform libobj-or-source
32185func_xform ()
32186{
32187  func_xform_result=${1%.*}.lo
32188}
32189
32190# func_arith arithmetic-term...
32191func_arith ()
32192{
32193  func_arith_result=$(( $* ))
32194}
32195
32196# func_len string
32197# STRING may not start with a hyphen.
32198func_len ()
32199{
32200  func_len_result=${#1}
32201}
32202
32203_LT_EOF
32204    ;;
32205  *) # Bourne compatible functions.
32206    cat << \_LT_EOF >> "$cfgfile"
32207
32208# func_dirname file append nondir_replacement
32209# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32210# otherwise set result to NONDIR_REPLACEMENT.
32211func_dirname ()
32212{
32213  # Extract subdirectory from the argument.
32214  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32215  if test "X$func_dirname_result" = "X${1}"; then
32216    func_dirname_result="${3}"
32217  else
32218    func_dirname_result="$func_dirname_result${2}"
32219  fi
32220}
32221
32222# func_basename file
32223func_basename ()
32224{
32225  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32226}
32227
32228
32229# func_stripname prefix suffix name
32230# strip PREFIX and SUFFIX off of NAME.
32231# PREFIX and SUFFIX must not contain globbing or regex special
32232# characters, hashes, percent signs, but SUFFIX may contain a leading
32233# dot (in which case that matches only a dot).
32234# func_strip_suffix prefix name
32235func_stripname ()
32236{
32237  case ${2} in
32238    .*) func_stripname_result=`$ECHO "X${3}" \
32239           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32240    *)  func_stripname_result=`$ECHO "X${3}" \
32241           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32242  esac
32243}
32244
32245# sed scripts:
32246my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32247my_sed_long_arg='1s/^-[^=]*=//'
32248
32249# func_opt_split
32250func_opt_split ()
32251{
32252  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32253  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32254}
32255
32256# func_lo2o object
32257func_lo2o ()
32258{
32259  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32260}
32261
32262# func_xform libobj-or-source
32263func_xform ()
32264{
32265  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32266}
32267
32268# func_arith arithmetic-term...
32269func_arith ()
32270{
32271  func_arith_result=`expr "$@"`
32272}
32273
32274# func_len string
32275# STRING may not start with a hyphen.
32276func_len ()
32277{
32278  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32279}
32280
32281_LT_EOF
32282esac
32283
32284case $lt_shell_append in
32285  yes)
32286    cat << \_LT_EOF >> "$cfgfile"
32287
32288# func_append var value
32289# Append VALUE to the end of shell variable VAR.
32290func_append ()
32291{
32292  eval "$1+=\$2"
32293}
32294_LT_EOF
32295    ;;
32296  *)
32297    cat << \_LT_EOF >> "$cfgfile"
32298
32299# func_append var value
32300# Append VALUE to the end of shell variable VAR.
32301func_append ()
32302{
32303  eval "$1=\$$1\$2"
32304}
32305
32306_LT_EOF
32307    ;;
32308  esac
32309
32310
32311  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32312    || (rm -f "$cfgfile"; exit 1)
32313
32314  mv -f "$cfgfile" "$ofile" ||
32315    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32316  chmod +x "$ofile"
32317
32318
32319    cat <<_LT_EOF >> "$ofile"
32320
32321# ### BEGIN LIBTOOL TAG CONFIG: CXX
32322
32323# The linker used to build libraries.
32324LD=$lt_LD_CXX
32325
32326# Commands used to build an old-style archive.
32327old_archive_cmds=$lt_old_archive_cmds_CXX
32328
32329# A language specific compiler.
32330CC=$lt_compiler_CXX
32331
32332# Is the compiler the GNU compiler?
32333with_gcc=$GCC_CXX
32334
32335# Compiler flag to turn off builtin functions.
32336no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32337
32338# How to pass a linker flag through the compiler.
32339wl=$lt_lt_prog_compiler_wl_CXX
32340
32341# Additional compiler flags for building library objects.
32342pic_flag=$lt_lt_prog_compiler_pic_CXX
32343
32344# Compiler flag to prevent dynamic linking.
32345link_static_flag=$lt_lt_prog_compiler_static_CXX
32346
32347# Does compiler simultaneously support -c and -o options?
32348compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32349
32350# Whether or not to add -lc for building shared libraries.
32351build_libtool_need_lc=$archive_cmds_need_lc_CXX
32352
32353# Whether or not to disallow shared libs when runtime libs are static.
32354allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32355
32356# Compiler flag to allow reflexive dlopens.
32357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32358
32359# Compiler flag to generate shared objects directly from archives.
32360whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32361
32362# Whether the compiler copes with passing no objects directly.
32363compiler_needs_object=$lt_compiler_needs_object_CXX
32364
32365# Create an old-style archive from a shared archive.
32366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32367
32368# Create a temporary old-style archive to link instead of a shared archive.
32369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32370
32371# Commands used to build a shared archive.
32372archive_cmds=$lt_archive_cmds_CXX
32373archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32374
32375# Commands used to build a loadable module if different from building
32376# a shared archive.
32377module_cmds=$lt_module_cmds_CXX
32378module_expsym_cmds=$lt_module_expsym_cmds_CXX
32379
32380# Whether we are building with GNU ld or not.
32381with_gnu_ld=$lt_with_gnu_ld_CXX
32382
32383# Flag that allows shared libraries with undefined symbols to be built.
32384allow_undefined_flag=$lt_allow_undefined_flag_CXX
32385
32386# Flag that enforces no undefined symbols.
32387no_undefined_flag=$lt_no_undefined_flag_CXX
32388
32389# Flag to hardcode \$libdir into a binary during linking.
32390# This must work even if \$libdir does not exist
32391hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32392
32393# If ld is used when linking, flag to hardcode \$libdir into a binary
32394# during linking.  This must work even if \$libdir does not exist.
32395hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32396
32397# Whether we need a single "-rpath" flag with a separated argument.
32398hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32399
32400# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32401# DIR into the resulting binary.
32402hardcode_direct=$hardcode_direct_CXX
32403
32404# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32405# DIR into the resulting binary and the resulting library dependency is
32406# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32407# library is relocated.
32408hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32409
32410# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32411# into the resulting binary.
32412hardcode_minus_L=$hardcode_minus_L_CXX
32413
32414# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32415# into the resulting binary.
32416hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32417
32418# Set to "yes" if building a shared library automatically hardcodes DIR
32419# into the library and all subsequent libraries and executables linked
32420# against it.
32421hardcode_automatic=$hardcode_automatic_CXX
32422
32423# Set to yes if linker adds runtime paths of dependent libraries
32424# to runtime path list.
32425inherit_rpath=$inherit_rpath_CXX
32426
32427# Whether libtool must link a program against all its dependency libraries.
32428link_all_deplibs=$link_all_deplibs_CXX
32429
32430# Fix the shell variable \$srcfile for the compiler.
32431fix_srcfile_path=$lt_fix_srcfile_path_CXX
32432
32433# Set to "yes" if exported symbols are required.
32434always_export_symbols=$always_export_symbols_CXX
32435
32436# The commands to list exported symbols.
32437export_symbols_cmds=$lt_export_symbols_cmds_CXX
32438
32439# Symbols that should not be listed in the preloaded symbols.
32440exclude_expsyms=$lt_exclude_expsyms_CXX
32441
32442# Symbols that must always be exported.
32443include_expsyms=$lt_include_expsyms_CXX
32444
32445# Commands necessary for linking programs (against libraries) with templates.
32446prelink_cmds=$lt_prelink_cmds_CXX
32447
32448# Specify filename containing input files.
32449file_list_spec=$lt_file_list_spec_CXX
32450
32451# How to hardcode a shared library path into an executable.
32452hardcode_action=$hardcode_action_CXX
32453
32454# The directories searched by this compiler when creating a shared library.
32455compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32456
32457# Dependencies to place before and after the objects being linked to
32458# create a shared library.
32459predep_objects=$lt_predep_objects_CXX
32460postdep_objects=$lt_postdep_objects_CXX
32461predeps=$lt_predeps_CXX
32462postdeps=$lt_postdeps_CXX
32463
32464# The library search path used internally by the compiler when linking
32465# a shared library.
32466compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32467
32468# ### END LIBTOOL TAG CONFIG: CXX
32469_LT_EOF
32470
32471 ;;
32472
32473  esac
32474done # for ac_tag
32475
32476
32477as_fn_exit 0
32478_ACEOF
32479ac_clean_files=$ac_clean_files_save
32480
32481test $ac_write_fail = 0 ||
32482  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32483
32484
32485# configure is writing to config.log, and then calls config.status.
32486# config.status does its own redirection, appending to config.log.
32487# Unfortunately, on DOS this fails, as config.log is still kept open
32488# by configure, so config.status won't be able to write to it; its
32489# output is simply discarded.  So we exec the FD to /dev/null,
32490# effectively closing config.log, so it can be properly (re)opened and
32491# appended to by config.status.  When coming back to configure, we
32492# need to make the FD available again.
32493if test "$no_create" != yes; then
32494  ac_cs_success=:
32495  ac_config_status_args=
32496  test "$silent" = yes &&
32497    ac_config_status_args="$ac_config_status_args --quiet"
32498  exec 5>/dev/null
32499  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32500  exec 5>>config.log
32501  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32502  # would make configure fail if this is the last instruction.
32503  $ac_cs_success || as_fn_exit $?
32504fi
32505
32506#
32507# CONFIG_SUBDIRS section.
32508#
32509if test "$no_recursion" != yes; then
32510
32511  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
32512  # so they do not pile up.
32513  ac_sub_configure_args=
32514  ac_prev=
32515  eval "set x $ac_configure_args"
32516  shift
32517  for ac_arg
32518  do
32519    if test -n "$ac_prev"; then
32520      ac_prev=
32521      continue
32522    fi
32523    case $ac_arg in
32524    -cache-file | --cache-file | --cache-fil | --cache-fi \
32525    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32526      ac_prev=cache_file ;;
32527    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32528    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32529    | --c=*)
32530      ;;
32531    --config-cache | -C)
32532      ;;
32533    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32534      ac_prev=srcdir ;;
32535    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32536      ;;
32537    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32538      ac_prev=prefix ;;
32539    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32540      ;;
32541    --disable-option-checking)
32542      ;;
32543    *)
32544      case $ac_arg in
32545      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
32546      esac
32547      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
32548    esac
32549  done
32550
32551  # Always prepend --prefix to ensure using the same prefix
32552  # in subdir configurations.
32553  ac_arg="--prefix=$prefix"
32554  case $ac_arg in
32555  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
32556  esac
32557  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
32558
32559  # Pass --silent
32560  if test "$silent" = yes; then
32561    ac_sub_configure_args="--silent $ac_sub_configure_args"
32562  fi
32563
32564  # Always prepend --disable-option-checking to silence warnings, since
32565  # different subdirs can have different --enable and --with options.
32566  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
32567
32568  ac_popdir=`pwd`
32569  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32570
32571    # Do not complain, so a configure script can configure whichever
32572    # parts of a large source tree are present.
32573    test -d "$srcdir/$ac_dir" || continue
32574
32575    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
32576    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
32577    $as_echo "$ac_msg" >&6
32578    as_dir="$ac_dir"; as_fn_mkdir_p
32579    ac_builddir=.
32580
32581case "$ac_dir" in
32582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32583*)
32584  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32585  # A ".." for each directory in $ac_dir_suffix.
32586  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32587  case $ac_top_builddir_sub in
32588  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32589  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32590  esac ;;
32591esac
32592ac_abs_top_builddir=$ac_pwd
32593ac_abs_builddir=$ac_pwd$ac_dir_suffix
32594# for backward compatibility:
32595ac_top_builddir=$ac_top_build_prefix
32596
32597case $srcdir in
32598  .)  # We are building in place.
32599    ac_srcdir=.
32600    ac_top_srcdir=$ac_top_builddir_sub
32601    ac_abs_top_srcdir=$ac_pwd ;;
32602  [\\/]* | ?:[\\/]* )  # Absolute name.
32603    ac_srcdir=$srcdir$ac_dir_suffix;
32604    ac_top_srcdir=$srcdir
32605    ac_abs_top_srcdir=$srcdir ;;
32606  *) # Relative name.
32607    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32608    ac_top_srcdir=$ac_top_build_prefix$srcdir
32609    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32610esac
32611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32612
32613
32614    cd "$ac_dir"
32615
32616    # Check for guested configure; otherwise get Cygnus style configure.
32617    if test -f "$ac_srcdir/configure.gnu"; then
32618      ac_sub_configure=$ac_srcdir/configure.gnu
32619    elif test -f "$ac_srcdir/configure"; then
32620      ac_sub_configure=$ac_srcdir/configure
32621    elif test -f "$ac_srcdir/configure.in"; then
32622      # This should be Cygnus configure.
32623      ac_sub_configure=$ac_aux_dir/configure
32624    else
32625      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
32626$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32627      ac_sub_configure=
32628    fi
32629
32630    # The recursion is here.
32631    if test -n "$ac_sub_configure"; then
32632      # Make the cache file name correct relative to the subdirectory.
32633      case $cache_file in
32634      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32635      *) # Relative name.
32636	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
32637      esac
32638
32639      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32640$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32641      # The eval makes quoting arguments work.
32642      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
32643	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
32644	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
32645    fi
32646
32647    cd "$ac_popdir"
32648  done
32649fi
32650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32653fi
32654
32655
32656echo
32657echo "-----------------------------------------------------------------------"
32658echo "MOC will be compiled with:"
32659echo
32660if test `echo $DECODER_PLUGINS | $AWK '{print(length())}'` -le 50
32661then
32662	echo "Decoder plugins:  $DECODER_PLUGINS"
32663else
32664	DECODERS_IX=`echo $DECODER_PLUGINS | $AWK '{match(substr($0, 1, 51), /.* /);print(RLENGTH)}'`
32665	DECODERS_1=`echo $DECODER_PLUGINS | $AWK "{print(substr(\\$0, 1, $DECODERS_IX - 1))}"`
32666	DECODERS_2=`echo $DECODER_PLUGINS | $AWK "{print(substr(\\$0, $DECODERS_IX + 1))}"`
32667	echo "Decoder plugins:   $DECODERS_1"
32668	echo "                   $DECODERS_2"
32669fi
32670echo "Sound Drivers:    "$SOUND_DRIVERS
32671echo "DEBUG:             "$COMPILE_DEBUG
32672echo "RCC:               "$COMPILE_RCC
32673echo "Network streams:   "$COMPILE_CURL
32674echo "Resampling:        "$COMPILE_SAMPLERATE
32675echo "MIME magic:        "$COMPILE_MAGIC
32676echo "-----------------------------------------------------------------------"
32677echo
32678
32679if test "x$AUTOCONF_DEPRECATED" = "xyes"
32680then
32681	echo "WARNING: After release 2.5 MOC will require Autoconf version"
32682	echo "         2.64 or later.  Plan to upgrade your Autoconf soon."
32683	echo
32684fi
32685
32686if test "x$posix_2001_compliant" = "xno"
32687then
32688	echo "WARNING: After release 2.5, MOC will require a POSIX.1-2001"
32689	echo "         compliant system; plan to upgrade your system soon."
32690	echo
32691fi
32692
32693if test "x$ac_cv_prog_cc_c99" = "xno"
32694then
32695	echo "WARNING: After release 2.5 MOC will require an ISO C99 capable"
32696	echo "         compiler.  Plan to upgrade your compiler soon."
32697	echo
32698fi
32699
32700if test "x$FFMPEG_CONFIG" = "xyes"
32701then
32702	echo "WARNING: Use of Debian's ffmpeg-config is deprecated;"
32703	echo "         please upgrade FFmpeg or it's libraries to a version"
32704	echo "         using pkg-config (FFmpeg release 0.5 or later)."
32705	echo
32706fi
32707
32708if test "x$BDB4_DEPRECATED" = "xyes"
32709then
32710	echo "WARNING: After release 2.5 MOC will require Berkeley DB release"
32711	echo "         4.1 or later.  Plan to upgrade your libraries soon."
32712	echo
32713fi
32714
32715if test "x$CURL_DEPRECATED" = "xyes"
32716then
32717	echo "WARNING: After release 2.5 MOC will require libcurl version"
32718	echo "         7.15.1 or later.  Plan to upgrade your libraries soon."
32719	echo
32720fi
32721
32722if test "x$ALSA_DEPRECATED" = "xyes"
32723then
32724	echo "WARNING: After release 2.5 MOC will require ALSA version 1.0.11"
32725	echo "         or later.  Plan to upgrade your ALSA soon."
32726	echo
32727fi
32728
32729if test "x$FFMPEG_DEPRECATED" = "xyes"
32730then
32731	echo "WARNING: After version 2.5, MOC will require FFmpeg/LibAV version"
32732	echo "         1.0/10.0 or later.  Plan to upgrade your libraries soon."
32733	echo
32734fi
32735
32736if test "x$FLAC_DEPRECATED" = "xyes"
32737then
32738	echo "WARNING: After release 2.5 MOC will require FLAC release 1.1.3 or"
32739	echo "         later.  Plan to upgrade your libraries soon."
32740	echo
32741fi
32742
32743if test "x$POPT_MISSING" = "xyes"
32744then
32745	echo "WARNING: After release 2.5 MOC will require libpopt.  Plan"
32746	echo "         to install it before moving on from release 2.5."
32747	echo
32748fi
32749
32750if test "x$XZ_MISSING" = "xyes"
32751then
32752	echo "WARNING: After release 2.5 MOC will use XZ to create tarballs"
32753	echo "         by default.  If you wish to build tarballs, either plan"
32754	echo "         to install XZ soon or start using explicit 'dist-*'"
32755	echo "         'make' targets."
32756	echo
32757fi
32758
32759if test "x$UPGRADE_TAGLIB" = "xyes"
32760then
32761	echo "WARNING: MOC will soon require TagLib version 1.5 or later;"
32762	echo "         plan to upgrade your TagLib soon."
32763	echo
32764fi
32765
32766if test "x$UPGRADE_MUSEPACK" = "xyes"
32767then
32768	echo "WARNING: MOC will soon require Musepack libmpc (rather than libmpcdec);"
32769	echo "         plan to upgrade your Musepack soon."
32770	echo
32771fi
32772
32773if test "x$DECODER_PLUGINS" = "x"
32774then
32775	echo "WARNING: No decoder plugins are to be compiled;"
32776	echo "         you will have to provide them separately."
32777	echo
32778fi
32779
32780if test "x$SOUND_DRIVERS" = "x"
32781then
32782	echo "WARNING: No sound output methods are to be compiled;"
32783	echo "         you will not hear any sound!"
32784	echo
32785fi
32786
32787if test "x$COMPILE_SAMPLERATE" = "xno" -a "x$COMPILE_ALSA" = "xyes"
32788then
32789	echo "WARNING: Without libsamplerate, the 'ALSAStutterDefeat' option"
32790	echo "         may severely restrict the number of audios playable."
32791	echo
32792fi
32793
32794echo "WARNING: Since MOC version 2 the executable file name has changed to mocp!"
32795echo "         Please remove old moc binary if you have installed an older version."
32796echo
32797