1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for opendbx 1.4.6.
4#
5# Report bugs to <http://bugs.linuxnetworks.de/>.
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
234$0: http://bugs.linuxnetworks.de/ about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do 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
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='opendbx'
703PACKAGE_TARNAME='opendbx'
704PACKAGE_VERSION='1.4.6'
705PACKAGE_STRING='opendbx 1.4.6'
706PACKAGE_BUGREPORT='http://bugs.linuxnetworks.de/'
707PACKAGE_URL=''
708
709ac_unique_file="config.h.in"
710gt_needs=
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_subst_vars='am__EXEEXT_FALSE
748am__EXEEXT_TRUE
749LTLIBOBJS
750LIBSYBASE
751LIBSQLITE3
752LIBSQLITE
753LIBPGSQL
754LIBORACLE
755LIBODBC
756LIBMYSQL
757LIBMSSQL
758LIBFIREBIRD
759backendlibs
760backends
761ENABLEUTILS_FALSE
762ENABLEUTILS_TRUE
763ENABLETEST_FALSE
764ENABLETEST_TRUE
765SINGLELIB_FALSE
766SINGLELIB_TRUE
767ENABLEMAN_FALSE
768ENABLEMAN_TRUE
769doxygen
770db2man
771MAINLIBS
772POW_LIB
773LIBOBJS
774CXXCPP
775am__fastdepCXX_FALSE
776am__fastdepCXX_TRUE
777CXXDEPMODE
778ac_ct_CXX
779CXXFLAGS
780CXX
781CPP
782OTOOL64
783OTOOL
784LIPO
785NMEDIT
786DSYMUTIL
787lt_ECHO
788RANLIB
789AR
790LN_S
791NM
792ac_ct_DUMPBIN
793DUMPBIN
794LD
795FGREP
796EGREP
797GREP
798SED
799LIBTOOL
800OBJDUMP
801DLLTOOL
802AS
803LIBSUFFIX
804LIBPREFIX
805LIBVERSION
806APIPLUSVERSION
807APINUMBER
808APIVERSION
809POSUB
810LTLIBINTL
811LIBINTL
812INTLLIBS
813LTLIBICONV
814LIBICONV
815INTL_MACOSX_LIBS
816host_os
817host_vendor
818host_cpu
819host
820build_os
821build_vendor
822build_cpu
823build
824am__fastdepCC_FALSE
825am__fastdepCC_TRUE
826CCDEPMODE
827AMDEPBACKSLASH
828AMDEP_FALSE
829AMDEP_TRUE
830am__quote
831am__include
832DEPDIR
833OBJEXT
834EXEEXT
835ac_ct_CC
836CPPFLAGS
837LDFLAGS
838CFLAGS
839CC
840XGETTEXT_EXTRA_OPTIONS
841MSGMERGE
842XGETTEXT_015
843XGETTEXT
844GMSGFMT_015
845MSGFMT_015
846GMSGFMT
847MSGFMT
848GETTEXT_MACRO_VERSION
849USE_NLS
850MAINT
851MAINTAINER_MODE_FALSE
852MAINTAINER_MODE_TRUE
853am__untar
854am__tar
855AMTAR
856am__leading_dot
857SET_MAKE
858AWK
859mkdir_p
860MKDIR_P
861INSTALL_STRIP_PROGRAM
862STRIP
863install_sh
864MAKEINFO
865AUTOHEADER
866AUTOMAKE
867AUTOCONF
868ACLOCAL
869VERSION
870PACKAGE
871CYGPATH_W
872am__isrc
873INSTALL_DATA
874INSTALL_SCRIPT
875INSTALL_PROGRAM
876target_alias
877host_alias
878build_alias
879LIBS
880ECHO_T
881ECHO_N
882ECHO_C
883DEFS
884mandir
885localedir
886libdir
887psdir
888pdfdir
889dvidir
890htmldir
891infodir
892docdir
893oldincludedir
894includedir
895localstatedir
896sharedstatedir
897sysconfdir
898datadir
899datarootdir
900libexecdir
901sbindir
902bindir
903program_transform_name
904prefix
905exec_prefix
906PACKAGE_URL
907PACKAGE_BUGREPORT
908PACKAGE_STRING
909PACKAGE_VERSION
910PACKAGE_TARNAME
911PACKAGE_NAME
912PATH_SEPARATOR
913SHELL'
914ac_subst_files=''
915ac_user_opts='
916enable_option_checking
917enable_maintainer_mode
918enable_nls
919enable_dependency_tracking
920with_gnu_ld
921enable_rpath
922with_libiconv_prefix
923with_libintl_prefix
924enable_shared
925enable_static
926with_pic
927enable_fast_install
928enable_libtool_lock
929enable_singlelib
930enable_test
931enable_utils
932with_backends
933'
934      ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940LIBS
941CPPFLAGS
942CPP
943CXX
944CXXFLAGS
945CCC
946CXXCPP'
947
948
949# Initialize some variables set by options.
950ac_init_help=
951ac_init_version=false
952ac_unrecognized_opts=
953ac_unrecognized_sep=
954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
976# (The list follows the same order as the GNU Coding Standards.)
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001  # If the previous option needs an argument, assign it.
1002  if test -n "$ac_prev"; then
1003    eval $ac_prev=\$ac_option
1004    ac_prev=
1005    continue
1006  fi
1007
1008  case $ac_option in
1009  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010  *)	ac_optarg=yes ;;
1011  esac
1012
1013  # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015  case $ac_dashdash$ac_option in
1016  --)
1017    ac_dashdash=yes ;;
1018
1019  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020    ac_prev=bindir ;;
1021  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022    bindir=$ac_optarg ;;
1023
1024  -build | --build | --buil | --bui | --bu)
1025    ac_prev=build_alias ;;
1026  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027    build_alias=$ac_optarg ;;
1028
1029  -cache-file | --cache-file | --cache-fil | --cache-fi \
1030  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031    ac_prev=cache_file ;;
1032  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034    cache_file=$ac_optarg ;;
1035
1036  --config-cache | -C)
1037    cache_file=config.cache ;;
1038
1039  -datadir | --datadir | --datadi | --datad)
1040    ac_prev=datadir ;;
1041  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042    datadir=$ac_optarg ;;
1043
1044  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045  | --dataroo | --dataro | --datar)
1046    ac_prev=datarootdir ;;
1047  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049    datarootdir=$ac_optarg ;;
1050
1051  -disable-* | --disable-*)
1052    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055      as_fn_error "invalid feature name: $ac_useropt"
1056    ac_useropt_orig=$ac_useropt
1057    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058    case $ac_user_opts in
1059      *"
1060"enable_$ac_useropt"
1061"*) ;;
1062      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063	 ac_unrecognized_sep=', ';;
1064    esac
1065    eval enable_$ac_useropt=no ;;
1066
1067  -docdir | --docdir | --docdi | --doc | --do)
1068    ac_prev=docdir ;;
1069  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070    docdir=$ac_optarg ;;
1071
1072  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073    ac_prev=dvidir ;;
1074  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075    dvidir=$ac_optarg ;;
1076
1077  -enable-* | --enable-*)
1078    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079    # Reject names that are not valid shell variable names.
1080    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081      as_fn_error "invalid feature name: $ac_useropt"
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"enable_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095  | --exec | --exe | --ex)
1096    ac_prev=exec_prefix ;;
1097  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099  | --exec=* | --exe=* | --ex=*)
1100    exec_prefix=$ac_optarg ;;
1101
1102  -gas | --gas | --ga | --g)
1103    # Obsolete; use --with-gas.
1104    with_gas=yes ;;
1105
1106  -help | --help | --hel | --he | -h)
1107    ac_init_help=long ;;
1108  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109    ac_init_help=recursive ;;
1110  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111    ac_init_help=short ;;
1112
1113  -host | --host | --hos | --ho)
1114    ac_prev=host_alias ;;
1115  -host=* | --host=* | --hos=* | --ho=*)
1116    host_alias=$ac_optarg ;;
1117
1118  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119    ac_prev=htmldir ;;
1120  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121  | --ht=*)
1122    htmldir=$ac_optarg ;;
1123
1124  -includedir | --includedir | --includedi | --included | --include \
1125  | --includ | --inclu | --incl | --inc)
1126    ac_prev=includedir ;;
1127  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128  | --includ=* | --inclu=* | --incl=* | --inc=*)
1129    includedir=$ac_optarg ;;
1130
1131  -infodir | --infodir | --infodi | --infod | --info | --inf)
1132    ac_prev=infodir ;;
1133  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134    infodir=$ac_optarg ;;
1135
1136  -libdir | --libdir | --libdi | --libd)
1137    ac_prev=libdir ;;
1138  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139    libdir=$ac_optarg ;;
1140
1141  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142  | --libexe | --libex | --libe)
1143    ac_prev=libexecdir ;;
1144  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145  | --libexe=* | --libex=* | --libe=*)
1146    libexecdir=$ac_optarg ;;
1147
1148  -localedir | --localedir | --localedi | --localed | --locale)
1149    ac_prev=localedir ;;
1150  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151    localedir=$ac_optarg ;;
1152
1153  -localstatedir | --localstatedir | --localstatedi | --localstated \
1154  | --localstate | --localstat | --localsta | --localst | --locals)
1155    ac_prev=localstatedir ;;
1156  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158    localstatedir=$ac_optarg ;;
1159
1160  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161    ac_prev=mandir ;;
1162  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163    mandir=$ac_optarg ;;
1164
1165  -nfp | --nfp | --nf)
1166    # Obsolete; use --without-fp.
1167    with_fp=no ;;
1168
1169  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170  | --no-cr | --no-c | -n)
1171    no_create=yes ;;
1172
1173  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175    no_recursion=yes ;;
1176
1177  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179  | --oldin | --oldi | --old | --ol | --o)
1180    ac_prev=oldincludedir ;;
1181  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184    oldincludedir=$ac_optarg ;;
1185
1186  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187    ac_prev=prefix ;;
1188  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189    prefix=$ac_optarg ;;
1190
1191  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192  | --program-pre | --program-pr | --program-p)
1193    ac_prev=program_prefix ;;
1194  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196    program_prefix=$ac_optarg ;;
1197
1198  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199  | --program-suf | --program-su | --program-s)
1200    ac_prev=program_suffix ;;
1201  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203    program_suffix=$ac_optarg ;;
1204
1205  -program-transform-name | --program-transform-name \
1206  | --program-transform-nam | --program-transform-na \
1207  | --program-transform-n | --program-transform- \
1208  | --program-transform | --program-transfor \
1209  | --program-transfo | --program-transf \
1210  | --program-trans | --program-tran \
1211  | --progr-tra | --program-tr | --program-t)
1212    ac_prev=program_transform_name ;;
1213  -program-transform-name=* | --program-transform-name=* \
1214  | --program-transform-nam=* | --program-transform-na=* \
1215  | --program-transform-n=* | --program-transform-=* \
1216  | --program-transform=* | --program-transfor=* \
1217  | --program-transfo=* | --program-transf=* \
1218  | --program-trans=* | --program-tran=* \
1219  | --progr-tra=* | --program-tr=* | --program-t=*)
1220    program_transform_name=$ac_optarg ;;
1221
1222  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223    ac_prev=pdfdir ;;
1224  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225    pdfdir=$ac_optarg ;;
1226
1227  -psdir | --psdir | --psdi | --psd | --ps)
1228    ac_prev=psdir ;;
1229  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230    psdir=$ac_optarg ;;
1231
1232  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233  | -silent | --silent | --silen | --sile | --sil)
1234    silent=yes ;;
1235
1236  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237    ac_prev=sbindir ;;
1238  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239  | --sbi=* | --sb=*)
1240    sbindir=$ac_optarg ;;
1241
1242  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244  | --sharedst | --shareds | --shared | --share | --shar \
1245  | --sha | --sh)
1246    ac_prev=sharedstatedir ;;
1247  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250  | --sha=* | --sh=*)
1251    sharedstatedir=$ac_optarg ;;
1252
1253  -site | --site | --sit)
1254    ac_prev=site ;;
1255  -site=* | --site=* | --sit=*)
1256    site=$ac_optarg ;;
1257
1258  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259    ac_prev=srcdir ;;
1260  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261    srcdir=$ac_optarg ;;
1262
1263  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264  | --syscon | --sysco | --sysc | --sys | --sy)
1265    ac_prev=sysconfdir ;;
1266  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268    sysconfdir=$ac_optarg ;;
1269
1270  -target | --target | --targe | --targ | --tar | --ta | --t)
1271    ac_prev=target_alias ;;
1272  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273    target_alias=$ac_optarg ;;
1274
1275  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276    verbose=yes ;;
1277
1278  -version | --version | --versio | --versi | --vers | -V)
1279    ac_init_version=: ;;
1280
1281  -with-* | --with-*)
1282    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283    # Reject names that are not valid shell variable names.
1284    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285      as_fn_error "invalid package name: $ac_useropt"
1286    ac_useropt_orig=$ac_useropt
1287    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288    case $ac_user_opts in
1289      *"
1290"with_$ac_useropt"
1291"*) ;;
1292      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293	 ac_unrecognized_sep=', ';;
1294    esac
1295    eval with_$ac_useropt=\$ac_optarg ;;
1296
1297  -without-* | --without-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      as_fn_error "invalid package name: $ac_useropt"
1302    ac_useropt_orig=$ac_useropt
1303    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304    case $ac_user_opts in
1305      *"
1306"with_$ac_useropt"
1307"*) ;;
1308      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309	 ac_unrecognized_sep=', ';;
1310    esac
1311    eval with_$ac_useropt=no ;;
1312
1313  --x)
1314    # Obsolete; use --with-x.
1315    with_x=yes ;;
1316
1317  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318  | --x-incl | --x-inc | --x-in | --x-i)
1319    ac_prev=x_includes ;;
1320  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322    x_includes=$ac_optarg ;;
1323
1324  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326    ac_prev=x_libraries ;;
1327  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329    x_libraries=$ac_optarg ;;
1330
1331  -*) as_fn_error "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information."
1333    ;;
1334
1335  *=*)
1336    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337    # Reject names that are not valid shell variable names.
1338    case $ac_envvar in #(
1339      '' | [0-9]* | *[!_$as_cr_alnum]* )
1340      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341    esac
1342    eval $ac_envvar=\$ac_optarg
1343    export $ac_envvar ;;
1344
1345  *)
1346    # FIXME: should be removed in autoconf 3.0.
1347    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351    ;;
1352
1353  esac
1354done
1355
1356if test -n "$ac_prev"; then
1357  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358  as_fn_error "missing argument to $ac_option"
1359fi
1360
1361if test -n "$ac_unrecognized_opts"; then
1362  case $enable_option_checking in
1363    no) ;;
1364    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366  esac
1367fi
1368
1369# Check all directory arguments for consistency.
1370for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371		datadir sysconfdir sharedstatedir localstatedir includedir \
1372		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373		libdir localedir mandir
1374do
1375  eval ac_val=\$$ac_var
1376  # Remove trailing slashes.
1377  case $ac_val in
1378    */ )
1379      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380      eval $ac_var=\$ac_val;;
1381  esac
1382  # Be sure to have absolute directory names.
1383  case $ac_val in
1384    [\\/$]* | ?:[\\/]* )  continue;;
1385    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386  esac
1387  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399  if test "x$build_alias" = x; then
1400    cross_compiling=maybe
1401    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402    If a cross compiler is detected then cross compile mode will be used." >&2
1403  elif test "x$build_alias" != "x$host_alias"; then
1404    cross_compiling=yes
1405  fi
1406fi
1407
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
1412
1413
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417  as_fn_error "working directory cannot be determined"
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419  as_fn_error "pwd does not report name of working directory"
1420
1421
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424  ac_srcdir_defaulted=yes
1425  # Try the directory containing this script, then the parent directory.
1426  ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428	 X"$as_myself" : 'X\(//\)[^/]' \| \
1429	 X"$as_myself" : 'X\(//\)$' \| \
1430	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\/\)[^/].*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\/\)$/{
1441	    s//\1/
1442	    q
1443	  }
1444	  /^X\(\/\).*/{
1445	    s//\1/
1446	    q
1447	  }
1448	  s/.*/./; q'`
1449  srcdir=$ac_confdir
1450  if test ! -r "$srcdir/$ac_unique_file"; then
1451    srcdir=..
1452  fi
1453else
1454  ac_srcdir_defaulted=no
1455fi
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
1462	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463	pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466  srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_env_${ac_var}_value=\$${ac_var}
1477  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485  # Omit some internal or obsolete options to make the list less imposing.
1486  # This message is too long to be a string in the A/UX 3.1 sh.
1487  cat <<_ACEOF
1488\`configure' configures opendbx 1.4.6 to adapt to many kinds of systems.
1489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498  -h, --help              display this help and exit
1499      --help=short        display options specific to this package
1500      --help=recursive    display the short help of all the included packages
1501  -V, --version           display version information and exit
1502  -q, --quiet, --silent   do not print \`checking...' messages
1503      --cache-file=FILE   cache test results in FILE [disabled]
1504  -C, --config-cache      alias for \`--cache-file=config.cache'
1505  -n, --no-create         do not create output files
1506      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509  --prefix=PREFIX         install architecture-independent files in PREFIX
1510                          [$ac_default_prefix]
1511  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                          [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522  --bindir=DIR            user executables [EPREFIX/bin]
1523  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524  --libexecdir=DIR        program executables [EPREFIX/libexec]
1525  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/opendbx]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of opendbx 1.4.6:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-maintainer-mode  enable make rules and dependencies not useful
1567			  (and sometimes confusing) to the casual installer
1568  --disable-nls           do not use Native Language Support
1569  --disable-dependency-tracking  speeds up one-time build
1570  --enable-dependency-tracking   do not reject slow dependency extractors
1571  --disable-rpath         do not hardcode runtime library paths
1572  --enable-shared[=PKGS]  build shared libraries [default=yes]
1573  --enable-static[=PKGS]  build static libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --enable-singlelib      build single library including backends
1578  --disable-test          don't build OpenDBX test applications
1579  --disable-utils         don't build OpenDBX utility applications
1580
1581Optional Packages:
1582  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1583  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1584  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1585  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1586  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1587  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1588  --without-libintl-prefix     don't search for libintl in includedir and libdir
1589  --with-pic              try to use only PIC/non-PIC objects [default=use
1590                          both]
1591  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1592  --with-backends=...     compile listed backends
1593
1594Some influential environment variables:
1595  CC          C compiler command
1596  CFLAGS      C compiler flags
1597  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598              nonstandard directory <lib dir>
1599  LIBS        libraries to pass to the linker, e.g. -l<library>
1600  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601              you have headers in a nonstandard directory <include dir>
1602  CPP         C preprocessor
1603  CXX         C++ compiler command
1604  CXXFLAGS    C++ compiler flags
1605  CXXCPP      C++ preprocessor
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
1610Report bugs to <http://bugs.linuxnetworks.de/>.
1611_ACEOF
1612ac_status=$?
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616  # If there are subdirs, report their specific --help.
1617  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618    test -d "$ac_dir" ||
1619      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620      continue
1621    ac_builddir=.
1622
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627  # A ".." for each directory in $ac_dir_suffix.
1628  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629  case $ac_top_builddir_sub in
1630  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632  esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
1638
1639case $srcdir in
1640  .)  # We are building in place.
1641    ac_srcdir=.
1642    ac_top_srcdir=$ac_top_builddir_sub
1643    ac_abs_top_srcdir=$ac_pwd ;;
1644  [\\/]* | ?:[\\/]* )  # Absolute name.
1645    ac_srcdir=$srcdir$ac_dir_suffix;
1646    ac_top_srcdir=$srcdir
1647    ac_abs_top_srcdir=$srcdir ;;
1648  *) # Relative name.
1649    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650    ac_top_srcdir=$ac_top_build_prefix$srcdir
1651    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652esac
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655    cd "$ac_dir" || { ac_status=$?; continue; }
1656    # Check for guested configure.
1657    if test -f "$ac_srcdir/configure.gnu"; then
1658      echo &&
1659      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660    elif test -f "$ac_srcdir/configure"; then
1661      echo &&
1662      $SHELL "$ac_srcdir/configure" --help=recursive
1663    else
1664      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665    fi || ac_status=$?
1666    cd "$ac_pwd" || { ac_status=$?; break; }
1667  done
1668fi
1669
1670test -n "$ac_init_help" && exit $ac_status
1671if $ac_init_version; then
1672  cat <<\_ACEOF
1673opendbx configure 1.4.6
1674generated by GNU Autoconf 2.65
1675
1676Copyright (C) 2009 Free Software Foundation, Inc.
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
1680  exit
1681fi
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  rm -f conftest.$ac_objext
1694  if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_compile") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && {
1710	 test -z "$ac_c_werror_flag" ||
1711	 test ! -s conftest.err
1712       } && test -s conftest.$ac_objext; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext conftest$ac_exeext
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest$ac_exeext && {
1751	 test "$cross_compiling" = yes ||
1752	 $as_test_x conftest$ac_exeext
1753       }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759	ac_retval=1
1760fi
1761  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763  # interfere with the next link command; also delete a directory that is
1764  # left behind by Apple's compiler.  We do this before executing the actions.
1765  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_link
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_c_try_cpp LINENO
1845# ----------------------
1846# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_cpp ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  if { { ac_try="$ac_cpp conftest.$ac_ext"
1851case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858  ac_status=$?
1859  if test -s conftest.err; then
1860    grep -v '^ *+' conftest.err >conftest.er1
1861    cat conftest.er1 >&5
1862    mv -f conftest.er1 conftest.err
1863  fi
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; } >/dev/null && {
1866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867	 test ! -s conftest.err
1868       }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874    ac_retval=1
1875fi
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_cpp
1880
1881# ac_fn_c_check_func LINENO FUNC VAR
1882# ----------------------------------
1883# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884ac_fn_c_check_func ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1896#define $2 innocuous_$2
1897
1898/* System header to define __stub macros and hopefully few prototypes,
1899    which can conflict with char $2 (); below.
1900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901    <limits.h> exists even on freestanding compilers.  */
1902
1903#ifdef __STDC__
1904# include <limits.h>
1905#else
1906# include <assert.h>
1907#endif
1908
1909#undef $2
1910
1911/* Override any GCC internal prototype to avoid an error.
1912   Use char because int might match the return type of a GCC
1913   builtin and then its argument prototype would still apply.  */
1914#ifdef __cplusplus
1915extern "C"
1916#endif
1917char $2 ();
1918/* The GNU C library defines this for functions which it implements
1919    to always fail with ENOSYS.  Some functions are actually named
1920    something starting with __ and the normal name is an alias.  */
1921#if defined __stub_$2 || defined __stub___$2
1922choke me
1923#endif
1924
1925int
1926main ()
1927{
1928return $2 ();
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_link "$LINENO"; then :
1934  eval "$3=yes"
1935else
1936  eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext \
1939    conftest$ac_exeext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} # ac_fn_c_check_func
1947
1948# ac_fn_cxx_try_compile LINENO
1949# ----------------------------
1950# Try to compile conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_cxx_try_compile ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  rm -f conftest.$ac_objext
1955  if { { ac_try="$ac_compile"
1956case "(($ac_try" in
1957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958  *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962  (eval "$ac_compile") 2>conftest.err
1963  ac_status=$?
1964  if test -s conftest.err; then
1965    grep -v '^ *+' conftest.err >conftest.er1
1966    cat conftest.er1 >&5
1967    mv -f conftest.er1 conftest.err
1968  fi
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; } && {
1971	 test -z "$ac_cxx_werror_flag" ||
1972	 test ! -s conftest.err
1973       } && test -s conftest.$ac_objext; then :
1974  ac_retval=0
1975else
1976  $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979	ac_retval=1
1980fi
1981  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_cxx_try_compile
1985
1986# ac_fn_cxx_try_cpp LINENO
1987# ------------------------
1988# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_cpp ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  if { { ac_try="$ac_cpp conftest.$ac_ext"
1993case "(($ac_try" in
1994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995  *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000  ac_status=$?
2001  if test -s conftest.err; then
2002    grep -v '^ *+' conftest.err >conftest.er1
2003    cat conftest.er1 >&5
2004    mv -f conftest.er1 conftest.err
2005  fi
2006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007  test $ac_status = 0; } >/dev/null && {
2008	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2009	 test ! -s conftest.err
2010       }; then :
2011  ac_retval=0
2012else
2013  $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016    ac_retval=1
2017fi
2018  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019  as_fn_set_status $ac_retval
2020
2021} # ac_fn_cxx_try_cpp
2022
2023# ac_fn_cxx_try_link LINENO
2024# -------------------------
2025# Try to link conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_cxx_try_link ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  rm -f conftest.$ac_objext conftest$ac_exeext
2030  if { { ac_try="$ac_link"
2031case "(($ac_try" in
2032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033  *) ac_try_echo=$ac_try;;
2034esac
2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036$as_echo "$ac_try_echo"; } >&5
2037  (eval "$ac_link") 2>conftest.err
2038  ac_status=$?
2039  if test -s conftest.err; then
2040    grep -v '^ *+' conftest.err >conftest.er1
2041    cat conftest.er1 >&5
2042    mv -f conftest.er1 conftest.err
2043  fi
2044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045  test $ac_status = 0; } && {
2046	 test -z "$ac_cxx_werror_flag" ||
2047	 test ! -s conftest.err
2048       } && test -s conftest$ac_exeext && {
2049	 test "$cross_compiling" = yes ||
2050	 $as_test_x conftest$ac_exeext
2051       }; then :
2052  ac_retval=0
2053else
2054  $as_echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
2056
2057	ac_retval=1
2058fi
2059  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2060  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2061  # interfere with the next link command; also delete a directory that is
2062  # left behind by Apple's compiler.  We do this before executing the actions.
2063  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065  as_fn_set_status $ac_retval
2066
2067} # ac_fn_cxx_try_link
2068
2069# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070# -------------------------------------------
2071# Tests whether TYPE exists after having included INCLUDES, setting cache
2072# variable VAR accordingly.
2073ac_fn_c_check_type ()
2074{
2075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077$as_echo_n "checking for $2... " >&6; }
2078if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079  $as_echo_n "(cached) " >&6
2080else
2081  eval "$3=no"
2082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084$4
2085int
2086main ()
2087{
2088if (sizeof ($2))
2089	 return 0;
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$4
2098int
2099main ()
2100{
2101if (sizeof (($2)))
2102	    return 0;
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108
2109else
2110  eval "$3=yes"
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
2119  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
2121} # ac_fn_c_check_type
2122
2123# ac_fn_c_find_intX_t LINENO BITS VAR
2124# -----------------------------------
2125# Finds a signed integer type with width BITS, setting cache variable VAR
2126# accordingly.
2127ac_fn_c_find_intX_t ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2131$as_echo_n "checking for int$2_t... " >&6; }
2132if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  eval "$3=no"
2136     # Order is important - never check a type that is potentially smaller
2137     # than half of the expected target width.
2138     for ac_type in int$2_t 'int' 'long int' \
2139	 'long long int' 'short int' 'signed char'; do
2140       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$ac_includes_default
2143	     enum { N = $2 / 2 - 1 };
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2148test_array [0] = 0
2149
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154if ac_fn_c_try_compile "$LINENO"; then :
2155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h.  */
2157$ac_includes_default
2158	        enum { N = $2 / 2 - 1 };
2159int
2160main ()
2161{
2162static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2163		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2164test_array [0] = 0
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171
2172else
2173  case $ac_type in #(
2174  int$2_t) :
2175    eval "$3=yes" ;; #(
2176  *) :
2177    eval "$3=\$ac_type" ;;
2178esac
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183       eval as_val=\$$3
2184   if test "x$as_val" = x""no; then :
2185
2186else
2187  break
2188fi
2189     done
2190fi
2191eval ac_res=\$$3
2192	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
2196} # ac_fn_c_find_intX_t
2197
2198# ac_fn_c_find_uintX_t LINENO BITS VAR
2199# ------------------------------------
2200# Finds an unsigned integer type with width BITS, setting cache variable VAR
2201# accordingly.
2202ac_fn_c_find_uintX_t ()
2203{
2204  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2206$as_echo_n "checking for uint$2_t... " >&6; }
2207if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208  $as_echo_n "(cached) " >&6
2209else
2210  eval "$3=no"
2211     # Order is important - never check a type that is potentially smaller
2212     # than half of the expected target width.
2213     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2214	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h.  */
2217$ac_includes_default
2218int
2219main ()
2220{
2221static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2222test_array [0] = 0
2223
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229  case $ac_type in #(
2230  uint$2_t) :
2231    eval "$3=yes" ;; #(
2232  *) :
2233    eval "$3=\$ac_type" ;;
2234esac
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237       eval as_val=\$$3
2238   if test "x$as_val" = x""no; then :
2239
2240else
2241  break
2242fi
2243     done
2244fi
2245eval ac_res=\$$3
2246	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
2250} # ac_fn_c_find_uintX_t
2251
2252# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2253# -------------------------------------------------------
2254# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2255# the include files in INCLUDES and setting the cache variable VAR
2256# accordingly.
2257ac_fn_c_check_header_mongrel ()
2258{
2259  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262$as_echo_n "checking for $2... " >&6; }
2263if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2264  $as_echo_n "(cached) " >&6
2265fi
2266eval ac_res=\$$3
2267	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268$as_echo "$ac_res" >&6; }
2269else
2270  # Is the header compilable?
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2272$as_echo_n "checking $2 usability... " >&6; }
2273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h.  */
2275$4
2276#include <$2>
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279  ac_header_compiler=yes
2280else
2281  ac_header_compiler=no
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2285$as_echo "$ac_header_compiler" >&6; }
2286
2287# Is the header present?
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2289$as_echo_n "checking $2 presence... " >&6; }
2290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291/* end confdefs.h.  */
2292#include <$2>
2293_ACEOF
2294if ac_fn_c_try_cpp "$LINENO"; then :
2295  ac_header_preproc=yes
2296else
2297  ac_header_preproc=no
2298fi
2299rm -f conftest.err conftest.$ac_ext
2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2301$as_echo "$ac_header_preproc" >&6; }
2302
2303# So?  What about this header?
2304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2305  yes:no: )
2306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2307$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2310    ;;
2311  no:yes:* )
2312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2313$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2315$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2317$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2318    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2319$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2320    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2321$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2322( cat <<\_ASBOX
2323## -------------------------------------------- ##
2324## Report this to http://bugs.linuxnetworks.de/ ##
2325## -------------------------------------------- ##
2326_ASBOX
2327     ) | sed "s/^/$as_me: WARNING:     /" >&2
2328    ;;
2329esac
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331$as_echo_n "checking for $2... " >&6; }
2332if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333  $as_echo_n "(cached) " >&6
2334else
2335  eval "$3=\$ac_header_compiler"
2336fi
2337eval ac_res=\$$3
2338	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339$as_echo "$ac_res" >&6; }
2340fi
2341  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343} # ac_fn_c_check_header_mongrel
2344
2345# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346# ----------------------------------------------------
2347# Tries to find if the field MEMBER exists in type AGGR, after including
2348# INCLUDES, setting cache variable VAR accordingly.
2349ac_fn_c_check_member ()
2350{
2351  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353$as_echo_n "checking for $2.$3... " >&6; }
2354if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355  $as_echo_n "(cached) " >&6
2356else
2357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358/* end confdefs.h.  */
2359$5
2360int
2361main ()
2362{
2363static $2 ac_aggr;
2364if (ac_aggr.$3)
2365return 0;
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371  eval "$4=yes"
2372else
2373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h.  */
2375$5
2376int
2377main ()
2378{
2379static $2 ac_aggr;
2380if (sizeof ac_aggr.$3)
2381return 0;
2382  ;
2383  return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387  eval "$4=yes"
2388else
2389  eval "$4=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394fi
2395eval ac_res=\$$4
2396	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
2398  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399
2400} # ac_fn_c_check_member
2401cat >config.log <<_ACEOF
2402This file contains any messages produced by compilers while
2403running configure, to aid debugging if configure makes a mistake.
2404
2405It was created by opendbx $as_me 1.4.6, which was
2406generated by GNU Autoconf 2.65.  Invocation command line was
2407
2408  $ $0 $@
2409
2410_ACEOF
2411exec 5>>config.log
2412{
2413cat <<_ASUNAME
2414## --------- ##
2415## Platform. ##
2416## --------- ##
2417
2418hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422uname -v = `(uname -v) 2>/dev/null || echo unknown`
2423
2424/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2426
2427/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2428/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2429/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2431/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2432/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2433/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2434
2435_ASUNAME
2436
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    $as_echo "PATH: $as_dir"
2443  done
2444IFS=$as_save_IFS
2445
2446} >&5
2447
2448cat >&5 <<_ACEOF
2449
2450
2451## ----------- ##
2452## Core tests. ##
2453## ----------- ##
2454
2455_ACEOF
2456
2457
2458# Keep a trace of the command line.
2459# Strip out --no-create and --no-recursion so they do not pile up.
2460# Strip out --silent because we don't want to record it for future runs.
2461# Also quote any args containing shell meta-characters.
2462# Make two passes to allow for proper duplicate-argument suppression.
2463ac_configure_args=
2464ac_configure_args0=
2465ac_configure_args1=
2466ac_must_keep_next=false
2467for ac_pass in 1 2
2468do
2469  for ac_arg
2470  do
2471    case $ac_arg in
2472    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2473    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2474    | -silent | --silent | --silen | --sile | --sil)
2475      continue ;;
2476    *\'*)
2477      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478    esac
2479    case $ac_pass in
2480    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2481    2)
2482      as_fn_append ac_configure_args1 " '$ac_arg'"
2483      if test $ac_must_keep_next = true; then
2484	ac_must_keep_next=false # Got value, back to normal.
2485      else
2486	case $ac_arg in
2487	  *=* | --config-cache | -C | -disable-* | --disable-* \
2488	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2489	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2490	  | -with-* | --with-* | -without-* | --without-* | --x)
2491	    case "$ac_configure_args0 " in
2492	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493	    esac
2494	    ;;
2495	  -* ) ac_must_keep_next=true ;;
2496	esac
2497      fi
2498      as_fn_append ac_configure_args " '$ac_arg'"
2499      ;;
2500    esac
2501  done
2502done
2503{ ac_configure_args0=; unset ac_configure_args0;}
2504{ ac_configure_args1=; unset ac_configure_args1;}
2505
2506# When interrupted or exit'd, cleanup temporary files, and complete
2507# config.log.  We remove comments because anyway the quotes in there
2508# would cause problems or look ugly.
2509# WARNING: Use '\'' to represent an apostrophe within the trap.
2510# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511trap 'exit_status=$?
2512  # Save into config.log some information that might help in debugging.
2513  {
2514    echo
2515
2516    cat <<\_ASBOX
2517## ---------------- ##
2518## Cache variables. ##
2519## ---------------- ##
2520_ASBOX
2521    echo
2522    # The following way of writing the cache mishandles newlines in values,
2523(
2524  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525    eval ac_val=\$$ac_var
2526    case $ac_val in #(
2527    *${as_nl}*)
2528      case $ac_var in #(
2529      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2531      esac
2532      case $ac_var in #(
2533      _ | IFS | as_nl) ;; #(
2534      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535      *) { eval $ac_var=; unset $ac_var;} ;;
2536      esac ;;
2537    esac
2538  done
2539  (set) 2>&1 |
2540    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541    *${as_nl}ac_space=\ *)
2542      sed -n \
2543	"s/'\''/'\''\\\\'\'''\''/g;
2544	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2545      ;; #(
2546    *)
2547      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2548      ;;
2549    esac |
2550    sort
2551)
2552    echo
2553
2554    cat <<\_ASBOX
2555## ----------------- ##
2556## Output variables. ##
2557## ----------------- ##
2558_ASBOX
2559    echo
2560    for ac_var in $ac_subst_vars
2561    do
2562      eval ac_val=\$$ac_var
2563      case $ac_val in
2564      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565      esac
2566      $as_echo "$ac_var='\''$ac_val'\''"
2567    done | sort
2568    echo
2569
2570    if test -n "$ac_subst_files"; then
2571      cat <<\_ASBOX
2572## ------------------- ##
2573## File substitutions. ##
2574## ------------------- ##
2575_ASBOX
2576      echo
2577      for ac_var in $ac_subst_files
2578      do
2579	eval ac_val=\$$ac_var
2580	case $ac_val in
2581	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582	esac
2583	$as_echo "$ac_var='\''$ac_val'\''"
2584      done | sort
2585      echo
2586    fi
2587
2588    if test -s confdefs.h; then
2589      cat <<\_ASBOX
2590## ----------- ##
2591## confdefs.h. ##
2592## ----------- ##
2593_ASBOX
2594      echo
2595      cat confdefs.h
2596      echo
2597    fi
2598    test "$ac_signal" != 0 &&
2599      $as_echo "$as_me: caught signal $ac_signal"
2600    $as_echo "$as_me: exit $exit_status"
2601  } >&5
2602  rm -f core *.core core.conftest.* &&
2603    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604    exit $exit_status
2605' 0
2606for ac_signal in 1 2 13 15; do
2607  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2608done
2609ac_signal=0
2610
2611# confdefs.h avoids OS command line length limits that DEFS can exceed.
2612rm -f -r conftest* confdefs.h
2613
2614$as_echo "/* confdefs.h */" > confdefs.h
2615
2616# Predefined preprocessor variables.
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_NAME "$PACKAGE_NAME"
2620_ACEOF
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624_ACEOF
2625
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_VERSION "$PACKAGE_VERSION"
2628_ACEOF
2629
2630cat >>confdefs.h <<_ACEOF
2631#define PACKAGE_STRING "$PACKAGE_STRING"
2632_ACEOF
2633
2634cat >>confdefs.h <<_ACEOF
2635#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636_ACEOF
2637
2638cat >>confdefs.h <<_ACEOF
2639#define PACKAGE_URL "$PACKAGE_URL"
2640_ACEOF
2641
2642
2643# Let the site file select an alternate cache file if it wants to.
2644# Prefer an explicitly selected file to automatically selected ones.
2645ac_site_file1=NONE
2646ac_site_file2=NONE
2647if test -n "$CONFIG_SITE"; then
2648  ac_site_file1=$CONFIG_SITE
2649elif test "x$prefix" != xNONE; then
2650  ac_site_file1=$prefix/share/config.site
2651  ac_site_file2=$prefix/etc/config.site
2652else
2653  ac_site_file1=$ac_default_prefix/share/config.site
2654  ac_site_file2=$ac_default_prefix/etc/config.site
2655fi
2656for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2657do
2658  test "x$ac_site_file" = xNONE && continue
2659  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2660    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662    sed 's/^/| /' "$ac_site_file" >&5
2663    . "$ac_site_file"
2664  fi
2665done
2666
2667if test -r "$cache_file"; then
2668  # Some versions of bash will fail to source /dev/null (special files
2669  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2670  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2671    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2672$as_echo "$as_me: loading cache $cache_file" >&6;}
2673    case $cache_file in
2674      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2675      *)                      . "./$cache_file";;
2676    esac
2677  fi
2678else
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2680$as_echo "$as_me: creating cache $cache_file" >&6;}
2681  >$cache_file
2682fi
2683
2684gt_needs="$gt_needs "
2685# Check that the precious variables saved in the cache have kept the same
2686# value.
2687ac_cache_corrupted=false
2688for ac_var in $ac_precious_vars; do
2689  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2690  eval ac_new_set=\$ac_env_${ac_var}_set
2691  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2692  eval ac_new_val=\$ac_env_${ac_var}_value
2693  case $ac_old_set,$ac_new_set in
2694    set,)
2695      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2696$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2697      ac_cache_corrupted=: ;;
2698    ,set)
2699      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2700$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2701      ac_cache_corrupted=: ;;
2702    ,);;
2703    *)
2704      if test "x$ac_old_val" != "x$ac_new_val"; then
2705	# differences in whitespace do not lead to failure.
2706	ac_old_val_w=`echo x $ac_old_val`
2707	ac_new_val_w=`echo x $ac_new_val`
2708	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2709	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2710$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2711	  ac_cache_corrupted=:
2712	else
2713	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2714$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2715	  eval $ac_var=\$ac_old_val
2716	fi
2717	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2718$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2719	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2720$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2721      fi;;
2722  esac
2723  # Pass precious variables to config.status.
2724  if test "$ac_new_set" = set; then
2725    case $ac_new_val in
2726    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2727    *) ac_arg=$ac_var=$ac_new_val ;;
2728    esac
2729    case " $ac_configure_args " in
2730      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2731      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2732    esac
2733  fi
2734done
2735if $ac_cache_corrupted; then
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2739$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2740  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2741fi
2742## -------------------- ##
2743## Main body of script. ##
2744## -------------------- ##
2745
2746ac_ext=c
2747ac_cpp='$CPP $CPPFLAGS'
2748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752
2753
2754
2755ac_config_headers="$ac_config_headers config.h"
2756
2757am__api_version='1.11'
2758
2759ac_aux_dir=
2760for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2761  for ac_t in install-sh install.sh shtool; do
2762    if test -f "$ac_dir/$ac_t"; then
2763      ac_aux_dir=$ac_dir
2764      ac_install_sh="$ac_aux_dir/$ac_t -c"
2765      break 2
2766    fi
2767  done
2768done
2769if test -z "$ac_aux_dir"; then
2770  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2771fi
2772
2773# These three variables are undocumented and unsupported,
2774# and are intended to be withdrawn in a future Autoconf release.
2775# They can cause serious problems if a builder's source tree is in a directory
2776# whose full name contains unusual characters.
2777ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2778ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2779ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2780
2781
2782# Find a good install program.  We prefer a C program (faster),
2783# so one script is as good as another.  But avoid the broken or
2784# incompatible versions:
2785# SysV /etc/install, /usr/sbin/install
2786# SunOS /usr/etc/install
2787# IRIX /sbin/install
2788# AIX /bin/install
2789# AmigaOS /C/install, which installs bootblocks on floppy discs
2790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2793# OS/2's system install, which has a completely different semantic
2794# ./install, which can be erroneously created by make from ./install.sh.
2795# Reject install programs that cannot install multiple files.
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2797$as_echo_n "checking for a BSD-compatible install... " >&6; }
2798if test -z "$INSTALL"; then
2799if test "${ac_cv_path_install+set}" = set; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    # Account for people who put trailing slashes in PATH elements.
2808case $as_dir/ in #((
2809  ./ | .// | /[cC]/* | \
2810  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2811  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2812  /usr/ucb/* ) ;;
2813  *)
2814    # OSF1 and SCO ODT 3.0 have their own names for install.
2815    # Don't use installbsd from OSF since it installs stuff as root
2816    # by default.
2817    for ac_prog in ginstall scoinst install; do
2818      for ac_exec_ext in '' $ac_executable_extensions; do
2819	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2820	  if test $ac_prog = install &&
2821	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822	    # AIX install.  It has an incompatible calling convention.
2823	    :
2824	  elif test $ac_prog = install &&
2825	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2826	    # program-specific install script used by HP pwplus--don't use.
2827	    :
2828	  else
2829	    rm -rf conftest.one conftest.two conftest.dir
2830	    echo one > conftest.one
2831	    echo two > conftest.two
2832	    mkdir conftest.dir
2833	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2834	      test -s conftest.one && test -s conftest.two &&
2835	      test -s conftest.dir/conftest.one &&
2836	      test -s conftest.dir/conftest.two
2837	    then
2838	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2839	      break 3
2840	    fi
2841	  fi
2842	fi
2843      done
2844    done
2845    ;;
2846esac
2847
2848  done
2849IFS=$as_save_IFS
2850
2851rm -rf conftest.one conftest.two conftest.dir
2852
2853fi
2854  if test "${ac_cv_path_install+set}" = set; then
2855    INSTALL=$ac_cv_path_install
2856  else
2857    # As a last resort, use the slow shell script.  Don't cache a
2858    # value for INSTALL within a source directory, because that will
2859    # break other packages using the cache if that directory is
2860    # removed, or if the value is a relative name.
2861    INSTALL=$ac_install_sh
2862  fi
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2865$as_echo "$INSTALL" >&6; }
2866
2867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2868# It thinks the first close brace ends the variable substitution.
2869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2870
2871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2872
2873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2874
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2876$as_echo_n "checking whether build environment is sane... " >&6; }
2877# Just in case
2878sleep 1
2879echo timestamp > conftest.file
2880# Reject unsafe characters in $srcdir or the absolute working directory
2881# name.  Accept space and tab only in the latter.
2882am_lf='
2883'
2884case `pwd` in
2885  *[\\\"\#\$\&\'\`$am_lf]*)
2886    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2887esac
2888case $srcdir in
2889  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2890    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2891esac
2892
2893# Do `set' in a subshell so we don't clobber the current shell's
2894# arguments.  Must try -L first in case configure is actually a
2895# symlink; some systems play weird games with the mod time of symlinks
2896# (eg FreeBSD returns the mod time of the symlink's containing
2897# directory).
2898if (
2899   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2900   if test "$*" = "X"; then
2901      # -L didn't work.
2902      set X `ls -t "$srcdir/configure" conftest.file`
2903   fi
2904   rm -f conftest.file
2905   if test "$*" != "X $srcdir/configure conftest.file" \
2906      && test "$*" != "X conftest.file $srcdir/configure"; then
2907
2908      # If neither matched, then we have a broken ls.  This can happen
2909      # if, for instance, CONFIG_SHELL is bash and it inherits a
2910      # broken ls alias from the environment.  This has actually
2911      # happened.  Such a system could not be considered "sane".
2912      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2913alias in your environment" "$LINENO" 5
2914   fi
2915
2916   test "$2" = conftest.file
2917   )
2918then
2919   # Ok.
2920   :
2921else
2922   as_fn_error "newly created file is older than distributed files!
2923Check your system clock" "$LINENO" 5
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926$as_echo "yes" >&6; }
2927test "$program_prefix" != NONE &&
2928  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2929# Use a double $ so make ignores it.
2930test "$program_suffix" != NONE &&
2931  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2932# Double any \ or $.
2933# By default was `s,x,x', remove it if useless.
2934ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2935program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2936
2937# expand $ac_aux_dir to an absolute path
2938am_aux_dir=`cd $ac_aux_dir && pwd`
2939
2940if test x"${MISSING+set}" != xset; then
2941  case $am_aux_dir in
2942  *\ * | *\	*)
2943    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2944  *)
2945    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2946  esac
2947fi
2948# Use eval to expand $SHELL
2949if eval "$MISSING --run true"; then
2950  am_missing_run="$MISSING --run "
2951else
2952  am_missing_run=
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2954$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2955fi
2956
2957if test x"${install_sh}" != xset; then
2958  case $am_aux_dir in
2959  *\ * | *\	*)
2960    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2961  *)
2962    install_sh="\${SHELL} $am_aux_dir/install-sh"
2963  esac
2964fi
2965
2966# Installed binaries are usually stripped using `strip' when the user
2967# run `make install-strip'.  However `strip' might not be the right
2968# tool to use in cross-compilation environments, therefore Automake
2969# will honor the `STRIP' environment variable to overrule this program.
2970if test "$cross_compiling" != no; then
2971  if test -n "$ac_tool_prefix"; then
2972  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}strip; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if test "${ac_cv_prog_STRIP+set}" = set; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  if test -n "$STRIP"; then
2980  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987    for ac_exec_ext in '' $ac_executable_extensions; do
2988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994  done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999STRIP=$ac_cv_prog_STRIP
3000if test -n "$STRIP"; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3002$as_echo "$STRIP" >&6; }
3003else
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008
3009fi
3010if test -z "$ac_cv_prog_STRIP"; then
3011  ac_ct_STRIP=$STRIP
3012  # Extract the first word of "strip", so it can be a program name with args.
3013set dummy strip; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$ac_ct_STRIP"; then
3020  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_ac_ct_STRIP="strip"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3040if test -n "$ac_ct_STRIP"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3042$as_echo "$ac_ct_STRIP" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048  if test "x$ac_ct_STRIP" = x; then
3049    STRIP=":"
3050  else
3051    case $cross_compiling:$ac_tool_warned in
3052yes:)
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055ac_tool_warned=yes ;;
3056esac
3057    STRIP=$ac_ct_STRIP
3058  fi
3059else
3060  STRIP="$ac_cv_prog_STRIP"
3061fi
3062
3063fi
3064INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3065
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3067$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3068if test -z "$MKDIR_P"; then
3069  if test "${ac_cv_path_mkdir+set}" = set; then :
3070  $as_echo_n "(cached) " >&6
3071else
3072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_prog in mkdir gmkdir; do
3078	 for ac_exec_ext in '' $ac_executable_extensions; do
3079	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3080	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3081	     'mkdir (GNU coreutils) '* | \
3082	     'mkdir (coreutils) '* | \
3083	     'mkdir (fileutils) '4.1*)
3084	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3085	       break 3;;
3086	   esac
3087	 done
3088       done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093
3094  test -d ./--version && rmdir ./--version
3095  if test "${ac_cv_path_mkdir+set}" = set; then
3096    MKDIR_P="$ac_cv_path_mkdir -p"
3097  else
3098    # As a last resort, use the slow shell script.  Don't cache a
3099    # value for MKDIR_P within a source directory, because that will
3100    # break other packages using the cache if that directory is
3101    # removed, or if the value is a relative name.
3102    MKDIR_P="$ac_install_sh -d"
3103  fi
3104fi
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3106$as_echo "$MKDIR_P" >&6; }
3107
3108mkdir_p="$MKDIR_P"
3109case $mkdir_p in
3110  [\\/$]* | ?:[\\/]*) ;;
3111  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3112esac
3113
3114for ac_prog in gawk mawk nawk awk
3115do
3116  # Extract the first word of "$ac_prog", so it can be a program name with args.
3117set dummy $ac_prog; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if test "${ac_cv_prog_AWK+set}" = set; then :
3121  $as_echo_n "(cached) " >&6
3122else
3123  if test -n "$AWK"; then
3124  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  test -z "$as_dir" && as_dir=.
3131    for ac_exec_ext in '' $ac_executable_extensions; do
3132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133    ac_cv_prog_AWK="$ac_prog"
3134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138  done
3139IFS=$as_save_IFS
3140
3141fi
3142fi
3143AWK=$ac_cv_prog_AWK
3144if test -n "$AWK"; then
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3146$as_echo "$AWK" >&6; }
3147else
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152
3153  test -n "$AWK" && break
3154done
3155
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3157$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3158set x ${MAKE-make}
3159ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3160if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  cat >conftest.make <<\_ACEOF
3164SHELL = /bin/sh
3165all:
3166	@echo '@@@%%%=$(MAKE)=@@@%%%'
3167_ACEOF
3168# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3169case `${MAKE-make} -f conftest.make 2>/dev/null` in
3170  *@@@%%%=?*=@@@%%%*)
3171    eval ac_cv_prog_make_${ac_make}_set=yes;;
3172  *)
3173    eval ac_cv_prog_make_${ac_make}_set=no;;
3174esac
3175rm -f conftest.make
3176fi
3177if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
3180  SET_MAKE=
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184  SET_MAKE="MAKE=${MAKE-make}"
3185fi
3186
3187rm -rf .tst 2>/dev/null
3188mkdir .tst 2>/dev/null
3189if test -d .tst; then
3190  am__leading_dot=.
3191else
3192  am__leading_dot=_
3193fi
3194rmdir .tst 2>/dev/null
3195
3196if test "`cd $srcdir && pwd`" != "`pwd`"; then
3197  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3198  # is not polluted with repeated "-I."
3199  am__isrc=' -I$(srcdir)'
3200  # test to see if srcdir already configured
3201  if test -f $srcdir/config.status; then
3202    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3203  fi
3204fi
3205
3206# test whether we have cygpath
3207if test -z "$CYGPATH_W"; then
3208  if (cygpath --version) >/dev/null 2>/dev/null; then
3209    CYGPATH_W='cygpath -w'
3210  else
3211    CYGPATH_W=echo
3212  fi
3213fi
3214
3215
3216# Define the identity of the package.
3217 PACKAGE='opendbx'
3218 VERSION='1.4.6'
3219
3220
3221cat >>confdefs.h <<_ACEOF
3222#define PACKAGE "$PACKAGE"
3223_ACEOF
3224
3225
3226cat >>confdefs.h <<_ACEOF
3227#define VERSION "$VERSION"
3228_ACEOF
3229
3230# Some tools Automake needs.
3231
3232ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3233
3234
3235AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3236
3237
3238AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3239
3240
3241AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3242
3243
3244MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3245
3246# We need awk for the "check" target.  The system "awk" is bad on
3247# some platforms.
3248# Always define AMTAR for backward compatibility.
3249
3250AMTAR=${AMTAR-"${am_missing_run}tar"}
3251
3252am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3253
3254
3255
3256
3257
3258
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3260$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3261    # Check whether --enable-maintainer-mode was given.
3262if test "${enable_maintainer_mode+set}" = set; then :
3263  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3264else
3265  USE_MAINTAINER_MODE=no
3266fi
3267
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3269$as_echo "$USE_MAINTAINER_MODE" >&6; }
3270   if test $USE_MAINTAINER_MODE = yes; then
3271  MAINTAINER_MODE_TRUE=
3272  MAINTAINER_MODE_FALSE='#'
3273else
3274  MAINTAINER_MODE_TRUE='#'
3275  MAINTAINER_MODE_FALSE=
3276fi
3277
3278  MAINT=$MAINTAINER_MODE_TRUE
3279
3280
3281
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3283$as_echo_n "checking whether NLS is requested... " >&6; }
3284    # Check whether --enable-nls was given.
3285if test "${enable_nls+set}" = set; then :
3286  enableval=$enable_nls; USE_NLS=$enableval
3287else
3288  USE_NLS=yes
3289fi
3290
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3292$as_echo "$USE_NLS" >&6; }
3293
3294
3295
3296
3297      GETTEXT_MACRO_VERSION=0.17
3298
3299
3300
3301
3302# Prepare PATH_SEPARATOR.
3303# The user is always right.
3304if test "${PATH_SEPARATOR+set}" != set; then
3305  echo "#! /bin/sh" >conf$$.sh
3306  echo  "exit 0"   >>conf$$.sh
3307  chmod +x conf$$.sh
3308  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3309    PATH_SEPARATOR=';'
3310  else
3311    PATH_SEPARATOR=:
3312  fi
3313  rm -f conf$$.sh
3314fi
3315
3316# Find out how to test for executable files. Don't use a zero-byte file,
3317# as systems may use methods other than mode bits to determine executability.
3318cat >conf$$.file <<_ASEOF
3319#! /bin/sh
3320exit 0
3321_ASEOF
3322chmod +x conf$$.file
3323if test -x conf$$.file >/dev/null 2>&1; then
3324  ac_executable_p="test -x"
3325else
3326  ac_executable_p="test -f"
3327fi
3328rm -f conf$$.file
3329
3330# Extract the first word of "msgfmt", so it can be a program name with args.
3331set dummy msgfmt; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if test "${ac_cv_path_MSGFMT+set}" = set; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  case "$MSGFMT" in
3338  [\\/]* | ?:[\\/]*)
3339    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3340    ;;
3341  *)
3342    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3343    for ac_dir in $PATH; do
3344      IFS="$ac_save_IFS"
3345      test -z "$ac_dir" && ac_dir=.
3346      for ac_exec_ext in '' $ac_executable_extensions; do
3347        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3348          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3349          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3350     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3351            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3352            break 2
3353          fi
3354        fi
3355      done
3356    done
3357    IFS="$ac_save_IFS"
3358  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3359    ;;
3360esac
3361fi
3362MSGFMT="$ac_cv_path_MSGFMT"
3363if test "$MSGFMT" != ":"; then
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3365$as_echo "$MSGFMT" >&6; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3372set dummy gmsgfmt; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if test "${ac_cv_path_GMSGFMT+set}" = set; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  case $GMSGFMT in
3379  [\\/]* | ?:[\\/]*)
3380  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3381  ;;
3382  *)
3383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  test -z "$as_dir" && as_dir=.
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3399  ;;
3400esac
3401fi
3402GMSGFMT=$ac_cv_path_GMSGFMT
3403if test -n "$GMSGFMT"; then
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3405$as_echo "$GMSGFMT" >&6; }
3406else
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412
3413    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3414    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3415    *) MSGFMT_015=$MSGFMT ;;
3416  esac
3417
3418  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3419    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3420    *) GMSGFMT_015=$GMSGFMT ;;
3421  esac
3422
3423
3424
3425# Prepare PATH_SEPARATOR.
3426# The user is always right.
3427if test "${PATH_SEPARATOR+set}" != set; then
3428  echo "#! /bin/sh" >conf$$.sh
3429  echo  "exit 0"   >>conf$$.sh
3430  chmod +x conf$$.sh
3431  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3432    PATH_SEPARATOR=';'
3433  else
3434    PATH_SEPARATOR=:
3435  fi
3436  rm -f conf$$.sh
3437fi
3438
3439# Find out how to test for executable files. Don't use a zero-byte file,
3440# as systems may use methods other than mode bits to determine executability.
3441cat >conf$$.file <<_ASEOF
3442#! /bin/sh
3443exit 0
3444_ASEOF
3445chmod +x conf$$.file
3446if test -x conf$$.file >/dev/null 2>&1; then
3447  ac_executable_p="test -x"
3448else
3449  ac_executable_p="test -f"
3450fi
3451rm -f conf$$.file
3452
3453# Extract the first word of "xgettext", so it can be a program name with args.
3454set dummy xgettext; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if test "${ac_cv_path_XGETTEXT+set}" = set; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  case "$XGETTEXT" in
3461  [\\/]* | ?:[\\/]*)
3462    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3463    ;;
3464  *)
3465    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3466    for ac_dir in $PATH; do
3467      IFS="$ac_save_IFS"
3468      test -z "$ac_dir" && ac_dir=.
3469      for ac_exec_ext in '' $ac_executable_extensions; do
3470        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3471          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3472          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3473     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3474            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3475            break 2
3476          fi
3477        fi
3478      done
3479    done
3480    IFS="$ac_save_IFS"
3481  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3482    ;;
3483esac
3484fi
3485XGETTEXT="$ac_cv_path_XGETTEXT"
3486if test "$XGETTEXT" != ":"; then
3487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3488$as_echo "$XGETTEXT" >&6; }
3489else
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492fi
3493
3494    rm -f messages.po
3495
3496    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3497    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3498    *) XGETTEXT_015=$XGETTEXT ;;
3499  esac
3500
3501
3502
3503# Prepare PATH_SEPARATOR.
3504# The user is always right.
3505if test "${PATH_SEPARATOR+set}" != set; then
3506  echo "#! /bin/sh" >conf$$.sh
3507  echo  "exit 0"   >>conf$$.sh
3508  chmod +x conf$$.sh
3509  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3510    PATH_SEPARATOR=';'
3511  else
3512    PATH_SEPARATOR=:
3513  fi
3514  rm -f conf$$.sh
3515fi
3516
3517# Find out how to test for executable files. Don't use a zero-byte file,
3518# as systems may use methods other than mode bits to determine executability.
3519cat >conf$$.file <<_ASEOF
3520#! /bin/sh
3521exit 0
3522_ASEOF
3523chmod +x conf$$.file
3524if test -x conf$$.file >/dev/null 2>&1; then
3525  ac_executable_p="test -x"
3526else
3527  ac_executable_p="test -f"
3528fi
3529rm -f conf$$.file
3530
3531# Extract the first word of "msgmerge", so it can be a program name with args.
3532set dummy msgmerge; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  case "$MSGMERGE" in
3539  [\\/]* | ?:[\\/]*)
3540    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3541    ;;
3542  *)
3543    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3544    for ac_dir in $PATH; do
3545      IFS="$ac_save_IFS"
3546      test -z "$ac_dir" && ac_dir=.
3547      for ac_exec_ext in '' $ac_executable_extensions; do
3548        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3549          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3550          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3551            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3552            break 2
3553          fi
3554        fi
3555      done
3556    done
3557    IFS="$ac_save_IFS"
3558  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3559    ;;
3560esac
3561fi
3562MSGMERGE="$ac_cv_path_MSGMERGE"
3563if test "$MSGMERGE" != ":"; then
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3565$as_echo "$MSGMERGE" >&6; }
3566else
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572        test -n "$localedir" || localedir='${datadir}/locale'
3573
3574
3575    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3576
3577
3578  ac_config_commands="$ac_config_commands po-directories"
3579
3580
3581
3582      if test "X$prefix" = "XNONE"; then
3583    acl_final_prefix="$ac_default_prefix"
3584  else
3585    acl_final_prefix="$prefix"
3586  fi
3587  if test "X$exec_prefix" = "XNONE"; then
3588    acl_final_exec_prefix='${prefix}'
3589  else
3590    acl_final_exec_prefix="$exec_prefix"
3591  fi
3592  acl_save_prefix="$prefix"
3593  prefix="$acl_final_prefix"
3594  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3595  prefix="$acl_save_prefix"
3596
3597DEPDIR="${am__leading_dot}deps"
3598
3599ac_config_commands="$ac_config_commands depfiles"
3600
3601
3602am_make=${MAKE-make}
3603cat > confinc << 'END'
3604am__doit:
3605	@echo this is the am__doit target
3606.PHONY: am__doit
3607END
3608# If we don't find an include directive, just comment out the code.
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3610$as_echo_n "checking for style of include used by $am_make... " >&6; }
3611am__include="#"
3612am__quote=
3613_am_result=none
3614# First try GNU make style include.
3615echo "include confinc" > confmf
3616# Ignore all kinds of additional output from `make'.
3617case `$am_make -s -f confmf 2> /dev/null` in #(
3618*the\ am__doit\ target*)
3619  am__include=include
3620  am__quote=
3621  _am_result=GNU
3622  ;;
3623esac
3624# Now try BSD make style include.
3625if test "$am__include" = "#"; then
3626   echo '.include "confinc"' > confmf
3627   case `$am_make -s -f confmf 2> /dev/null` in #(
3628   *the\ am__doit\ target*)
3629     am__include=.include
3630     am__quote="\""
3631     _am_result=BSD
3632     ;;
3633   esac
3634fi
3635
3636
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3638$as_echo "$_am_result" >&6; }
3639rm -f confinc confmf
3640
3641# Check whether --enable-dependency-tracking was given.
3642if test "${enable_dependency_tracking+set}" = set; then :
3643  enableval=$enable_dependency_tracking;
3644fi
3645
3646if test "x$enable_dependency_tracking" != xno; then
3647  am_depcomp="$ac_aux_dir/depcomp"
3648  AMDEPBACKSLASH='\'
3649fi
3650 if test "x$enable_dependency_tracking" != xno; then
3651  AMDEP_TRUE=
3652  AMDEP_FALSE='#'
3653else
3654  AMDEP_TRUE='#'
3655  AMDEP_FALSE=
3656fi
3657
3658
3659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664if test -n "$ac_tool_prefix"; then
3665  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3666set dummy ${ac_tool_prefix}gcc; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if test "${ac_cv_prog_CC+set}" = set; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  if test -n "$CC"; then
3673  ac_cv_prog_CC="$CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678  IFS=$as_save_IFS
3679  test -z "$as_dir" && as_dir=.
3680    for ac_exec_ext in '' $ac_executable_extensions; do
3681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684    break 2
3685  fi
3686done
3687  done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695$as_echo "$CC" >&6; }
3696else
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702fi
3703if test -z "$ac_cv_prog_CC"; then
3704  ac_ct_CC=$CC
3705  # Extract the first word of "gcc", so it can be a program name with args.
3706set dummy gcc; ac_word=$2
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708$as_echo_n "checking for $ac_word... " >&6; }
3709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3710  $as_echo_n "(cached) " >&6
3711else
3712  if test -n "$ac_ct_CC"; then
3713  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714else
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH
3717do
3718  IFS=$as_save_IFS
3719  test -z "$as_dir" && as_dir=.
3720    for ac_exec_ext in '' $ac_executable_extensions; do
3721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722    ac_cv_prog_ac_ct_CC="gcc"
3723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724    break 2
3725  fi
3726done
3727  done
3728IFS=$as_save_IFS
3729
3730fi
3731fi
3732ac_ct_CC=$ac_cv_prog_ac_ct_CC
3733if test -n "$ac_ct_CC"; then
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3735$as_echo "$ac_ct_CC" >&6; }
3736else
3737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738$as_echo "no" >&6; }
3739fi
3740
3741  if test "x$ac_ct_CC" = x; then
3742    CC=""
3743  else
3744    case $cross_compiling:$ac_tool_warned in
3745yes:)
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3748ac_tool_warned=yes ;;
3749esac
3750    CC=$ac_ct_CC
3751  fi
3752else
3753  CC="$ac_cv_prog_CC"
3754fi
3755
3756if test -z "$CC"; then
3757          if test -n "$ac_tool_prefix"; then
3758    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3759set dummy ${ac_tool_prefix}cc; ac_word=$2
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761$as_echo_n "checking for $ac_word... " >&6; }
3762if test "${ac_cv_prog_CC+set}" = set; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  if test -n "$CC"; then
3766  ac_cv_prog_CC="$CC" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  test -z "$as_dir" && as_dir=.
3773    for ac_exec_ext in '' $ac_executable_extensions; do
3774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775    ac_cv_prog_CC="${ac_tool_prefix}cc"
3776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777    break 2
3778  fi
3779done
3780  done
3781IFS=$as_save_IFS
3782
3783fi
3784fi
3785CC=$ac_cv_prog_CC
3786if test -n "$CC"; then
3787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788$as_echo "$CC" >&6; }
3789else
3790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
3792fi
3793
3794
3795  fi
3796fi
3797if test -z "$CC"; then
3798  # Extract the first word of "cc", so it can be a program name with args.
3799set dummy cc; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if test "${ac_cv_prog_CC+set}" = set; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$CC"; then
3806  ac_cv_prog_CC="$CC" # Let the user override the test.
3807else
3808  ac_prog_rejected=no
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812  IFS=$as_save_IFS
3813  test -z "$as_dir" && as_dir=.
3814    for ac_exec_ext in '' $ac_executable_extensions; do
3815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3817       ac_prog_rejected=yes
3818       continue
3819     fi
3820    ac_cv_prog_CC="cc"
3821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822    break 2
3823  fi
3824done
3825  done
3826IFS=$as_save_IFS
3827
3828if test $ac_prog_rejected = yes; then
3829  # We found a bogon in the path, so make sure we never use it.
3830  set dummy $ac_cv_prog_CC
3831  shift
3832  if test $# != 0; then
3833    # We chose a different compiler from the bogus one.
3834    # However, it has the same basename, so the bogon will be chosen
3835    # first if we set CC to just the basename; use the full file name.
3836    shift
3837    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3838  fi
3839fi
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852fi
3853if test -z "$CC"; then
3854  if test -n "$ac_tool_prefix"; then
3855  for ac_prog in cl.exe
3856  do
3857    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3858set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if test "${ac_cv_prog_CC+set}" = set; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  if test -n "$CC"; then
3865  ac_cv_prog_CC="$CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  test -z "$as_dir" && as_dir=.
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884CC=$ac_cv_prog_CC
3885if test -n "$CC"; then
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887$as_echo "$CC" >&6; }
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894    test -n "$CC" && break
3895  done
3896fi
3897if test -z "$CC"; then
3898  ac_ct_CC=$CC
3899  for ac_prog in cl.exe
3900do
3901  # Extract the first word of "$ac_prog", so it can be a program name with args.
3902set dummy $ac_prog; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$ac_ct_CC"; then
3909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918    ac_cv_prog_ac_ct_CC="$ac_prog"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928ac_ct_CC=$ac_cv_prog_ac_ct_CC
3929if test -n "$ac_ct_CC"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3931$as_echo "$ac_ct_CC" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938  test -n "$ac_ct_CC" && break
3939done
3940
3941  if test "x$ac_ct_CC" = x; then
3942    CC=""
3943  else
3944    case $cross_compiling:$ac_tool_warned in
3945yes:)
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948ac_tool_warned=yes ;;
3949esac
3950    CC=$ac_ct_CC
3951  fi
3952fi
3953
3954fi
3955
3956
3957test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error "no acceptable C compiler found in \$PATH
3960See \`config.log' for more details." "$LINENO" 5; }
3961
3962# Provide some information about the compiler.
3963$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3964set X $ac_compile
3965ac_compiler=$2
3966for ac_option in --version -v -V -qversion; do
3967  { { ac_try="$ac_compiler $ac_option >&5"
3968case "(($ac_try" in
3969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970  *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973$as_echo "$ac_try_echo"; } >&5
3974  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3975  ac_status=$?
3976  if test -s conftest.err; then
3977    sed '10a\
3978... rest of stderr output deleted ...
3979         10q' conftest.err >conftest.er1
3980    cat conftest.er1 >&5
3981  fi
3982  rm -f conftest.er1 conftest.err
3983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984  test $ac_status = 0; }
3985done
3986
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989
3990int
3991main ()
3992{
3993
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998ac_clean_files_save=$ac_clean_files
3999ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4000# Try to create an executable without -o first, disregard a.out.
4001# It will help us diagnose broken compilers, and finding out an intuition
4002# of exeext.
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4004$as_echo_n "checking whether the C compiler works... " >&6; }
4005ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4006
4007# The possible output files:
4008ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4009
4010ac_rmfiles=
4011for ac_file in $ac_files
4012do
4013  case $ac_file in
4014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4015    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4016  esac
4017done
4018rm -f $ac_rmfiles
4019
4020if { { ac_try="$ac_link_default"
4021case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026$as_echo "$ac_try_echo"; } >&5
4027  (eval "$ac_link_default") 2>&5
4028  ac_status=$?
4029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030  test $ac_status = 0; }; then :
4031  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4033# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4034# so that the user can short-circuit this test for compilers unknown to
4035# Autoconf.
4036for ac_file in $ac_files ''
4037do
4038  test -f "$ac_file" || continue
4039  case $ac_file in
4040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4041	;;
4042    [ab].out )
4043	# We found the default executable, but exeext='' is most
4044	# certainly right.
4045	break;;
4046    *.* )
4047	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4048	then :; else
4049	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4050	fi
4051	# We set ac_cv_exeext here because the later test for it is not
4052	# safe: cross compilers may not add the suffix if given an `-o'
4053	# argument, so we may need to know it at that point already.
4054	# Even if this section looks crufty: it has the advantage of
4055	# actually working.
4056	break;;
4057    * )
4058	break;;
4059  esac
4060done
4061test "$ac_cv_exeext" = no && ac_cv_exeext=
4062
4063else
4064  ac_file=''
4065fi
4066if test -z "$ac_file"; then :
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069$as_echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074{ as_fn_set_status 77
4075as_fn_error "C compiler cannot create executables
4076See \`config.log' for more details." "$LINENO" 5; }; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079$as_echo "yes" >&6; }
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082$as_echo_n "checking for C compiler default output file name... " >&6; }
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4084$as_echo "$ac_file" >&6; }
4085ac_exeext=$ac_cv_exeext
4086
4087rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4088ac_clean_files=$ac_clean_files_save
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4090$as_echo_n "checking for suffix of executables... " >&6; }
4091if { { ac_try="$ac_link"
4092case "(($ac_try" in
4093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094  *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097$as_echo "$ac_try_echo"; } >&5
4098  (eval "$ac_link") 2>&5
4099  ac_status=$?
4100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101  test $ac_status = 0; }; then :
4102  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4103# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4104# work properly (i.e., refer to `conftest.exe'), while it won't with
4105# `rm'.
4106for ac_file in conftest.exe conftest conftest.*; do
4107  test -f "$ac_file" || continue
4108  case $ac_file in
4109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4110    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4111	  break;;
4112    * ) break;;
4113  esac
4114done
4115else
4116  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118as_fn_error "cannot compute suffix of executables: cannot compile and link
4119See \`config.log' for more details." "$LINENO" 5; }
4120fi
4121rm -f conftest conftest$ac_cv_exeext
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4123$as_echo "$ac_cv_exeext" >&6; }
4124
4125rm -f conftest.$ac_ext
4126EXEEXT=$ac_cv_exeext
4127ac_exeext=$EXEEXT
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <stdio.h>
4131int
4132main ()
4133{
4134FILE *f = fopen ("conftest.out", "w");
4135 return ferror (f) || fclose (f) != 0;
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141ac_clean_files="$ac_clean_files conftest.out"
4142# Check that the compiler produces executables we can run.  If not, either
4143# the compiler is broken, or we cross compile.
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4145$as_echo_n "checking whether we are cross compiling... " >&6; }
4146if test "$cross_compiling" != yes; then
4147  { { ac_try="$ac_link"
4148case "(($ac_try" in
4149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150  *) ac_try_echo=$ac_try;;
4151esac
4152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153$as_echo "$ac_try_echo"; } >&5
4154  (eval "$ac_link") 2>&5
4155  ac_status=$?
4156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157  test $ac_status = 0; }
4158  if { ac_try='./conftest$ac_cv_exeext'
4159  { { case "(($ac_try" in
4160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161  *) ac_try_echo=$ac_try;;
4162esac
4163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164$as_echo "$ac_try_echo"; } >&5
4165  (eval "$ac_try") 2>&5
4166  ac_status=$?
4167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168  test $ac_status = 0; }; }; then
4169    cross_compiling=no
4170  else
4171    if test "$cross_compiling" = maybe; then
4172	cross_compiling=yes
4173    else
4174	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error "cannot run C compiled programs.
4177If you meant to cross compile, use \`--host'.
4178See \`config.log' for more details." "$LINENO" 5; }
4179    fi
4180  fi
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4183$as_echo "$cross_compiling" >&6; }
4184
4185rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4186ac_clean_files=$ac_clean_files_save
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4188$as_echo_n "checking for suffix of object files... " >&6; }
4189if test "${ac_cv_objext+set}" = set; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203rm -f conftest.o conftest.obj
4204if { { ac_try="$ac_compile"
4205case "(($ac_try" in
4206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207  *) ac_try_echo=$ac_try;;
4208esac
4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210$as_echo "$ac_try_echo"; } >&5
4211  (eval "$ac_compile") 2>&5
4212  ac_status=$?
4213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214  test $ac_status = 0; }; then :
4215  for ac_file in conftest.o conftest.obj conftest.*; do
4216  test -f "$ac_file" || continue;
4217  case $ac_file in
4218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4219    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4220       break;;
4221  esac
4222done
4223else
4224  $as_echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229as_fn_error "cannot compute suffix of object files: cannot compile
4230See \`config.log' for more details." "$LINENO" 5; }
4231fi
4232rm -f conftest.$ac_cv_objext conftest.$ac_ext
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4235$as_echo "$ac_cv_objext" >&6; }
4236OBJEXT=$ac_cv_objext
4237ac_objext=$OBJEXT
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4239$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4240if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4241  $as_echo_n "(cached) " >&6
4242else
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245
4246int
4247main ()
4248{
4249#ifndef __GNUC__
4250       choke me
4251#endif
4252
4253  ;
4254  return 0;
4255}
4256_ACEOF
4257if ac_fn_c_try_compile "$LINENO"; then :
4258  ac_compiler_gnu=yes
4259else
4260  ac_compiler_gnu=no
4261fi
4262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263ac_cv_c_compiler_gnu=$ac_compiler_gnu
4264
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4267$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4268if test $ac_compiler_gnu = yes; then
4269  GCC=yes
4270else
4271  GCC=
4272fi
4273ac_test_CFLAGS=${CFLAGS+set}
4274ac_save_CFLAGS=$CFLAGS
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4276$as_echo_n "checking whether $CC accepts -g... " >&6; }
4277if test "${ac_cv_prog_cc_g+set}" = set; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  ac_save_c_werror_flag=$ac_c_werror_flag
4281   ac_c_werror_flag=yes
4282   ac_cv_prog_cc_g=no
4283   CFLAGS="-g"
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287int
4288main ()
4289{
4290
4291  ;
4292  return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296  ac_cv_prog_cc_g=yes
4297else
4298  CFLAGS=""
4299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301
4302int
4303main ()
4304{
4305
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310if ac_fn_c_try_compile "$LINENO"; then :
4311
4312else
4313  ac_c_werror_flag=$ac_save_c_werror_flag
4314	 CFLAGS="-g"
4315	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317
4318int
4319main ()
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"; then :
4327  ac_cv_prog_cc_g=yes
4328fi
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334   ac_c_werror_flag=$ac_save_c_werror_flag
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4337$as_echo "$ac_cv_prog_cc_g" >&6; }
4338if test "$ac_test_CFLAGS" = set; then
4339  CFLAGS=$ac_save_CFLAGS
4340elif test $ac_cv_prog_cc_g = yes; then
4341  if test "$GCC" = yes; then
4342    CFLAGS="-g -O2"
4343  else
4344    CFLAGS="-g"
4345  fi
4346else
4347  if test "$GCC" = yes; then
4348    CFLAGS="-O2"
4349  else
4350    CFLAGS=
4351  fi
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4354$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4355if test "${ac_cv_prog_cc_c89+set}" = set; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  ac_cv_prog_cc_c89=no
4359ac_save_CC=$CC
4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362#include <stdarg.h>
4363#include <stdio.h>
4364#include <sys/types.h>
4365#include <sys/stat.h>
4366/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4367struct buf { int x; };
4368FILE * (*rcsopen) (struct buf *, struct stat *, int);
4369static char *e (p, i)
4370     char **p;
4371     int i;
4372{
4373  return p[i];
4374}
4375static char *f (char * (*g) (char **, int), char **p, ...)
4376{
4377  char *s;
4378  va_list v;
4379  va_start (v,p);
4380  s = g (p, va_arg (v,int));
4381  va_end (v);
4382  return s;
4383}
4384
4385/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4386   function prototypes and stuff, but not '\xHH' hex character constants.
4387   These don't provoke an error unfortunately, instead are silently treated
4388   as 'x'.  The following induces an error, until -std is added to get
4389   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4390   array size at least.  It's necessary to write '\x00'==0 to get something
4391   that's true only with -std.  */
4392int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4393
4394/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4395   inside strings and character constants.  */
4396#define FOO(x) 'x'
4397int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4398
4399int test (int i, double x);
4400struct s1 {int (*f) (int a);};
4401struct s2 {int (*f) (double a);};
4402int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4403int argc;
4404char **argv;
4405int
4406main ()
4407{
4408return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4414	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4415do
4416  CC="$ac_save_CC $ac_arg"
4417  if ac_fn_c_try_compile "$LINENO"; then :
4418  ac_cv_prog_cc_c89=$ac_arg
4419fi
4420rm -f core conftest.err conftest.$ac_objext
4421  test "x$ac_cv_prog_cc_c89" != "xno" && break
4422done
4423rm -f conftest.$ac_ext
4424CC=$ac_save_CC
4425
4426fi
4427# AC_CACHE_VAL
4428case "x$ac_cv_prog_cc_c89" in
4429  x)
4430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4431$as_echo "none needed" >&6; } ;;
4432  xno)
4433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4434$as_echo "unsupported" >&6; } ;;
4435  *)
4436    CC="$CC $ac_cv_prog_cc_c89"
4437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4438$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4439esac
4440if test "x$ac_cv_prog_cc_c89" != xno; then :
4441
4442fi
4443
4444ac_ext=c
4445ac_cpp='$CPP $CPPFLAGS'
4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450depcc="$CC"   am_compiler_list=
4451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453$as_echo_n "checking dependency style of $depcc... " >&6; }
4454if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458  # We make a subdir and do the tests there.  Otherwise we can end up
4459  # making bogus files that we don't know about and never remove.  For
4460  # instance it was reported that on HP-UX the gcc test will end up
4461  # making a dummy file named `D' -- because `-MD' means `put the output
4462  # in D'.
4463  mkdir conftest.dir
4464  # Copy depcomp to subdir because otherwise we won't find it if we're
4465  # using a relative directory.
4466  cp "$am_depcomp" conftest.dir
4467  cd conftest.dir
4468  # We will build objects and dependencies in a subdirectory because
4469  # it helps to detect inapplicable dependency modes.  For instance
4470  # both Tru64's cc and ICC support -MD to output dependencies as a
4471  # side effect of compilation, but ICC will put the dependencies in
4472  # the current directory while Tru64 will put them in the object
4473  # directory.
4474  mkdir sub
4475
4476  am_cv_CC_dependencies_compiler_type=none
4477  if test "$am_compiler_list" = ""; then
4478     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4479  fi
4480  am__universal=false
4481  case " $depcc " in #(
4482     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4483     esac
4484
4485  for depmode in $am_compiler_list; do
4486    # Setup a source with many dependencies, because some compilers
4487    # like to wrap large dependency lists on column 80 (with \), and
4488    # we should not choose a depcomp mode which is confused by this.
4489    #
4490    # We need to recreate these files for each test, as the compiler may
4491    # overwrite some of them when testing with obscure command lines.
4492    # This happens at least with the AIX C compiler.
4493    : > sub/conftest.c
4494    for i in 1 2 3 4 5 6; do
4495      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4496      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4497      # Solaris 8's {/usr,}/bin/sh.
4498      touch sub/conftst$i.h
4499    done
4500    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501
4502    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4503    # mode.  It turns out that the SunPro C++ compiler does not properly
4504    # handle `-M -o', and we need to detect this.  Also, some Intel
4505    # versions had trouble with output in subdirs
4506    am__obj=sub/conftest.${OBJEXT-o}
4507    am__minus_obj="-o $am__obj"
4508    case $depmode in
4509    gcc)
4510      # This depmode causes a compiler race in universal mode.
4511      test "$am__universal" = false || continue
4512      ;;
4513    nosideeffect)
4514      # after this tag, mechanisms are not by side-effect, so they'll
4515      # only be used when explicitly requested
4516      if test "x$enable_dependency_tracking" = xyes; then
4517	continue
4518      else
4519	break
4520      fi
4521      ;;
4522    msvisualcpp | msvcmsys)
4523      # This compiler won't grok `-c -o', but also, the minuso test has
4524      # not run yet.  These depmodes are late enough in the game, and
4525      # so weak that their functioning should not be impacted.
4526      am__obj=conftest.${OBJEXT-o}
4527      am__minus_obj=
4528      ;;
4529    none) break ;;
4530    esac
4531    if depmode=$depmode \
4532       source=sub/conftest.c object=$am__obj \
4533       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4534       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4535         >/dev/null 2>conftest.err &&
4536       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4537       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4538       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4539       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4540      # icc doesn't choke on unknown options, it will just issue warnings
4541      # or remarks (even with -Werror).  So we grep stderr for any message
4542      # that says an option was ignored or not supported.
4543      # When given -MP, icc 7.0 and 7.1 complain thusly:
4544      #   icc: Command line warning: ignoring option '-M'; no argument required
4545      # The diagnosis changed in icc 8.0:
4546      #   icc: Command line remark: option '-MP' not supported
4547      if (grep 'ignoring option' conftest.err ||
4548          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4549        am_cv_CC_dependencies_compiler_type=$depmode
4550        break
4551      fi
4552    fi
4553  done
4554
4555  cd ..
4556  rm -rf conftest.dir
4557else
4558  am_cv_CC_dependencies_compiler_type=none
4559fi
4560
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4563$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4564CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4565
4566 if
4567  test "x$enable_dependency_tracking" != xno \
4568  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569  am__fastdepCC_TRUE=
4570  am__fastdepCC_FALSE='#'
4571else
4572  am__fastdepCC_TRUE='#'
4573  am__fastdepCC_FALSE=
4574fi
4575
4576
4577# Make sure we can run config.sub.
4578$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4579  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4582$as_echo_n "checking build system type... " >&6; }
4583if test "${ac_cv_build+set}" = set; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  ac_build_alias=$build_alias
4587test "x$ac_build_alias" = x &&
4588  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4589test "x$ac_build_alias" = x &&
4590  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4591ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4592  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4593
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4596$as_echo "$ac_cv_build" >&6; }
4597case $ac_cv_build in
4598*-*-*) ;;
4599*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4600esac
4601build=$ac_cv_build
4602ac_save_IFS=$IFS; IFS='-'
4603set x $ac_cv_build
4604shift
4605build_cpu=$1
4606build_vendor=$2
4607shift; shift
4608# Remember, the first character of IFS is used to create $*,
4609# except with old shells:
4610build_os=$*
4611IFS=$ac_save_IFS
4612case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4613
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4616$as_echo_n "checking host system type... " >&6; }
4617if test "${ac_cv_host+set}" = set; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if test "x$host_alias" = x; then
4621  ac_cv_host=$ac_cv_build
4622else
4623  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4624    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4625fi
4626
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4629$as_echo "$ac_cv_host" >&6; }
4630case $ac_cv_host in
4631*-*-*) ;;
4632*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4633esac
4634host=$ac_cv_host
4635ac_save_IFS=$IFS; IFS='-'
4636set x $ac_cv_host
4637shift
4638host_cpu=$1
4639host_vendor=$2
4640shift; shift
4641# Remember, the first character of IFS is used to create $*,
4642# except with old shells:
4643host_os=$*
4644IFS=$ac_save_IFS
4645case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4646
4647
4648
4649# Check whether --with-gnu-ld was given.
4650if test "${with_gnu_ld+set}" = set; then :
4651  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4652else
4653  with_gnu_ld=no
4654fi
4655
4656# Prepare PATH_SEPARATOR.
4657# The user is always right.
4658if test "${PATH_SEPARATOR+set}" != set; then
4659  echo "#! /bin/sh" >conf$$.sh
4660  echo  "exit 0"   >>conf$$.sh
4661  chmod +x conf$$.sh
4662  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4663    PATH_SEPARATOR=';'
4664  else
4665    PATH_SEPARATOR=:
4666  fi
4667  rm -f conf$$.sh
4668fi
4669ac_prog=ld
4670if test "$GCC" = yes; then
4671  # Check if gcc -print-prog-name=ld gives a path.
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4673$as_echo_n "checking for ld used by GCC... " >&6; }
4674  case $host in
4675  *-*-mingw*)
4676    # gcc leaves a trailing carriage return which upsets mingw
4677    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4678  *)
4679    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4680  esac
4681  case $ac_prog in
4682    # Accept absolute paths.
4683    [\\/]* | [A-Za-z]:[\\/]*)
4684      re_direlt='/[^/][^/]*/\.\./'
4685      # Canonicalize the path of ld
4686      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4687      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4688	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4689      done
4690      test -z "$LD" && LD="$ac_prog"
4691      ;;
4692  "")
4693    # If it fails, then pretend we aren't using GCC.
4694    ac_prog=ld
4695    ;;
4696  *)
4697    # If it is relative, then search for the first ld in PATH.
4698    with_gnu_ld=unknown
4699    ;;
4700  esac
4701elif test "$with_gnu_ld" = yes; then
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4703$as_echo_n "checking for GNU ld... " >&6; }
4704else
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4706$as_echo_n "checking for non-GNU ld... " >&6; }
4707fi
4708if test "${acl_cv_path_LD+set}" = set; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if test -z "$LD"; then
4712  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4713  for ac_dir in $PATH; do
4714    test -z "$ac_dir" && ac_dir=.
4715    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4716      acl_cv_path_LD="$ac_dir/$ac_prog"
4717      # Check to see if the program is GNU ld.  I'd rather use --version,
4718      # but apparently some GNU ld's only accept -v.
4719      # Break only if it was the GNU/non-GNU ld that we prefer.
4720      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4721      *GNU* | *'with BFD'*)
4722	test "$with_gnu_ld" != no && break ;;
4723      *)
4724	test "$with_gnu_ld" != yes && break ;;
4725      esac
4726    fi
4727  done
4728  IFS="$ac_save_ifs"
4729else
4730  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4731fi
4732fi
4733
4734LD="$acl_cv_path_LD"
4735if test -n "$LD"; then
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4737$as_echo "$LD" >&6; }
4738else
4739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4744$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4745if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4749case `$LD -v 2>&1 </dev/null` in
4750*GNU* | *'with BFD'*)
4751  acl_cv_prog_gnu_ld=yes ;;
4752*)
4753  acl_cv_prog_gnu_ld=no ;;
4754esac
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4757$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4758with_gnu_ld=$acl_cv_prog_gnu_ld
4759
4760
4761
4762
4763                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4764$as_echo_n "checking for shared library run path origin... " >&6; }
4765if test "${acl_cv_rpath+set}" = set; then :
4766  $as_echo_n "(cached) " >&6
4767else
4768
4769    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4770    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4771    . ./conftest.sh
4772    rm -f ./conftest.sh
4773    acl_cv_rpath=done
4774
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4777$as_echo "$acl_cv_rpath" >&6; }
4778  wl="$acl_cv_wl"
4779  acl_libext="$acl_cv_libext"
4780  acl_shlibext="$acl_cv_shlibext"
4781  acl_libname_spec="$acl_cv_libname_spec"
4782  acl_library_names_spec="$acl_cv_library_names_spec"
4783  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4784  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4785  acl_hardcode_direct="$acl_cv_hardcode_direct"
4786  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4787    # Check whether --enable-rpath was given.
4788if test "${enable_rpath+set}" = set; then :
4789  enableval=$enable_rpath; :
4790else
4791  enable_rpath=yes
4792fi
4793
4794
4795
4796                  acl_libdirstem=lib
4797  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4798  if test -n "$searchpath"; then
4799    acl_save_IFS="${IFS= 	}"; IFS=":"
4800    for searchdir in $searchpath; do
4801      if test -d "$searchdir"; then
4802        case "$searchdir" in
4803          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4804          *) searchdir=`cd "$searchdir" && pwd`
4805             case "$searchdir" in
4806               */lib64 ) acl_libdirstem=lib64 ;;
4807             esac ;;
4808        esac
4809      fi
4810    done
4811    IFS="$acl_save_IFS"
4812  fi
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822    use_additional=yes
4823
4824  acl_save_prefix="$prefix"
4825  prefix="$acl_final_prefix"
4826  acl_save_exec_prefix="$exec_prefix"
4827  exec_prefix="$acl_final_exec_prefix"
4828
4829    eval additional_includedir=\"$includedir\"
4830    eval additional_libdir=\"$libdir\"
4831
4832  exec_prefix="$acl_save_exec_prefix"
4833  prefix="$acl_save_prefix"
4834
4835
4836# Check whether --with-libiconv-prefix was given.
4837if test "${with_libiconv_prefix+set}" = set; then :
4838  withval=$with_libiconv_prefix;
4839    if test "X$withval" = "Xno"; then
4840      use_additional=no
4841    else
4842      if test "X$withval" = "X"; then
4843
4844  acl_save_prefix="$prefix"
4845  prefix="$acl_final_prefix"
4846  acl_save_exec_prefix="$exec_prefix"
4847  exec_prefix="$acl_final_exec_prefix"
4848
4849          eval additional_includedir=\"$includedir\"
4850          eval additional_libdir=\"$libdir\"
4851
4852  exec_prefix="$acl_save_exec_prefix"
4853  prefix="$acl_save_prefix"
4854
4855      else
4856        additional_includedir="$withval/include"
4857        additional_libdir="$withval/$acl_libdirstem"
4858      fi
4859    fi
4860
4861fi
4862
4863      LIBICONV=
4864  LTLIBICONV=
4865  INCICONV=
4866  LIBICONV_PREFIX=
4867  rpathdirs=
4868  ltrpathdirs=
4869  names_already_handled=
4870  names_next_round='iconv '
4871  while test -n "$names_next_round"; do
4872    names_this_round="$names_next_round"
4873    names_next_round=
4874    for name in $names_this_round; do
4875      already_handled=
4876      for n in $names_already_handled; do
4877        if test "$n" = "$name"; then
4878          already_handled=yes
4879          break
4880        fi
4881      done
4882      if test -z "$already_handled"; then
4883        names_already_handled="$names_already_handled $name"
4884                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4885        eval value=\"\$HAVE_LIB$uppername\"
4886        if test -n "$value"; then
4887          if test "$value" = yes; then
4888            eval value=\"\$LIB$uppername\"
4889            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4890            eval value=\"\$LTLIB$uppername\"
4891            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4892          else
4893                                    :
4894          fi
4895        else
4896                              found_dir=
4897          found_la=
4898          found_so=
4899          found_a=
4900          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4901          if test -n "$acl_shlibext"; then
4902            shrext=".$acl_shlibext"             # typically: shrext=.so
4903          else
4904            shrext=
4905          fi
4906          if test $use_additional = yes; then
4907            dir="$additional_libdir"
4908                                    if test -n "$acl_shlibext"; then
4909              if test -f "$dir/$libname$shrext"; then
4910                found_dir="$dir"
4911                found_so="$dir/$libname$shrext"
4912              else
4913                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4914                  ver=`(cd "$dir" && \
4915                        for f in "$libname$shrext".*; do echo "$f"; done \
4916                        | sed -e "s,^$libname$shrext\\\\.,," \
4917                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4918                        | sed 1q ) 2>/dev/null`
4919                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4920                    found_dir="$dir"
4921                    found_so="$dir/$libname$shrext.$ver"
4922                  fi
4923                else
4924                  eval library_names=\"$acl_library_names_spec\"
4925                  for f in $library_names; do
4926                    if test -f "$dir/$f"; then
4927                      found_dir="$dir"
4928                      found_so="$dir/$f"
4929                      break
4930                    fi
4931                  done
4932                fi
4933              fi
4934            fi
4935                        if test "X$found_dir" = "X"; then
4936              if test -f "$dir/$libname.$acl_libext"; then
4937                found_dir="$dir"
4938                found_a="$dir/$libname.$acl_libext"
4939              fi
4940            fi
4941            if test "X$found_dir" != "X"; then
4942              if test -f "$dir/$libname.la"; then
4943                found_la="$dir/$libname.la"
4944              fi
4945            fi
4946          fi
4947          if test "X$found_dir" = "X"; then
4948            for x in $LDFLAGS $LTLIBICONV; do
4949
4950  acl_save_prefix="$prefix"
4951  prefix="$acl_final_prefix"
4952  acl_save_exec_prefix="$exec_prefix"
4953  exec_prefix="$acl_final_exec_prefix"
4954  eval x=\"$x\"
4955  exec_prefix="$acl_save_exec_prefix"
4956  prefix="$acl_save_prefix"
4957
4958              case "$x" in
4959                -L*)
4960                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4961                                    if test -n "$acl_shlibext"; then
4962                    if test -f "$dir/$libname$shrext"; then
4963                      found_dir="$dir"
4964                      found_so="$dir/$libname$shrext"
4965                    else
4966                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4967                        ver=`(cd "$dir" && \
4968                              for f in "$libname$shrext".*; do echo "$f"; done \
4969                              | sed -e "s,^$libname$shrext\\\\.,," \
4970                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4971                              | sed 1q ) 2>/dev/null`
4972                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4973                          found_dir="$dir"
4974                          found_so="$dir/$libname$shrext.$ver"
4975                        fi
4976                      else
4977                        eval library_names=\"$acl_library_names_spec\"
4978                        for f in $library_names; do
4979                          if test -f "$dir/$f"; then
4980                            found_dir="$dir"
4981                            found_so="$dir/$f"
4982                            break
4983                          fi
4984                        done
4985                      fi
4986                    fi
4987                  fi
4988                                    if test "X$found_dir" = "X"; then
4989                    if test -f "$dir/$libname.$acl_libext"; then
4990                      found_dir="$dir"
4991                      found_a="$dir/$libname.$acl_libext"
4992                    fi
4993                  fi
4994                  if test "X$found_dir" != "X"; then
4995                    if test -f "$dir/$libname.la"; then
4996                      found_la="$dir/$libname.la"
4997                    fi
4998                  fi
4999                  ;;
5000              esac
5001              if test "X$found_dir" != "X"; then
5002                break
5003              fi
5004            done
5005          fi
5006          if test "X$found_dir" != "X"; then
5007                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5008            if test "X$found_so" != "X"; then
5009                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5010                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5011              else
5012                                                                                haveit=
5013                for x in $ltrpathdirs; do
5014                  if test "X$x" = "X$found_dir"; then
5015                    haveit=yes
5016                    break
5017                  fi
5018                done
5019                if test -z "$haveit"; then
5020                  ltrpathdirs="$ltrpathdirs $found_dir"
5021                fi
5022                                if test "$acl_hardcode_direct" = yes; then
5023                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5024                else
5025                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5026                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5027                                                            haveit=
5028                    for x in $rpathdirs; do
5029                      if test "X$x" = "X$found_dir"; then
5030                        haveit=yes
5031                        break
5032                      fi
5033                    done
5034                    if test -z "$haveit"; then
5035                      rpathdirs="$rpathdirs $found_dir"
5036                    fi
5037                  else
5038                                                                                haveit=
5039                    for x in $LDFLAGS $LIBICONV; do
5040
5041  acl_save_prefix="$prefix"
5042  prefix="$acl_final_prefix"
5043  acl_save_exec_prefix="$exec_prefix"
5044  exec_prefix="$acl_final_exec_prefix"
5045  eval x=\"$x\"
5046  exec_prefix="$acl_save_exec_prefix"
5047  prefix="$acl_save_prefix"
5048
5049                      if test "X$x" = "X-L$found_dir"; then
5050                        haveit=yes
5051                        break
5052                      fi
5053                    done
5054                    if test -z "$haveit"; then
5055                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5056                    fi
5057                    if test "$acl_hardcode_minus_L" != no; then
5058                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5059                    else
5060                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5061                    fi
5062                  fi
5063                fi
5064              fi
5065            else
5066              if test "X$found_a" != "X"; then
5067                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5068              else
5069                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5070              fi
5071            fi
5072                        additional_includedir=
5073            case "$found_dir" in
5074              */$acl_libdirstem | */$acl_libdirstem/)
5075                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5076                LIBICONV_PREFIX="$basedir"
5077                additional_includedir="$basedir/include"
5078                ;;
5079            esac
5080            if test "X$additional_includedir" != "X"; then
5081                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5082                haveit=
5083                if test "X$additional_includedir" = "X/usr/local/include"; then
5084                  if test -n "$GCC"; then
5085                    case $host_os in
5086                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5087                    esac
5088                  fi
5089                fi
5090                if test -z "$haveit"; then
5091                  for x in $CPPFLAGS $INCICONV; do
5092
5093  acl_save_prefix="$prefix"
5094  prefix="$acl_final_prefix"
5095  acl_save_exec_prefix="$exec_prefix"
5096  exec_prefix="$acl_final_exec_prefix"
5097  eval x=\"$x\"
5098  exec_prefix="$acl_save_exec_prefix"
5099  prefix="$acl_save_prefix"
5100
5101                    if test "X$x" = "X-I$additional_includedir"; then
5102                      haveit=yes
5103                      break
5104                    fi
5105                  done
5106                  if test -z "$haveit"; then
5107                    if test -d "$additional_includedir"; then
5108                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5109                    fi
5110                  fi
5111                fi
5112              fi
5113            fi
5114                        if test -n "$found_la"; then
5115                                                        save_libdir="$libdir"
5116              case "$found_la" in
5117                */* | *\\*) . "$found_la" ;;
5118                *) . "./$found_la" ;;
5119              esac
5120              libdir="$save_libdir"
5121                            for dep in $dependency_libs; do
5122                case "$dep" in
5123                  -L*)
5124                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5125                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5126                      haveit=
5127                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5128                        if test -n "$GCC"; then
5129                          case $host_os in
5130                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5131                          esac
5132                        fi
5133                      fi
5134                      if test -z "$haveit"; then
5135                        haveit=
5136                        for x in $LDFLAGS $LIBICONV; do
5137
5138  acl_save_prefix="$prefix"
5139  prefix="$acl_final_prefix"
5140  acl_save_exec_prefix="$exec_prefix"
5141  exec_prefix="$acl_final_exec_prefix"
5142  eval x=\"$x\"
5143  exec_prefix="$acl_save_exec_prefix"
5144  prefix="$acl_save_prefix"
5145
5146                          if test "X$x" = "X-L$additional_libdir"; then
5147                            haveit=yes
5148                            break
5149                          fi
5150                        done
5151                        if test -z "$haveit"; then
5152                          if test -d "$additional_libdir"; then
5153                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5154                          fi
5155                        fi
5156                        haveit=
5157                        for x in $LDFLAGS $LTLIBICONV; do
5158
5159  acl_save_prefix="$prefix"
5160  prefix="$acl_final_prefix"
5161  acl_save_exec_prefix="$exec_prefix"
5162  exec_prefix="$acl_final_exec_prefix"
5163  eval x=\"$x\"
5164  exec_prefix="$acl_save_exec_prefix"
5165  prefix="$acl_save_prefix"
5166
5167                          if test "X$x" = "X-L$additional_libdir"; then
5168                            haveit=yes
5169                            break
5170                          fi
5171                        done
5172                        if test -z "$haveit"; then
5173                          if test -d "$additional_libdir"; then
5174                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5175                          fi
5176                        fi
5177                      fi
5178                    fi
5179                    ;;
5180                  -R*)
5181                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5182                    if test "$enable_rpath" != no; then
5183                                                                  haveit=
5184                      for x in $rpathdirs; do
5185                        if test "X$x" = "X$dir"; then
5186                          haveit=yes
5187                          break
5188                        fi
5189                      done
5190                      if test -z "$haveit"; then
5191                        rpathdirs="$rpathdirs $dir"
5192                      fi
5193                                                                  haveit=
5194                      for x in $ltrpathdirs; do
5195                        if test "X$x" = "X$dir"; then
5196                          haveit=yes
5197                          break
5198                        fi
5199                      done
5200                      if test -z "$haveit"; then
5201                        ltrpathdirs="$ltrpathdirs $dir"
5202                      fi
5203                    fi
5204                    ;;
5205                  -l*)
5206                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5207                    ;;
5208                  *.la)
5209                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5210                    ;;
5211                  *)
5212                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5213                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5214                    ;;
5215                esac
5216              done
5217            fi
5218          else
5219                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5220            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5221          fi
5222        fi
5223      fi
5224    done
5225  done
5226  if test "X$rpathdirs" != "X"; then
5227    if test -n "$acl_hardcode_libdir_separator"; then
5228                        alldirs=
5229      for found_dir in $rpathdirs; do
5230        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5231      done
5232            acl_save_libdir="$libdir"
5233      libdir="$alldirs"
5234      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5235      libdir="$acl_save_libdir"
5236      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5237    else
5238            for found_dir in $rpathdirs; do
5239        acl_save_libdir="$libdir"
5240        libdir="$found_dir"
5241        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5242        libdir="$acl_save_libdir"
5243        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5244      done
5245    fi
5246  fi
5247  if test "X$ltrpathdirs" != "X"; then
5248            for found_dir in $ltrpathdirs; do
5249      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5250    done
5251  fi
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5279$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5280if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  gt_save_LIBS="$LIBS"
5284     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287#include <CoreFoundation/CFPreferences.h>
5288int
5289main ()
5290{
5291CFPreferencesCopyAppValue(NULL, NULL)
5292  ;
5293  return 0;
5294}
5295_ACEOF
5296if ac_fn_c_try_link "$LINENO"; then :
5297  gt_cv_func_CFPreferencesCopyAppValue=yes
5298else
5299  gt_cv_func_CFPreferencesCopyAppValue=no
5300fi
5301rm -f core conftest.err conftest.$ac_objext \
5302    conftest$ac_exeext conftest.$ac_ext
5303     LIBS="$gt_save_LIBS"
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5306$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5307  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5308
5309$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5310
5311  fi
5312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5313$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5314if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  gt_save_LIBS="$LIBS"
5318     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321#include <CoreFoundation/CFLocale.h>
5322int
5323main ()
5324{
5325CFLocaleCopyCurrent();
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"; then :
5331  gt_cv_func_CFLocaleCopyCurrent=yes
5332else
5333  gt_cv_func_CFLocaleCopyCurrent=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext \
5336    conftest$ac_exeext conftest.$ac_ext
5337     LIBS="$gt_save_LIBS"
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5340$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5341  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5342
5343$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5344
5345  fi
5346  INTL_MACOSX_LIBS=
5347  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5348    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5349  fi
5350
5351
5352
5353
5354
5355
5356  LIBINTL=
5357  LTLIBINTL=
5358  POSUB=
5359
5360    case " $gt_needs " in
5361    *" need-formatstring-macros "*) gt_api_version=3 ;;
5362    *" need-ngettext "*) gt_api_version=2 ;;
5363    *) gt_api_version=1 ;;
5364  esac
5365  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5366  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5367
5368    if test "$USE_NLS" = "yes"; then
5369    gt_use_preinstalled_gnugettext=no
5370
5371
5372        if test $gt_api_version -ge 3; then
5373          gt_revision_test_code='
5374#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5375#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5376#endif
5377typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5378'
5379        else
5380          gt_revision_test_code=
5381        fi
5382        if test $gt_api_version -ge 2; then
5383          gt_expression_test_code=' + * ngettext ("", "", 0)'
5384        else
5385          gt_expression_test_code=
5386        fi
5387
5388        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5389$as_echo_n "checking for GNU gettext in libc... " >&6; }
5390if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395#include <libintl.h>
5396$gt_revision_test_code
5397extern int _nl_msg_cat_cntr;
5398extern int *_nl_domain_bindings;
5399int
5400main ()
5401{
5402bindtextdomain ("", "");
5403return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_link "$LINENO"; then :
5409  eval "$gt_func_gnugettext_libc=yes"
5410else
5411  eval "$gt_func_gnugettext_libc=no"
5412fi
5413rm -f core conftest.err conftest.$ac_objext \
5414    conftest$ac_exeext conftest.$ac_ext
5415fi
5416eval ac_res=\$$gt_func_gnugettext_libc
5417	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5418$as_echo "$ac_res" >&6; }
5419
5420        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5421
5422
5423
5424
5425
5426          am_save_CPPFLAGS="$CPPFLAGS"
5427
5428  for element in $INCICONV; do
5429    haveit=
5430    for x in $CPPFLAGS; do
5431
5432  acl_save_prefix="$prefix"
5433  prefix="$acl_final_prefix"
5434  acl_save_exec_prefix="$exec_prefix"
5435  exec_prefix="$acl_final_exec_prefix"
5436  eval x=\"$x\"
5437  exec_prefix="$acl_save_exec_prefix"
5438  prefix="$acl_save_prefix"
5439
5440      if test "X$x" = "X$element"; then
5441        haveit=yes
5442        break
5443      fi
5444    done
5445    if test -z "$haveit"; then
5446      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5447    fi
5448  done
5449
5450
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5452$as_echo_n "checking for iconv... " >&6; }
5453if test "${am_cv_func_iconv+set}" = set; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456
5457    am_cv_func_iconv="no, consider installing GNU libiconv"
5458    am_cv_lib_iconv=no
5459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461#include <stdlib.h>
5462#include <iconv.h>
5463int
5464main ()
5465{
5466iconv_t cd = iconv_open("","");
5467       iconv(cd,NULL,NULL,NULL,NULL);
5468       iconv_close(cd);
5469  ;
5470  return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_link "$LINENO"; then :
5474  am_cv_func_iconv=yes
5475fi
5476rm -f core conftest.err conftest.$ac_objext \
5477    conftest$ac_exeext conftest.$ac_ext
5478    if test "$am_cv_func_iconv" != yes; then
5479      am_save_LIBS="$LIBS"
5480      LIBS="$LIBS $LIBICONV"
5481      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483#include <stdlib.h>
5484#include <iconv.h>
5485int
5486main ()
5487{
5488iconv_t cd = iconv_open("","");
5489         iconv(cd,NULL,NULL,NULL,NULL);
5490         iconv_close(cd);
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_link "$LINENO"; then :
5496  am_cv_lib_iconv=yes
5497        am_cv_func_iconv=yes
5498fi
5499rm -f core conftest.err conftest.$ac_objext \
5500    conftest$ac_exeext conftest.$ac_ext
5501      LIBS="$am_save_LIBS"
5502    fi
5503
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5506$as_echo "$am_cv_func_iconv" >&6; }
5507  if test "$am_cv_func_iconv" = yes; then
5508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5509$as_echo_n "checking for working iconv... " >&6; }
5510if test "${am_cv_func_iconv_works+set}" = set; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513
5514            am_save_LIBS="$LIBS"
5515      if test $am_cv_lib_iconv = yes; then
5516        LIBS="$LIBS $LIBICONV"
5517      fi
5518      if test "$cross_compiling" = yes; then :
5519  case "$host_os" in
5520           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5521           *)            am_cv_func_iconv_works="guessing yes" ;;
5522         esac
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526
5527#include <iconv.h>
5528#include <string.h>
5529int main ()
5530{
5531  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5532     returns.  */
5533  {
5534    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5535    if (cd_utf8_to_88591 != (iconv_t)(-1))
5536      {
5537        static const char input[] = "\342\202\254"; /* EURO SIGN */
5538        char buf[10];
5539        const char *inptr = input;
5540        size_t inbytesleft = strlen (input);
5541        char *outptr = buf;
5542        size_t outbytesleft = sizeof (buf);
5543        size_t res = iconv (cd_utf8_to_88591,
5544                            (char **) &inptr, &inbytesleft,
5545                            &outptr, &outbytesleft);
5546        if (res == 0)
5547          return 1;
5548      }
5549  }
5550#if 0 /* This bug could be worked around by the caller.  */
5551  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5552  {
5553    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5554    if (cd_88591_to_utf8 != (iconv_t)(-1))
5555      {
5556        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5557        char buf[50];
5558        const char *inptr = input;
5559        size_t inbytesleft = strlen (input);
5560        char *outptr = buf;
5561        size_t outbytesleft = sizeof (buf);
5562        size_t res = iconv (cd_88591_to_utf8,
5563                            (char **) &inptr, &inbytesleft,
5564                            &outptr, &outbytesleft);
5565        if ((int)res > 0)
5566          return 1;
5567      }
5568  }
5569#endif
5570  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5571     provided.  */
5572  if (/* Try standardized names.  */
5573      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5574      /* Try IRIX, OSF/1 names.  */
5575      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5576      /* Try AIX names.  */
5577      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5578      /* Try HP-UX names.  */
5579      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5580    return 1;
5581  return 0;
5582}
5583_ACEOF
5584if ac_fn_c_try_run "$LINENO"; then :
5585  am_cv_func_iconv_works=yes
5586else
5587  am_cv_func_iconv_works=no
5588fi
5589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5590  conftest.$ac_objext conftest.beam conftest.$ac_ext
5591fi
5592
5593      LIBS="$am_save_LIBS"
5594
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5597$as_echo "$am_cv_func_iconv_works" >&6; }
5598    case "$am_cv_func_iconv_works" in
5599      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5600      *)   am_func_iconv=yes ;;
5601    esac
5602  else
5603    am_func_iconv=no am_cv_lib_iconv=no
5604  fi
5605  if test "$am_func_iconv" = yes; then
5606
5607$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5608
5609  fi
5610  if test "$am_cv_lib_iconv" = yes; then
5611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5612$as_echo_n "checking how to link with libiconv... " >&6; }
5613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5614$as_echo "$LIBICONV" >&6; }
5615  else
5616            CPPFLAGS="$am_save_CPPFLAGS"
5617    LIBICONV=
5618    LTLIBICONV=
5619  fi
5620
5621
5622
5623
5624
5625
5626
5627
5628    use_additional=yes
5629
5630  acl_save_prefix="$prefix"
5631  prefix="$acl_final_prefix"
5632  acl_save_exec_prefix="$exec_prefix"
5633  exec_prefix="$acl_final_exec_prefix"
5634
5635    eval additional_includedir=\"$includedir\"
5636    eval additional_libdir=\"$libdir\"
5637
5638  exec_prefix="$acl_save_exec_prefix"
5639  prefix="$acl_save_prefix"
5640
5641
5642# Check whether --with-libintl-prefix was given.
5643if test "${with_libintl_prefix+set}" = set; then :
5644  withval=$with_libintl_prefix;
5645    if test "X$withval" = "Xno"; then
5646      use_additional=no
5647    else
5648      if test "X$withval" = "X"; then
5649
5650  acl_save_prefix="$prefix"
5651  prefix="$acl_final_prefix"
5652  acl_save_exec_prefix="$exec_prefix"
5653  exec_prefix="$acl_final_exec_prefix"
5654
5655          eval additional_includedir=\"$includedir\"
5656          eval additional_libdir=\"$libdir\"
5657
5658  exec_prefix="$acl_save_exec_prefix"
5659  prefix="$acl_save_prefix"
5660
5661      else
5662        additional_includedir="$withval/include"
5663        additional_libdir="$withval/$acl_libdirstem"
5664      fi
5665    fi
5666
5667fi
5668
5669      LIBINTL=
5670  LTLIBINTL=
5671  INCINTL=
5672  LIBINTL_PREFIX=
5673  rpathdirs=
5674  ltrpathdirs=
5675  names_already_handled=
5676  names_next_round='intl '
5677  while test -n "$names_next_round"; do
5678    names_this_round="$names_next_round"
5679    names_next_round=
5680    for name in $names_this_round; do
5681      already_handled=
5682      for n in $names_already_handled; do
5683        if test "$n" = "$name"; then
5684          already_handled=yes
5685          break
5686        fi
5687      done
5688      if test -z "$already_handled"; then
5689        names_already_handled="$names_already_handled $name"
5690                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5691        eval value=\"\$HAVE_LIB$uppername\"
5692        if test -n "$value"; then
5693          if test "$value" = yes; then
5694            eval value=\"\$LIB$uppername\"
5695            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5696            eval value=\"\$LTLIB$uppername\"
5697            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5698          else
5699                                    :
5700          fi
5701        else
5702                              found_dir=
5703          found_la=
5704          found_so=
5705          found_a=
5706          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5707          if test -n "$acl_shlibext"; then
5708            shrext=".$acl_shlibext"             # typically: shrext=.so
5709          else
5710            shrext=
5711          fi
5712          if test $use_additional = yes; then
5713            dir="$additional_libdir"
5714                                    if test -n "$acl_shlibext"; then
5715              if test -f "$dir/$libname$shrext"; then
5716                found_dir="$dir"
5717                found_so="$dir/$libname$shrext"
5718              else
5719                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5720                  ver=`(cd "$dir" && \
5721                        for f in "$libname$shrext".*; do echo "$f"; done \
5722                        | sed -e "s,^$libname$shrext\\\\.,," \
5723                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5724                        | sed 1q ) 2>/dev/null`
5725                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5726                    found_dir="$dir"
5727                    found_so="$dir/$libname$shrext.$ver"
5728                  fi
5729                else
5730                  eval library_names=\"$acl_library_names_spec\"
5731                  for f in $library_names; do
5732                    if test -f "$dir/$f"; then
5733                      found_dir="$dir"
5734                      found_so="$dir/$f"
5735                      break
5736                    fi
5737                  done
5738                fi
5739              fi
5740            fi
5741                        if test "X$found_dir" = "X"; then
5742              if test -f "$dir/$libname.$acl_libext"; then
5743                found_dir="$dir"
5744                found_a="$dir/$libname.$acl_libext"
5745              fi
5746            fi
5747            if test "X$found_dir" != "X"; then
5748              if test -f "$dir/$libname.la"; then
5749                found_la="$dir/$libname.la"
5750              fi
5751            fi
5752          fi
5753          if test "X$found_dir" = "X"; then
5754            for x in $LDFLAGS $LTLIBINTL; do
5755
5756  acl_save_prefix="$prefix"
5757  prefix="$acl_final_prefix"
5758  acl_save_exec_prefix="$exec_prefix"
5759  exec_prefix="$acl_final_exec_prefix"
5760  eval x=\"$x\"
5761  exec_prefix="$acl_save_exec_prefix"
5762  prefix="$acl_save_prefix"
5763
5764              case "$x" in
5765                -L*)
5766                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5767                                    if test -n "$acl_shlibext"; then
5768                    if test -f "$dir/$libname$shrext"; then
5769                      found_dir="$dir"
5770                      found_so="$dir/$libname$shrext"
5771                    else
5772                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5773                        ver=`(cd "$dir" && \
5774                              for f in "$libname$shrext".*; do echo "$f"; done \
5775                              | sed -e "s,^$libname$shrext\\\\.,," \
5776                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5777                              | sed 1q ) 2>/dev/null`
5778                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5779                          found_dir="$dir"
5780                          found_so="$dir/$libname$shrext.$ver"
5781                        fi
5782                      else
5783                        eval library_names=\"$acl_library_names_spec\"
5784                        for f in $library_names; do
5785                          if test -f "$dir/$f"; then
5786                            found_dir="$dir"
5787                            found_so="$dir/$f"
5788                            break
5789                          fi
5790                        done
5791                      fi
5792                    fi
5793                  fi
5794                                    if test "X$found_dir" = "X"; then
5795                    if test -f "$dir/$libname.$acl_libext"; then
5796                      found_dir="$dir"
5797                      found_a="$dir/$libname.$acl_libext"
5798                    fi
5799                  fi
5800                  if test "X$found_dir" != "X"; then
5801                    if test -f "$dir/$libname.la"; then
5802                      found_la="$dir/$libname.la"
5803                    fi
5804                  fi
5805                  ;;
5806              esac
5807              if test "X$found_dir" != "X"; then
5808                break
5809              fi
5810            done
5811          fi
5812          if test "X$found_dir" != "X"; then
5813                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5814            if test "X$found_so" != "X"; then
5815                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5816                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5817              else
5818                                                                                haveit=
5819                for x in $ltrpathdirs; do
5820                  if test "X$x" = "X$found_dir"; then
5821                    haveit=yes
5822                    break
5823                  fi
5824                done
5825                if test -z "$haveit"; then
5826                  ltrpathdirs="$ltrpathdirs $found_dir"
5827                fi
5828                                if test "$acl_hardcode_direct" = yes; then
5829                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5830                else
5831                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5832                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5833                                                            haveit=
5834                    for x in $rpathdirs; do
5835                      if test "X$x" = "X$found_dir"; then
5836                        haveit=yes
5837                        break
5838                      fi
5839                    done
5840                    if test -z "$haveit"; then
5841                      rpathdirs="$rpathdirs $found_dir"
5842                    fi
5843                  else
5844                                                                                haveit=
5845                    for x in $LDFLAGS $LIBINTL; do
5846
5847  acl_save_prefix="$prefix"
5848  prefix="$acl_final_prefix"
5849  acl_save_exec_prefix="$exec_prefix"
5850  exec_prefix="$acl_final_exec_prefix"
5851  eval x=\"$x\"
5852  exec_prefix="$acl_save_exec_prefix"
5853  prefix="$acl_save_prefix"
5854
5855                      if test "X$x" = "X-L$found_dir"; then
5856                        haveit=yes
5857                        break
5858                      fi
5859                    done
5860                    if test -z "$haveit"; then
5861                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5862                    fi
5863                    if test "$acl_hardcode_minus_L" != no; then
5864                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5865                    else
5866                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5867                    fi
5868                  fi
5869                fi
5870              fi
5871            else
5872              if test "X$found_a" != "X"; then
5873                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5874              else
5875                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5876              fi
5877            fi
5878                        additional_includedir=
5879            case "$found_dir" in
5880              */$acl_libdirstem | */$acl_libdirstem/)
5881                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5882                LIBINTL_PREFIX="$basedir"
5883                additional_includedir="$basedir/include"
5884                ;;
5885            esac
5886            if test "X$additional_includedir" != "X"; then
5887                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5888                haveit=
5889                if test "X$additional_includedir" = "X/usr/local/include"; then
5890                  if test -n "$GCC"; then
5891                    case $host_os in
5892                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5893                    esac
5894                  fi
5895                fi
5896                if test -z "$haveit"; then
5897                  for x in $CPPFLAGS $INCINTL; do
5898
5899  acl_save_prefix="$prefix"
5900  prefix="$acl_final_prefix"
5901  acl_save_exec_prefix="$exec_prefix"
5902  exec_prefix="$acl_final_exec_prefix"
5903  eval x=\"$x\"
5904  exec_prefix="$acl_save_exec_prefix"
5905  prefix="$acl_save_prefix"
5906
5907                    if test "X$x" = "X-I$additional_includedir"; then
5908                      haveit=yes
5909                      break
5910                    fi
5911                  done
5912                  if test -z "$haveit"; then
5913                    if test -d "$additional_includedir"; then
5914                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5915                    fi
5916                  fi
5917                fi
5918              fi
5919            fi
5920                        if test -n "$found_la"; then
5921                                                        save_libdir="$libdir"
5922              case "$found_la" in
5923                */* | *\\*) . "$found_la" ;;
5924                *) . "./$found_la" ;;
5925              esac
5926              libdir="$save_libdir"
5927                            for dep in $dependency_libs; do
5928                case "$dep" in
5929                  -L*)
5930                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5931                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5932                      haveit=
5933                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5934                        if test -n "$GCC"; then
5935                          case $host_os in
5936                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5937                          esac
5938                        fi
5939                      fi
5940                      if test -z "$haveit"; then
5941                        haveit=
5942                        for x in $LDFLAGS $LIBINTL; do
5943
5944  acl_save_prefix="$prefix"
5945  prefix="$acl_final_prefix"
5946  acl_save_exec_prefix="$exec_prefix"
5947  exec_prefix="$acl_final_exec_prefix"
5948  eval x=\"$x\"
5949  exec_prefix="$acl_save_exec_prefix"
5950  prefix="$acl_save_prefix"
5951
5952                          if test "X$x" = "X-L$additional_libdir"; then
5953                            haveit=yes
5954                            break
5955                          fi
5956                        done
5957                        if test -z "$haveit"; then
5958                          if test -d "$additional_libdir"; then
5959                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5960                          fi
5961                        fi
5962                        haveit=
5963                        for x in $LDFLAGS $LTLIBINTL; do
5964
5965  acl_save_prefix="$prefix"
5966  prefix="$acl_final_prefix"
5967  acl_save_exec_prefix="$exec_prefix"
5968  exec_prefix="$acl_final_exec_prefix"
5969  eval x=\"$x\"
5970  exec_prefix="$acl_save_exec_prefix"
5971  prefix="$acl_save_prefix"
5972
5973                          if test "X$x" = "X-L$additional_libdir"; then
5974                            haveit=yes
5975                            break
5976                          fi
5977                        done
5978                        if test -z "$haveit"; then
5979                          if test -d "$additional_libdir"; then
5980                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5981                          fi
5982                        fi
5983                      fi
5984                    fi
5985                    ;;
5986                  -R*)
5987                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5988                    if test "$enable_rpath" != no; then
5989                                                                  haveit=
5990                      for x in $rpathdirs; do
5991                        if test "X$x" = "X$dir"; then
5992                          haveit=yes
5993                          break
5994                        fi
5995                      done
5996                      if test -z "$haveit"; then
5997                        rpathdirs="$rpathdirs $dir"
5998                      fi
5999                                                                  haveit=
6000                      for x in $ltrpathdirs; do
6001                        if test "X$x" = "X$dir"; then
6002                          haveit=yes
6003                          break
6004                        fi
6005                      done
6006                      if test -z "$haveit"; then
6007                        ltrpathdirs="$ltrpathdirs $dir"
6008                      fi
6009                    fi
6010                    ;;
6011                  -l*)
6012                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6013                    ;;
6014                  *.la)
6015                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6016                    ;;
6017                  *)
6018                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6019                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6020                    ;;
6021                esac
6022              done
6023            fi
6024          else
6025                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6026            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6027          fi
6028        fi
6029      fi
6030    done
6031  done
6032  if test "X$rpathdirs" != "X"; then
6033    if test -n "$acl_hardcode_libdir_separator"; then
6034                        alldirs=
6035      for found_dir in $rpathdirs; do
6036        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6037      done
6038            acl_save_libdir="$libdir"
6039      libdir="$alldirs"
6040      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6041      libdir="$acl_save_libdir"
6042      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6043    else
6044            for found_dir in $rpathdirs; do
6045        acl_save_libdir="$libdir"
6046        libdir="$found_dir"
6047        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6048        libdir="$acl_save_libdir"
6049        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6050      done
6051    fi
6052  fi
6053  if test "X$ltrpathdirs" != "X"; then
6054            for found_dir in $ltrpathdirs; do
6055      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6056    done
6057  fi
6058
6059          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6060$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6061if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
6062  $as_echo_n "(cached) " >&6
6063else
6064  gt_save_CPPFLAGS="$CPPFLAGS"
6065            CPPFLAGS="$CPPFLAGS $INCINTL"
6066            gt_save_LIBS="$LIBS"
6067            LIBS="$LIBS $LIBINTL"
6068                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070#include <libintl.h>
6071$gt_revision_test_code
6072extern int _nl_msg_cat_cntr;
6073extern
6074#ifdef __cplusplus
6075"C"
6076#endif
6077const char *_nl_expand_alias (const char *);
6078int
6079main ()
6080{
6081bindtextdomain ("", "");
6082return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6083  ;
6084  return 0;
6085}
6086_ACEOF
6087if ac_fn_c_try_link "$LINENO"; then :
6088  eval "$gt_func_gnugettext_libintl=yes"
6089else
6090  eval "$gt_func_gnugettext_libintl=no"
6091fi
6092rm -f core conftest.err conftest.$ac_objext \
6093    conftest$ac_exeext conftest.$ac_ext
6094                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6095              LIBS="$LIBS $LIBICONV"
6096              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098#include <libintl.h>
6099$gt_revision_test_code
6100extern int _nl_msg_cat_cntr;
6101extern
6102#ifdef __cplusplus
6103"C"
6104#endif
6105const char *_nl_expand_alias (const char *);
6106int
6107main ()
6108{
6109bindtextdomain ("", "");
6110return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6111  ;
6112  return 0;
6113}
6114_ACEOF
6115if ac_fn_c_try_link "$LINENO"; then :
6116  LIBINTL="$LIBINTL $LIBICONV"
6117                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6118                eval "$gt_func_gnugettext_libintl=yes"
6119
6120fi
6121rm -f core conftest.err conftest.$ac_objext \
6122    conftest$ac_exeext conftest.$ac_ext
6123            fi
6124            CPPFLAGS="$gt_save_CPPFLAGS"
6125            LIBS="$gt_save_LIBS"
6126fi
6127eval ac_res=\$$gt_func_gnugettext_libintl
6128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6129$as_echo "$ac_res" >&6; }
6130        fi
6131
6132                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6133           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6134                && test "$PACKAGE" != gettext-runtime \
6135                && test "$PACKAGE" != gettext-tools; }; then
6136          gt_use_preinstalled_gnugettext=yes
6137        else
6138                    LIBINTL=
6139          LTLIBINTL=
6140          INCINTL=
6141        fi
6142
6143
6144
6145    if test -n "$INTL_MACOSX_LIBS"; then
6146      if test "$gt_use_preinstalled_gnugettext" = "yes" \
6147         || test "$nls_cv_use_gnu_gettext" = "yes"; then
6148                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6149        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6150      fi
6151    fi
6152
6153    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6154       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6155
6156$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6157
6158    else
6159      USE_NLS=no
6160    fi
6161  fi
6162
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6164$as_echo_n "checking whether to use NLS... " >&6; }
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6166$as_echo "$USE_NLS" >&6; }
6167  if test "$USE_NLS" = "yes"; then
6168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6169$as_echo_n "checking where the gettext function comes from... " >&6; }
6170    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6171      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6172        gt_source="external libintl"
6173      else
6174        gt_source="libc"
6175      fi
6176    else
6177      gt_source="included intl directory"
6178    fi
6179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6180$as_echo "$gt_source" >&6; }
6181  fi
6182
6183  if test "$USE_NLS" = "yes"; then
6184
6185    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6186      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6187        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6188$as_echo_n "checking how to link with libintl... " >&6; }
6189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6190$as_echo "$LIBINTL" >&6; }
6191
6192  for element in $INCINTL; do
6193    haveit=
6194    for x in $CPPFLAGS; do
6195
6196  acl_save_prefix="$prefix"
6197  prefix="$acl_final_prefix"
6198  acl_save_exec_prefix="$exec_prefix"
6199  exec_prefix="$acl_final_exec_prefix"
6200  eval x=\"$x\"
6201  exec_prefix="$acl_save_exec_prefix"
6202  prefix="$acl_save_prefix"
6203
6204      if test "X$x" = "X$element"; then
6205        haveit=yes
6206        break
6207      fi
6208    done
6209    if test -z "$haveit"; then
6210      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6211    fi
6212  done
6213
6214      fi
6215
6216
6217$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6218
6219
6220$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6221
6222    fi
6223
6224        POSUB=po
6225  fi
6226
6227
6228
6229    INTLLIBS="$LIBINTL"
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242          am_save_CPPFLAGS="$CPPFLAGS"
6243
6244  for element in $INCICONV; do
6245    haveit=
6246    for x in $CPPFLAGS; do
6247
6248  acl_save_prefix="$prefix"
6249  prefix="$acl_final_prefix"
6250  acl_save_exec_prefix="$exec_prefix"
6251  exec_prefix="$acl_final_exec_prefix"
6252  eval x=\"$x\"
6253  exec_prefix="$acl_save_exec_prefix"
6254  prefix="$acl_save_prefix"
6255
6256      if test "X$x" = "X$element"; then
6257        haveit=yes
6258        break
6259      fi
6260    done
6261    if test -z "$haveit"; then
6262      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6263    fi
6264  done
6265
6266
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6268$as_echo_n "checking for iconv... " >&6; }
6269if test "${am_cv_func_iconv+set}" = set; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272
6273    am_cv_func_iconv="no, consider installing GNU libiconv"
6274    am_cv_lib_iconv=no
6275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277#include <stdlib.h>
6278#include <iconv.h>
6279int
6280main ()
6281{
6282iconv_t cd = iconv_open("","");
6283       iconv(cd,NULL,NULL,NULL,NULL);
6284       iconv_close(cd);
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289if ac_fn_c_try_link "$LINENO"; then :
6290  am_cv_func_iconv=yes
6291fi
6292rm -f core conftest.err conftest.$ac_objext \
6293    conftest$ac_exeext conftest.$ac_ext
6294    if test "$am_cv_func_iconv" != yes; then
6295      am_save_LIBS="$LIBS"
6296      LIBS="$LIBS $LIBICONV"
6297      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299#include <stdlib.h>
6300#include <iconv.h>
6301int
6302main ()
6303{
6304iconv_t cd = iconv_open("","");
6305         iconv(cd,NULL,NULL,NULL,NULL);
6306         iconv_close(cd);
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311if ac_fn_c_try_link "$LINENO"; then :
6312  am_cv_lib_iconv=yes
6313        am_cv_func_iconv=yes
6314fi
6315rm -f core conftest.err conftest.$ac_objext \
6316    conftest$ac_exeext conftest.$ac_ext
6317      LIBS="$am_save_LIBS"
6318    fi
6319
6320fi
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6322$as_echo "$am_cv_func_iconv" >&6; }
6323  if test "$am_cv_func_iconv" = yes; then
6324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6325$as_echo_n "checking for working iconv... " >&6; }
6326if test "${am_cv_func_iconv_works+set}" = set; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329
6330            am_save_LIBS="$LIBS"
6331      if test $am_cv_lib_iconv = yes; then
6332        LIBS="$LIBS $LIBICONV"
6333      fi
6334      if test "$cross_compiling" = yes; then :
6335  case "$host_os" in
6336           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6337           *)            am_cv_func_iconv_works="guessing yes" ;;
6338         esac
6339else
6340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342
6343#include <iconv.h>
6344#include <string.h>
6345int main ()
6346{
6347  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6348     returns.  */
6349  {
6350    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6351    if (cd_utf8_to_88591 != (iconv_t)(-1))
6352      {
6353        static const char input[] = "\342\202\254"; /* EURO SIGN */
6354        char buf[10];
6355        const char *inptr = input;
6356        size_t inbytesleft = strlen (input);
6357        char *outptr = buf;
6358        size_t outbytesleft = sizeof (buf);
6359        size_t res = iconv (cd_utf8_to_88591,
6360                            (char **) &inptr, &inbytesleft,
6361                            &outptr, &outbytesleft);
6362        if (res == 0)
6363          return 1;
6364      }
6365  }
6366#if 0 /* This bug could be worked around by the caller.  */
6367  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6368  {
6369    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6370    if (cd_88591_to_utf8 != (iconv_t)(-1))
6371      {
6372        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6373        char buf[50];
6374        const char *inptr = input;
6375        size_t inbytesleft = strlen (input);
6376        char *outptr = buf;
6377        size_t outbytesleft = sizeof (buf);
6378        size_t res = iconv (cd_88591_to_utf8,
6379                            (char **) &inptr, &inbytesleft,
6380                            &outptr, &outbytesleft);
6381        if ((int)res > 0)
6382          return 1;
6383      }
6384  }
6385#endif
6386  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6387     provided.  */
6388  if (/* Try standardized names.  */
6389      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6390      /* Try IRIX, OSF/1 names.  */
6391      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6392      /* Try AIX names.  */
6393      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6394      /* Try HP-UX names.  */
6395      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6396    return 1;
6397  return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_run "$LINENO"; then :
6401  am_cv_func_iconv_works=yes
6402else
6403  am_cv_func_iconv_works=no
6404fi
6405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6406  conftest.$ac_objext conftest.beam conftest.$ac_ext
6407fi
6408
6409      LIBS="$am_save_LIBS"
6410
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6413$as_echo "$am_cv_func_iconv_works" >&6; }
6414    case "$am_cv_func_iconv_works" in
6415      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6416      *)   am_func_iconv=yes ;;
6417    esac
6418  else
6419    am_func_iconv=no am_cv_lib_iconv=no
6420  fi
6421  if test "$am_func_iconv" = yes; then
6422
6423$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6424
6425  fi
6426  if test "$am_cv_lib_iconv" = yes; then
6427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6428$as_echo_n "checking how to link with libiconv... " >&6; }
6429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6430$as_echo "$LIBICONV" >&6; }
6431  else
6432            CPPFLAGS="$am_save_CPPFLAGS"
6433    LIBICONV=
6434    LTLIBICONV=
6435  fi
6436
6437
6438
6439  if test "$am_cv_func_iconv" = yes; then
6440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6441$as_echo_n "checking for iconv declaration... " >&6; }
6442    if test "${am_cv_proto_iconv+set}" = set; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445
6446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448
6449#include <stdlib.h>
6450#include <iconv.h>
6451extern
6452#ifdef __cplusplus
6453"C"
6454#endif
6455#if defined(__STDC__) || defined(__cplusplus)
6456size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6457#else
6458size_t iconv();
6459#endif
6460
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"; then :
6470  am_cv_proto_iconv_arg1=""
6471else
6472  am_cv_proto_iconv_arg1="const"
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475      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);"
6476fi
6477
6478    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6480         }$am_cv_proto_iconv" >&5
6481$as_echo "${ac_t:-
6482         }$am_cv_proto_iconv" >&6; }
6483
6484cat >>confdefs.h <<_ACEOF
6485#define ICONV_CONST $am_cv_proto_iconv_arg1
6486_ACEOF
6487
6488  fi
6489
6490
6491
6492# Library setup
6493APIVERSION="3:0:2"
6494
6495
6496APINUMBER="10200"
6497
6498
6499APIPLUSVERSION="1:0:0"
6500
6501
6502LIBVERSION=`echo $VERSION. | sed -e 's/[^0-9.]//g; s/\./  /g; s/ \([0-9]\) / 0\\1 /g; s/ //g'`
6503
6504
6505
6506# Environment specific settings
6507
6508
6509LIBPREFIX="lib"
6510LIBSUFFIX=".so"
6511case "$host" in
6512	*-*-cygwin*)
6513		LIBPREFIX="cyg"
6514		LIBSUFFIX="-1.dll"
6515	;;
6516	*-*-mingw* | *-*-pw32*)
6517		LIBSUFFIX="-1.dll"
6518
6519$as_echo "#define WIN32 1" >>confdefs.h
6520
6521	;;
6522esac
6523
6524
6525# Libtool settings
6526case `pwd` in
6527  *\ * | *\	*)
6528    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6529$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6530esac
6531
6532
6533
6534macro_version='2.2.6b'
6535macro_revision='1.3017'
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549ltmain="$ac_aux_dir/ltmain.sh"
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6552$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6553if test "${ac_cv_path_SED+set}" = set; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6557     for ac_i in 1 2 3 4 5 6 7; do
6558       ac_script="$ac_script$as_nl$ac_script"
6559     done
6560     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6561     { ac_script=; unset ac_script;}
6562     if test -z "$SED"; then
6563  ac_path_SED_found=false
6564  # Loop through the user's path and test for each of PROGNAME-LIST
6565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570    for ac_prog in sed gsed; do
6571    for ac_exec_ext in '' $ac_executable_extensions; do
6572      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6573      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6574# Check for GNU ac_path_SED and select it if it is found.
6575  # Check for GNU $ac_path_SED
6576case `"$ac_path_SED" --version 2>&1` in
6577*GNU*)
6578  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6579*)
6580  ac_count=0
6581  $as_echo_n 0123456789 >"conftest.in"
6582  while :
6583  do
6584    cat "conftest.in" "conftest.in" >"conftest.tmp"
6585    mv "conftest.tmp" "conftest.in"
6586    cp "conftest.in" "conftest.nl"
6587    $as_echo '' >> "conftest.nl"
6588    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6589    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6590    as_fn_arith $ac_count + 1 && ac_count=$as_val
6591    if test $ac_count -gt ${ac_path_SED_max-0}; then
6592      # Best one so far, save it but keep looking for a better one
6593      ac_cv_path_SED="$ac_path_SED"
6594      ac_path_SED_max=$ac_count
6595    fi
6596    # 10*(2^10) chars as input seems more than enough
6597    test $ac_count -gt 10 && break
6598  done
6599  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6600esac
6601
6602      $ac_path_SED_found && break 3
6603    done
6604  done
6605  done
6606IFS=$as_save_IFS
6607  if test -z "$ac_cv_path_SED"; then
6608    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6609  fi
6610else
6611  ac_cv_path_SED=$SED
6612fi
6613
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6616$as_echo "$ac_cv_path_SED" >&6; }
6617 SED="$ac_cv_path_SED"
6618  rm -f conftest.sed
6619
6620test -z "$SED" && SED=sed
6621Xsed="$SED -e 1s/^X//"
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6634$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6635if test "${ac_cv_path_GREP+set}" = set; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  if test -z "$GREP"; then
6639  ac_path_GREP_found=false
6640  # Loop through the user's path and test for each of PROGNAME-LIST
6641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646    for ac_prog in grep ggrep; do
6647    for ac_exec_ext in '' $ac_executable_extensions; do
6648      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6649      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6650# Check for GNU ac_path_GREP and select it if it is found.
6651  # Check for GNU $ac_path_GREP
6652case `"$ac_path_GREP" --version 2>&1` in
6653*GNU*)
6654  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6655*)
6656  ac_count=0
6657  $as_echo_n 0123456789 >"conftest.in"
6658  while :
6659  do
6660    cat "conftest.in" "conftest.in" >"conftest.tmp"
6661    mv "conftest.tmp" "conftest.in"
6662    cp "conftest.in" "conftest.nl"
6663    $as_echo 'GREP' >> "conftest.nl"
6664    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6665    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6666    as_fn_arith $ac_count + 1 && ac_count=$as_val
6667    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6668      # Best one so far, save it but keep looking for a better one
6669      ac_cv_path_GREP="$ac_path_GREP"
6670      ac_path_GREP_max=$ac_count
6671    fi
6672    # 10*(2^10) chars as input seems more than enough
6673    test $ac_count -gt 10 && break
6674  done
6675  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6676esac
6677
6678      $ac_path_GREP_found && break 3
6679    done
6680  done
6681  done
6682IFS=$as_save_IFS
6683  if test -z "$ac_cv_path_GREP"; then
6684    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6685  fi
6686else
6687  ac_cv_path_GREP=$GREP
6688fi
6689
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6692$as_echo "$ac_cv_path_GREP" >&6; }
6693 GREP="$ac_cv_path_GREP"
6694
6695
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6697$as_echo_n "checking for egrep... " >&6; }
6698if test "${ac_cv_path_EGREP+set}" = set; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6702   then ac_cv_path_EGREP="$GREP -E"
6703   else
6704     if test -z "$EGREP"; then
6705  ac_path_EGREP_found=false
6706  # Loop through the user's path and test for each of PROGNAME-LIST
6707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712    for ac_prog in egrep; do
6713    for ac_exec_ext in '' $ac_executable_extensions; do
6714      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6715      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6716# Check for GNU ac_path_EGREP and select it if it is found.
6717  # Check for GNU $ac_path_EGREP
6718case `"$ac_path_EGREP" --version 2>&1` in
6719*GNU*)
6720  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6721*)
6722  ac_count=0
6723  $as_echo_n 0123456789 >"conftest.in"
6724  while :
6725  do
6726    cat "conftest.in" "conftest.in" >"conftest.tmp"
6727    mv "conftest.tmp" "conftest.in"
6728    cp "conftest.in" "conftest.nl"
6729    $as_echo 'EGREP' >> "conftest.nl"
6730    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6731    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6732    as_fn_arith $ac_count + 1 && ac_count=$as_val
6733    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6734      # Best one so far, save it but keep looking for a better one
6735      ac_cv_path_EGREP="$ac_path_EGREP"
6736      ac_path_EGREP_max=$ac_count
6737    fi
6738    # 10*(2^10) chars as input seems more than enough
6739    test $ac_count -gt 10 && break
6740  done
6741  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6742esac
6743
6744      $ac_path_EGREP_found && break 3
6745    done
6746  done
6747  done
6748IFS=$as_save_IFS
6749  if test -z "$ac_cv_path_EGREP"; then
6750    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6751  fi
6752else
6753  ac_cv_path_EGREP=$EGREP
6754fi
6755
6756   fi
6757fi
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6759$as_echo "$ac_cv_path_EGREP" >&6; }
6760 EGREP="$ac_cv_path_EGREP"
6761
6762
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6764$as_echo_n "checking for fgrep... " >&6; }
6765if test "${ac_cv_path_FGREP+set}" = set; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6769   then ac_cv_path_FGREP="$GREP -F"
6770   else
6771     if test -z "$FGREP"; then
6772  ac_path_FGREP_found=false
6773  # Loop through the user's path and test for each of PROGNAME-LIST
6774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6776do
6777  IFS=$as_save_IFS
6778  test -z "$as_dir" && as_dir=.
6779    for ac_prog in fgrep; do
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6782      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6783# Check for GNU ac_path_FGREP and select it if it is found.
6784  # Check for GNU $ac_path_FGREP
6785case `"$ac_path_FGREP" --version 2>&1` in
6786*GNU*)
6787  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6788*)
6789  ac_count=0
6790  $as_echo_n 0123456789 >"conftest.in"
6791  while :
6792  do
6793    cat "conftest.in" "conftest.in" >"conftest.tmp"
6794    mv "conftest.tmp" "conftest.in"
6795    cp "conftest.in" "conftest.nl"
6796    $as_echo 'FGREP' >> "conftest.nl"
6797    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6798    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6799    as_fn_arith $ac_count + 1 && ac_count=$as_val
6800    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6801      # Best one so far, save it but keep looking for a better one
6802      ac_cv_path_FGREP="$ac_path_FGREP"
6803      ac_path_FGREP_max=$ac_count
6804    fi
6805    # 10*(2^10) chars as input seems more than enough
6806    test $ac_count -gt 10 && break
6807  done
6808  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6809esac
6810
6811      $ac_path_FGREP_found && break 3
6812    done
6813  done
6814  done
6815IFS=$as_save_IFS
6816  if test -z "$ac_cv_path_FGREP"; then
6817    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6818  fi
6819else
6820  ac_cv_path_FGREP=$FGREP
6821fi
6822
6823   fi
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6826$as_echo "$ac_cv_path_FGREP" >&6; }
6827 FGREP="$ac_cv_path_FGREP"
6828
6829
6830test -z "$GREP" && GREP=grep
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850# Check whether --with-gnu-ld was given.
6851if test "${with_gnu_ld+set}" = set; then :
6852  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6853else
6854  with_gnu_ld=no
6855fi
6856
6857ac_prog=ld
6858if test "$GCC" = yes; then
6859  # Check if gcc -print-prog-name=ld gives a path.
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6861$as_echo_n "checking for ld used by $CC... " >&6; }
6862  case $host in
6863  *-*-mingw*)
6864    # gcc leaves a trailing carriage return which upsets mingw
6865    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6866  *)
6867    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6868  esac
6869  case $ac_prog in
6870    # Accept absolute paths.
6871    [\\/]* | ?:[\\/]*)
6872      re_direlt='/[^/][^/]*/\.\./'
6873      # Canonicalize the pathname of ld
6874      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6875      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6876	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6877      done
6878      test -z "$LD" && LD="$ac_prog"
6879      ;;
6880  "")
6881    # If it fails, then pretend we aren't using GCC.
6882    ac_prog=ld
6883    ;;
6884  *)
6885    # If it is relative, then search for the first ld in PATH.
6886    with_gnu_ld=unknown
6887    ;;
6888  esac
6889elif test "$with_gnu_ld" = yes; then
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6891$as_echo_n "checking for GNU ld... " >&6; }
6892else
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6894$as_echo_n "checking for non-GNU ld... " >&6; }
6895fi
6896if test "${lt_cv_path_LD+set}" = set; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  if test -z "$LD"; then
6900  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6901  for ac_dir in $PATH; do
6902    IFS="$lt_save_ifs"
6903    test -z "$ac_dir" && ac_dir=.
6904    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6905      lt_cv_path_LD="$ac_dir/$ac_prog"
6906      # Check to see if the program is GNU ld.  I'd rather use --version,
6907      # but apparently some variants of GNU ld only accept -v.
6908      # Break only if it was the GNU/non-GNU ld that we prefer.
6909      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6910      *GNU* | *'with BFD'*)
6911	test "$with_gnu_ld" != no && break
6912	;;
6913      *)
6914	test "$with_gnu_ld" != yes && break
6915	;;
6916      esac
6917    fi
6918  done
6919  IFS="$lt_save_ifs"
6920else
6921  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6922fi
6923fi
6924
6925LD="$lt_cv_path_LD"
6926if test -n "$LD"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6928$as_echo "$LD" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6935$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6936if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6940case `$LD -v 2>&1 </dev/null` in
6941*GNU* | *'with BFD'*)
6942  lt_cv_prog_gnu_ld=yes
6943  ;;
6944*)
6945  lt_cv_prog_gnu_ld=no
6946  ;;
6947esac
6948fi
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6950$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6951with_gnu_ld=$lt_cv_prog_gnu_ld
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6962$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6963if test "${lt_cv_path_NM+set}" = set; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  if test -n "$NM"; then
6967  # Let the user override the test.
6968  lt_cv_path_NM="$NM"
6969else
6970  lt_nm_to_check="${ac_tool_prefix}nm"
6971  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6972    lt_nm_to_check="$lt_nm_to_check nm"
6973  fi
6974  for lt_tmp_nm in $lt_nm_to_check; do
6975    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6976    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6977      IFS="$lt_save_ifs"
6978      test -z "$ac_dir" && ac_dir=.
6979      tmp_nm="$ac_dir/$lt_tmp_nm"
6980      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6981	# Check to see if the nm accepts a BSD-compat flag.
6982	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6983	#   nm: unknown option "B" ignored
6984	# Tru64's nm complains that /dev/null is an invalid object file
6985	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6986	*/dev/null* | *'Invalid file or object type'*)
6987	  lt_cv_path_NM="$tmp_nm -B"
6988	  break
6989	  ;;
6990	*)
6991	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6992	  */dev/null*)
6993	    lt_cv_path_NM="$tmp_nm -p"
6994	    break
6995	    ;;
6996	  *)
6997	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6998	    continue # so that we can try to find one that supports BSD flags
6999	    ;;
7000	  esac
7001	  ;;
7002	esac
7003      fi
7004    done
7005    IFS="$lt_save_ifs"
7006  done
7007  : ${lt_cv_path_NM=no}
7008fi
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7011$as_echo "$lt_cv_path_NM" >&6; }
7012if test "$lt_cv_path_NM" != "no"; then
7013  NM="$lt_cv_path_NM"
7014else
7015  # Didn't find any BSD compatible name lister, look for dumpbin.
7016  if test -n "$ac_tool_prefix"; then
7017  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7018  do
7019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  if test -n "$DUMPBIN"; then
7027  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034    for ac_exec_ext in '' $ac_executable_extensions; do
7035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041  done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046DUMPBIN=$ac_cv_prog_DUMPBIN
7047if test -n "$DUMPBIN"; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7049$as_echo "$DUMPBIN" >&6; }
7050else
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055
7056    test -n "$DUMPBIN" && break
7057  done
7058fi
7059if test -z "$DUMPBIN"; then
7060  ac_ct_DUMPBIN=$DUMPBIN
7061  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7062do
7063  # Extract the first word of "$ac_prog", so it can be a program name with args.
7064set dummy $ac_prog; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -n "$ac_ct_DUMPBIN"; then
7071  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076  IFS=$as_save_IFS
7077  test -z "$as_dir" && as_dir=.
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7091if test -n "$ac_ct_DUMPBIN"; then
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7093$as_echo "$ac_ct_DUMPBIN" >&6; }
7094else
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
7097fi
7098
7099
7100  test -n "$ac_ct_DUMPBIN" && break
7101done
7102
7103  if test "x$ac_ct_DUMPBIN" = x; then
7104    DUMPBIN=":"
7105  else
7106    case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112    DUMPBIN=$ac_ct_DUMPBIN
7113  fi
7114fi
7115
7116
7117  if test "$DUMPBIN" != ":"; then
7118    NM="$DUMPBIN"
7119  fi
7120fi
7121test -z "$NM" && NM=nm
7122
7123
7124
7125
7126
7127
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7129$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7130if test "${lt_cv_nm_interface+set}" = set; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  lt_cv_nm_interface="BSD nm"
7134  echo "int some_variable = 0;" > conftest.$ac_ext
7135  (eval echo "\"\$as_me:7135: $ac_compile\"" >&5)
7136  (eval "$ac_compile" 2>conftest.err)
7137  cat conftest.err >&5
7138  (eval echo "\"\$as_me:7138: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7139  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7140  cat conftest.err >&5
7141  (eval echo "\"\$as_me:7141: output\"" >&5)
7142  cat conftest.out >&5
7143  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7144    lt_cv_nm_interface="MS dumpbin"
7145  fi
7146  rm -f conftest*
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7149$as_echo "$lt_cv_nm_interface" >&6; }
7150
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7152$as_echo_n "checking whether ln -s works... " >&6; }
7153LN_S=$as_ln_s
7154if test "$LN_S" = "ln -s"; then
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156$as_echo "yes" >&6; }
7157else
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7159$as_echo "no, using $LN_S" >&6; }
7160fi
7161
7162# find the maximum length of command line arguments
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7164$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7165if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168    i=0
7169  teststring="ABCD"
7170
7171  case $build_os in
7172  msdosdjgpp*)
7173    # On DJGPP, this test can blow up pretty badly due to problems in libc
7174    # (any single argument exceeding 2000 bytes causes a buffer overrun
7175    # during glob expansion).  Even if it were fixed, the result of this
7176    # check would be larger than it should be.
7177    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7178    ;;
7179
7180  gnu*)
7181    # Under GNU Hurd, this test is not required because there is
7182    # no limit to the length of command line arguments.
7183    # Libtool will interpret -1 as no limit whatsoever
7184    lt_cv_sys_max_cmd_len=-1;
7185    ;;
7186
7187  cygwin* | mingw* | cegcc*)
7188    # On Win9x/ME, this test blows up -- it succeeds, but takes
7189    # about 5 minutes as the teststring grows exponentially.
7190    # Worse, since 9x/ME are not pre-emptively multitasking,
7191    # you end up with a "frozen" computer, even though with patience
7192    # the test eventually succeeds (with a max line length of 256k).
7193    # Instead, let's just punt: use the minimum linelength reported by
7194    # all of the supported platforms: 8192 (on NT/2K/XP).
7195    lt_cv_sys_max_cmd_len=8192;
7196    ;;
7197
7198  amigaos*)
7199    # On AmigaOS with pdksh, this test takes hours, literally.
7200    # So we just punt and use a minimum line length of 8192.
7201    lt_cv_sys_max_cmd_len=8192;
7202    ;;
7203
7204  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7205    # This has been around since 386BSD, at least.  Likely further.
7206    if test -x /sbin/sysctl; then
7207      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7208    elif test -x /usr/sbin/sysctl; then
7209      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7210    else
7211      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7212    fi
7213    # And add a safety zone
7214    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7215    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7216    ;;
7217
7218  interix*)
7219    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7220    lt_cv_sys_max_cmd_len=196608
7221    ;;
7222
7223  osf*)
7224    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7225    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7226    # nice to cause kernel panics so lets avoid the loop below.
7227    # First set a reasonable default.
7228    lt_cv_sys_max_cmd_len=16384
7229    #
7230    if test -x /sbin/sysconfig; then
7231      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7232        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7233      esac
7234    fi
7235    ;;
7236  sco3.2v5*)
7237    lt_cv_sys_max_cmd_len=102400
7238    ;;
7239  sysv5* | sco5v6* | sysv4.2uw2*)
7240    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7241    if test -n "$kargmax"; then
7242      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7243    else
7244      lt_cv_sys_max_cmd_len=32768
7245    fi
7246    ;;
7247  *)
7248    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7249    if test -n "$lt_cv_sys_max_cmd_len"; then
7250      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7251      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7252    else
7253      # Make teststring a little bigger before we do anything with it.
7254      # a 1K string should be a reasonable start.
7255      for i in 1 2 3 4 5 6 7 8 ; do
7256        teststring=$teststring$teststring
7257      done
7258      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7259      # If test is not a shell built-in, we'll probably end up computing a
7260      # maximum length that is only half of the actual maximum length, but
7261      # we can't tell.
7262      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7263	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7264	      test $i != 17 # 1/2 MB should be enough
7265      do
7266        i=`expr $i + 1`
7267        teststring=$teststring$teststring
7268      done
7269      # Only check the string length outside the loop.
7270      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7271      teststring=
7272      # Add a significant safety factor because C++ compilers can tack on
7273      # massive amounts of additional arguments before passing them to the
7274      # linker.  It appears as though 1/2 is a usable value.
7275      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7276    fi
7277    ;;
7278  esac
7279
7280fi
7281
7282if test -n $lt_cv_sys_max_cmd_len ; then
7283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7284$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7285else
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7287$as_echo "none" >&6; }
7288fi
7289max_cmd_len=$lt_cv_sys_max_cmd_len
7290
7291
7292
7293
7294
7295
7296: ${CP="cp -f"}
7297: ${MV="mv -f"}
7298: ${RM="rm -f"}
7299
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7301$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7302# Try some XSI features
7303xsi_shell=no
7304( _lt_dummy="a/b/c"
7305  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7306      = c,a/b,, \
7307    && eval 'test $(( 1 + 1 )) -eq 2 \
7308    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7309  && xsi_shell=yes
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7311$as_echo "$xsi_shell" >&6; }
7312
7313
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7315$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7316lt_shell_append=no
7317( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7318    >/dev/null 2>&1 \
7319  && lt_shell_append=yes
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7321$as_echo "$lt_shell_append" >&6; }
7322
7323
7324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7325  lt_unset=unset
7326else
7327  lt_unset=false
7328fi
7329
7330
7331
7332
7333
7334# test EBCDIC or ASCII
7335case `echo X|tr X '\101'` in
7336 A) # ASCII based system
7337    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7338  lt_SP2NL='tr \040 \012'
7339  lt_NL2SP='tr \015\012 \040\040'
7340  ;;
7341 *) # EBCDIC based system
7342  lt_SP2NL='tr \100 \n'
7343  lt_NL2SP='tr \r\n \100\100'
7344  ;;
7345esac
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7356$as_echo_n "checking for $LD option to reload object files... " >&6; }
7357if test "${lt_cv_ld_reload_flag+set}" = set; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  lt_cv_ld_reload_flag='-r'
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7363$as_echo "$lt_cv_ld_reload_flag" >&6; }
7364reload_flag=$lt_cv_ld_reload_flag
7365case $reload_flag in
7366"" | " "*) ;;
7367*) reload_flag=" $reload_flag" ;;
7368esac
7369reload_cmds='$LD$reload_flag -o $output$reload_objs'
7370case $host_os in
7371  darwin*)
7372    if test "$GCC" = yes; then
7373      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7374    else
7375      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7376    fi
7377    ;;
7378esac
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388if test -n "$ac_tool_prefix"; then
7389  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}objdump; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  if test -n "$OBJDUMP"; then
7397  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404    for ac_exec_ext in '' $ac_executable_extensions; do
7405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411  done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416OBJDUMP=$ac_cv_prog_OBJDUMP
7417if test -n "$OBJDUMP"; then
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7419$as_echo "$OBJDUMP" >&6; }
7420else
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425
7426fi
7427if test -z "$ac_cv_prog_OBJDUMP"; then
7428  ac_ct_OBJDUMP=$OBJDUMP
7429  # Extract the first word of "objdump", so it can be a program name with args.
7430set dummy objdump; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$ac_ct_OBJDUMP"; then
7437  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7457if test -n "$ac_ct_OBJDUMP"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7459$as_echo "$ac_ct_OBJDUMP" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465  if test "x$ac_ct_OBJDUMP" = x; then
7466    OBJDUMP="false"
7467  else
7468    case $cross_compiling:$ac_tool_warned in
7469yes:)
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472ac_tool_warned=yes ;;
7473esac
7474    OBJDUMP=$ac_ct_OBJDUMP
7475  fi
7476else
7477  OBJDUMP="$ac_cv_prog_OBJDUMP"
7478fi
7479
7480test -z "$OBJDUMP" && OBJDUMP=objdump
7481
7482
7483
7484
7485
7486
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7488$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7489if test "${lt_cv_deplibs_check_method+set}" = set; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  lt_cv_file_magic_cmd='$MAGIC_CMD'
7493lt_cv_file_magic_test_file=
7494lt_cv_deplibs_check_method='unknown'
7495# Need to set the preceding variable on all platforms that support
7496# interlibrary dependencies.
7497# 'none' -- dependencies not supported.
7498# `unknown' -- same as none, but documents that we really don't know.
7499# 'pass_all' -- all dependencies passed with no checks.
7500# 'test_compile' -- check by making test program.
7501# 'file_magic [[regex]]' -- check by looking for files in library path
7502# which responds to the $file_magic_cmd with a given extended regex.
7503# If you have `file' or equivalent on your system and you're not sure
7504# whether `pass_all' will *always* work, you probably want this one.
7505
7506case $host_os in
7507aix[4-9]*)
7508  lt_cv_deplibs_check_method=pass_all
7509  ;;
7510
7511beos*)
7512  lt_cv_deplibs_check_method=pass_all
7513  ;;
7514
7515bsdi[45]*)
7516  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7517  lt_cv_file_magic_cmd='/usr/bin/file -L'
7518  lt_cv_file_magic_test_file=/shlib/libc.so
7519  ;;
7520
7521cygwin*)
7522  # func_win32_libid is a shell function defined in ltmain.sh
7523  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7524  lt_cv_file_magic_cmd='func_win32_libid'
7525  ;;
7526
7527mingw* | pw32*)
7528  # Base MSYS/MinGW do not provide the 'file' command needed by
7529  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7530  # unless we find 'file', for example because we are cross-compiling.
7531  if ( file / ) >/dev/null 2>&1; then
7532    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7533    lt_cv_file_magic_cmd='func_win32_libid'
7534  else
7535    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7536    lt_cv_file_magic_cmd='$OBJDUMP -f'
7537  fi
7538  ;;
7539
7540cegcc)
7541  # use the weaker test based on 'objdump'. See mingw*.
7542  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7543  lt_cv_file_magic_cmd='$OBJDUMP -f'
7544  ;;
7545
7546darwin* | rhapsody*)
7547  lt_cv_deplibs_check_method=pass_all
7548  ;;
7549
7550freebsd* | dragonfly*)
7551  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7552    case $host_cpu in
7553    i*86 )
7554      # Not sure whether the presence of OpenBSD here was a mistake.
7555      # Let's accept both of them until this is cleared up.
7556      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7557      lt_cv_file_magic_cmd=/usr/bin/file
7558      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7559      ;;
7560    esac
7561  else
7562    lt_cv_deplibs_check_method=pass_all
7563  fi
7564  ;;
7565
7566gnu*)
7567  lt_cv_deplibs_check_method=pass_all
7568  ;;
7569
7570hpux10.20* | hpux11*)
7571  lt_cv_file_magic_cmd=/usr/bin/file
7572  case $host_cpu in
7573  ia64*)
7574    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7575    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7576    ;;
7577  hppa*64*)
7578    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]'
7579    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7580    ;;
7581  *)
7582    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7583    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7584    ;;
7585  esac
7586  ;;
7587
7588interix[3-9]*)
7589  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7590  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7591  ;;
7592
7593irix5* | irix6* | nonstopux*)
7594  case $LD in
7595  *-32|*"-32 ") libmagic=32-bit;;
7596  *-n32|*"-n32 ") libmagic=N32;;
7597  *-64|*"-64 ") libmagic=64-bit;;
7598  *) libmagic=never-match;;
7599  esac
7600  lt_cv_deplibs_check_method=pass_all
7601  ;;
7602
7603# This must be Linux ELF.
7604linux* | k*bsd*-gnu | kopensolaris*-gnu)
7605  lt_cv_deplibs_check_method=pass_all
7606  ;;
7607
7608netbsd* | netbsdelf*-gnu)
7609  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7610    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7611  else
7612    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7613  fi
7614  ;;
7615
7616newos6*)
7617  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7618  lt_cv_file_magic_cmd=/usr/bin/file
7619  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7620  ;;
7621
7622*nto* | *qnx*)
7623  lt_cv_deplibs_check_method=pass_all
7624  ;;
7625
7626openbsd*)
7627  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7628    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7629  else
7630    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7631  fi
7632  ;;
7633
7634osf3* | osf4* | osf5*)
7635  lt_cv_deplibs_check_method=pass_all
7636  ;;
7637
7638rdos*)
7639  lt_cv_deplibs_check_method=pass_all
7640  ;;
7641
7642solaris*)
7643  lt_cv_deplibs_check_method=pass_all
7644  ;;
7645
7646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7647  lt_cv_deplibs_check_method=pass_all
7648  ;;
7649
7650sysv4 | sysv4.3*)
7651  case $host_vendor in
7652  motorola)
7653    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]'
7654    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7655    ;;
7656  ncr)
7657    lt_cv_deplibs_check_method=pass_all
7658    ;;
7659  sequent)
7660    lt_cv_file_magic_cmd='/bin/file'
7661    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7662    ;;
7663  sni)
7664    lt_cv_file_magic_cmd='/bin/file'
7665    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7666    lt_cv_file_magic_test_file=/lib/libc.so
7667    ;;
7668  siemens)
7669    lt_cv_deplibs_check_method=pass_all
7670    ;;
7671  pc)
7672    lt_cv_deplibs_check_method=pass_all
7673    ;;
7674  esac
7675  ;;
7676
7677tpf*)
7678  lt_cv_deplibs_check_method=pass_all
7679  ;;
7680esac
7681
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7684$as_echo "$lt_cv_deplibs_check_method" >&6; }
7685file_magic_cmd=$lt_cv_file_magic_cmd
7686deplibs_check_method=$lt_cv_deplibs_check_method
7687test -z "$deplibs_check_method" && deplibs_check_method=unknown
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700if test -n "$ac_tool_prefix"; then
7701  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7702set dummy ${ac_tool_prefix}ar; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if test "${ac_cv_prog_AR+set}" = set; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  if test -n "$AR"; then
7709  ac_cv_prog_AR="$AR" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714  IFS=$as_save_IFS
7715  test -z "$as_dir" && as_dir=.
7716    for ac_exec_ext in '' $ac_executable_extensions; do
7717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718    ac_cv_prog_AR="${ac_tool_prefix}ar"
7719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720    break 2
7721  fi
7722done
7723  done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728AR=$ac_cv_prog_AR
7729if test -n "$AR"; then
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7731$as_echo "$AR" >&6; }
7732else
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737
7738fi
7739if test -z "$ac_cv_prog_AR"; then
7740  ac_ct_AR=$AR
7741  # Extract the first word of "ar", so it can be a program name with args.
7742set dummy ar; ac_word=$2
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744$as_echo_n "checking for $ac_word... " >&6; }
7745if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748  if test -n "$ac_ct_AR"; then
7749  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  test -z "$as_dir" && as_dir=.
7756    for ac_exec_ext in '' $ac_executable_extensions; do
7757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758    ac_cv_prog_ac_ct_AR="ar"
7759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760    break 2
7761  fi
7762done
7763  done
7764IFS=$as_save_IFS
7765
7766fi
7767fi
7768ac_ct_AR=$ac_cv_prog_ac_ct_AR
7769if test -n "$ac_ct_AR"; then
7770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7771$as_echo "$ac_ct_AR" >&6; }
7772else
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775fi
7776
7777  if test "x$ac_ct_AR" = x; then
7778    AR="false"
7779  else
7780    case $cross_compiling:$ac_tool_warned in
7781yes:)
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784ac_tool_warned=yes ;;
7785esac
7786    AR=$ac_ct_AR
7787  fi
7788else
7789  AR="$ac_cv_prog_AR"
7790fi
7791
7792test -z "$AR" && AR=ar
7793test -z "$AR_FLAGS" && AR_FLAGS=cru
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805if test -n "$ac_tool_prefix"; then
7806  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}strip; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if test "${ac_cv_prog_STRIP+set}" = set; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  if test -n "$STRIP"; then
7814  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828  done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833STRIP=$ac_cv_prog_STRIP
7834if test -n "$STRIP"; then
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7836$as_echo "$STRIP" >&6; }
7837else
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842
7843fi
7844if test -z "$ac_cv_prog_STRIP"; then
7845  ac_ct_STRIP=$STRIP
7846  # Extract the first word of "strip", so it can be a program name with args.
7847set dummy strip; ac_word=$2
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
7850if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  if test -n "$ac_ct_STRIP"; then
7854  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859  IFS=$as_save_IFS
7860  test -z "$as_dir" && as_dir=.
7861    for ac_exec_ext in '' $ac_executable_extensions; do
7862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863    ac_cv_prog_ac_ct_STRIP="strip"
7864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865    break 2
7866  fi
7867done
7868  done
7869IFS=$as_save_IFS
7870
7871fi
7872fi
7873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7874if test -n "$ac_ct_STRIP"; then
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7876$as_echo "$ac_ct_STRIP" >&6; }
7877else
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
7880fi
7881
7882  if test "x$ac_ct_STRIP" = x; then
7883    STRIP=":"
7884  else
7885    case $cross_compiling:$ac_tool_warned in
7886yes:)
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889ac_tool_warned=yes ;;
7890esac
7891    STRIP=$ac_ct_STRIP
7892  fi
7893else
7894  STRIP="$ac_cv_prog_STRIP"
7895fi
7896
7897test -z "$STRIP" && STRIP=:
7898
7899
7900
7901
7902
7903
7904if test -n "$ac_tool_prefix"; then
7905  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7906set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908$as_echo_n "checking for $ac_word... " >&6; }
7909if test "${ac_cv_prog_RANLIB+set}" = set; then :
7910  $as_echo_n "(cached) " >&6
7911else
7912  if test -n "$RANLIB"; then
7913  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7914else
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918  IFS=$as_save_IFS
7919  test -z "$as_dir" && as_dir=.
7920    for ac_exec_ext in '' $ac_executable_extensions; do
7921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924    break 2
7925  fi
7926done
7927  done
7928IFS=$as_save_IFS
7929
7930fi
7931fi
7932RANLIB=$ac_cv_prog_RANLIB
7933if test -n "$RANLIB"; then
7934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7935$as_echo "$RANLIB" >&6; }
7936else
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
7939fi
7940
7941
7942fi
7943if test -z "$ac_cv_prog_RANLIB"; then
7944  ac_ct_RANLIB=$RANLIB
7945  # Extract the first word of "ranlib", so it can be a program name with args.
7946set dummy ranlib; ac_word=$2
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948$as_echo_n "checking for $ac_word... " >&6; }
7949if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  if test -n "$ac_ct_RANLIB"; then
7953  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958  IFS=$as_save_IFS
7959  test -z "$as_dir" && as_dir=.
7960    for ac_exec_ext in '' $ac_executable_extensions; do
7961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962    ac_cv_prog_ac_ct_RANLIB="ranlib"
7963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964    break 2
7965  fi
7966done
7967  done
7968IFS=$as_save_IFS
7969
7970fi
7971fi
7972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7973if test -n "$ac_ct_RANLIB"; then
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7975$as_echo "$ac_ct_RANLIB" >&6; }
7976else
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
7980
7981  if test "x$ac_ct_RANLIB" = x; then
7982    RANLIB=":"
7983  else
7984    case $cross_compiling:$ac_tool_warned in
7985yes:)
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988ac_tool_warned=yes ;;
7989esac
7990    RANLIB=$ac_ct_RANLIB
7991  fi
7992else
7993  RANLIB="$ac_cv_prog_RANLIB"
7994fi
7995
7996test -z "$RANLIB" && RANLIB=:
7997
7998
7999
8000
8001
8002
8003# Determine commands to create old-style static archives.
8004old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8005old_postinstall_cmds='chmod 644 $oldlib'
8006old_postuninstall_cmds=
8007
8008if test -n "$RANLIB"; then
8009  case $host_os in
8010  openbsd*)
8011    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8012    ;;
8013  *)
8014    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8015    ;;
8016  esac
8017  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8018fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053# If no C compiler was specified, use CC.
8054LTCC=${LTCC-"$CC"}
8055
8056# If no C compiler flags were specified, use CFLAGS.
8057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058
8059# Allow CC to be a program name with arguments.
8060compiler=$CC
8061
8062
8063# Check for command to grab the raw symbol name followed by C symbol from nm.
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8065$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8066if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8067  $as_echo_n "(cached) " >&6
8068else
8069
8070# These are sane defaults that work on at least a few old systems.
8071# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8072
8073# Character class describing NM global symbol codes.
8074symcode='[BCDEGRST]'
8075
8076# Regexp to match symbols that can be accessed directly from C.
8077sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8078
8079# Define system-specific variables.
8080case $host_os in
8081aix*)
8082  symcode='[BCDT]'
8083  ;;
8084cygwin* | mingw* | pw32* | cegcc*)
8085  symcode='[ABCDGISTW]'
8086  ;;
8087hpux*)
8088  if test "$host_cpu" = ia64; then
8089    symcode='[ABCDEGRST]'
8090  fi
8091  ;;
8092irix* | nonstopux*)
8093  symcode='[BCDEGRST]'
8094  ;;
8095osf*)
8096  symcode='[BCDEGQRST]'
8097  ;;
8098solaris*)
8099  symcode='[BDRT]'
8100  ;;
8101sco3.2v5*)
8102  symcode='[DT]'
8103  ;;
8104sysv4.2uw2*)
8105  symcode='[DT]'
8106  ;;
8107sysv5* | sco5v6* | unixware* | OpenUNIX*)
8108  symcode='[ABDT]'
8109  ;;
8110sysv4)
8111  symcode='[DFNSTU]'
8112  ;;
8113esac
8114
8115# If we're using GNU nm, then use its standard symbol codes.
8116case `$NM -V 2>&1` in
8117*GNU* | *'with BFD'*)
8118  symcode='[ABCDGIRSTW]' ;;
8119esac
8120
8121# Transform an extracted symbol line into a proper C declaration.
8122# Some systems (esp. on ia64) link data and code symbols differently,
8123# so use this general approach.
8124lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8125
8126# Transform an extracted symbol line into symbol name and symbol address
8127lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8128lt_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'"
8129
8130# Handle CRLF in mingw tool chain
8131opt_cr=
8132case $build_os in
8133mingw*)
8134  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8135  ;;
8136esac
8137
8138# Try without a prefix underscore, then with it.
8139for ac_symprfx in "" "_"; do
8140
8141  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8142  symxfrm="\\1 $ac_symprfx\\2 \\2"
8143
8144  # Write the raw and C identifiers.
8145  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8146    # Fake it for dumpbin and say T for any non-static function
8147    # and D for any global variable.
8148    # Also find C++ and __fastcall symbols from MSVC++,
8149    # which start with @ or ?.
8150    lt_cv_sys_global_symbol_pipe="$AWK '"\
8151"     {last_section=section; section=\$ 3};"\
8152"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8153"     \$ 0!~/External *\|/{next};"\
8154"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8155"     {if(hide[section]) next};"\
8156"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8157"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8158"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8159"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8160"     ' prfx=^$ac_symprfx"
8161  else
8162    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8163  fi
8164
8165  # Check to see that the pipe works correctly.
8166  pipe_works=no
8167
8168  rm -f conftest*
8169  cat > conftest.$ac_ext <<_LT_EOF
8170#ifdef __cplusplus
8171extern "C" {
8172#endif
8173char nm_test_var;
8174void nm_test_func(void);
8175void nm_test_func(void){}
8176#ifdef __cplusplus
8177}
8178#endif
8179int main(){nm_test_var='a';nm_test_func();return(0);}
8180_LT_EOF
8181
8182  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8183  (eval $ac_compile) 2>&5
8184  ac_status=$?
8185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8186  test $ac_status = 0; }; then
8187    # Now try to grab the symbols.
8188    nlist=conftest.nm
8189    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8190  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8191  ac_status=$?
8192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193  test $ac_status = 0; } && test -s "$nlist"; then
8194      # Try sorting and uniquifying the output.
8195      if sort "$nlist" | uniq > "$nlist"T; then
8196	mv -f "$nlist"T "$nlist"
8197      else
8198	rm -f "$nlist"T
8199      fi
8200
8201      # Make sure that we snagged all the symbols we need.
8202      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8203	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8204	  cat <<_LT_EOF > conftest.$ac_ext
8205#ifdef __cplusplus
8206extern "C" {
8207#endif
8208
8209_LT_EOF
8210	  # Now generate the symbol file.
8211	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8212
8213	  cat <<_LT_EOF >> conftest.$ac_ext
8214
8215/* The mapping between symbol names and symbols.  */
8216const struct {
8217  const char *name;
8218  void       *address;
8219}
8220lt__PROGRAM__LTX_preloaded_symbols[] =
8221{
8222  { "@PROGRAM@", (void *) 0 },
8223_LT_EOF
8224	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8225	  cat <<\_LT_EOF >> conftest.$ac_ext
8226  {0, (void *) 0}
8227};
8228
8229/* This works around a problem in FreeBSD linker */
8230#ifdef FREEBSD_WORKAROUND
8231static const void *lt_preloaded_setup() {
8232  return lt__PROGRAM__LTX_preloaded_symbols;
8233}
8234#endif
8235
8236#ifdef __cplusplus
8237}
8238#endif
8239_LT_EOF
8240	  # Now try linking the two files.
8241	  mv conftest.$ac_objext conftstm.$ac_objext
8242	  lt_save_LIBS="$LIBS"
8243	  lt_save_CFLAGS="$CFLAGS"
8244	  LIBS="conftstm.$ac_objext"
8245	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8246	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8247  (eval $ac_link) 2>&5
8248  ac_status=$?
8249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8251	    pipe_works=yes
8252	  fi
8253	  LIBS="$lt_save_LIBS"
8254	  CFLAGS="$lt_save_CFLAGS"
8255	else
8256	  echo "cannot find nm_test_func in $nlist" >&5
8257	fi
8258      else
8259	echo "cannot find nm_test_var in $nlist" >&5
8260      fi
8261    else
8262      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8263    fi
8264  else
8265    echo "$progname: failed program was:" >&5
8266    cat conftest.$ac_ext >&5
8267  fi
8268  rm -rf conftest* conftst*
8269
8270  # Do not use the global_symbol_pipe unless it works.
8271  if test "$pipe_works" = yes; then
8272    break
8273  else
8274    lt_cv_sys_global_symbol_pipe=
8275  fi
8276done
8277
8278fi
8279
8280if test -z "$lt_cv_sys_global_symbol_pipe"; then
8281  lt_cv_sys_global_symbol_to_cdecl=
8282fi
8283if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8285$as_echo "failed" >&6; }
8286else
8287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8288$as_echo "ok" >&6; }
8289fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312# Check whether --enable-libtool-lock was given.
8313if test "${enable_libtool_lock+set}" = set; then :
8314  enableval=$enable_libtool_lock;
8315fi
8316
8317test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8318
8319# Some flags need to be propagated to the compiler or linker for good
8320# libtool support.
8321case $host in
8322ia64-*-hpux*)
8323  # Find out which ABI we are using.
8324  echo 'int i;' > conftest.$ac_ext
8325  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8326  (eval $ac_compile) 2>&5
8327  ac_status=$?
8328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8329  test $ac_status = 0; }; then
8330    case `/usr/bin/file conftest.$ac_objext` in
8331      *ELF-32*)
8332	HPUX_IA64_MODE="32"
8333	;;
8334      *ELF-64*)
8335	HPUX_IA64_MODE="64"
8336	;;
8337    esac
8338  fi
8339  rm -rf conftest*
8340  ;;
8341*-*-irix6*)
8342  # Find out which ABI we are using.
8343  echo '#line 8343 "configure"' > conftest.$ac_ext
8344  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8345  (eval $ac_compile) 2>&5
8346  ac_status=$?
8347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348  test $ac_status = 0; }; then
8349    if test "$lt_cv_prog_gnu_ld" = yes; then
8350      case `/usr/bin/file conftest.$ac_objext` in
8351	*32-bit*)
8352	  LD="${LD-ld} -melf32bsmip"
8353	  ;;
8354	*N32*)
8355	  LD="${LD-ld} -melf32bmipn32"
8356	  ;;
8357	*64-bit*)
8358	  LD="${LD-ld} -melf64bmip"
8359	;;
8360      esac
8361    else
8362      case `/usr/bin/file conftest.$ac_objext` in
8363	*32-bit*)
8364	  LD="${LD-ld} -32"
8365	  ;;
8366	*N32*)
8367	  LD="${LD-ld} -n32"
8368	  ;;
8369	*64-bit*)
8370	  LD="${LD-ld} -64"
8371	  ;;
8372      esac
8373    fi
8374  fi
8375  rm -rf conftest*
8376  ;;
8377
8378x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8379s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8380  # Find out which ABI we are using.
8381  echo 'int i;' > conftest.$ac_ext
8382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383  (eval $ac_compile) 2>&5
8384  ac_status=$?
8385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386  test $ac_status = 0; }; then
8387    case `/usr/bin/file conftest.o` in
8388      *32-bit*)
8389	case $host in
8390	  x86_64-*kfreebsd*-gnu)
8391	    LD="${LD-ld} -m elf_i386_fbsd"
8392	    ;;
8393	  x86_64-*linux*)
8394	    LD="${LD-ld} -m elf_i386"
8395	    ;;
8396	  ppc64-*linux*|powerpc64-*linux*)
8397	    LD="${LD-ld} -m elf32ppclinux"
8398	    ;;
8399	  s390x-*linux*)
8400	    LD="${LD-ld} -m elf_s390"
8401	    ;;
8402	  sparc64-*linux*)
8403	    LD="${LD-ld} -m elf32_sparc"
8404	    ;;
8405	esac
8406	;;
8407      *64-bit*)
8408	case $host in
8409	  x86_64-*kfreebsd*-gnu)
8410	    LD="${LD-ld} -m elf_x86_64_fbsd"
8411	    ;;
8412	  x86_64-*linux*)
8413	    LD="${LD-ld} -m elf_x86_64"
8414	    ;;
8415	  ppc*-*linux*|powerpc*-*linux*)
8416	    LD="${LD-ld} -m elf64ppc"
8417	    ;;
8418	  s390*-*linux*|s390*-*tpf*)
8419	    LD="${LD-ld} -m elf64_s390"
8420	    ;;
8421	  sparc*-*linux*)
8422	    LD="${LD-ld} -m elf64_sparc"
8423	    ;;
8424	esac
8425	;;
8426    esac
8427  fi
8428  rm -rf conftest*
8429  ;;
8430
8431*-*-sco3.2v5*)
8432  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8433  SAVE_CFLAGS="$CFLAGS"
8434  CFLAGS="$CFLAGS -belf"
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8436$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8437if test "${lt_cv_cc_needs_belf+set}" = set; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  ac_ext=c
8441ac_cpp='$CPP $CPPFLAGS'
8442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445
8446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458  lt_cv_cc_needs_belf=yes
8459else
8460  lt_cv_cc_needs_belf=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463    conftest$ac_exeext conftest.$ac_ext
8464     ac_ext=c
8465ac_cpp='$CPP $CPPFLAGS'
8466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8468ac_compiler_gnu=$ac_cv_c_compiler_gnu
8469
8470fi
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8472$as_echo "$lt_cv_cc_needs_belf" >&6; }
8473  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8474    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8475    CFLAGS="$SAVE_CFLAGS"
8476  fi
8477  ;;
8478sparc*-*solaris*)
8479  # Find out which ABI we are using.
8480  echo 'int i;' > conftest.$ac_ext
8481  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8482  (eval $ac_compile) 2>&5
8483  ac_status=$?
8484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8485  test $ac_status = 0; }; then
8486    case `/usr/bin/file conftest.o` in
8487    *64-bit*)
8488      case $lt_cv_prog_gnu_ld in
8489      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8490      *)
8491	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8492	  LD="${LD-ld} -64"
8493	fi
8494	;;
8495      esac
8496      ;;
8497    esac
8498  fi
8499  rm -rf conftest*
8500  ;;
8501esac
8502
8503need_locks="$enable_libtool_lock"
8504
8505
8506  case $host_os in
8507    rhapsody* | darwin*)
8508    if test -n "$ac_tool_prefix"; then
8509  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8510set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  if test -n "$DSYMUTIL"; then
8517  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522  IFS=$as_save_IFS
8523  test -z "$as_dir" && as_dir=.
8524    for ac_exec_ext in '' $ac_executable_extensions; do
8525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528    break 2
8529  fi
8530done
8531  done
8532IFS=$as_save_IFS
8533
8534fi
8535fi
8536DSYMUTIL=$ac_cv_prog_DSYMUTIL
8537if test -n "$DSYMUTIL"; then
8538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8539$as_echo "$DSYMUTIL" >&6; }
8540else
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543fi
8544
8545
8546fi
8547if test -z "$ac_cv_prog_DSYMUTIL"; then
8548  ac_ct_DSYMUTIL=$DSYMUTIL
8549  # Extract the first word of "dsymutil", so it can be a program name with args.
8550set dummy dsymutil; ac_word=$2
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
8553if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  if test -n "$ac_ct_DSYMUTIL"; then
8557  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8558else
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562  IFS=$as_save_IFS
8563  test -z "$as_dir" && as_dir=.
8564    for ac_exec_ext in '' $ac_executable_extensions; do
8565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568    break 2
8569  fi
8570done
8571  done
8572IFS=$as_save_IFS
8573
8574fi
8575fi
8576ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8577if test -n "$ac_ct_DSYMUTIL"; then
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8579$as_echo "$ac_ct_DSYMUTIL" >&6; }
8580else
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585  if test "x$ac_ct_DSYMUTIL" = x; then
8586    DSYMUTIL=":"
8587  else
8588    case $cross_compiling:$ac_tool_warned in
8589yes:)
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8592ac_tool_warned=yes ;;
8593esac
8594    DSYMUTIL=$ac_ct_DSYMUTIL
8595  fi
8596else
8597  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8598fi
8599
8600    if test -n "$ac_tool_prefix"; then
8601  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8602set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  if test -n "$NMEDIT"; then
8609  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614  IFS=$as_save_IFS
8615  test -z "$as_dir" && as_dir=.
8616    for ac_exec_ext in '' $ac_executable_extensions; do
8617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620    break 2
8621  fi
8622done
8623  done
8624IFS=$as_save_IFS
8625
8626fi
8627fi
8628NMEDIT=$ac_cv_prog_NMEDIT
8629if test -n "$NMEDIT"; then
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8631$as_echo "$NMEDIT" >&6; }
8632else
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635fi
8636
8637
8638fi
8639if test -z "$ac_cv_prog_NMEDIT"; then
8640  ac_ct_NMEDIT=$NMEDIT
8641  # Extract the first word of "nmedit", so it can be a program name with args.
8642set dummy nmedit; ac_word=$2
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  if test -n "$ac_ct_NMEDIT"; then
8649  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654  IFS=$as_save_IFS
8655  test -z "$as_dir" && as_dir=.
8656    for ac_exec_ext in '' $ac_executable_extensions; do
8657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660    break 2
8661  fi
8662done
8663  done
8664IFS=$as_save_IFS
8665
8666fi
8667fi
8668ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8669if test -n "$ac_ct_NMEDIT"; then
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8671$as_echo "$ac_ct_NMEDIT" >&6; }
8672else
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677  if test "x$ac_ct_NMEDIT" = x; then
8678    NMEDIT=":"
8679  else
8680    case $cross_compiling:$ac_tool_warned in
8681yes:)
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8684ac_tool_warned=yes ;;
8685esac
8686    NMEDIT=$ac_ct_NMEDIT
8687  fi
8688else
8689  NMEDIT="$ac_cv_prog_NMEDIT"
8690fi
8691
8692    if test -n "$ac_tool_prefix"; then
8693  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8694set dummy ${ac_tool_prefix}lipo; ac_word=$2
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if test "${ac_cv_prog_LIPO+set}" = set; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  if test -n "$LIPO"; then
8701  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8702else
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706  IFS=$as_save_IFS
8707  test -z "$as_dir" && as_dir=.
8708    for ac_exec_ext in '' $ac_executable_extensions; do
8709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712    break 2
8713  fi
8714done
8715  done
8716IFS=$as_save_IFS
8717
8718fi
8719fi
8720LIPO=$ac_cv_prog_LIPO
8721if test -n "$LIPO"; then
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8723$as_echo "$LIPO" >&6; }
8724else
8725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728
8729
8730fi
8731if test -z "$ac_cv_prog_LIPO"; then
8732  ac_ct_LIPO=$LIPO
8733  # Extract the first word of "lipo", so it can be a program name with args.
8734set dummy lipo; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  if test -n "$ac_ct_LIPO"; then
8741  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8742else
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746  IFS=$as_save_IFS
8747  test -z "$as_dir" && as_dir=.
8748    for ac_exec_ext in '' $ac_executable_extensions; do
8749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750    ac_cv_prog_ac_ct_LIPO="lipo"
8751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752    break 2
8753  fi
8754done
8755  done
8756IFS=$as_save_IFS
8757
8758fi
8759fi
8760ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8761if test -n "$ac_ct_LIPO"; then
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8763$as_echo "$ac_ct_LIPO" >&6; }
8764else
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
8767fi
8768
8769  if test "x$ac_ct_LIPO" = x; then
8770    LIPO=":"
8771  else
8772    case $cross_compiling:$ac_tool_warned in
8773yes:)
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8776ac_tool_warned=yes ;;
8777esac
8778    LIPO=$ac_ct_LIPO
8779  fi
8780else
8781  LIPO="$ac_cv_prog_LIPO"
8782fi
8783
8784    if test -n "$ac_tool_prefix"; then
8785  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8786set dummy ${ac_tool_prefix}otool; ac_word=$2
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788$as_echo_n "checking for $ac_word... " >&6; }
8789if test "${ac_cv_prog_OTOOL+set}" = set; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  if test -n "$OTOOL"; then
8793  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8794else
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798  IFS=$as_save_IFS
8799  test -z "$as_dir" && as_dir=.
8800    for ac_exec_ext in '' $ac_executable_extensions; do
8801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804    break 2
8805  fi
8806done
8807  done
8808IFS=$as_save_IFS
8809
8810fi
8811fi
8812OTOOL=$ac_cv_prog_OTOOL
8813if test -n "$OTOOL"; then
8814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8815$as_echo "$OTOOL" >&6; }
8816else
8817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818$as_echo "no" >&6; }
8819fi
8820
8821
8822fi
8823if test -z "$ac_cv_prog_OTOOL"; then
8824  ac_ct_OTOOL=$OTOOL
8825  # Extract the first word of "otool", so it can be a program name with args.
8826set dummy otool; ac_word=$2
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  if test -n "$ac_ct_OTOOL"; then
8833  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8834else
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838  IFS=$as_save_IFS
8839  test -z "$as_dir" && as_dir=.
8840    for ac_exec_ext in '' $ac_executable_extensions; do
8841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842    ac_cv_prog_ac_ct_OTOOL="otool"
8843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844    break 2
8845  fi
8846done
8847  done
8848IFS=$as_save_IFS
8849
8850fi
8851fi
8852ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8853if test -n "$ac_ct_OTOOL"; then
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8855$as_echo "$ac_ct_OTOOL" >&6; }
8856else
8857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
8859fi
8860
8861  if test "x$ac_ct_OTOOL" = x; then
8862    OTOOL=":"
8863  else
8864    case $cross_compiling:$ac_tool_warned in
8865yes:)
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8868ac_tool_warned=yes ;;
8869esac
8870    OTOOL=$ac_ct_OTOOL
8871  fi
8872else
8873  OTOOL="$ac_cv_prog_OTOOL"
8874fi
8875
8876    if test -n "$ac_tool_prefix"; then
8877  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8878set dummy ${ac_tool_prefix}otool64; ac_word=$2
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884  if test -n "$OTOOL64"; then
8885  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890  IFS=$as_save_IFS
8891  test -z "$as_dir" && as_dir=.
8892    for ac_exec_ext in '' $ac_executable_extensions; do
8893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896    break 2
8897  fi
8898done
8899  done
8900IFS=$as_save_IFS
8901
8902fi
8903fi
8904OTOOL64=$ac_cv_prog_OTOOL64
8905if test -n "$OTOOL64"; then
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8907$as_echo "$OTOOL64" >&6; }
8908else
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912
8913
8914fi
8915if test -z "$ac_cv_prog_OTOOL64"; then
8916  ac_ct_OTOOL64=$OTOOL64
8917  # Extract the first word of "otool64", so it can be a program name with args.
8918set dummy otool64; ac_word=$2
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
8921if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  if test -n "$ac_ct_OTOOL64"; then
8925  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930  IFS=$as_save_IFS
8931  test -z "$as_dir" && as_dir=.
8932    for ac_exec_ext in '' $ac_executable_extensions; do
8933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934    ac_cv_prog_ac_ct_OTOOL64="otool64"
8935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936    break 2
8937  fi
8938done
8939  done
8940IFS=$as_save_IFS
8941
8942fi
8943fi
8944ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8945if test -n "$ac_ct_OTOOL64"; then
8946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8947$as_echo "$ac_ct_OTOOL64" >&6; }
8948else
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950$as_echo "no" >&6; }
8951fi
8952
8953  if test "x$ac_ct_OTOOL64" = x; then
8954    OTOOL64=":"
8955  else
8956    case $cross_compiling:$ac_tool_warned in
8957yes:)
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960ac_tool_warned=yes ;;
8961esac
8962    OTOOL64=$ac_ct_OTOOL64
8963  fi
8964else
8965  OTOOL64="$ac_cv_prog_OTOOL64"
8966fi
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8995$as_echo_n "checking for -single_module linker flag... " >&6; }
8996if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  lt_cv_apple_cc_single_mod=no
9000      if test -z "${LT_MULTI_MODULE}"; then
9001	# By default we will add the -single_module flag. You can override
9002	# by either setting the environment variable LT_MULTI_MODULE
9003	# non-empty at configure time, or by adding -multi_module to the
9004	# link flags.
9005	rm -rf libconftest.dylib*
9006	echo "int foo(void){return 1;}" > conftest.c
9007	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9008-dynamiclib -Wl,-single_module conftest.c" >&5
9009	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9010	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9011        _lt_result=$?
9012	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9013	  lt_cv_apple_cc_single_mod=yes
9014	else
9015	  cat conftest.err >&5
9016	fi
9017	rm -rf libconftest.dylib*
9018	rm -f conftest.*
9019      fi
9020fi
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9022$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9024$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9025if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  lt_cv_ld_exported_symbols_list=no
9029      save_LDFLAGS=$LDFLAGS
9030      echo "_main" > conftest.sym
9031      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9032      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034
9035int
9036main ()
9037{
9038
9039  ;
9040  return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"; then :
9044  lt_cv_ld_exported_symbols_list=yes
9045else
9046  lt_cv_ld_exported_symbols_list=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext \
9049    conftest$ac_exeext conftest.$ac_ext
9050	LDFLAGS="$save_LDFLAGS"
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9054$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9055    case $host_os in
9056    rhapsody* | darwin1.[012])
9057      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9058    darwin1.*)
9059      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9060    darwin*) # darwin 5.x on
9061      # if running on 10.5 or later, the deployment target defaults
9062      # to the OS version, if on x86, and 10.4, the deployment
9063      # target defaults to 10.4. Don't you love it?
9064      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9065	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9066	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9067	10.[012]*)
9068	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9069	10.*)
9070	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9071      esac
9072    ;;
9073  esac
9074    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9075      _lt_dar_single_mod='$single_module'
9076    fi
9077    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9078      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9079    else
9080      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9081    fi
9082    if test "$DSYMUTIL" != ":"; then
9083      _lt_dsymutil='~$DSYMUTIL $lib || :'
9084    else
9085      _lt_dsymutil=
9086    fi
9087    ;;
9088  esac
9089
9090ac_ext=c
9091ac_cpp='$CPP $CPPFLAGS'
9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094ac_compiler_gnu=$ac_cv_c_compiler_gnu
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9096$as_echo_n "checking how to run the C preprocessor... " >&6; }
9097# On Suns, sometimes $CPP names a directory.
9098if test -n "$CPP" && test -d "$CPP"; then
9099  CPP=
9100fi
9101if test -z "$CPP"; then
9102  if test "${ac_cv_prog_CPP+set}" = set; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105      # Double quotes because CPP needs to be expanded
9106    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9107    do
9108      ac_preproc_ok=false
9109for ac_c_preproc_warn_flag in '' yes
9110do
9111  # Use a header file that comes with gcc, so configuring glibc
9112  # with a fresh cross-compiler works.
9113  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114  # <limits.h> exists even on freestanding compilers.
9115  # On the NeXT, cc -E runs the code through the compiler's parser,
9116  # not just through cpp. "Syntax error" is here to catch this case.
9117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119#ifdef __STDC__
9120# include <limits.h>
9121#else
9122# include <assert.h>
9123#endif
9124		     Syntax error
9125_ACEOF
9126if ac_fn_c_try_cpp "$LINENO"; then :
9127
9128else
9129  # Broken: fails on valid input.
9130continue
9131fi
9132rm -f conftest.err conftest.$ac_ext
9133
9134  # OK, works on sane cases.  Now check whether nonexistent headers
9135  # can be detected and how.
9136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137/* end confdefs.h.  */
9138#include <ac_nonexistent.h>
9139_ACEOF
9140if ac_fn_c_try_cpp "$LINENO"; then :
9141  # Broken: success on invalid input.
9142continue
9143else
9144  # Passes both tests.
9145ac_preproc_ok=:
9146break
9147fi
9148rm -f conftest.err conftest.$ac_ext
9149
9150done
9151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9152rm -f conftest.err conftest.$ac_ext
9153if $ac_preproc_ok; then :
9154  break
9155fi
9156
9157    done
9158    ac_cv_prog_CPP=$CPP
9159
9160fi
9161  CPP=$ac_cv_prog_CPP
9162else
9163  ac_cv_prog_CPP=$CPP
9164fi
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9166$as_echo "$CPP" >&6; }
9167ac_preproc_ok=false
9168for ac_c_preproc_warn_flag in '' yes
9169do
9170  # Use a header file that comes with gcc, so configuring glibc
9171  # with a fresh cross-compiler works.
9172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173  # <limits.h> exists even on freestanding compilers.
9174  # On the NeXT, cc -E runs the code through the compiler's parser,
9175  # not just through cpp. "Syntax error" is here to catch this case.
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178#ifdef __STDC__
9179# include <limits.h>
9180#else
9181# include <assert.h>
9182#endif
9183		     Syntax error
9184_ACEOF
9185if ac_fn_c_try_cpp "$LINENO"; then :
9186
9187else
9188  # Broken: fails on valid input.
9189continue
9190fi
9191rm -f conftest.err conftest.$ac_ext
9192
9193  # OK, works on sane cases.  Now check whether nonexistent headers
9194  # can be detected and how.
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197#include <ac_nonexistent.h>
9198_ACEOF
9199if ac_fn_c_try_cpp "$LINENO"; then :
9200  # Broken: success on invalid input.
9201continue
9202else
9203  # Passes both tests.
9204ac_preproc_ok=:
9205break
9206fi
9207rm -f conftest.err conftest.$ac_ext
9208
9209done
9210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211rm -f conftest.err conftest.$ac_ext
9212if $ac_preproc_ok; then :
9213
9214else
9215  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9217as_fn_error "C preprocessor \"$CPP\" fails sanity check
9218See \`config.log' for more details." "$LINENO" 5; }
9219fi
9220
9221ac_ext=c
9222ac_cpp='$CPP $CPPFLAGS'
9223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9225ac_compiler_gnu=$ac_cv_c_compiler_gnu
9226
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9229$as_echo_n "checking for ANSI C header files... " >&6; }
9230if test "${ac_cv_header_stdc+set}" = set; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h.  */
9235#include <stdlib.h>
9236#include <stdarg.h>
9237#include <string.h>
9238#include <float.h>
9239
9240int
9241main ()
9242{
9243
9244  ;
9245  return 0;
9246}
9247_ACEOF
9248if ac_fn_c_try_compile "$LINENO"; then :
9249  ac_cv_header_stdc=yes
9250else
9251  ac_cv_header_stdc=no
9252fi
9253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254
9255if test $ac_cv_header_stdc = yes; then
9256  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259#include <string.h>
9260
9261_ACEOF
9262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9263  $EGREP "memchr" >/dev/null 2>&1; then :
9264
9265else
9266  ac_cv_header_stdc=no
9267fi
9268rm -f conftest*
9269
9270fi
9271
9272if test $ac_cv_header_stdc = yes; then
9273  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h.  */
9276#include <stdlib.h>
9277
9278_ACEOF
9279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9280  $EGREP "free" >/dev/null 2>&1; then :
9281
9282else
9283  ac_cv_header_stdc=no
9284fi
9285rm -f conftest*
9286
9287fi
9288
9289if test $ac_cv_header_stdc = yes; then
9290  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9291  if test "$cross_compiling" = yes; then :
9292  :
9293else
9294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296#include <ctype.h>
9297#include <stdlib.h>
9298#if ((' ' & 0x0FF) == 0x020)
9299# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9300# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9301#else
9302# define ISLOWER(c) \
9303		   (('a' <= (c) && (c) <= 'i') \
9304		     || ('j' <= (c) && (c) <= 'r') \
9305		     || ('s' <= (c) && (c) <= 'z'))
9306# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9307#endif
9308
9309#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9310int
9311main ()
9312{
9313  int i;
9314  for (i = 0; i < 256; i++)
9315    if (XOR (islower (i), ISLOWER (i))
9316	|| toupper (i) != TOUPPER (i))
9317      return 2;
9318  return 0;
9319}
9320_ACEOF
9321if ac_fn_c_try_run "$LINENO"; then :
9322
9323else
9324  ac_cv_header_stdc=no
9325fi
9326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9327  conftest.$ac_objext conftest.beam conftest.$ac_ext
9328fi
9329
9330fi
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9333$as_echo "$ac_cv_header_stdc" >&6; }
9334if test $ac_cv_header_stdc = yes; then
9335
9336$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9337
9338fi
9339
9340# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9341for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9342		  inttypes.h stdint.h unistd.h
9343do :
9344  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9345ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9346"
9347eval as_val=\$$as_ac_Header
9348   if test "x$as_val" = x""yes; then :
9349  cat >>confdefs.h <<_ACEOF
9350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9351_ACEOF
9352
9353fi
9354
9355done
9356
9357
9358for ac_header in dlfcn.h
9359do :
9360  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9361"
9362if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9363  cat >>confdefs.h <<_ACEOF
9364#define HAVE_DLFCN_H 1
9365_ACEOF
9366
9367fi
9368
9369done
9370
9371
9372
9373# Set options
9374enable_win32_dll=yes
9375
9376case $host in
9377*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9378  if test -n "$ac_tool_prefix"; then
9379  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9380set dummy ${ac_tool_prefix}as; ac_word=$2
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if test "${ac_cv_prog_AS+set}" = set; then :
9384  $as_echo_n "(cached) " >&6
9385else
9386  if test -n "$AS"; then
9387  ac_cv_prog_AS="$AS" # Let the user override the test.
9388else
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392  IFS=$as_save_IFS
9393  test -z "$as_dir" && as_dir=.
9394    for ac_exec_ext in '' $ac_executable_extensions; do
9395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396    ac_cv_prog_AS="${ac_tool_prefix}as"
9397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398    break 2
9399  fi
9400done
9401  done
9402IFS=$as_save_IFS
9403
9404fi
9405fi
9406AS=$ac_cv_prog_AS
9407if test -n "$AS"; then
9408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9409$as_echo "$AS" >&6; }
9410else
9411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
9413fi
9414
9415
9416fi
9417if test -z "$ac_cv_prog_AS"; then
9418  ac_ct_AS=$AS
9419  # Extract the first word of "as", so it can be a program name with args.
9420set dummy as; ac_word=$2
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
9423if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  if test -n "$ac_ct_AS"; then
9427  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9428else
9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432  IFS=$as_save_IFS
9433  test -z "$as_dir" && as_dir=.
9434    for ac_exec_ext in '' $ac_executable_extensions; do
9435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9436    ac_cv_prog_ac_ct_AS="as"
9437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438    break 2
9439  fi
9440done
9441  done
9442IFS=$as_save_IFS
9443
9444fi
9445fi
9446ac_ct_AS=$ac_cv_prog_ac_ct_AS
9447if test -n "$ac_ct_AS"; then
9448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9449$as_echo "$ac_ct_AS" >&6; }
9450else
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9453fi
9454
9455  if test "x$ac_ct_AS" = x; then
9456    AS="false"
9457  else
9458    case $cross_compiling:$ac_tool_warned in
9459yes:)
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9462ac_tool_warned=yes ;;
9463esac
9464    AS=$ac_ct_AS
9465  fi
9466else
9467  AS="$ac_cv_prog_AS"
9468fi
9469
9470  if test -n "$ac_tool_prefix"; then
9471  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9472set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474$as_echo_n "checking for $ac_word... " >&6; }
9475if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  if test -n "$DLLTOOL"; then
9479  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484  IFS=$as_save_IFS
9485  test -z "$as_dir" && as_dir=.
9486    for ac_exec_ext in '' $ac_executable_extensions; do
9487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9488    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490    break 2
9491  fi
9492done
9493  done
9494IFS=$as_save_IFS
9495
9496fi
9497fi
9498DLLTOOL=$ac_cv_prog_DLLTOOL
9499if test -n "$DLLTOOL"; then
9500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9501$as_echo "$DLLTOOL" >&6; }
9502else
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505fi
9506
9507
9508fi
9509if test -z "$ac_cv_prog_DLLTOOL"; then
9510  ac_ct_DLLTOOL=$DLLTOOL
9511  # Extract the first word of "dlltool", so it can be a program name with args.
9512set dummy dlltool; ac_word=$2
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514$as_echo_n "checking for $ac_word... " >&6; }
9515if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
9516  $as_echo_n "(cached) " >&6
9517else
9518  if test -n "$ac_ct_DLLTOOL"; then
9519  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9520else
9521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522for as_dir in $PATH
9523do
9524  IFS=$as_save_IFS
9525  test -z "$as_dir" && as_dir=.
9526    for ac_exec_ext in '' $ac_executable_extensions; do
9527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530    break 2
9531  fi
9532done
9533  done
9534IFS=$as_save_IFS
9535
9536fi
9537fi
9538ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9539if test -n "$ac_ct_DLLTOOL"; then
9540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9541$as_echo "$ac_ct_DLLTOOL" >&6; }
9542else
9543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544$as_echo "no" >&6; }
9545fi
9546
9547  if test "x$ac_ct_DLLTOOL" = x; then
9548    DLLTOOL="false"
9549  else
9550    case $cross_compiling:$ac_tool_warned in
9551yes:)
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9554ac_tool_warned=yes ;;
9555esac
9556    DLLTOOL=$ac_ct_DLLTOOL
9557  fi
9558else
9559  DLLTOOL="$ac_cv_prog_DLLTOOL"
9560fi
9561
9562  if test -n "$ac_tool_prefix"; then
9563  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9564set dummy ${ac_tool_prefix}objdump; ac_word=$2
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566$as_echo_n "checking for $ac_word... " >&6; }
9567if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  if test -n "$OBJDUMP"; then
9571  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9572else
9573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574for as_dir in $PATH
9575do
9576  IFS=$as_save_IFS
9577  test -z "$as_dir" && as_dir=.
9578    for ac_exec_ext in '' $ac_executable_extensions; do
9579  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9580    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582    break 2
9583  fi
9584done
9585  done
9586IFS=$as_save_IFS
9587
9588fi
9589fi
9590OBJDUMP=$ac_cv_prog_OBJDUMP
9591if test -n "$OBJDUMP"; then
9592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9593$as_echo "$OBJDUMP" >&6; }
9594else
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596$as_echo "no" >&6; }
9597fi
9598
9599
9600fi
9601if test -z "$ac_cv_prog_OBJDUMP"; then
9602  ac_ct_OBJDUMP=$OBJDUMP
9603  # Extract the first word of "objdump", so it can be a program name with args.
9604set dummy objdump; ac_word=$2
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606$as_echo_n "checking for $ac_word... " >&6; }
9607if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9608  $as_echo_n "(cached) " >&6
9609else
9610  if test -n "$ac_ct_OBJDUMP"; then
9611  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9612else
9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616  IFS=$as_save_IFS
9617  test -z "$as_dir" && as_dir=.
9618    for ac_exec_ext in '' $ac_executable_extensions; do
9619  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9620    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622    break 2
9623  fi
9624done
9625  done
9626IFS=$as_save_IFS
9627
9628fi
9629fi
9630ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9631if test -n "$ac_ct_OBJDUMP"; then
9632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9633$as_echo "$ac_ct_OBJDUMP" >&6; }
9634else
9635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637fi
9638
9639  if test "x$ac_ct_OBJDUMP" = x; then
9640    OBJDUMP="false"
9641  else
9642    case $cross_compiling:$ac_tool_warned in
9643yes:)
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9646ac_tool_warned=yes ;;
9647esac
9648    OBJDUMP=$ac_ct_OBJDUMP
9649  fi
9650else
9651  OBJDUMP="$ac_cv_prog_OBJDUMP"
9652fi
9653
9654  ;;
9655esac
9656
9657test -z "$AS" && AS=as
9658
9659
9660
9661
9662
9663test -z "$DLLTOOL" && DLLTOOL=dlltool
9664
9665
9666
9667
9668
9669test -z "$OBJDUMP" && OBJDUMP=objdump
9670
9671
9672
9673
9674
9675
9676
9677        enable_dlopen=no
9678
9679
9680
9681            # Check whether --enable-shared was given.
9682if test "${enable_shared+set}" = set; then :
9683  enableval=$enable_shared; p=${PACKAGE-default}
9684    case $enableval in
9685    yes) enable_shared=yes ;;
9686    no) enable_shared=no ;;
9687    *)
9688      enable_shared=no
9689      # Look at the argument we got.  We use all the common list separators.
9690      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9691      for pkg in $enableval; do
9692	IFS="$lt_save_ifs"
9693	if test "X$pkg" = "X$p"; then
9694	  enable_shared=yes
9695	fi
9696      done
9697      IFS="$lt_save_ifs"
9698      ;;
9699    esac
9700else
9701  enable_shared=yes
9702fi
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712  # Check whether --enable-static was given.
9713if test "${enable_static+set}" = set; then :
9714  enableval=$enable_static; p=${PACKAGE-default}
9715    case $enableval in
9716    yes) enable_static=yes ;;
9717    no) enable_static=no ;;
9718    *)
9719     enable_static=no
9720      # Look at the argument we got.  We use all the common list separators.
9721      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9722      for pkg in $enableval; do
9723	IFS="$lt_save_ifs"
9724	if test "X$pkg" = "X$p"; then
9725	  enable_static=yes
9726	fi
9727      done
9728      IFS="$lt_save_ifs"
9729      ;;
9730    esac
9731else
9732  enable_static=yes
9733fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744# Check whether --with-pic was given.
9745if test "${with_pic+set}" = set; then :
9746  withval=$with_pic; pic_mode="$withval"
9747else
9748  pic_mode=default
9749fi
9750
9751
9752test -z "$pic_mode" && pic_mode=default
9753
9754
9755
9756
9757
9758
9759
9760  # Check whether --enable-fast-install was given.
9761if test "${enable_fast_install+set}" = set; then :
9762  enableval=$enable_fast_install; p=${PACKAGE-default}
9763    case $enableval in
9764    yes) enable_fast_install=yes ;;
9765    no) enable_fast_install=no ;;
9766    *)
9767      enable_fast_install=no
9768      # Look at the argument we got.  We use all the common list separators.
9769      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9770      for pkg in $enableval; do
9771	IFS="$lt_save_ifs"
9772	if test "X$pkg" = "X$p"; then
9773	  enable_fast_install=yes
9774	fi
9775      done
9776      IFS="$lt_save_ifs"
9777      ;;
9778    esac
9779else
9780  enable_fast_install=yes
9781fi
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793# This can be used to rebuild libtool when needed
9794LIBTOOL_DEPS="$ltmain"
9795
9796# Always use our own libtool.
9797LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823test -z "$LN_S" && LN_S="ln -s"
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838if test -n "${ZSH_VERSION+set}" ; then
9839   setopt NO_GLOB_SUBST
9840fi
9841
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9843$as_echo_n "checking for objdir... " >&6; }
9844if test "${lt_cv_objdir+set}" = set; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  rm -f .libs 2>/dev/null
9848mkdir .libs 2>/dev/null
9849if test -d .libs; then
9850  lt_cv_objdir=.libs
9851else
9852  # MS-DOS does not allow filenames that begin with a dot.
9853  lt_cv_objdir=_libs
9854fi
9855rmdir .libs 2>/dev/null
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9858$as_echo "$lt_cv_objdir" >&6; }
9859objdir=$lt_cv_objdir
9860
9861
9862
9863
9864
9865cat >>confdefs.h <<_ACEOF
9866#define LT_OBJDIR "$lt_cv_objdir/"
9867_ACEOF
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885case $host_os in
9886aix3*)
9887  # AIX sometimes has problems with the GCC collect2 program.  For some
9888  # reason, if we set the COLLECT_NAMES environment variable, the problems
9889  # vanish in a puff of smoke.
9890  if test "X${COLLECT_NAMES+set}" != Xset; then
9891    COLLECT_NAMES=
9892    export COLLECT_NAMES
9893  fi
9894  ;;
9895esac
9896
9897# Sed substitution that helps us do robust quoting.  It backslashifies
9898# metacharacters that are still active within double-quoted strings.
9899sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9900
9901# Same as above, but do not quote variable references.
9902double_quote_subst='s/\(["`\\]\)/\\\1/g'
9903
9904# Sed substitution to delay expansion of an escaped shell variable in a
9905# double_quote_subst'ed string.
9906delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9907
9908# Sed substitution to delay expansion of an escaped single quote.
9909delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9910
9911# Sed substitution to avoid accidental globbing in evaled expressions
9912no_glob_subst='s/\*/\\\*/g'
9913
9914# Global variables:
9915ofile=libtool
9916can_build_shared=yes
9917
9918# All known linkers require a `.a' archive for static linking (except MSVC,
9919# which needs '.lib').
9920libext=a
9921
9922with_gnu_ld="$lt_cv_prog_gnu_ld"
9923
9924old_CC="$CC"
9925old_CFLAGS="$CFLAGS"
9926
9927# Set sane defaults for various variables
9928test -z "$CC" && CC=cc
9929test -z "$LTCC" && LTCC=$CC
9930test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9931test -z "$LD" && LD=ld
9932test -z "$ac_objext" && ac_objext=o
9933
9934for cc_temp in $compiler""; do
9935  case $cc_temp in
9936    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9937    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9938    \-*) ;;
9939    *) break;;
9940  esac
9941done
9942cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9943
9944
9945# Only perform the check for file, if the check method requires it
9946test -z "$MAGIC_CMD" && MAGIC_CMD=file
9947case $deplibs_check_method in
9948file_magic*)
9949  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9951$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9952if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  case $MAGIC_CMD in
9956[\\/*] |  ?:[\\/]*)
9957  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9958  ;;
9959*)
9960  lt_save_MAGIC_CMD="$MAGIC_CMD"
9961  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9962  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9963  for ac_dir in $ac_dummy; do
9964    IFS="$lt_save_ifs"
9965    test -z "$ac_dir" && ac_dir=.
9966    if test -f $ac_dir/${ac_tool_prefix}file; then
9967      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9968      if test -n "$file_magic_test_file"; then
9969	case $deplibs_check_method in
9970	"file_magic "*)
9971	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9972	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9973	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9974	    $EGREP "$file_magic_regex" > /dev/null; then
9975	    :
9976	  else
9977	    cat <<_LT_EOF 1>&2
9978
9979*** Warning: the command libtool uses to detect shared libraries,
9980*** $file_magic_cmd, produces output that libtool cannot recognize.
9981*** The result is that libtool may fail to recognize shared libraries
9982*** as such.  This will affect the creation of libtool libraries that
9983*** depend on shared libraries, but programs linked with such libtool
9984*** libraries will work regardless of this problem.  Nevertheless, you
9985*** may want to report the problem to your system manager and/or to
9986*** bug-libtool@gnu.org
9987
9988_LT_EOF
9989	  fi ;;
9990	esac
9991      fi
9992      break
9993    fi
9994  done
9995  IFS="$lt_save_ifs"
9996  MAGIC_CMD="$lt_save_MAGIC_CMD"
9997  ;;
9998esac
9999fi
10000
10001MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10002if test -n "$MAGIC_CMD"; then
10003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10004$as_echo "$MAGIC_CMD" >&6; }
10005else
10006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007$as_echo "no" >&6; }
10008fi
10009
10010
10011
10012
10013
10014if test -z "$lt_cv_path_MAGIC_CMD"; then
10015  if test -n "$ac_tool_prefix"; then
10016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10017$as_echo_n "checking for file... " >&6; }
10018if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10019  $as_echo_n "(cached) " >&6
10020else
10021  case $MAGIC_CMD in
10022[\\/*] |  ?:[\\/]*)
10023  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10024  ;;
10025*)
10026  lt_save_MAGIC_CMD="$MAGIC_CMD"
10027  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10028  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10029  for ac_dir in $ac_dummy; do
10030    IFS="$lt_save_ifs"
10031    test -z "$ac_dir" && ac_dir=.
10032    if test -f $ac_dir/file; then
10033      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10034      if test -n "$file_magic_test_file"; then
10035	case $deplibs_check_method in
10036	"file_magic "*)
10037	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10038	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10039	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10040	    $EGREP "$file_magic_regex" > /dev/null; then
10041	    :
10042	  else
10043	    cat <<_LT_EOF 1>&2
10044
10045*** Warning: the command libtool uses to detect shared libraries,
10046*** $file_magic_cmd, produces output that libtool cannot recognize.
10047*** The result is that libtool may fail to recognize shared libraries
10048*** as such.  This will affect the creation of libtool libraries that
10049*** depend on shared libraries, but programs linked with such libtool
10050*** libraries will work regardless of this problem.  Nevertheless, you
10051*** may want to report the problem to your system manager and/or to
10052*** bug-libtool@gnu.org
10053
10054_LT_EOF
10055	  fi ;;
10056	esac
10057      fi
10058      break
10059    fi
10060  done
10061  IFS="$lt_save_ifs"
10062  MAGIC_CMD="$lt_save_MAGIC_CMD"
10063  ;;
10064esac
10065fi
10066
10067MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10068if test -n "$MAGIC_CMD"; then
10069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10070$as_echo "$MAGIC_CMD" >&6; }
10071else
10072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076
10077  else
10078    MAGIC_CMD=:
10079  fi
10080fi
10081
10082  fi
10083  ;;
10084esac
10085
10086# Use C for the default configuration in the libtool script
10087
10088lt_save_CC="$CC"
10089ac_ext=c
10090ac_cpp='$CPP $CPPFLAGS'
10091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10093ac_compiler_gnu=$ac_cv_c_compiler_gnu
10094
10095
10096# Source file extension for C test sources.
10097ac_ext=c
10098
10099# Object file extension for compiled C test sources.
10100objext=o
10101objext=$objext
10102
10103# Code to be used in simple compile tests
10104lt_simple_compile_test_code="int some_variable = 0;"
10105
10106# Code to be used in simple link tests
10107lt_simple_link_test_code='int main(){return(0);}'
10108
10109
10110
10111
10112
10113
10114
10115# If no C compiler was specified, use CC.
10116LTCC=${LTCC-"$CC"}
10117
10118# If no C compiler flags were specified, use CFLAGS.
10119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10120
10121# Allow CC to be a program name with arguments.
10122compiler=$CC
10123
10124# Save the default compiler, since it gets overwritten when the other
10125# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10126compiler_DEFAULT=$CC
10127
10128# save warnings/boilerplate of simple test code
10129ac_outfile=conftest.$ac_objext
10130echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10132_lt_compiler_boilerplate=`cat conftest.err`
10133$RM conftest*
10134
10135ac_outfile=conftest.$ac_objext
10136echo "$lt_simple_link_test_code" >conftest.$ac_ext
10137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10138_lt_linker_boilerplate=`cat conftest.err`
10139$RM -r conftest*
10140
10141
10142## CAVEAT EMPTOR:
10143## There is no encapsulation within the following macros, do not change
10144## the running order or otherwise move them around unless you know exactly
10145## what you are doing...
10146if test -n "$compiler"; then
10147
10148lt_prog_compiler_no_builtin_flag=
10149
10150if test "$GCC" = yes; then
10151  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10152
10153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10154$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10155if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  lt_cv_prog_compiler_rtti_exceptions=no
10159   ac_outfile=conftest.$ac_objext
10160   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161   lt_compiler_flag="-fno-rtti -fno-exceptions"
10162   # Insert the option either (1) after the last *FLAGS variable, or
10163   # (2) before a word containing "conftest.", or (3) at the end.
10164   # Note that $ac_compile itself does not contain backslashes and begins
10165   # with a dollar sign (not a hyphen), so the echo should work correctly.
10166   # The option is referenced via a variable to avoid confusing sed.
10167   lt_compile=`echo "$ac_compile" | $SED \
10168   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10169   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10170   -e 's:$: $lt_compiler_flag:'`
10171   (eval echo "\"\$as_me:10171: $lt_compile\"" >&5)
10172   (eval "$lt_compile" 2>conftest.err)
10173   ac_status=$?
10174   cat conftest.err >&5
10175   echo "$as_me:10175: \$? = $ac_status" >&5
10176   if (exit $ac_status) && test -s "$ac_outfile"; then
10177     # The compiler can only warn and ignore the option if not recognized
10178     # So say no if there are warnings other than the usual output.
10179     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10180     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10181     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10182       lt_cv_prog_compiler_rtti_exceptions=yes
10183     fi
10184   fi
10185   $RM conftest*
10186
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10189$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10190
10191if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10192    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10193else
10194    :
10195fi
10196
10197fi
10198
10199
10200
10201
10202
10203
10204  lt_prog_compiler_wl=
10205lt_prog_compiler_pic=
10206lt_prog_compiler_static=
10207
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10209$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10210
10211  if test "$GCC" = yes; then
10212    lt_prog_compiler_wl='-Wl,'
10213    lt_prog_compiler_static='-static'
10214
10215    case $host_os in
10216      aix*)
10217      # All AIX code is PIC.
10218      if test "$host_cpu" = ia64; then
10219	# AIX 5 now supports IA64 processor
10220	lt_prog_compiler_static='-Bstatic'
10221      fi
10222      ;;
10223
10224    amigaos*)
10225      case $host_cpu in
10226      powerpc)
10227            # see comment about AmigaOS4 .so support
10228            lt_prog_compiler_pic='-fPIC'
10229        ;;
10230      m68k)
10231            # FIXME: we need at least 68020 code to build shared libraries, but
10232            # adding the `-m68020' flag to GCC prevents building anything better,
10233            # like `-m68040'.
10234            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10235        ;;
10236      esac
10237      ;;
10238
10239    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10240      # PIC is the default for these OSes.
10241      ;;
10242
10243    mingw* | cygwin* | pw32* | os2* | cegcc*)
10244      # This hack is so that the source file can tell whether it is being
10245      # built for inclusion in a dll (and should export symbols for example).
10246      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10247      # (--disable-auto-import) libraries
10248      lt_prog_compiler_pic='-DDLL_EXPORT'
10249      ;;
10250
10251    darwin* | rhapsody*)
10252      # PIC is the default on this platform
10253      # Common symbols not allowed in MH_DYLIB files
10254      lt_prog_compiler_pic='-fno-common'
10255      ;;
10256
10257    hpux*)
10258      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10259      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10260      # sets the default TLS model and affects inlining.
10261      case $host_cpu in
10262      hppa*64*)
10263	# +Z the default
10264	;;
10265      *)
10266	lt_prog_compiler_pic='-fPIC'
10267	;;
10268      esac
10269      ;;
10270
10271    interix[3-9]*)
10272      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10273      # Instead, we relocate shared libraries at runtime.
10274      ;;
10275
10276    msdosdjgpp*)
10277      # Just because we use GCC doesn't mean we suddenly get shared libraries
10278      # on systems that don't support them.
10279      lt_prog_compiler_can_build_shared=no
10280      enable_shared=no
10281      ;;
10282
10283    *nto* | *qnx*)
10284      # QNX uses GNU C++, but need to define -shared option too, otherwise
10285      # it will coredump.
10286      lt_prog_compiler_pic='-fPIC -shared'
10287      ;;
10288
10289    sysv4*MP*)
10290      if test -d /usr/nec; then
10291	lt_prog_compiler_pic=-Kconform_pic
10292      fi
10293      ;;
10294
10295    *)
10296      lt_prog_compiler_pic='-fPIC'
10297      ;;
10298    esac
10299  else
10300    # PORTME Check for flag to pass linker flags through the system compiler.
10301    case $host_os in
10302    aix*)
10303      lt_prog_compiler_wl='-Wl,'
10304      if test "$host_cpu" = ia64; then
10305	# AIX 5 now supports IA64 processor
10306	lt_prog_compiler_static='-Bstatic'
10307      else
10308	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10309      fi
10310      ;;
10311
10312    mingw* | cygwin* | pw32* | os2* | cegcc*)
10313      # This hack is so that the source file can tell whether it is being
10314      # built for inclusion in a dll (and should export symbols for example).
10315      lt_prog_compiler_pic='-DDLL_EXPORT'
10316      ;;
10317
10318    hpux9* | hpux10* | hpux11*)
10319      lt_prog_compiler_wl='-Wl,'
10320      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10321      # not for PA HP-UX.
10322      case $host_cpu in
10323      hppa*64*|ia64*)
10324	# +Z the default
10325	;;
10326      *)
10327	lt_prog_compiler_pic='+Z'
10328	;;
10329      esac
10330      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10331      lt_prog_compiler_static='${wl}-a ${wl}archive'
10332      ;;
10333
10334    irix5* | irix6* | nonstopux*)
10335      lt_prog_compiler_wl='-Wl,'
10336      # PIC (with -KPIC) is the default.
10337      lt_prog_compiler_static='-non_shared'
10338      ;;
10339
10340    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10341      case $cc_basename in
10342      # old Intel for x86_64 which still supported -KPIC.
10343      ecc*)
10344	lt_prog_compiler_wl='-Wl,'
10345	lt_prog_compiler_pic='-KPIC'
10346	lt_prog_compiler_static='-static'
10347        ;;
10348      # icc used to be incompatible with GCC.
10349      # ICC 10 doesn't accept -KPIC any more.
10350      icc* | ifort*)
10351	lt_prog_compiler_wl='-Wl,'
10352	lt_prog_compiler_pic='-fPIC'
10353	lt_prog_compiler_static='-static'
10354        ;;
10355      # Lahey Fortran 8.1.
10356      lf95*)
10357	lt_prog_compiler_wl='-Wl,'
10358	lt_prog_compiler_pic='--shared'
10359	lt_prog_compiler_static='--static'
10360	;;
10361      pgcc* | pgf77* | pgf90* | pgf95*)
10362        # Portland Group compilers (*not* the Pentium gcc compiler,
10363	# which looks to be a dead project)
10364	lt_prog_compiler_wl='-Wl,'
10365	lt_prog_compiler_pic='-fpic'
10366	lt_prog_compiler_static='-Bstatic'
10367        ;;
10368      ccc*)
10369        lt_prog_compiler_wl='-Wl,'
10370        # All Alpha code is PIC.
10371        lt_prog_compiler_static='-non_shared'
10372        ;;
10373      xl*)
10374	# IBM XL C 8.0/Fortran 10.1 on PPC
10375	lt_prog_compiler_wl='-Wl,'
10376	lt_prog_compiler_pic='-qpic'
10377	lt_prog_compiler_static='-qstaticlink'
10378	;;
10379      *)
10380	case `$CC -V 2>&1 | sed 5q` in
10381	*Sun\ C*)
10382	  # Sun C 5.9
10383	  lt_prog_compiler_pic='-KPIC'
10384	  lt_prog_compiler_static='-Bstatic'
10385	  lt_prog_compiler_wl='-Wl,'
10386	  ;;
10387	*Sun\ F*)
10388	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10389	  lt_prog_compiler_pic='-KPIC'
10390	  lt_prog_compiler_static='-Bstatic'
10391	  lt_prog_compiler_wl=''
10392	  ;;
10393	esac
10394	;;
10395      esac
10396      ;;
10397
10398    newsos6)
10399      lt_prog_compiler_pic='-KPIC'
10400      lt_prog_compiler_static='-Bstatic'
10401      ;;
10402
10403    *nto* | *qnx*)
10404      # QNX uses GNU C++, but need to define -shared option too, otherwise
10405      # it will coredump.
10406      lt_prog_compiler_pic='-fPIC -shared'
10407      ;;
10408
10409    osf3* | osf4* | osf5*)
10410      lt_prog_compiler_wl='-Wl,'
10411      # All OSF/1 code is PIC.
10412      lt_prog_compiler_static='-non_shared'
10413      ;;
10414
10415    rdos*)
10416      lt_prog_compiler_static='-non_shared'
10417      ;;
10418
10419    solaris*)
10420      lt_prog_compiler_pic='-KPIC'
10421      lt_prog_compiler_static='-Bstatic'
10422      case $cc_basename in
10423      f77* | f90* | f95*)
10424	lt_prog_compiler_wl='-Qoption ld ';;
10425      *)
10426	lt_prog_compiler_wl='-Wl,';;
10427      esac
10428      ;;
10429
10430    sunos4*)
10431      lt_prog_compiler_wl='-Qoption ld '
10432      lt_prog_compiler_pic='-PIC'
10433      lt_prog_compiler_static='-Bstatic'
10434      ;;
10435
10436    sysv4 | sysv4.2uw2* | sysv4.3*)
10437      lt_prog_compiler_wl='-Wl,'
10438      lt_prog_compiler_pic='-KPIC'
10439      lt_prog_compiler_static='-Bstatic'
10440      ;;
10441
10442    sysv4*MP*)
10443      if test -d /usr/nec ;then
10444	lt_prog_compiler_pic='-Kconform_pic'
10445	lt_prog_compiler_static='-Bstatic'
10446      fi
10447      ;;
10448
10449    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10450      lt_prog_compiler_wl='-Wl,'
10451      lt_prog_compiler_pic='-KPIC'
10452      lt_prog_compiler_static='-Bstatic'
10453      ;;
10454
10455    unicos*)
10456      lt_prog_compiler_wl='-Wl,'
10457      lt_prog_compiler_can_build_shared=no
10458      ;;
10459
10460    uts4*)
10461      lt_prog_compiler_pic='-pic'
10462      lt_prog_compiler_static='-Bstatic'
10463      ;;
10464
10465    *)
10466      lt_prog_compiler_can_build_shared=no
10467      ;;
10468    esac
10469  fi
10470
10471case $host_os in
10472  # For platforms which do not support PIC, -DPIC is meaningless:
10473  *djgpp*)
10474    lt_prog_compiler_pic=
10475    ;;
10476  *)
10477    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10478    ;;
10479esac
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10481$as_echo "$lt_prog_compiler_pic" >&6; }
10482
10483
10484
10485
10486
10487
10488#
10489# Check to make sure the PIC flag actually works.
10490#
10491if test -n "$lt_prog_compiler_pic"; then
10492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10493$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10494if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10495  $as_echo_n "(cached) " >&6
10496else
10497  lt_cv_prog_compiler_pic_works=no
10498   ac_outfile=conftest.$ac_objext
10499   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10500   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10501   # Insert the option either (1) after the last *FLAGS variable, or
10502   # (2) before a word containing "conftest.", or (3) at the end.
10503   # Note that $ac_compile itself does not contain backslashes and begins
10504   # with a dollar sign (not a hyphen), so the echo should work correctly.
10505   # The option is referenced via a variable to avoid confusing sed.
10506   lt_compile=`echo "$ac_compile" | $SED \
10507   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10509   -e 's:$: $lt_compiler_flag:'`
10510   (eval echo "\"\$as_me:10510: $lt_compile\"" >&5)
10511   (eval "$lt_compile" 2>conftest.err)
10512   ac_status=$?
10513   cat conftest.err >&5
10514   echo "$as_me:10514: \$? = $ac_status" >&5
10515   if (exit $ac_status) && test -s "$ac_outfile"; then
10516     # The compiler can only warn and ignore the option if not recognized
10517     # So say no if there are warnings other than the usual output.
10518     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10519     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10520     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10521       lt_cv_prog_compiler_pic_works=yes
10522     fi
10523   fi
10524   $RM conftest*
10525
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10528$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10529
10530if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10531    case $lt_prog_compiler_pic in
10532     "" | " "*) ;;
10533     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10534     esac
10535else
10536    lt_prog_compiler_pic=
10537     lt_prog_compiler_can_build_shared=no
10538fi
10539
10540fi
10541
10542
10543
10544
10545
10546
10547#
10548# Check to make sure the static flag actually works.
10549#
10550wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10552$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10553if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  lt_cv_prog_compiler_static_works=no
10557   save_LDFLAGS="$LDFLAGS"
10558   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10559   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10560   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10561     # The linker can only warn and ignore the option if not recognized
10562     # So say no if there are warnings
10563     if test -s conftest.err; then
10564       # Append any errors to the config.log.
10565       cat conftest.err 1>&5
10566       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10567       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10568       if diff conftest.exp conftest.er2 >/dev/null; then
10569         lt_cv_prog_compiler_static_works=yes
10570       fi
10571     else
10572       lt_cv_prog_compiler_static_works=yes
10573     fi
10574   fi
10575   $RM -r conftest*
10576   LDFLAGS="$save_LDFLAGS"
10577
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10580$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10581
10582if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10583    :
10584else
10585    lt_prog_compiler_static=
10586fi
10587
10588
10589
10590
10591
10592
10593
10594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10595$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10596if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  lt_cv_prog_compiler_c_o=no
10600   $RM -r conftest 2>/dev/null
10601   mkdir conftest
10602   cd conftest
10603   mkdir out
10604   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10605
10606   lt_compiler_flag="-o out/conftest2.$ac_objext"
10607   # Insert the option either (1) after the last *FLAGS variable, or
10608   # (2) before a word containing "conftest.", or (3) at the end.
10609   # Note that $ac_compile itself does not contain backslashes and begins
10610   # with a dollar sign (not a hyphen), so the echo should work correctly.
10611   lt_compile=`echo "$ac_compile" | $SED \
10612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10614   -e 's:$: $lt_compiler_flag:'`
10615   (eval echo "\"\$as_me:10615: $lt_compile\"" >&5)
10616   (eval "$lt_compile" 2>out/conftest.err)
10617   ac_status=$?
10618   cat out/conftest.err >&5
10619   echo "$as_me:10619: \$? = $ac_status" >&5
10620   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10621   then
10622     # The compiler can only warn and ignore the option if not recognized
10623     # So say no if there are warnings
10624     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10625     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10626     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10627       lt_cv_prog_compiler_c_o=yes
10628     fi
10629   fi
10630   chmod u+w . 2>&5
10631   $RM conftest*
10632   # SGI C++ compiler will create directory out/ii_files/ for
10633   # template instantiation
10634   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10635   $RM out/* && rmdir out
10636   cd ..
10637   $RM -r conftest
10638   $RM conftest*
10639
10640fi
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10642$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10643
10644
10645
10646
10647
10648
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10650$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10651if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  lt_cv_prog_compiler_c_o=no
10655   $RM -r conftest 2>/dev/null
10656   mkdir conftest
10657   cd conftest
10658   mkdir out
10659   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10660
10661   lt_compiler_flag="-o out/conftest2.$ac_objext"
10662   # Insert the option either (1) after the last *FLAGS variable, or
10663   # (2) before a word containing "conftest.", or (3) at the end.
10664   # Note that $ac_compile itself does not contain backslashes and begins
10665   # with a dollar sign (not a hyphen), so the echo should work correctly.
10666   lt_compile=`echo "$ac_compile" | $SED \
10667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10669   -e 's:$: $lt_compiler_flag:'`
10670   (eval echo "\"\$as_me:10670: $lt_compile\"" >&5)
10671   (eval "$lt_compile" 2>out/conftest.err)
10672   ac_status=$?
10673   cat out/conftest.err >&5
10674   echo "$as_me:10674: \$? = $ac_status" >&5
10675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10676   then
10677     # The compiler can only warn and ignore the option if not recognized
10678     # So say no if there are warnings
10679     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10680     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10681     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10682       lt_cv_prog_compiler_c_o=yes
10683     fi
10684   fi
10685   chmod u+w . 2>&5
10686   $RM conftest*
10687   # SGI C++ compiler will create directory out/ii_files/ for
10688   # template instantiation
10689   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10690   $RM out/* && rmdir out
10691   cd ..
10692   $RM -r conftest
10693   $RM conftest*
10694
10695fi
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10697$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10698
10699
10700
10701
10702hard_links="nottested"
10703if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10704  # do not overwrite the value of need_locks provided by the user
10705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10706$as_echo_n "checking if we can lock with hard links... " >&6; }
10707  hard_links=yes
10708  $RM conftest*
10709  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10710  touch conftest.a
10711  ln conftest.a conftest.b 2>&5 || hard_links=no
10712  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10714$as_echo "$hard_links" >&6; }
10715  if test "$hard_links" = no; then
10716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10717$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10718    need_locks=warn
10719  fi
10720else
10721  need_locks=no
10722fi
10723
10724
10725
10726
10727
10728
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10730$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10731
10732  runpath_var=
10733  allow_undefined_flag=
10734  always_export_symbols=no
10735  archive_cmds=
10736  archive_expsym_cmds=
10737  compiler_needs_object=no
10738  enable_shared_with_static_runtimes=no
10739  export_dynamic_flag_spec=
10740  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10741  hardcode_automatic=no
10742  hardcode_direct=no
10743  hardcode_direct_absolute=no
10744  hardcode_libdir_flag_spec=
10745  hardcode_libdir_flag_spec_ld=
10746  hardcode_libdir_separator=
10747  hardcode_minus_L=no
10748  hardcode_shlibpath_var=unsupported
10749  inherit_rpath=no
10750  link_all_deplibs=unknown
10751  module_cmds=
10752  module_expsym_cmds=
10753  old_archive_from_new_cmds=
10754  old_archive_from_expsyms_cmds=
10755  thread_safe_flag_spec=
10756  whole_archive_flag_spec=
10757  # include_expsyms should be a list of space-separated symbols to be *always*
10758  # included in the symbol list
10759  include_expsyms=
10760  # exclude_expsyms can be an extended regexp of symbols to exclude
10761  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10762  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10763  # as well as any symbol that contains `d'.
10764  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10765  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10766  # platforms (ab)use it in PIC code, but their linkers get confused if
10767  # the symbol is explicitly referenced.  Since portable code cannot
10768  # rely on this symbol name, it's probably fine to never include it in
10769  # preloaded symbol tables.
10770  # Exclude shared library initialization/finalization symbols.
10771  extract_expsyms_cmds=
10772
10773  case $host_os in
10774  cygwin* | mingw* | pw32* | cegcc*)
10775    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10776    # When not using gcc, we currently assume that we are using
10777    # Microsoft Visual C++.
10778    if test "$GCC" != yes; then
10779      with_gnu_ld=no
10780    fi
10781    ;;
10782  interix*)
10783    # we just hope/assume this is gcc and not c89 (= MSVC++)
10784    with_gnu_ld=yes
10785    ;;
10786  openbsd*)
10787    with_gnu_ld=no
10788    ;;
10789  linux* | k*bsd*-gnu)
10790    link_all_deplibs=no
10791    ;;
10792  esac
10793
10794  ld_shlibs=yes
10795  if test "$with_gnu_ld" = yes; then
10796    # If archive_cmds runs LD, not CC, wlarc should be empty
10797    wlarc='${wl}'
10798
10799    # Set some defaults for GNU ld with shared library support. These
10800    # are reset later if shared libraries are not supported. Putting them
10801    # here allows them to be overridden if necessary.
10802    runpath_var=LD_RUN_PATH
10803    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10804    export_dynamic_flag_spec='${wl}--export-dynamic'
10805    # ancient GNU ld didn't support --whole-archive et. al.
10806    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10807      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10808    else
10809      whole_archive_flag_spec=
10810    fi
10811    supports_anon_versioning=no
10812    case `$LD -v 2>&1` in
10813      *GNU\ gold*) supports_anon_versioning=yes ;;
10814      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10815      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10816      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10817      *\ 2.11.*) ;; # other 2.11 versions
10818      *) supports_anon_versioning=yes ;;
10819    esac
10820
10821    # See if GNU ld supports shared libraries.
10822    case $host_os in
10823    aix[3-9]*)
10824      # On AIX/PPC, the GNU linker is very broken
10825      if test "$host_cpu" != ia64; then
10826	ld_shlibs=no
10827	cat <<_LT_EOF 1>&2
10828
10829*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10830*** to be unable to reliably create shared libraries on AIX.
10831*** Therefore, libtool is disabling shared libraries support.  If you
10832*** really care for shared libraries, you may want to modify your PATH
10833*** so that a non-GNU linker is found, and then restart.
10834
10835_LT_EOF
10836      fi
10837      ;;
10838
10839    amigaos*)
10840      case $host_cpu in
10841      powerpc)
10842            # see comment about AmigaOS4 .so support
10843            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844            archive_expsym_cmds=''
10845        ;;
10846      m68k)
10847            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)'
10848            hardcode_libdir_flag_spec='-L$libdir'
10849            hardcode_minus_L=yes
10850        ;;
10851      esac
10852      ;;
10853
10854    beos*)
10855      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10856	allow_undefined_flag=unsupported
10857	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10858	# support --undefined.  This deserves some investigation.  FIXME
10859	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10860      else
10861	ld_shlibs=no
10862      fi
10863      ;;
10864
10865    cygwin* | mingw* | pw32* | cegcc*)
10866      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10867      # as there is no search path for DLLs.
10868      hardcode_libdir_flag_spec='-L$libdir'
10869      allow_undefined_flag=unsupported
10870      always_export_symbols=no
10871      enable_shared_with_static_runtimes=yes
10872      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10873
10874      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10875        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10876	# If the export-symbols file already is a .def file (1st line
10877	# is EXPORTS), use it as is; otherwise, prepend...
10878	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10879	  cp $export_symbols $output_objdir/$soname.def;
10880	else
10881	  echo EXPORTS > $output_objdir/$soname.def;
10882	  cat $export_symbols >> $output_objdir/$soname.def;
10883	fi~
10884	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10885      else
10886	ld_shlibs=no
10887      fi
10888      ;;
10889
10890    interix[3-9]*)
10891      hardcode_direct=no
10892      hardcode_shlibpath_var=no
10893      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10894      export_dynamic_flag_spec='${wl}-E'
10895      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10896      # Instead, shared libraries are loaded at an image base (0x10000000 by
10897      # default) and relocated if they conflict, which is a slow very memory
10898      # consuming and fragmenting process.  To avoid this, we pick a random,
10899      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10900      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10901      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10902      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'
10903      ;;
10904
10905    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10906      tmp_diet=no
10907      if test "$host_os" = linux-dietlibc; then
10908	case $cc_basename in
10909	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10910	esac
10911      fi
10912      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10913	 && test "$tmp_diet" = no
10914      then
10915	tmp_addflag=
10916	tmp_sharedflag='-shared'
10917	case $cc_basename,$host_cpu in
10918        pgcc*)				# Portland Group C compiler
10919	  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'
10920	  tmp_addflag=' $pic_flag'
10921	  ;;
10922	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10923	  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'
10924	  tmp_addflag=' $pic_flag -Mnomain' ;;
10925	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10926	  tmp_addflag=' -i_dynamic' ;;
10927	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10928	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10929	ifc* | ifort*)			# Intel Fortran compiler
10930	  tmp_addflag=' -nofor_main' ;;
10931	lf95*)				# Lahey Fortran 8.1
10932	  whole_archive_flag_spec=
10933	  tmp_sharedflag='--shared' ;;
10934	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10935	  tmp_sharedflag='-qmkshrobj'
10936	  tmp_addflag= ;;
10937	esac
10938	case `$CC -V 2>&1 | sed 5q` in
10939	*Sun\ C*)			# Sun C 5.9
10940	  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'
10941	  compiler_needs_object=yes
10942	  tmp_sharedflag='-G' ;;
10943	*Sun\ F*)			# Sun Fortran 8.3
10944	  tmp_sharedflag='-G' ;;
10945	esac
10946	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947
10948        if test "x$supports_anon_versioning" = xyes; then
10949          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10950	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10951	    echo "local: *; };" >> $output_objdir/$libname.ver~
10952	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10953        fi
10954
10955	case $cc_basename in
10956	xlf*)
10957	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10958	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10959	  hardcode_libdir_flag_spec=
10960	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10961	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10962	  if test "x$supports_anon_versioning" = xyes; then
10963	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10964	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10965	      echo "local: *; };" >> $output_objdir/$libname.ver~
10966	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10967	  fi
10968	  ;;
10969	esac
10970      else
10971        ld_shlibs=no
10972      fi
10973      ;;
10974
10975    netbsd* | netbsdelf*-gnu)
10976      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10977	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10978	wlarc=
10979      else
10980	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10981	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10982      fi
10983      ;;
10984
10985    solaris*)
10986      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10987	ld_shlibs=no
10988	cat <<_LT_EOF 1>&2
10989
10990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10991*** create shared libraries on Solaris systems.  Therefore, libtool
10992*** is disabling shared libraries support.  We urge you to upgrade GNU
10993*** binutils to release 2.9.1 or newer.  Another option is to modify
10994*** your PATH or compiler configuration so that the native linker is
10995*** used, and then restart.
10996
10997_LT_EOF
10998      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10999	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11000	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11001      else
11002	ld_shlibs=no
11003      fi
11004      ;;
11005
11006    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11007      case `$LD -v 2>&1` in
11008        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11009	ld_shlibs=no
11010	cat <<_LT_EOF 1>&2
11011
11012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11013*** reliably create shared libraries on SCO systems.  Therefore, libtool
11014*** is disabling shared libraries support.  We urge you to upgrade GNU
11015*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11016*** your PATH or compiler configuration so that the native linker is
11017*** used, and then restart.
11018
11019_LT_EOF
11020	;;
11021	*)
11022	  # For security reasons, it is highly recommended that you always
11023	  # use absolute paths for naming shared libraries, and exclude the
11024	  # DT_RUNPATH tag from executables and libraries.  But doing so
11025	  # requires that you compile everything twice, which is a pain.
11026	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11027	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11028	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11030	  else
11031	    ld_shlibs=no
11032	  fi
11033	;;
11034      esac
11035      ;;
11036
11037    sunos4*)
11038      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11039      wlarc=
11040      hardcode_direct=yes
11041      hardcode_shlibpath_var=no
11042      ;;
11043
11044    *)
11045      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11047	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11048      else
11049	ld_shlibs=no
11050      fi
11051      ;;
11052    esac
11053
11054    if test "$ld_shlibs" = no; then
11055      runpath_var=
11056      hardcode_libdir_flag_spec=
11057      export_dynamic_flag_spec=
11058      whole_archive_flag_spec=
11059    fi
11060  else
11061    # PORTME fill in a description of your system's linker (not GNU ld)
11062    case $host_os in
11063    aix3*)
11064      allow_undefined_flag=unsupported
11065      always_export_symbols=yes
11066      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'
11067      # Note: this linker hardcodes the directories in LIBPATH if there
11068      # are no directories specified by -L.
11069      hardcode_minus_L=yes
11070      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11071	# Neither direct hardcoding nor static linking is supported with a
11072	# broken collect2.
11073	hardcode_direct=unsupported
11074      fi
11075      ;;
11076
11077    aix[4-9]*)
11078      if test "$host_cpu" = ia64; then
11079	# On IA64, the linker does run time linking by default, so we don't
11080	# have to do anything special.
11081	aix_use_runtimelinking=no
11082	exp_sym_flag='-Bexport'
11083	no_entry_flag=""
11084      else
11085	# If we're using GNU nm, then we don't want the "-C" option.
11086	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11087	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11088	  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'
11089	else
11090	  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'
11091	fi
11092	aix_use_runtimelinking=no
11093
11094	# Test if we are trying to use run time linking or normal
11095	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11096	# need to do runtime linking.
11097	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11098	  for ld_flag in $LDFLAGS; do
11099	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11100	    aix_use_runtimelinking=yes
11101	    break
11102	  fi
11103	  done
11104	  ;;
11105	esac
11106
11107	exp_sym_flag='-bexport'
11108	no_entry_flag='-bnoentry'
11109      fi
11110
11111      # When large executables or shared objects are built, AIX ld can
11112      # have problems creating the table of contents.  If linking a library
11113      # or program results in "error TOC overflow" add -mminimal-toc to
11114      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11115      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11116
11117      archive_cmds=''
11118      hardcode_direct=yes
11119      hardcode_direct_absolute=yes
11120      hardcode_libdir_separator=':'
11121      link_all_deplibs=yes
11122      file_list_spec='${wl}-f,'
11123
11124      if test "$GCC" = yes; then
11125	case $host_os in aix4.[012]|aix4.[012].*)
11126	# We only want to do this on AIX 4.2 and lower, the check
11127	# below for broken collect2 doesn't work under 4.3+
11128	  collect2name=`${CC} -print-prog-name=collect2`
11129	  if test -f "$collect2name" &&
11130	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11131	  then
11132	  # We have reworked collect2
11133	  :
11134	  else
11135	  # We have old collect2
11136	  hardcode_direct=unsupported
11137	  # It fails to find uninstalled libraries when the uninstalled
11138	  # path is not listed in the libpath.  Setting hardcode_minus_L
11139	  # to unsupported forces relinking
11140	  hardcode_minus_L=yes
11141	  hardcode_libdir_flag_spec='-L$libdir'
11142	  hardcode_libdir_separator=
11143	  fi
11144	  ;;
11145	esac
11146	shared_flag='-shared'
11147	if test "$aix_use_runtimelinking" = yes; then
11148	  shared_flag="$shared_flag "'${wl}-G'
11149	fi
11150	link_all_deplibs=no
11151      else
11152	# not using gcc
11153	if test "$host_cpu" = ia64; then
11154	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11155	# chokes on -Wl,-G. The following line is correct:
11156	  shared_flag='-G'
11157	else
11158	  if test "$aix_use_runtimelinking" = yes; then
11159	    shared_flag='${wl}-G'
11160	  else
11161	    shared_flag='${wl}-bM:SRE'
11162	  fi
11163	fi
11164      fi
11165
11166      export_dynamic_flag_spec='${wl}-bexpall'
11167      # It seems that -bexpall does not export symbols beginning with
11168      # underscore (_), so it is better to generate a list of symbols to export.
11169      always_export_symbols=yes
11170      if test "$aix_use_runtimelinking" = yes; then
11171	# Warning - without using the other runtime loading flags (-brtl),
11172	# -berok will link without error, but may produce a broken library.
11173	allow_undefined_flag='-berok'
11174        # Determine the default libpath from the value encoded in an
11175        # empty executable.
11176        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177/* end confdefs.h.  */
11178
11179int
11180main ()
11181{
11182
11183  ;
11184  return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_link "$LINENO"; then :
11188
11189lt_aix_libpath_sed='
11190    /Import File Strings/,/^$/ {
11191	/^0/ {
11192	    s/^0  *\(.*\)$/\1/
11193	    p
11194	}
11195    }'
11196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197# Check for a 64-bit object if we didn't find anything.
11198if test -z "$aix_libpath"; then
11199  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11200fi
11201fi
11202rm -f core conftest.err conftest.$ac_objext \
11203    conftest$ac_exeext conftest.$ac_ext
11204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11205
11206        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11207        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"
11208      else
11209	if test "$host_cpu" = ia64; then
11210	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11211	  allow_undefined_flag="-z nodefs"
11212	  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"
11213	else
11214	 # Determine the default libpath from the value encoded in an
11215	 # empty executable.
11216	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217/* end confdefs.h.  */
11218
11219int
11220main ()
11221{
11222
11223  ;
11224  return 0;
11225}
11226_ACEOF
11227if ac_fn_c_try_link "$LINENO"; then :
11228
11229lt_aix_libpath_sed='
11230    /Import File Strings/,/^$/ {
11231	/^0/ {
11232	    s/^0  *\(.*\)$/\1/
11233	    p
11234	}
11235    }'
11236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11237# Check for a 64-bit object if we didn't find anything.
11238if test -z "$aix_libpath"; then
11239  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11240fi
11241fi
11242rm -f core conftest.err conftest.$ac_objext \
11243    conftest$ac_exeext conftest.$ac_ext
11244if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11245
11246	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11247	  # Warning - without using the other run time loading flags,
11248	  # -berok will link without error, but may produce a broken library.
11249	  no_undefined_flag=' ${wl}-bernotok'
11250	  allow_undefined_flag=' ${wl}-berok'
11251	  # Exported symbols can be pulled into shared objects from archives
11252	  whole_archive_flag_spec='$convenience'
11253	  archive_cmds_need_lc=yes
11254	  # This is similar to how AIX traditionally builds its shared libraries.
11255	  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'
11256	fi
11257      fi
11258      ;;
11259
11260    amigaos*)
11261      case $host_cpu in
11262      powerpc)
11263            # see comment about AmigaOS4 .so support
11264            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11265            archive_expsym_cmds=''
11266        ;;
11267      m68k)
11268            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)'
11269            hardcode_libdir_flag_spec='-L$libdir'
11270            hardcode_minus_L=yes
11271        ;;
11272      esac
11273      ;;
11274
11275    bsdi[45]*)
11276      export_dynamic_flag_spec=-rdynamic
11277      ;;
11278
11279    cygwin* | mingw* | pw32* | cegcc*)
11280      # When not using gcc, we currently assume that we are using
11281      # Microsoft Visual C++.
11282      # hardcode_libdir_flag_spec is actually meaningless, as there is
11283      # no search path for DLLs.
11284      hardcode_libdir_flag_spec=' '
11285      allow_undefined_flag=unsupported
11286      # Tell ltmain to make .lib files, not .a files.
11287      libext=lib
11288      # Tell ltmain to make .dll files, not .so files.
11289      shrext_cmds=".dll"
11290      # FIXME: Setting linknames here is a bad hack.
11291      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11292      # The linker will automatically build a .lib file if we build a DLL.
11293      old_archive_from_new_cmds='true'
11294      # FIXME: Should let the user specify the lib program.
11295      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11296      fix_srcfile_path='`cygpath -w "$srcfile"`'
11297      enable_shared_with_static_runtimes=yes
11298      ;;
11299
11300    darwin* | rhapsody*)
11301
11302
11303  archive_cmds_need_lc=no
11304  hardcode_direct=no
11305  hardcode_automatic=yes
11306  hardcode_shlibpath_var=unsupported
11307  whole_archive_flag_spec=''
11308  link_all_deplibs=yes
11309  allow_undefined_flag="$_lt_dar_allow_undefined"
11310  case $cc_basename in
11311     ifort*) _lt_dar_can_shared=yes ;;
11312     *) _lt_dar_can_shared=$GCC ;;
11313  esac
11314  if test "$_lt_dar_can_shared" = "yes"; then
11315    output_verbose_link_cmd=echo
11316    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11317    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11318    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}"
11319    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}"
11320
11321  else
11322  ld_shlibs=no
11323  fi
11324
11325      ;;
11326
11327    dgux*)
11328      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329      hardcode_libdir_flag_spec='-L$libdir'
11330      hardcode_shlibpath_var=no
11331      ;;
11332
11333    freebsd1*)
11334      ld_shlibs=no
11335      ;;
11336
11337    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11338    # support.  Future versions do this automatically, but an explicit c++rt0.o
11339    # does not break anything, and helps significantly (at the cost of a little
11340    # extra space).
11341    freebsd2.2*)
11342      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11343      hardcode_libdir_flag_spec='-R$libdir'
11344      hardcode_direct=yes
11345      hardcode_shlibpath_var=no
11346      ;;
11347
11348    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11349    freebsd2*)
11350      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11351      hardcode_direct=yes
11352      hardcode_minus_L=yes
11353      hardcode_shlibpath_var=no
11354      ;;
11355
11356    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11357    freebsd* | dragonfly*)
11358      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11359      hardcode_libdir_flag_spec='-R$libdir'
11360      hardcode_direct=yes
11361      hardcode_shlibpath_var=no
11362      ;;
11363
11364    hpux9*)
11365      if test "$GCC" = yes; then
11366	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'
11367      else
11368	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'
11369      fi
11370      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11371      hardcode_libdir_separator=:
11372      hardcode_direct=yes
11373
11374      # hardcode_minus_L: Not really in the search PATH,
11375      # but as the default location of the library.
11376      hardcode_minus_L=yes
11377      export_dynamic_flag_spec='${wl}-E'
11378      ;;
11379
11380    hpux10*)
11381      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11382	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11383      else
11384	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11385      fi
11386      if test "$with_gnu_ld" = no; then
11387	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11388	hardcode_libdir_flag_spec_ld='+b $libdir'
11389	hardcode_libdir_separator=:
11390	hardcode_direct=yes
11391	hardcode_direct_absolute=yes
11392	export_dynamic_flag_spec='${wl}-E'
11393	# hardcode_minus_L: Not really in the search PATH,
11394	# but as the default location of the library.
11395	hardcode_minus_L=yes
11396      fi
11397      ;;
11398
11399    hpux11*)
11400      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11401	case $host_cpu in
11402	hppa*64*)
11403	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11404	  ;;
11405	ia64*)
11406	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11407	  ;;
11408	*)
11409	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11410	  ;;
11411	esac
11412      else
11413	case $host_cpu in
11414	hppa*64*)
11415	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11416	  ;;
11417	ia64*)
11418	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11419	  ;;
11420	*)
11421	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11422	  ;;
11423	esac
11424      fi
11425      if test "$with_gnu_ld" = no; then
11426	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11427	hardcode_libdir_separator=:
11428
11429	case $host_cpu in
11430	hppa*64*|ia64*)
11431	  hardcode_direct=no
11432	  hardcode_shlibpath_var=no
11433	  ;;
11434	*)
11435	  hardcode_direct=yes
11436	  hardcode_direct_absolute=yes
11437	  export_dynamic_flag_spec='${wl}-E'
11438
11439	  # hardcode_minus_L: Not really in the search PATH,
11440	  # but as the default location of the library.
11441	  hardcode_minus_L=yes
11442	  ;;
11443	esac
11444      fi
11445      ;;
11446
11447    irix5* | irix6* | nonstopux*)
11448      if test "$GCC" = yes; then
11449	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'
11450	# Try to use the -exported_symbol ld option, if it does not
11451	# work, assume that -exports_file does not work either and
11452	# implicitly export all symbols.
11453        save_LDFLAGS="$LDFLAGS"
11454        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456/* end confdefs.h.  */
11457int foo(void) {}
11458_ACEOF
11459if ac_fn_c_try_link "$LINENO"; then :
11460  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'
11461
11462fi
11463rm -f core conftest.err conftest.$ac_objext \
11464    conftest$ac_exeext conftest.$ac_ext
11465        LDFLAGS="$save_LDFLAGS"
11466      else
11467	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'
11468	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'
11469      fi
11470      archive_cmds_need_lc='no'
11471      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11472      hardcode_libdir_separator=:
11473      inherit_rpath=yes
11474      link_all_deplibs=yes
11475      ;;
11476
11477    netbsd* | netbsdelf*-gnu)
11478      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11479	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11480      else
11481	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11482      fi
11483      hardcode_libdir_flag_spec='-R$libdir'
11484      hardcode_direct=yes
11485      hardcode_shlibpath_var=no
11486      ;;
11487
11488    newsos6)
11489      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11490      hardcode_direct=yes
11491      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11492      hardcode_libdir_separator=:
11493      hardcode_shlibpath_var=no
11494      ;;
11495
11496    *nto* | *qnx*)
11497      ;;
11498
11499    openbsd*)
11500      if test -f /usr/libexec/ld.so; then
11501	hardcode_direct=yes
11502	hardcode_shlibpath_var=no
11503	hardcode_direct_absolute=yes
11504	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11506	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11507	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11508	  export_dynamic_flag_spec='${wl}-E'
11509	else
11510	  case $host_os in
11511	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11512	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11513	     hardcode_libdir_flag_spec='-R$libdir'
11514	     ;;
11515	   *)
11516	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11517	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11518	     ;;
11519	  esac
11520	fi
11521      else
11522	ld_shlibs=no
11523      fi
11524      ;;
11525
11526    os2*)
11527      hardcode_libdir_flag_spec='-L$libdir'
11528      hardcode_minus_L=yes
11529      allow_undefined_flag=unsupported
11530      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'
11531      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11532      ;;
11533
11534    osf3*)
11535      if test "$GCC" = yes; then
11536	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11537	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'
11538      else
11539	allow_undefined_flag=' -expect_unresolved \*'
11540	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'
11541      fi
11542      archive_cmds_need_lc='no'
11543      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11544      hardcode_libdir_separator=:
11545      ;;
11546
11547    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11548      if test "$GCC" = yes; then
11549	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11550	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'
11551	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11552      else
11553	allow_undefined_flag=' -expect_unresolved \*'
11554	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'
11555	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~
11556	$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'
11557
11558	# Both c and cxx compiler support -rpath directly
11559	hardcode_libdir_flag_spec='-rpath $libdir'
11560      fi
11561      archive_cmds_need_lc='no'
11562      hardcode_libdir_separator=:
11563      ;;
11564
11565    solaris*)
11566      no_undefined_flag=' -z defs'
11567      if test "$GCC" = yes; then
11568	wlarc='${wl}'
11569	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11570	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11571	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11572      else
11573	case `$CC -V 2>&1` in
11574	*"Compilers 5.0"*)
11575	  wlarc=''
11576	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11577	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11578	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11579	  ;;
11580	*)
11581	  wlarc='${wl}'
11582	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11583	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11584	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11585	  ;;
11586	esac
11587      fi
11588      hardcode_libdir_flag_spec='-R$libdir'
11589      hardcode_shlibpath_var=no
11590      case $host_os in
11591      solaris2.[0-5] | solaris2.[0-5].*) ;;
11592      *)
11593	# The compiler driver will combine and reorder linker options,
11594	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11595	# but is careful enough not to reorder.
11596	# Supported since Solaris 2.6 (maybe 2.5.1?)
11597	if test "$GCC" = yes; then
11598	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11599	else
11600	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11601	fi
11602	;;
11603      esac
11604      link_all_deplibs=yes
11605      ;;
11606
11607    sunos4*)
11608      if test "x$host_vendor" = xsequent; then
11609	# Use $CC to link under sequent, because it throws in some extra .o
11610	# files that make .init and .fini sections work.
11611	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11612      else
11613	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11614      fi
11615      hardcode_libdir_flag_spec='-L$libdir'
11616      hardcode_direct=yes
11617      hardcode_minus_L=yes
11618      hardcode_shlibpath_var=no
11619      ;;
11620
11621    sysv4)
11622      case $host_vendor in
11623	sni)
11624	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625	  hardcode_direct=yes # is this really true???
11626	;;
11627	siemens)
11628	  ## LD is ld it makes a PLAMLIB
11629	  ## CC just makes a GrossModule.
11630	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11631	  reload_cmds='$CC -r -o $output$reload_objs'
11632	  hardcode_direct=no
11633        ;;
11634	motorola)
11635	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11636	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11637	;;
11638      esac
11639      runpath_var='LD_RUN_PATH'
11640      hardcode_shlibpath_var=no
11641      ;;
11642
11643    sysv4.3*)
11644      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11645      hardcode_shlibpath_var=no
11646      export_dynamic_flag_spec='-Bexport'
11647      ;;
11648
11649    sysv4*MP*)
11650      if test -d /usr/nec; then
11651	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11652	hardcode_shlibpath_var=no
11653	runpath_var=LD_RUN_PATH
11654	hardcode_runpath_var=yes
11655	ld_shlibs=yes
11656      fi
11657      ;;
11658
11659    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11660      no_undefined_flag='${wl}-z,text'
11661      archive_cmds_need_lc=no
11662      hardcode_shlibpath_var=no
11663      runpath_var='LD_RUN_PATH'
11664
11665      if test "$GCC" = yes; then
11666	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11667	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668      else
11669	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11670	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671      fi
11672      ;;
11673
11674    sysv5* | sco3.2v5* | sco5v6*)
11675      # Note: We can NOT use -z defs as we might desire, because we do not
11676      # link with -lc, and that would cause any symbols used from libc to
11677      # always be unresolved, which means just about no library would
11678      # ever link correctly.  If we're not using GNU ld we use -z text
11679      # though, which does catch some bad symbols but isn't as heavy-handed
11680      # as -z defs.
11681      no_undefined_flag='${wl}-z,text'
11682      allow_undefined_flag='${wl}-z,nodefs'
11683      archive_cmds_need_lc=no
11684      hardcode_shlibpath_var=no
11685      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11686      hardcode_libdir_separator=':'
11687      link_all_deplibs=yes
11688      export_dynamic_flag_spec='${wl}-Bexport'
11689      runpath_var='LD_RUN_PATH'
11690
11691      if test "$GCC" = yes; then
11692	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694      else
11695	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11696	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697      fi
11698      ;;
11699
11700    uts4*)
11701      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11702      hardcode_libdir_flag_spec='-L$libdir'
11703      hardcode_shlibpath_var=no
11704      ;;
11705
11706    *)
11707      ld_shlibs=no
11708      ;;
11709    esac
11710
11711    if test x$host_vendor = xsni; then
11712      case $host in
11713      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11714	export_dynamic_flag_spec='${wl}-Blargedynsym'
11715	;;
11716      esac
11717    fi
11718  fi
11719
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11721$as_echo "$ld_shlibs" >&6; }
11722test "$ld_shlibs" = no && can_build_shared=no
11723
11724with_gnu_ld=$with_gnu_ld
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740#
11741# Do we need to explicitly link libc?
11742#
11743case "x$archive_cmds_need_lc" in
11744x|xyes)
11745  # Assume -lc should be added
11746  archive_cmds_need_lc=yes
11747
11748  if test "$enable_shared" = yes && test "$GCC" = yes; then
11749    case $archive_cmds in
11750    *'~'*)
11751      # FIXME: we may have to deal with multi-command sequences.
11752      ;;
11753    '$CC '*)
11754      # Test whether the compiler implicitly links with -lc since on some
11755      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11756      # to ld, don't add -lc before -lgcc.
11757      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11758$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11759      $RM conftest*
11760      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11761
11762      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11763  (eval $ac_compile) 2>&5
11764  ac_status=$?
11765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766  test $ac_status = 0; } 2>conftest.err; then
11767        soname=conftest
11768        lib=conftest
11769        libobjs=conftest.$ac_objext
11770        deplibs=
11771        wl=$lt_prog_compiler_wl
11772	pic_flag=$lt_prog_compiler_pic
11773        compiler_flags=-v
11774        linker_flags=-v
11775        verstring=
11776        output_objdir=.
11777        libname=conftest
11778        lt_save_allow_undefined_flag=$allow_undefined_flag
11779        allow_undefined_flag=
11780        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11781  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11782  ac_status=$?
11783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784  test $ac_status = 0; }
11785        then
11786	  archive_cmds_need_lc=no
11787        else
11788	  archive_cmds_need_lc=yes
11789        fi
11790        allow_undefined_flag=$lt_save_allow_undefined_flag
11791      else
11792        cat conftest.err 1>&5
11793      fi
11794      $RM conftest*
11795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11796$as_echo "$archive_cmds_need_lc" >&6; }
11797      ;;
11798    esac
11799  fi
11800  ;;
11801esac
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11960$as_echo_n "checking dynamic linker characteristics... " >&6; }
11961
11962if test "$GCC" = yes; then
11963  case $host_os in
11964    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11965    *) lt_awk_arg="/^libraries:/" ;;
11966  esac
11967  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11968  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11969    # if the path contains ";" then we assume it to be the separator
11970    # otherwise default to the standard path separator (i.e. ":") - it is
11971    # assumed that no part of a normal pathname contains ";" but that should
11972    # okay in the real world where ";" in dirpaths is itself problematic.
11973    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11974  else
11975    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11976  fi
11977  # Ok, now we have the path, separated by spaces, we can step through it
11978  # and add multilib dir if necessary.
11979  lt_tmp_lt_search_path_spec=
11980  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11981  for lt_sys_path in $lt_search_path_spec; do
11982    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11983      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11984    else
11985      test -d "$lt_sys_path" && \
11986	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11987    fi
11988  done
11989  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11990BEGIN {RS=" "; FS="/|\n";} {
11991  lt_foo="";
11992  lt_count=0;
11993  for (lt_i = NF; lt_i > 0; lt_i--) {
11994    if ($lt_i != "" && $lt_i != ".") {
11995      if ($lt_i == "..") {
11996        lt_count++;
11997      } else {
11998        if (lt_count == 0) {
11999          lt_foo="/" $lt_i lt_foo;
12000        } else {
12001          lt_count--;
12002        }
12003      }
12004    }
12005  }
12006  if (lt_foo != "") { lt_freq[lt_foo]++; }
12007  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12008}'`
12009  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12010else
12011  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12012fi
12013library_names_spec=
12014libname_spec='lib$name'
12015soname_spec=
12016shrext_cmds=".so"
12017postinstall_cmds=
12018postuninstall_cmds=
12019finish_cmds=
12020finish_eval=
12021shlibpath_var=
12022shlibpath_overrides_runpath=unknown
12023version_type=none
12024dynamic_linker="$host_os ld.so"
12025sys_lib_dlsearch_path_spec="/lib /usr/lib"
12026need_lib_prefix=unknown
12027hardcode_into_libs=no
12028
12029# when you set need_version to no, make sure it does not cause -set_version
12030# flags to be left without arguments
12031need_version=unknown
12032
12033case $host_os in
12034aix3*)
12035  version_type=linux
12036  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12037  shlibpath_var=LIBPATH
12038
12039  # AIX 3 has no versioning support, so we append a major version to the name.
12040  soname_spec='${libname}${release}${shared_ext}$major'
12041  ;;
12042
12043aix[4-9]*)
12044  version_type=linux
12045  need_lib_prefix=no
12046  need_version=no
12047  hardcode_into_libs=yes
12048  if test "$host_cpu" = ia64; then
12049    # AIX 5 supports IA64
12050    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12051    shlibpath_var=LD_LIBRARY_PATH
12052  else
12053    # With GCC up to 2.95.x, collect2 would create an import file
12054    # for dependence libraries.  The import file would start with
12055    # the line `#! .'.  This would cause the generated library to
12056    # depend on `.', always an invalid library.  This was fixed in
12057    # development snapshots of GCC prior to 3.0.
12058    case $host_os in
12059      aix4 | aix4.[01] | aix4.[01].*)
12060      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12061	   echo ' yes '
12062	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12063	:
12064      else
12065	can_build_shared=no
12066      fi
12067      ;;
12068    esac
12069    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12070    # soname into executable. Probably we can add versioning support to
12071    # collect2, so additional links can be useful in future.
12072    if test "$aix_use_runtimelinking" = yes; then
12073      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12074      # instead of lib<name>.a to let people know that these are not
12075      # typical AIX shared libraries.
12076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077    else
12078      # We preserve .a as extension for shared libraries through AIX4.2
12079      # and later when we are not doing run time linking.
12080      library_names_spec='${libname}${release}.a $libname.a'
12081      soname_spec='${libname}${release}${shared_ext}$major'
12082    fi
12083    shlibpath_var=LIBPATH
12084  fi
12085  ;;
12086
12087amigaos*)
12088  case $host_cpu in
12089  powerpc)
12090    # Since July 2007 AmigaOS4 officially supports .so libraries.
12091    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093    ;;
12094  m68k)
12095    library_names_spec='$libname.ixlibrary $libname.a'
12096    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12097    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'
12098    ;;
12099  esac
12100  ;;
12101
12102beos*)
12103  library_names_spec='${libname}${shared_ext}'
12104  dynamic_linker="$host_os ld.so"
12105  shlibpath_var=LIBRARY_PATH
12106  ;;
12107
12108bsdi[45]*)
12109  version_type=linux
12110  need_version=no
12111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112  soname_spec='${libname}${release}${shared_ext}$major'
12113  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12114  shlibpath_var=LD_LIBRARY_PATH
12115  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12116  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12117  # the default ld.so.conf also contains /usr/contrib/lib and
12118  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12119  # libtool to hard-code these into programs
12120  ;;
12121
12122cygwin* | mingw* | pw32* | cegcc*)
12123  version_type=windows
12124  shrext_cmds=".dll"
12125  need_version=no
12126  need_lib_prefix=no
12127
12128  case $GCC,$host_os in
12129  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12130    library_names_spec='$libname.dll.a'
12131    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12132    postinstall_cmds='base_file=`basename \${file}`~
12133      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12134      dldir=$destdir/`dirname \$dlpath`~
12135      test -d \$dldir || mkdir -p \$dldir~
12136      $install_prog $dir/$dlname \$dldir/$dlname~
12137      chmod a+x \$dldir/$dlname~
12138      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12139        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12140      fi'
12141    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12142      dlpath=$dir/\$dldll~
12143       $RM \$dlpath'
12144    shlibpath_overrides_runpath=yes
12145
12146    case $host_os in
12147    cygwin*)
12148      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12149      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12150      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12151      ;;
12152    mingw* | cegcc*)
12153      # MinGW DLLs use traditional 'lib' prefix
12154      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12155      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12156      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12157        # It is most probably a Windows format PATH printed by
12158        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12159        # path with ; separators, and with drive letters. We can handle the
12160        # drive letters (cygwin fileutils understands them), so leave them,
12161        # especially as we might pass files found there to a mingw objdump,
12162        # which wouldn't understand a cygwinified path. Ahh.
12163        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12164      else
12165        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12166      fi
12167      ;;
12168    pw32*)
12169      # pw32 DLLs use 'pw' prefix rather than 'lib'
12170      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12171      ;;
12172    esac
12173    ;;
12174
12175  *)
12176    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12177    ;;
12178  esac
12179  dynamic_linker='Win32 ld.exe'
12180  # FIXME: first we should search . and the directory the executable is in
12181  shlibpath_var=PATH
12182  ;;
12183
12184darwin* | rhapsody*)
12185  dynamic_linker="$host_os dyld"
12186  version_type=darwin
12187  need_lib_prefix=no
12188  need_version=no
12189  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12190  soname_spec='${libname}${release}${major}$shared_ext'
12191  shlibpath_overrides_runpath=yes
12192  shlibpath_var=DYLD_LIBRARY_PATH
12193  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12194
12195  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12197  ;;
12198
12199dgux*)
12200  version_type=linux
12201  need_lib_prefix=no
12202  need_version=no
12203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12204  soname_spec='${libname}${release}${shared_ext}$major'
12205  shlibpath_var=LD_LIBRARY_PATH
12206  ;;
12207
12208freebsd1*)
12209  dynamic_linker=no
12210  ;;
12211
12212freebsd* | dragonfly*)
12213  # DragonFly does not have aout.  When/if they implement a new
12214  # versioning mechanism, adjust this.
12215  if test -x /usr/bin/objformat; then
12216    objformat=`/usr/bin/objformat`
12217  else
12218    case $host_os in
12219    freebsd[123]*) objformat=aout ;;
12220    *) objformat=elf ;;
12221    esac
12222  fi
12223  version_type=freebsd-$objformat
12224  case $version_type in
12225    freebsd-elf*)
12226      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12227      need_version=no
12228      need_lib_prefix=no
12229      ;;
12230    freebsd-*)
12231      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12232      need_version=yes
12233      ;;
12234  esac
12235  shlibpath_var=LD_LIBRARY_PATH
12236  case $host_os in
12237  freebsd2*)
12238    shlibpath_overrides_runpath=yes
12239    ;;
12240  freebsd3.[01]* | freebsdelf3.[01]*)
12241    shlibpath_overrides_runpath=yes
12242    hardcode_into_libs=yes
12243    ;;
12244  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12245  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12246    shlibpath_overrides_runpath=no
12247    hardcode_into_libs=yes
12248    ;;
12249  *) # from 4.6 on, and DragonFly
12250    shlibpath_overrides_runpath=yes
12251    hardcode_into_libs=yes
12252    ;;
12253  esac
12254  ;;
12255
12256gnu*)
12257  version_type=linux
12258  need_lib_prefix=no
12259  need_version=no
12260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12261  soname_spec='${libname}${release}${shared_ext}$major'
12262  shlibpath_var=LD_LIBRARY_PATH
12263  hardcode_into_libs=yes
12264  ;;
12265
12266hpux9* | hpux10* | hpux11*)
12267  # Give a soname corresponding to the major version so that dld.sl refuses to
12268  # link against other versions.
12269  version_type=sunos
12270  need_lib_prefix=no
12271  need_version=no
12272  case $host_cpu in
12273  ia64*)
12274    shrext_cmds='.so'
12275    hardcode_into_libs=yes
12276    dynamic_linker="$host_os dld.so"
12277    shlibpath_var=LD_LIBRARY_PATH
12278    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280    soname_spec='${libname}${release}${shared_ext}$major'
12281    if test "X$HPUX_IA64_MODE" = X32; then
12282      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12283    else
12284      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12285    fi
12286    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12287    ;;
12288  hppa*64*)
12289    shrext_cmds='.sl'
12290    hardcode_into_libs=yes
12291    dynamic_linker="$host_os dld.sl"
12292    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12293    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12295    soname_spec='${libname}${release}${shared_ext}$major'
12296    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12297    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12298    ;;
12299  *)
12300    shrext_cmds='.sl'
12301    dynamic_linker="$host_os dld.sl"
12302    shlibpath_var=SHLIB_PATH
12303    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305    soname_spec='${libname}${release}${shared_ext}$major'
12306    ;;
12307  esac
12308  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12309  postinstall_cmds='chmod 555 $lib'
12310  ;;
12311
12312interix[3-9]*)
12313  version_type=linux
12314  need_lib_prefix=no
12315  need_version=no
12316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12317  soname_spec='${libname}${release}${shared_ext}$major'
12318  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12319  shlibpath_var=LD_LIBRARY_PATH
12320  shlibpath_overrides_runpath=no
12321  hardcode_into_libs=yes
12322  ;;
12323
12324irix5* | irix6* | nonstopux*)
12325  case $host_os in
12326    nonstopux*) version_type=nonstopux ;;
12327    *)
12328	if test "$lt_cv_prog_gnu_ld" = yes; then
12329		version_type=linux
12330	else
12331		version_type=irix
12332	fi ;;
12333  esac
12334  need_lib_prefix=no
12335  need_version=no
12336  soname_spec='${libname}${release}${shared_ext}$major'
12337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12338  case $host_os in
12339  irix5* | nonstopux*)
12340    libsuff= shlibsuff=
12341    ;;
12342  *)
12343    case $LD in # libtool.m4 will add one of these switches to LD
12344    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12345      libsuff= shlibsuff= libmagic=32-bit;;
12346    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12347      libsuff=32 shlibsuff=N32 libmagic=N32;;
12348    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12349      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12350    *) libsuff= shlibsuff= libmagic=never-match;;
12351    esac
12352    ;;
12353  esac
12354  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12355  shlibpath_overrides_runpath=no
12356  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12357  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12358  hardcode_into_libs=yes
12359  ;;
12360
12361# No shared lib support for Linux oldld, aout, or coff.
12362linux*oldld* | linux*aout* | linux*coff*)
12363  dynamic_linker=no
12364  ;;
12365
12366# This must be Linux ELF.
12367linux* | k*bsd*-gnu | kopensolaris*-gnu)
12368  version_type=linux
12369  need_lib_prefix=no
12370  need_version=no
12371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372  soname_spec='${libname}${release}${shared_ext}$major'
12373  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12374  shlibpath_var=LD_LIBRARY_PATH
12375  shlibpath_overrides_runpath=no
12376  # Some binutils ld are patched to set DT_RUNPATH
12377  save_LDFLAGS=$LDFLAGS
12378  save_libdir=$libdir
12379  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12380       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382/* end confdefs.h.  */
12383
12384int
12385main ()
12386{
12387
12388  ;
12389  return 0;
12390}
12391_ACEOF
12392if ac_fn_c_try_link "$LINENO"; then :
12393  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12394  shlibpath_overrides_runpath=yes
12395fi
12396fi
12397rm -f core conftest.err conftest.$ac_objext \
12398    conftest$ac_exeext conftest.$ac_ext
12399  LDFLAGS=$save_LDFLAGS
12400  libdir=$save_libdir
12401
12402  # This implies no fast_install, which is unacceptable.
12403  # Some rework will be needed to allow for fast_install
12404  # before this can be enabled.
12405  hardcode_into_libs=yes
12406
12407  # Append ld.so.conf contents to the search path
12408  if test -f /etc/ld.so.conf; then
12409    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' ' '`
12410    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12411  fi
12412
12413  # We used to test for /lib/ld.so.1 and disable shared libraries on
12414  # powerpc, because MkLinux only supported shared libraries with the
12415  # GNU dynamic linker.  Since this was broken with cross compilers,
12416  # most powerpc-linux boxes support dynamic linking these days and
12417  # people can always --disable-shared, the test was removed, and we
12418  # assume the GNU/Linux dynamic linker is in use.
12419  dynamic_linker='GNU/Linux ld.so'
12420  ;;
12421
12422netbsdelf*-gnu)
12423  version_type=linux
12424  need_lib_prefix=no
12425  need_version=no
12426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12427  soname_spec='${libname}${release}${shared_ext}$major'
12428  shlibpath_var=LD_LIBRARY_PATH
12429  shlibpath_overrides_runpath=no
12430  hardcode_into_libs=yes
12431  dynamic_linker='NetBSD ld.elf_so'
12432  ;;
12433
12434netbsd*)
12435  version_type=sunos
12436  need_lib_prefix=no
12437  need_version=no
12438  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12440    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12441    dynamic_linker='NetBSD (a.out) ld.so'
12442  else
12443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12444    soname_spec='${libname}${release}${shared_ext}$major'
12445    dynamic_linker='NetBSD ld.elf_so'
12446  fi
12447  shlibpath_var=LD_LIBRARY_PATH
12448  shlibpath_overrides_runpath=yes
12449  hardcode_into_libs=yes
12450  ;;
12451
12452newsos6)
12453  version_type=linux
12454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455  shlibpath_var=LD_LIBRARY_PATH
12456  shlibpath_overrides_runpath=yes
12457  ;;
12458
12459*nto* | *qnx*)
12460  version_type=qnx
12461  need_lib_prefix=no
12462  need_version=no
12463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464  soname_spec='${libname}${release}${shared_ext}$major'
12465  shlibpath_var=LD_LIBRARY_PATH
12466  shlibpath_overrides_runpath=no
12467  hardcode_into_libs=yes
12468  dynamic_linker='ldqnx.so'
12469  ;;
12470
12471openbsd*)
12472  version_type=sunos
12473  sys_lib_dlsearch_path_spec="/usr/lib"
12474  need_lib_prefix=no
12475  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12476  case $host_os in
12477    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12478    *)				need_version=no  ;;
12479  esac
12480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12481  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12482  shlibpath_var=LD_LIBRARY_PATH
12483  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12484    case $host_os in
12485      openbsd2.[89] | openbsd2.[89].*)
12486	shlibpath_overrides_runpath=no
12487	;;
12488      *)
12489	shlibpath_overrides_runpath=yes
12490	;;
12491      esac
12492  else
12493    shlibpath_overrides_runpath=yes
12494  fi
12495  ;;
12496
12497os2*)
12498  libname_spec='$name'
12499  shrext_cmds=".dll"
12500  need_lib_prefix=no
12501  library_names_spec='$libname${shared_ext} $libname.a'
12502  dynamic_linker='OS/2 ld.exe'
12503  shlibpath_var=LIBPATH
12504  ;;
12505
12506osf3* | osf4* | osf5*)
12507  version_type=osf
12508  need_lib_prefix=no
12509  need_version=no
12510  soname_spec='${libname}${release}${shared_ext}$major'
12511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512  shlibpath_var=LD_LIBRARY_PATH
12513  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12514  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12515  ;;
12516
12517rdos*)
12518  dynamic_linker=no
12519  ;;
12520
12521solaris*)
12522  version_type=linux
12523  need_lib_prefix=no
12524  need_version=no
12525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12526  soname_spec='${libname}${release}${shared_ext}$major'
12527  shlibpath_var=LD_LIBRARY_PATH
12528  shlibpath_overrides_runpath=yes
12529  hardcode_into_libs=yes
12530  # ldd complains unless libraries are executable
12531  postinstall_cmds='chmod +x $lib'
12532  ;;
12533
12534sunos4*)
12535  version_type=sunos
12536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12537  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12538  shlibpath_var=LD_LIBRARY_PATH
12539  shlibpath_overrides_runpath=yes
12540  if test "$with_gnu_ld" = yes; then
12541    need_lib_prefix=no
12542  fi
12543  need_version=yes
12544  ;;
12545
12546sysv4 | sysv4.3*)
12547  version_type=linux
12548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12549  soname_spec='${libname}${release}${shared_ext}$major'
12550  shlibpath_var=LD_LIBRARY_PATH
12551  case $host_vendor in
12552    sni)
12553      shlibpath_overrides_runpath=no
12554      need_lib_prefix=no
12555      runpath_var=LD_RUN_PATH
12556      ;;
12557    siemens)
12558      need_lib_prefix=no
12559      ;;
12560    motorola)
12561      need_lib_prefix=no
12562      need_version=no
12563      shlibpath_overrides_runpath=no
12564      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12565      ;;
12566  esac
12567  ;;
12568
12569sysv4*MP*)
12570  if test -d /usr/nec ;then
12571    version_type=linux
12572    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12573    soname_spec='$libname${shared_ext}.$major'
12574    shlibpath_var=LD_LIBRARY_PATH
12575  fi
12576  ;;
12577
12578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12579  version_type=freebsd-elf
12580  need_lib_prefix=no
12581  need_version=no
12582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12583  soname_spec='${libname}${release}${shared_ext}$major'
12584  shlibpath_var=LD_LIBRARY_PATH
12585  shlibpath_overrides_runpath=yes
12586  hardcode_into_libs=yes
12587  if test "$with_gnu_ld" = yes; then
12588    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12589  else
12590    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12591    case $host_os in
12592      sco3.2v5*)
12593        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12594	;;
12595    esac
12596  fi
12597  sys_lib_dlsearch_path_spec='/usr/lib'
12598  ;;
12599
12600tpf*)
12601  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12602  version_type=linux
12603  need_lib_prefix=no
12604  need_version=no
12605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606  shlibpath_var=LD_LIBRARY_PATH
12607  shlibpath_overrides_runpath=no
12608  hardcode_into_libs=yes
12609  ;;
12610
12611uts4*)
12612  version_type=linux
12613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614  soname_spec='${libname}${release}${shared_ext}$major'
12615  shlibpath_var=LD_LIBRARY_PATH
12616  ;;
12617
12618*)
12619  dynamic_linker=no
12620  ;;
12621esac
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12623$as_echo "$dynamic_linker" >&6; }
12624test "$dynamic_linker" = no && can_build_shared=no
12625
12626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12627if test "$GCC" = yes; then
12628  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12629fi
12630
12631if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12632  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12633fi
12634if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12635  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12636fi
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12725$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12726hardcode_action=
12727if test -n "$hardcode_libdir_flag_spec" ||
12728   test -n "$runpath_var" ||
12729   test "X$hardcode_automatic" = "Xyes" ; then
12730
12731  # We can hardcode non-existent directories.
12732  if test "$hardcode_direct" != no &&
12733     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12734     # have to relink, otherwise we might link with an installed library
12735     # when we should be linking with a yet-to-be-installed one
12736     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12737     test "$hardcode_minus_L" != no; then
12738    # Linking always hardcodes the temporary library directory.
12739    hardcode_action=relink
12740  else
12741    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12742    hardcode_action=immediate
12743  fi
12744else
12745  # We cannot hardcode anything, or else we can only hardcode existing
12746  # directories.
12747  hardcode_action=unsupported
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12750$as_echo "$hardcode_action" >&6; }
12751
12752if test "$hardcode_action" = relink ||
12753   test "$inherit_rpath" = yes; then
12754  # Fast installation is not supported
12755  enable_fast_install=no
12756elif test "$shlibpath_overrides_runpath" = yes ||
12757     test "$enable_shared" = no; then
12758  # Fast installation is not necessary
12759  enable_fast_install=needless
12760fi
12761
12762
12763
12764
12765
12766
12767  if test "x$enable_dlopen" != xyes; then
12768  enable_dlopen=unknown
12769  enable_dlopen_self=unknown
12770  enable_dlopen_self_static=unknown
12771else
12772  lt_cv_dlopen=no
12773  lt_cv_dlopen_libs=
12774
12775  case $host_os in
12776  beos*)
12777    lt_cv_dlopen="load_add_on"
12778    lt_cv_dlopen_libs=
12779    lt_cv_dlopen_self=yes
12780    ;;
12781
12782  mingw* | pw32* | cegcc*)
12783    lt_cv_dlopen="LoadLibrary"
12784    lt_cv_dlopen_libs=
12785    ;;
12786
12787  cygwin*)
12788    lt_cv_dlopen="dlopen"
12789    lt_cv_dlopen_libs=
12790    ;;
12791
12792  darwin*)
12793  # if libdl is installed we need to link against it
12794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12795$as_echo_n "checking for dlopen in -ldl... " >&6; }
12796if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12797  $as_echo_n "(cached) " >&6
12798else
12799  ac_check_lib_save_LIBS=$LIBS
12800LIBS="-ldl  $LIBS"
12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h.  */
12803
12804/* Override any GCC internal prototype to avoid an error.
12805   Use char because int might match the return type of a GCC
12806   builtin and then its argument prototype would still apply.  */
12807#ifdef __cplusplus
12808extern "C"
12809#endif
12810char dlopen ();
12811int
12812main ()
12813{
12814return dlopen ();
12815  ;
12816  return 0;
12817}
12818_ACEOF
12819if ac_fn_c_try_link "$LINENO"; then :
12820  ac_cv_lib_dl_dlopen=yes
12821else
12822  ac_cv_lib_dl_dlopen=no
12823fi
12824rm -f core conftest.err conftest.$ac_objext \
12825    conftest$ac_exeext conftest.$ac_ext
12826LIBS=$ac_check_lib_save_LIBS
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12829$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12830if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12831  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12832else
12833
12834    lt_cv_dlopen="dyld"
12835    lt_cv_dlopen_libs=
12836    lt_cv_dlopen_self=yes
12837
12838fi
12839
12840    ;;
12841
12842  *)
12843    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12844if test "x$ac_cv_func_shl_load" = x""yes; then :
12845  lt_cv_dlopen="shl_load"
12846else
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12848$as_echo_n "checking for shl_load in -ldld... " >&6; }
12849if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  ac_check_lib_save_LIBS=$LIBS
12853LIBS="-ldld  $LIBS"
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h.  */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858   Use char because int might match the return type of a GCC
12859   builtin and then its argument prototype would still apply.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char shl_load ();
12864int
12865main ()
12866{
12867return shl_load ();
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_link "$LINENO"; then :
12873  ac_cv_lib_dld_shl_load=yes
12874else
12875  ac_cv_lib_dld_shl_load=no
12876fi
12877rm -f core conftest.err conftest.$ac_objext \
12878    conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS
12880fi
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12882$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12883if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12884  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12885else
12886  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12887if test "x$ac_cv_func_dlopen" = x""yes; then :
12888  lt_cv_dlopen="dlopen"
12889else
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12891$as_echo_n "checking for dlopen in -ldl... " >&6; }
12892if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12893  $as_echo_n "(cached) " >&6
12894else
12895  ac_check_lib_save_LIBS=$LIBS
12896LIBS="-ldl  $LIBS"
12897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898/* end confdefs.h.  */
12899
12900/* Override any GCC internal prototype to avoid an error.
12901   Use char because int might match the return type of a GCC
12902   builtin and then its argument prototype would still apply.  */
12903#ifdef __cplusplus
12904extern "C"
12905#endif
12906char dlopen ();
12907int
12908main ()
12909{
12910return dlopen ();
12911  ;
12912  return 0;
12913}
12914_ACEOF
12915if ac_fn_c_try_link "$LINENO"; then :
12916  ac_cv_lib_dl_dlopen=yes
12917else
12918  ac_cv_lib_dl_dlopen=no
12919fi
12920rm -f core conftest.err conftest.$ac_objext \
12921    conftest$ac_exeext conftest.$ac_ext
12922LIBS=$ac_check_lib_save_LIBS
12923fi
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12926if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12927  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12928else
12929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12930$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12931if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12932  $as_echo_n "(cached) " >&6
12933else
12934  ac_check_lib_save_LIBS=$LIBS
12935LIBS="-lsvld  $LIBS"
12936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937/* end confdefs.h.  */
12938
12939/* Override any GCC internal prototype to avoid an error.
12940   Use char because int might match the return type of a GCC
12941   builtin and then its argument prototype would still apply.  */
12942#ifdef __cplusplus
12943extern "C"
12944#endif
12945char dlopen ();
12946int
12947main ()
12948{
12949return dlopen ();
12950  ;
12951  return 0;
12952}
12953_ACEOF
12954if ac_fn_c_try_link "$LINENO"; then :
12955  ac_cv_lib_svld_dlopen=yes
12956else
12957  ac_cv_lib_svld_dlopen=no
12958fi
12959rm -f core conftest.err conftest.$ac_objext \
12960    conftest$ac_exeext conftest.$ac_ext
12961LIBS=$ac_check_lib_save_LIBS
12962fi
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12964$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12965if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12966  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12967else
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12969$as_echo_n "checking for dld_link in -ldld... " >&6; }
12970if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  ac_check_lib_save_LIBS=$LIBS
12974LIBS="-ldld  $LIBS"
12975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976/* end confdefs.h.  */
12977
12978/* Override any GCC internal prototype to avoid an error.
12979   Use char because int might match the return type of a GCC
12980   builtin and then its argument prototype would still apply.  */
12981#ifdef __cplusplus
12982extern "C"
12983#endif
12984char dld_link ();
12985int
12986main ()
12987{
12988return dld_link ();
12989  ;
12990  return 0;
12991}
12992_ACEOF
12993if ac_fn_c_try_link "$LINENO"; then :
12994  ac_cv_lib_dld_dld_link=yes
12995else
12996  ac_cv_lib_dld_dld_link=no
12997fi
12998rm -f core conftest.err conftest.$ac_objext \
12999    conftest$ac_exeext conftest.$ac_ext
13000LIBS=$ac_check_lib_save_LIBS
13001fi
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13003$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13004if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13005  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13006fi
13007
13008
13009fi
13010
13011
13012fi
13013
13014
13015fi
13016
13017
13018fi
13019
13020
13021fi
13022
13023    ;;
13024  esac
13025
13026  if test "x$lt_cv_dlopen" != xno; then
13027    enable_dlopen=yes
13028  else
13029    enable_dlopen=no
13030  fi
13031
13032  case $lt_cv_dlopen in
13033  dlopen)
13034    save_CPPFLAGS="$CPPFLAGS"
13035    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13036
13037    save_LDFLAGS="$LDFLAGS"
13038    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13039
13040    save_LIBS="$LIBS"
13041    LIBS="$lt_cv_dlopen_libs $LIBS"
13042
13043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13044$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13045if test "${lt_cv_dlopen_self+set}" = set; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  	  if test "$cross_compiling" = yes; then :
13049  lt_cv_dlopen_self=cross
13050else
13051  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13052  lt_status=$lt_dlunknown
13053  cat > conftest.$ac_ext <<_LT_EOF
13054#line 13054 "configure"
13055#include "confdefs.h"
13056
13057#if HAVE_DLFCN_H
13058#include <dlfcn.h>
13059#endif
13060
13061#include <stdio.h>
13062
13063#ifdef RTLD_GLOBAL
13064#  define LT_DLGLOBAL		RTLD_GLOBAL
13065#else
13066#  ifdef DL_GLOBAL
13067#    define LT_DLGLOBAL		DL_GLOBAL
13068#  else
13069#    define LT_DLGLOBAL		0
13070#  endif
13071#endif
13072
13073/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13074   find out it does not work in some platform. */
13075#ifndef LT_DLLAZY_OR_NOW
13076#  ifdef RTLD_LAZY
13077#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13078#  else
13079#    ifdef DL_LAZY
13080#      define LT_DLLAZY_OR_NOW		DL_LAZY
13081#    else
13082#      ifdef RTLD_NOW
13083#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13084#      else
13085#        ifdef DL_NOW
13086#          define LT_DLLAZY_OR_NOW	DL_NOW
13087#        else
13088#          define LT_DLLAZY_OR_NOW	0
13089#        endif
13090#      endif
13091#    endif
13092#  endif
13093#endif
13094
13095void fnord() { int i=42;}
13096int main ()
13097{
13098  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13099  int status = $lt_dlunknown;
13100
13101  if (self)
13102    {
13103      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13104      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13105      /* dlclose (self); */
13106    }
13107  else
13108    puts (dlerror ());
13109
13110  return status;
13111}
13112_LT_EOF
13113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13114  (eval $ac_link) 2>&5
13115  ac_status=$?
13116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13118    (./conftest; exit; ) >&5 2>/dev/null
13119    lt_status=$?
13120    case x$lt_status in
13121      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13122      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13123      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13124    esac
13125  else :
13126    # compilation failed
13127    lt_cv_dlopen_self=no
13128  fi
13129fi
13130rm -fr conftest*
13131
13132
13133fi
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13135$as_echo "$lt_cv_dlopen_self" >&6; }
13136
13137    if test "x$lt_cv_dlopen_self" = xyes; then
13138      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13139      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13140$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13141if test "${lt_cv_dlopen_self_static+set}" = set; then :
13142  $as_echo_n "(cached) " >&6
13143else
13144  	  if test "$cross_compiling" = yes; then :
13145  lt_cv_dlopen_self_static=cross
13146else
13147  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13148  lt_status=$lt_dlunknown
13149  cat > conftest.$ac_ext <<_LT_EOF
13150#line 13150 "configure"
13151#include "confdefs.h"
13152
13153#if HAVE_DLFCN_H
13154#include <dlfcn.h>
13155#endif
13156
13157#include <stdio.h>
13158
13159#ifdef RTLD_GLOBAL
13160#  define LT_DLGLOBAL		RTLD_GLOBAL
13161#else
13162#  ifdef DL_GLOBAL
13163#    define LT_DLGLOBAL		DL_GLOBAL
13164#  else
13165#    define LT_DLGLOBAL		0
13166#  endif
13167#endif
13168
13169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13170   find out it does not work in some platform. */
13171#ifndef LT_DLLAZY_OR_NOW
13172#  ifdef RTLD_LAZY
13173#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13174#  else
13175#    ifdef DL_LAZY
13176#      define LT_DLLAZY_OR_NOW		DL_LAZY
13177#    else
13178#      ifdef RTLD_NOW
13179#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13180#      else
13181#        ifdef DL_NOW
13182#          define LT_DLLAZY_OR_NOW	DL_NOW
13183#        else
13184#          define LT_DLLAZY_OR_NOW	0
13185#        endif
13186#      endif
13187#    endif
13188#  endif
13189#endif
13190
13191void fnord() { int i=42;}
13192int main ()
13193{
13194  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13195  int status = $lt_dlunknown;
13196
13197  if (self)
13198    {
13199      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13200      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13201      /* dlclose (self); */
13202    }
13203  else
13204    puts (dlerror ());
13205
13206  return status;
13207}
13208_LT_EOF
13209  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13210  (eval $ac_link) 2>&5
13211  ac_status=$?
13212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13213  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13214    (./conftest; exit; ) >&5 2>/dev/null
13215    lt_status=$?
13216    case x$lt_status in
13217      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13218      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13219      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13220    esac
13221  else :
13222    # compilation failed
13223    lt_cv_dlopen_self_static=no
13224  fi
13225fi
13226rm -fr conftest*
13227
13228
13229fi
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13231$as_echo "$lt_cv_dlopen_self_static" >&6; }
13232    fi
13233
13234    CPPFLAGS="$save_CPPFLAGS"
13235    LDFLAGS="$save_LDFLAGS"
13236    LIBS="$save_LIBS"
13237    ;;
13238  esac
13239
13240  case $lt_cv_dlopen_self in
13241  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13242  *) enable_dlopen_self=unknown ;;
13243  esac
13244
13245  case $lt_cv_dlopen_self_static in
13246  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13247  *) enable_dlopen_self_static=unknown ;;
13248  esac
13249fi
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267striplib=
13268old_striplib=
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13270$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13271if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13272  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13273  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275$as_echo "yes" >&6; }
13276else
13277# FIXME - insert some real tests, host_os isn't really good enough
13278  case $host_os in
13279  darwin*)
13280    if test -n "$STRIP" ; then
13281      striplib="$STRIP -x"
13282      old_striplib="$STRIP -S"
13283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284$as_echo "yes" >&6; }
13285    else
13286      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287$as_echo "no" >&6; }
13288    fi
13289    ;;
13290  *)
13291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
13293    ;;
13294  esac
13295fi
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308  # Report which library types will actually be built
13309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13310$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13312$as_echo "$can_build_shared" >&6; }
13313
13314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13315$as_echo_n "checking whether to build shared libraries... " >&6; }
13316  test "$can_build_shared" = "no" && enable_shared=no
13317
13318  # On AIX, shared libraries and static libraries use the same namespace, and
13319  # are all built from PIC.
13320  case $host_os in
13321  aix3*)
13322    test "$enable_shared" = yes && enable_static=no
13323    if test -n "$RANLIB"; then
13324      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13325      postinstall_cmds='$RANLIB $lib'
13326    fi
13327    ;;
13328
13329  aix[4-9]*)
13330    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13331      test "$enable_shared" = yes && enable_static=no
13332    fi
13333    ;;
13334  esac
13335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13336$as_echo "$enable_shared" >&6; }
13337
13338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13339$as_echo_n "checking whether to build static libraries... " >&6; }
13340  # Make sure either enable_shared or enable_static is yes.
13341  test "$enable_shared" = yes || enable_static=yes
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13343$as_echo "$enable_static" >&6; }
13344
13345
13346
13347
13348fi
13349ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355CC="$lt_save_CC"
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369        ac_config_commands="$ac_config_commands libtool"
13370
13371
13372
13373
13374# Only expand once:
13375
13376
13377
13378
13379# Checks for programs.
13380ac_ext=c
13381ac_cpp='$CPP $CPPFLAGS'
13382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384ac_compiler_gnu=$ac_cv_c_compiler_gnu
13385if test -n "$ac_tool_prefix"; then
13386  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13387set dummy ${ac_tool_prefix}gcc; ac_word=$2
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389$as_echo_n "checking for $ac_word... " >&6; }
13390if test "${ac_cv_prog_CC+set}" = set; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  if test -n "$CC"; then
13394  ac_cv_prog_CC="$CC" # Let the user override the test.
13395else
13396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397for as_dir in $PATH
13398do
13399  IFS=$as_save_IFS
13400  test -z "$as_dir" && as_dir=.
13401    for ac_exec_ext in '' $ac_executable_extensions; do
13402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13403    ac_cv_prog_CC="${ac_tool_prefix}gcc"
13404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405    break 2
13406  fi
13407done
13408  done
13409IFS=$as_save_IFS
13410
13411fi
13412fi
13413CC=$ac_cv_prog_CC
13414if test -n "$CC"; then
13415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13416$as_echo "$CC" >&6; }
13417else
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419$as_echo "no" >&6; }
13420fi
13421
13422
13423fi
13424if test -z "$ac_cv_prog_CC"; then
13425  ac_ct_CC=$CC
13426  # Extract the first word of "gcc", so it can be a program name with args.
13427set dummy gcc; ac_word=$2
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429$as_echo_n "checking for $ac_word... " >&6; }
13430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13431  $as_echo_n "(cached) " >&6
13432else
13433  if test -n "$ac_ct_CC"; then
13434  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13435else
13436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437for as_dir in $PATH
13438do
13439  IFS=$as_save_IFS
13440  test -z "$as_dir" && as_dir=.
13441    for ac_exec_ext in '' $ac_executable_extensions; do
13442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13443    ac_cv_prog_ac_ct_CC="gcc"
13444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445    break 2
13446  fi
13447done
13448  done
13449IFS=$as_save_IFS
13450
13451fi
13452fi
13453ac_ct_CC=$ac_cv_prog_ac_ct_CC
13454if test -n "$ac_ct_CC"; then
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13456$as_echo "$ac_ct_CC" >&6; }
13457else
13458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459$as_echo "no" >&6; }
13460fi
13461
13462  if test "x$ac_ct_CC" = x; then
13463    CC=""
13464  else
13465    case $cross_compiling:$ac_tool_warned in
13466yes:)
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469ac_tool_warned=yes ;;
13470esac
13471    CC=$ac_ct_CC
13472  fi
13473else
13474  CC="$ac_cv_prog_CC"
13475fi
13476
13477if test -z "$CC"; then
13478          if test -n "$ac_tool_prefix"; then
13479    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13480set dummy ${ac_tool_prefix}cc; ac_word=$2
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482$as_echo_n "checking for $ac_word... " >&6; }
13483if test "${ac_cv_prog_CC+set}" = set; then :
13484  $as_echo_n "(cached) " >&6
13485else
13486  if test -n "$CC"; then
13487  ac_cv_prog_CC="$CC" # Let the user override the test.
13488else
13489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490for as_dir in $PATH
13491do
13492  IFS=$as_save_IFS
13493  test -z "$as_dir" && as_dir=.
13494    for ac_exec_ext in '' $ac_executable_extensions; do
13495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13496    ac_cv_prog_CC="${ac_tool_prefix}cc"
13497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498    break 2
13499  fi
13500done
13501  done
13502IFS=$as_save_IFS
13503
13504fi
13505fi
13506CC=$ac_cv_prog_CC
13507if test -n "$CC"; then
13508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13509$as_echo "$CC" >&6; }
13510else
13511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512$as_echo "no" >&6; }
13513fi
13514
13515
13516  fi
13517fi
13518if test -z "$CC"; then
13519  # Extract the first word of "cc", so it can be a program name with args.
13520set dummy cc; ac_word=$2
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522$as_echo_n "checking for $ac_word... " >&6; }
13523if test "${ac_cv_prog_CC+set}" = set; then :
13524  $as_echo_n "(cached) " >&6
13525else
13526  if test -n "$CC"; then
13527  ac_cv_prog_CC="$CC" # Let the user override the test.
13528else
13529  ac_prog_rejected=no
13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533  IFS=$as_save_IFS
13534  test -z "$as_dir" && as_dir=.
13535    for ac_exec_ext in '' $ac_executable_extensions; do
13536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13537    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13538       ac_prog_rejected=yes
13539       continue
13540     fi
13541    ac_cv_prog_CC="cc"
13542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543    break 2
13544  fi
13545done
13546  done
13547IFS=$as_save_IFS
13548
13549if test $ac_prog_rejected = yes; then
13550  # We found a bogon in the path, so make sure we never use it.
13551  set dummy $ac_cv_prog_CC
13552  shift
13553  if test $# != 0; then
13554    # We chose a different compiler from the bogus one.
13555    # However, it has the same basename, so the bogon will be chosen
13556    # first if we set CC to just the basename; use the full file name.
13557    shift
13558    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13559  fi
13560fi
13561fi
13562fi
13563CC=$ac_cv_prog_CC
13564if test -n "$CC"; then
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13566$as_echo "$CC" >&6; }
13567else
13568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570fi
13571
13572
13573fi
13574if test -z "$CC"; then
13575  if test -n "$ac_tool_prefix"; then
13576  for ac_prog in cl.exe
13577  do
13578    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581$as_echo_n "checking for $ac_word... " >&6; }
13582if test "${ac_cv_prog_CC+set}" = set; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  if test -n "$CC"; then
13586  ac_cv_prog_CC="$CC" # Let the user override the test.
13587else
13588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH
13590do
13591  IFS=$as_save_IFS
13592  test -z "$as_dir" && as_dir=.
13593    for ac_exec_ext in '' $ac_executable_extensions; do
13594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597    break 2
13598  fi
13599done
13600  done
13601IFS=$as_save_IFS
13602
13603fi
13604fi
13605CC=$ac_cv_prog_CC
13606if test -n "$CC"; then
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13608$as_echo "$CC" >&6; }
13609else
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612fi
13613
13614
13615    test -n "$CC" && break
13616  done
13617fi
13618if test -z "$CC"; then
13619  ac_ct_CC=$CC
13620  for ac_prog in cl.exe
13621do
13622  # Extract the first word of "$ac_prog", so it can be a program name with args.
13623set dummy $ac_prog; ac_word=$2
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13625$as_echo_n "checking for $ac_word... " >&6; }
13626if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13627  $as_echo_n "(cached) " >&6
13628else
13629  if test -n "$ac_ct_CC"; then
13630  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13631else
13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635  IFS=$as_save_IFS
13636  test -z "$as_dir" && as_dir=.
13637    for ac_exec_ext in '' $ac_executable_extensions; do
13638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13639    ac_cv_prog_ac_ct_CC="$ac_prog"
13640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641    break 2
13642  fi
13643done
13644  done
13645IFS=$as_save_IFS
13646
13647fi
13648fi
13649ac_ct_CC=$ac_cv_prog_ac_ct_CC
13650if test -n "$ac_ct_CC"; then
13651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13652$as_echo "$ac_ct_CC" >&6; }
13653else
13654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
13656fi
13657
13658
13659  test -n "$ac_ct_CC" && break
13660done
13661
13662  if test "x$ac_ct_CC" = x; then
13663    CC=""
13664  else
13665    case $cross_compiling:$ac_tool_warned in
13666yes:)
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13669ac_tool_warned=yes ;;
13670esac
13671    CC=$ac_ct_CC
13672  fi
13673fi
13674
13675fi
13676
13677
13678test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13680as_fn_error "no acceptable C compiler found in \$PATH
13681See \`config.log' for more details." "$LINENO" 5; }
13682
13683# Provide some information about the compiler.
13684$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13685set X $ac_compile
13686ac_compiler=$2
13687for ac_option in --version -v -V -qversion; do
13688  { { ac_try="$ac_compiler $ac_option >&5"
13689case "(($ac_try" in
13690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691  *) ac_try_echo=$ac_try;;
13692esac
13693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13694$as_echo "$ac_try_echo"; } >&5
13695  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13696  ac_status=$?
13697  if test -s conftest.err; then
13698    sed '10a\
13699... rest of stderr output deleted ...
13700         10q' conftest.err >conftest.er1
13701    cat conftest.er1 >&5
13702  fi
13703  rm -f conftest.er1 conftest.err
13704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705  test $ac_status = 0; }
13706done
13707
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13709$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13710if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13711  $as_echo_n "(cached) " >&6
13712else
13713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715
13716int
13717main ()
13718{
13719#ifndef __GNUC__
13720       choke me
13721#endif
13722
13723  ;
13724  return 0;
13725}
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"; then :
13728  ac_compiler_gnu=yes
13729else
13730  ac_compiler_gnu=no
13731fi
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733ac_cv_c_compiler_gnu=$ac_compiler_gnu
13734
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13737$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13738if test $ac_compiler_gnu = yes; then
13739  GCC=yes
13740else
13741  GCC=
13742fi
13743ac_test_CFLAGS=${CFLAGS+set}
13744ac_save_CFLAGS=$CFLAGS
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13746$as_echo_n "checking whether $CC accepts -g... " >&6; }
13747if test "${ac_cv_prog_cc_g+set}" = set; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  ac_save_c_werror_flag=$ac_c_werror_flag
13751   ac_c_werror_flag=yes
13752   ac_cv_prog_cc_g=no
13753   CFLAGS="-g"
13754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755/* end confdefs.h.  */
13756
13757int
13758main ()
13759{
13760
13761  ;
13762  return 0;
13763}
13764_ACEOF
13765if ac_fn_c_try_compile "$LINENO"; then :
13766  ac_cv_prog_cc_g=yes
13767else
13768  CFLAGS=""
13769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770/* end confdefs.h.  */
13771
13772int
13773main ()
13774{
13775
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780if ac_fn_c_try_compile "$LINENO"; then :
13781
13782else
13783  ac_c_werror_flag=$ac_save_c_werror_flag
13784	 CFLAGS="-g"
13785	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786/* end confdefs.h.  */
13787
13788int
13789main ()
13790{
13791
13792  ;
13793  return 0;
13794}
13795_ACEOF
13796if ac_fn_c_try_compile "$LINENO"; then :
13797  ac_cv_prog_cc_g=yes
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800fi
13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802fi
13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804   ac_c_werror_flag=$ac_save_c_werror_flag
13805fi
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13807$as_echo "$ac_cv_prog_cc_g" >&6; }
13808if test "$ac_test_CFLAGS" = set; then
13809  CFLAGS=$ac_save_CFLAGS
13810elif test $ac_cv_prog_cc_g = yes; then
13811  if test "$GCC" = yes; then
13812    CFLAGS="-g -O2"
13813  else
13814    CFLAGS="-g"
13815  fi
13816else
13817  if test "$GCC" = yes; then
13818    CFLAGS="-O2"
13819  else
13820    CFLAGS=
13821  fi
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13824$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13825if test "${ac_cv_prog_cc_c89+set}" = set; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  ac_cv_prog_cc_c89=no
13829ac_save_CC=$CC
13830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832#include <stdarg.h>
13833#include <stdio.h>
13834#include <sys/types.h>
13835#include <sys/stat.h>
13836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13837struct buf { int x; };
13838FILE * (*rcsopen) (struct buf *, struct stat *, int);
13839static char *e (p, i)
13840     char **p;
13841     int i;
13842{
13843  return p[i];
13844}
13845static char *f (char * (*g) (char **, int), char **p, ...)
13846{
13847  char *s;
13848  va_list v;
13849  va_start (v,p);
13850  s = g (p, va_arg (v,int));
13851  va_end (v);
13852  return s;
13853}
13854
13855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13856   function prototypes and stuff, but not '\xHH' hex character constants.
13857   These don't provoke an error unfortunately, instead are silently treated
13858   as 'x'.  The following induces an error, until -std is added to get
13859   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13860   array size at least.  It's necessary to write '\x00'==0 to get something
13861   that's true only with -std.  */
13862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13863
13864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13865   inside strings and character constants.  */
13866#define FOO(x) 'x'
13867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13868
13869int test (int i, double x);
13870struct s1 {int (*f) (int a);};
13871struct s2 {int (*f) (double a);};
13872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13873int argc;
13874char **argv;
13875int
13876main ()
13877{
13878return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13879  ;
13880  return 0;
13881}
13882_ACEOF
13883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13884	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13885do
13886  CC="$ac_save_CC $ac_arg"
13887  if ac_fn_c_try_compile "$LINENO"; then :
13888  ac_cv_prog_cc_c89=$ac_arg
13889fi
13890rm -f core conftest.err conftest.$ac_objext
13891  test "x$ac_cv_prog_cc_c89" != "xno" && break
13892done
13893rm -f conftest.$ac_ext
13894CC=$ac_save_CC
13895
13896fi
13897# AC_CACHE_VAL
13898case "x$ac_cv_prog_cc_c89" in
13899  x)
13900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13901$as_echo "none needed" >&6; } ;;
13902  xno)
13903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13904$as_echo "unsupported" >&6; } ;;
13905  *)
13906    CC="$CC $ac_cv_prog_cc_c89"
13907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13908$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13909esac
13910if test "x$ac_cv_prog_cc_c89" != xno; then :
13911
13912fi
13913
13914ac_ext=c
13915ac_cpp='$CPP $CPPFLAGS'
13916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920depcc="$CC"   am_compiler_list=
13921
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13923$as_echo_n "checking dependency style of $depcc... " >&6; }
13924if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13925  $as_echo_n "(cached) " >&6
13926else
13927  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13928  # We make a subdir and do the tests there.  Otherwise we can end up
13929  # making bogus files that we don't know about and never remove.  For
13930  # instance it was reported that on HP-UX the gcc test will end up
13931  # making a dummy file named `D' -- because `-MD' means `put the output
13932  # in D'.
13933  mkdir conftest.dir
13934  # Copy depcomp to subdir because otherwise we won't find it if we're
13935  # using a relative directory.
13936  cp "$am_depcomp" conftest.dir
13937  cd conftest.dir
13938  # We will build objects and dependencies in a subdirectory because
13939  # it helps to detect inapplicable dependency modes.  For instance
13940  # both Tru64's cc and ICC support -MD to output dependencies as a
13941  # side effect of compilation, but ICC will put the dependencies in
13942  # the current directory while Tru64 will put them in the object
13943  # directory.
13944  mkdir sub
13945
13946  am_cv_CC_dependencies_compiler_type=none
13947  if test "$am_compiler_list" = ""; then
13948     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13949  fi
13950  am__universal=false
13951  case " $depcc " in #(
13952     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13953     esac
13954
13955  for depmode in $am_compiler_list; do
13956    # Setup a source with many dependencies, because some compilers
13957    # like to wrap large dependency lists on column 80 (with \), and
13958    # we should not choose a depcomp mode which is confused by this.
13959    #
13960    # We need to recreate these files for each test, as the compiler may
13961    # overwrite some of them when testing with obscure command lines.
13962    # This happens at least with the AIX C compiler.
13963    : > sub/conftest.c
13964    for i in 1 2 3 4 5 6; do
13965      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13966      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13967      # Solaris 8's {/usr,}/bin/sh.
13968      touch sub/conftst$i.h
13969    done
13970    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13971
13972    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13973    # mode.  It turns out that the SunPro C++ compiler does not properly
13974    # handle `-M -o', and we need to detect this.  Also, some Intel
13975    # versions had trouble with output in subdirs
13976    am__obj=sub/conftest.${OBJEXT-o}
13977    am__minus_obj="-o $am__obj"
13978    case $depmode in
13979    gcc)
13980      # This depmode causes a compiler race in universal mode.
13981      test "$am__universal" = false || continue
13982      ;;
13983    nosideeffect)
13984      # after this tag, mechanisms are not by side-effect, so they'll
13985      # only be used when explicitly requested
13986      if test "x$enable_dependency_tracking" = xyes; then
13987	continue
13988      else
13989	break
13990      fi
13991      ;;
13992    msvisualcpp | msvcmsys)
13993      # This compiler won't grok `-c -o', but also, the minuso test has
13994      # not run yet.  These depmodes are late enough in the game, and
13995      # so weak that their functioning should not be impacted.
13996      am__obj=conftest.${OBJEXT-o}
13997      am__minus_obj=
13998      ;;
13999    none) break ;;
14000    esac
14001    if depmode=$depmode \
14002       source=sub/conftest.c object=$am__obj \
14003       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14004       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14005         >/dev/null 2>conftest.err &&
14006       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14007       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14008       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14009       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14010      # icc doesn't choke on unknown options, it will just issue warnings
14011      # or remarks (even with -Werror).  So we grep stderr for any message
14012      # that says an option was ignored or not supported.
14013      # When given -MP, icc 7.0 and 7.1 complain thusly:
14014      #   icc: Command line warning: ignoring option '-M'; no argument required
14015      # The diagnosis changed in icc 8.0:
14016      #   icc: Command line remark: option '-MP' not supported
14017      if (grep 'ignoring option' conftest.err ||
14018          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14019        am_cv_CC_dependencies_compiler_type=$depmode
14020        break
14021      fi
14022    fi
14023  done
14024
14025  cd ..
14026  rm -rf conftest.dir
14027else
14028  am_cv_CC_dependencies_compiler_type=none
14029fi
14030
14031fi
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14033$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14034CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14035
14036 if
14037  test "x$enable_dependency_tracking" != xno \
14038  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14039  am__fastdepCC_TRUE=
14040  am__fastdepCC_FALSE='#'
14041else
14042  am__fastdepCC_TRUE='#'
14043  am__fastdepCC_FALSE=
14044fi
14045
14046
14047   case $ac_cv_prog_cc_stdc in #(
14048  no) :
14049    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14050  *) :
14051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14052$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14053if test "${ac_cv_prog_cc_c99+set}" = set; then :
14054  $as_echo_n "(cached) " >&6
14055else
14056  ac_cv_prog_cc_c99=no
14057ac_save_CC=$CC
14058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h.  */
14060#include <stdarg.h>
14061#include <stdbool.h>
14062#include <stdlib.h>
14063#include <wchar.h>
14064#include <stdio.h>
14065
14066// Check varargs macros.  These examples are taken from C99 6.10.3.5.
14067#define debug(...) fprintf (stderr, __VA_ARGS__)
14068#define showlist(...) puts (#__VA_ARGS__)
14069#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14070static void
14071test_varargs_macros (void)
14072{
14073  int x = 1234;
14074  int y = 5678;
14075  debug ("Flag");
14076  debug ("X = %d\n", x);
14077  showlist (The first, second, and third items.);
14078  report (x>y, "x is %d but y is %d", x, y);
14079}
14080
14081// Check long long types.
14082#define BIG64 18446744073709551615ull
14083#define BIG32 4294967295ul
14084#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14085#if !BIG_OK
14086  your preprocessor is broken;
14087#endif
14088#if BIG_OK
14089#else
14090  your preprocessor is broken;
14091#endif
14092static long long int bignum = -9223372036854775807LL;
14093static unsigned long long int ubignum = BIG64;
14094
14095struct incomplete_array
14096{
14097  int datasize;
14098  double data[];
14099};
14100
14101struct named_init {
14102  int number;
14103  const wchar_t *name;
14104  double average;
14105};
14106
14107typedef const char *ccp;
14108
14109static inline int
14110test_restrict (ccp restrict text)
14111{
14112  // See if C++-style comments work.
14113  // Iterate through items via the restricted pointer.
14114  // Also check for declarations in for loops.
14115  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14116    continue;
14117  return 0;
14118}
14119
14120// Check varargs and va_copy.
14121static void
14122test_varargs (const char *format, ...)
14123{
14124  va_list args;
14125  va_start (args, format);
14126  va_list args_copy;
14127  va_copy (args_copy, args);
14128
14129  const char *str;
14130  int number;
14131  float fnumber;
14132
14133  while (*format)
14134    {
14135      switch (*format++)
14136	{
14137	case 's': // string
14138	  str = va_arg (args_copy, const char *);
14139	  break;
14140	case 'd': // int
14141	  number = va_arg (args_copy, int);
14142	  break;
14143	case 'f': // float
14144	  fnumber = va_arg (args_copy, double);
14145	  break;
14146	default:
14147	  break;
14148	}
14149    }
14150  va_end (args_copy);
14151  va_end (args);
14152}
14153
14154int
14155main ()
14156{
14157
14158  // Check bool.
14159  _Bool success = false;
14160
14161  // Check restrict.
14162  if (test_restrict ("String literal") == 0)
14163    success = true;
14164  char *restrict newvar = "Another string";
14165
14166  // Check varargs.
14167  test_varargs ("s, d' f .", "string", 65, 34.234);
14168  test_varargs_macros ();
14169
14170  // Check flexible array members.
14171  struct incomplete_array *ia =
14172    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14173  ia->datasize = 10;
14174  for (int i = 0; i < ia->datasize; ++i)
14175    ia->data[i] = i * 1.234;
14176
14177  // Check named initializers.
14178  struct named_init ni = {
14179    .number = 34,
14180    .name = L"Test wide string",
14181    .average = 543.34343,
14182  };
14183
14184  ni.number = 58;
14185
14186  int dynamic_array[ni.number];
14187  dynamic_array[ni.number - 1] = 543;
14188
14189  // work around unused variable warnings
14190  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14191	  || dynamic_array[ni.number - 1] != 543);
14192
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
14198do
14199  CC="$ac_save_CC $ac_arg"
14200  if ac_fn_c_try_compile "$LINENO"; then :
14201  ac_cv_prog_cc_c99=$ac_arg
14202fi
14203rm -f core conftest.err conftest.$ac_objext
14204  test "x$ac_cv_prog_cc_c99" != "xno" && break
14205done
14206rm -f conftest.$ac_ext
14207CC=$ac_save_CC
14208
14209fi
14210# AC_CACHE_VAL
14211case "x$ac_cv_prog_cc_c99" in
14212  x)
14213    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14214$as_echo "none needed" >&6; } ;;
14215  xno)
14216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14217$as_echo "unsupported" >&6; } ;;
14218  *)
14219    CC="$CC $ac_cv_prog_cc_c99"
14220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14221$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14222esac
14223if test "x$ac_cv_prog_cc_c99" != xno; then :
14224  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14225else
14226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14227$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14228if test "${ac_cv_prog_cc_c89+set}" = set; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  ac_cv_prog_cc_c89=no
14232ac_save_CC=$CC
14233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h.  */
14235#include <stdarg.h>
14236#include <stdio.h>
14237#include <sys/types.h>
14238#include <sys/stat.h>
14239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14240struct buf { int x; };
14241FILE * (*rcsopen) (struct buf *, struct stat *, int);
14242static char *e (p, i)
14243     char **p;
14244     int i;
14245{
14246  return p[i];
14247}
14248static char *f (char * (*g) (char **, int), char **p, ...)
14249{
14250  char *s;
14251  va_list v;
14252  va_start (v,p);
14253  s = g (p, va_arg (v,int));
14254  va_end (v);
14255  return s;
14256}
14257
14258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14259   function prototypes and stuff, but not '\xHH' hex character constants.
14260   These don't provoke an error unfortunately, instead are silently treated
14261   as 'x'.  The following induces an error, until -std is added to get
14262   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14263   array size at least.  It's necessary to write '\x00'==0 to get something
14264   that's true only with -std.  */
14265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14266
14267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14268   inside strings and character constants.  */
14269#define FOO(x) 'x'
14270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14271
14272int test (int i, double x);
14273struct s1 {int (*f) (int a);};
14274struct s2 {int (*f) (double a);};
14275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14276int argc;
14277char **argv;
14278int
14279main ()
14280{
14281return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14282  ;
14283  return 0;
14284}
14285_ACEOF
14286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14287	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14288do
14289  CC="$ac_save_CC $ac_arg"
14290  if ac_fn_c_try_compile "$LINENO"; then :
14291  ac_cv_prog_cc_c89=$ac_arg
14292fi
14293rm -f core conftest.err conftest.$ac_objext
14294  test "x$ac_cv_prog_cc_c89" != "xno" && break
14295done
14296rm -f conftest.$ac_ext
14297CC=$ac_save_CC
14298
14299fi
14300# AC_CACHE_VAL
14301case "x$ac_cv_prog_cc_c89" in
14302  x)
14303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14304$as_echo "none needed" >&6; } ;;
14305  xno)
14306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14307$as_echo "unsupported" >&6; } ;;
14308  *)
14309    CC="$CC $ac_cv_prog_cc_c89"
14310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14312esac
14313if test "x$ac_cv_prog_cc_c89" != xno; then :
14314  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14315else
14316  ac_cv_prog_cc_stdc=no
14317fi
14318
14319fi
14320 ;;
14321esac
14322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14323$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14324  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
14325  $as_echo_n "(cached) " >&6
14326fi
14327
14328  case $ac_cv_prog_cc_stdc in #(
14329  no) :
14330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14331$as_echo "unsupported" >&6; } ;; #(
14332  '') :
14333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14334$as_echo "none needed" >&6; } ;; #(
14335  *) :
14336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14337$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14338esac
14339
14340ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14346$as_echo_n "checking how to run the C preprocessor... " >&6; }
14347# On Suns, sometimes $CPP names a directory.
14348if test -n "$CPP" && test -d "$CPP"; then
14349  CPP=
14350fi
14351if test -z "$CPP"; then
14352  if test "${ac_cv_prog_CPP+set}" = set; then :
14353  $as_echo_n "(cached) " >&6
14354else
14355      # Double quotes because CPP needs to be expanded
14356    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14357    do
14358      ac_preproc_ok=false
14359for ac_c_preproc_warn_flag in '' yes
14360do
14361  # Use a header file that comes with gcc, so configuring glibc
14362  # with a fresh cross-compiler works.
14363  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14364  # <limits.h> exists even on freestanding compilers.
14365  # On the NeXT, cc -E runs the code through the compiler's parser,
14366  # not just through cpp. "Syntax error" is here to catch this case.
14367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368/* end confdefs.h.  */
14369#ifdef __STDC__
14370# include <limits.h>
14371#else
14372# include <assert.h>
14373#endif
14374		     Syntax error
14375_ACEOF
14376if ac_fn_c_try_cpp "$LINENO"; then :
14377
14378else
14379  # Broken: fails on valid input.
14380continue
14381fi
14382rm -f conftest.err conftest.$ac_ext
14383
14384  # OK, works on sane cases.  Now check whether nonexistent headers
14385  # can be detected and how.
14386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387/* end confdefs.h.  */
14388#include <ac_nonexistent.h>
14389_ACEOF
14390if ac_fn_c_try_cpp "$LINENO"; then :
14391  # Broken: success on invalid input.
14392continue
14393else
14394  # Passes both tests.
14395ac_preproc_ok=:
14396break
14397fi
14398rm -f conftest.err conftest.$ac_ext
14399
14400done
14401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14402rm -f conftest.err conftest.$ac_ext
14403if $ac_preproc_ok; then :
14404  break
14405fi
14406
14407    done
14408    ac_cv_prog_CPP=$CPP
14409
14410fi
14411  CPP=$ac_cv_prog_CPP
14412else
14413  ac_cv_prog_CPP=$CPP
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14416$as_echo "$CPP" >&6; }
14417ac_preproc_ok=false
14418for ac_c_preproc_warn_flag in '' yes
14419do
14420  # Use a header file that comes with gcc, so configuring glibc
14421  # with a fresh cross-compiler works.
14422  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423  # <limits.h> exists even on freestanding compilers.
14424  # On the NeXT, cc -E runs the code through the compiler's parser,
14425  # not just through cpp. "Syntax error" is here to catch this case.
14426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428#ifdef __STDC__
14429# include <limits.h>
14430#else
14431# include <assert.h>
14432#endif
14433		     Syntax error
14434_ACEOF
14435if ac_fn_c_try_cpp "$LINENO"; then :
14436
14437else
14438  # Broken: fails on valid input.
14439continue
14440fi
14441rm -f conftest.err conftest.$ac_ext
14442
14443  # OK, works on sane cases.  Now check whether nonexistent headers
14444  # can be detected and how.
14445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h.  */
14447#include <ac_nonexistent.h>
14448_ACEOF
14449if ac_fn_c_try_cpp "$LINENO"; then :
14450  # Broken: success on invalid input.
14451continue
14452else
14453  # Passes both tests.
14454ac_preproc_ok=:
14455break
14456fi
14457rm -f conftest.err conftest.$ac_ext
14458
14459done
14460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14461rm -f conftest.err conftest.$ac_ext
14462if $ac_preproc_ok; then :
14463
14464else
14465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14467as_fn_error "C preprocessor \"$CPP\" fails sanity check
14468See \`config.log' for more details." "$LINENO" 5; }
14469fi
14470
14471ac_ext=c
14472ac_cpp='$CPP $CPPFLAGS'
14473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476
14477ac_ext=cpp
14478ac_cpp='$CXXCPP $CPPFLAGS'
14479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14482if test -z "$CXX"; then
14483  if test -n "$CCC"; then
14484    CXX=$CCC
14485  else
14486    if test -n "$ac_tool_prefix"; then
14487  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14488  do
14489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492$as_echo_n "checking for $ac_word... " >&6; }
14493if test "${ac_cv_prog_CXX+set}" = set; then :
14494  $as_echo_n "(cached) " >&6
14495else
14496  if test -n "$CXX"; then
14497  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14498else
14499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500for as_dir in $PATH
14501do
14502  IFS=$as_save_IFS
14503  test -z "$as_dir" && as_dir=.
14504    for ac_exec_ext in '' $ac_executable_extensions; do
14505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14506    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508    break 2
14509  fi
14510done
14511  done
14512IFS=$as_save_IFS
14513
14514fi
14515fi
14516CXX=$ac_cv_prog_CXX
14517if test -n "$CXX"; then
14518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14519$as_echo "$CXX" >&6; }
14520else
14521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522$as_echo "no" >&6; }
14523fi
14524
14525
14526    test -n "$CXX" && break
14527  done
14528fi
14529if test -z "$CXX"; then
14530  ac_ct_CXX=$CXX
14531  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14532do
14533  # Extract the first word of "$ac_prog", so it can be a program name with args.
14534set dummy $ac_prog; ac_word=$2
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14536$as_echo_n "checking for $ac_word... " >&6; }
14537if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14538  $as_echo_n "(cached) " >&6
14539else
14540  if test -n "$ac_ct_CXX"; then
14541  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14542else
14543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544for as_dir in $PATH
14545do
14546  IFS=$as_save_IFS
14547  test -z "$as_dir" && as_dir=.
14548    for ac_exec_ext in '' $ac_executable_extensions; do
14549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14550    ac_cv_prog_ac_ct_CXX="$ac_prog"
14551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14552    break 2
14553  fi
14554done
14555  done
14556IFS=$as_save_IFS
14557
14558fi
14559fi
14560ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14561if test -n "$ac_ct_CXX"; then
14562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14563$as_echo "$ac_ct_CXX" >&6; }
14564else
14565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566$as_echo "no" >&6; }
14567fi
14568
14569
14570  test -n "$ac_ct_CXX" && break
14571done
14572
14573  if test "x$ac_ct_CXX" = x; then
14574    CXX="g++"
14575  else
14576    case $cross_compiling:$ac_tool_warned in
14577yes:)
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14580ac_tool_warned=yes ;;
14581esac
14582    CXX=$ac_ct_CXX
14583  fi
14584fi
14585
14586  fi
14587fi
14588# Provide some information about the compiler.
14589$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14590set X $ac_compile
14591ac_compiler=$2
14592for ac_option in --version -v -V -qversion; do
14593  { { ac_try="$ac_compiler $ac_option >&5"
14594case "(($ac_try" in
14595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596  *) ac_try_echo=$ac_try;;
14597esac
14598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14599$as_echo "$ac_try_echo"; } >&5
14600  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14601  ac_status=$?
14602  if test -s conftest.err; then
14603    sed '10a\
14604... rest of stderr output deleted ...
14605         10q' conftest.err >conftest.er1
14606    cat conftest.er1 >&5
14607  fi
14608  rm -f conftest.er1 conftest.err
14609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14610  test $ac_status = 0; }
14611done
14612
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14614$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14615if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619/* end confdefs.h.  */
14620
14621int
14622main ()
14623{
14624#ifndef __GNUC__
14625       choke me
14626#endif
14627
14628  ;
14629  return 0;
14630}
14631_ACEOF
14632if ac_fn_cxx_try_compile "$LINENO"; then :
14633  ac_compiler_gnu=yes
14634else
14635  ac_compiler_gnu=no
14636fi
14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14639
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14642$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14643if test $ac_compiler_gnu = yes; then
14644  GXX=yes
14645else
14646  GXX=
14647fi
14648ac_test_CXXFLAGS=${CXXFLAGS+set}
14649ac_save_CXXFLAGS=$CXXFLAGS
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14651$as_echo_n "checking whether $CXX accepts -g... " >&6; }
14652if test "${ac_cv_prog_cxx_g+set}" = set; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14656   ac_cxx_werror_flag=yes
14657   ac_cv_prog_cxx_g=no
14658   CXXFLAGS="-g"
14659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h.  */
14661
14662int
14663main ()
14664{
14665
14666  ;
14667  return 0;
14668}
14669_ACEOF
14670if ac_fn_cxx_try_compile "$LINENO"; then :
14671  ac_cv_prog_cxx_g=yes
14672else
14673  CXXFLAGS=""
14674      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676
14677int
14678main ()
14679{
14680
14681  ;
14682  return 0;
14683}
14684_ACEOF
14685if ac_fn_cxx_try_compile "$LINENO"; then :
14686
14687else
14688  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14689	 CXXFLAGS="-g"
14690	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691/* end confdefs.h.  */
14692
14693int
14694main ()
14695{
14696
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_cxx_try_compile "$LINENO"; then :
14702  ac_cv_prog_cxx_g=yes
14703fi
14704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707fi
14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14712$as_echo "$ac_cv_prog_cxx_g" >&6; }
14713if test "$ac_test_CXXFLAGS" = set; then
14714  CXXFLAGS=$ac_save_CXXFLAGS
14715elif test $ac_cv_prog_cxx_g = yes; then
14716  if test "$GXX" = yes; then
14717    CXXFLAGS="-g -O2"
14718  else
14719    CXXFLAGS="-g"
14720  fi
14721else
14722  if test "$GXX" = yes; then
14723    CXXFLAGS="-O2"
14724  else
14725    CXXFLAGS=
14726  fi
14727fi
14728ac_ext=c
14729ac_cpp='$CPP $CPPFLAGS'
14730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732ac_compiler_gnu=$ac_cv_c_compiler_gnu
14733
14734depcc="$CXX"  am_compiler_list=
14735
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14737$as_echo_n "checking dependency style of $depcc... " >&6; }
14738if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14739  $as_echo_n "(cached) " >&6
14740else
14741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14742  # We make a subdir and do the tests there.  Otherwise we can end up
14743  # making bogus files that we don't know about and never remove.  For
14744  # instance it was reported that on HP-UX the gcc test will end up
14745  # making a dummy file named `D' -- because `-MD' means `put the output
14746  # in D'.
14747  mkdir conftest.dir
14748  # Copy depcomp to subdir because otherwise we won't find it if we're
14749  # using a relative directory.
14750  cp "$am_depcomp" conftest.dir
14751  cd conftest.dir
14752  # We will build objects and dependencies in a subdirectory because
14753  # it helps to detect inapplicable dependency modes.  For instance
14754  # both Tru64's cc and ICC support -MD to output dependencies as a
14755  # side effect of compilation, but ICC will put the dependencies in
14756  # the current directory while Tru64 will put them in the object
14757  # directory.
14758  mkdir sub
14759
14760  am_cv_CXX_dependencies_compiler_type=none
14761  if test "$am_compiler_list" = ""; then
14762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14763  fi
14764  am__universal=false
14765  case " $depcc " in #(
14766     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14767     esac
14768
14769  for depmode in $am_compiler_list; do
14770    # Setup a source with many dependencies, because some compilers
14771    # like to wrap large dependency lists on column 80 (with \), and
14772    # we should not choose a depcomp mode which is confused by this.
14773    #
14774    # We need to recreate these files for each test, as the compiler may
14775    # overwrite some of them when testing with obscure command lines.
14776    # This happens at least with the AIX C compiler.
14777    : > sub/conftest.c
14778    for i in 1 2 3 4 5 6; do
14779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14781      # Solaris 8's {/usr,}/bin/sh.
14782      touch sub/conftst$i.h
14783    done
14784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14785
14786    # We check with `-c' and `-o' for the sake of the "dashmstdout"
14787    # mode.  It turns out that the SunPro C++ compiler does not properly
14788    # handle `-M -o', and we need to detect this.  Also, some Intel
14789    # versions had trouble with output in subdirs
14790    am__obj=sub/conftest.${OBJEXT-o}
14791    am__minus_obj="-o $am__obj"
14792    case $depmode in
14793    gcc)
14794      # This depmode causes a compiler race in universal mode.
14795      test "$am__universal" = false || continue
14796      ;;
14797    nosideeffect)
14798      # after this tag, mechanisms are not by side-effect, so they'll
14799      # only be used when explicitly requested
14800      if test "x$enable_dependency_tracking" = xyes; then
14801	continue
14802      else
14803	break
14804      fi
14805      ;;
14806    msvisualcpp | msvcmsys)
14807      # This compiler won't grok `-c -o', but also, the minuso test has
14808      # not run yet.  These depmodes are late enough in the game, and
14809      # so weak that their functioning should not be impacted.
14810      am__obj=conftest.${OBJEXT-o}
14811      am__minus_obj=
14812      ;;
14813    none) break ;;
14814    esac
14815    if depmode=$depmode \
14816       source=sub/conftest.c object=$am__obj \
14817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14818       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14819         >/dev/null 2>conftest.err &&
14820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14822       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14824      # icc doesn't choke on unknown options, it will just issue warnings
14825      # or remarks (even with -Werror).  So we grep stderr for any message
14826      # that says an option was ignored or not supported.
14827      # When given -MP, icc 7.0 and 7.1 complain thusly:
14828      #   icc: Command line warning: ignoring option '-M'; no argument required
14829      # The diagnosis changed in icc 8.0:
14830      #   icc: Command line remark: option '-MP' not supported
14831      if (grep 'ignoring option' conftest.err ||
14832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14833        am_cv_CXX_dependencies_compiler_type=$depmode
14834        break
14835      fi
14836    fi
14837  done
14838
14839  cd ..
14840  rm -rf conftest.dir
14841else
14842  am_cv_CXX_dependencies_compiler_type=none
14843fi
14844
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14847$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14848CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14849
14850 if
14851  test "x$enable_dependency_tracking" != xno \
14852  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14853  am__fastdepCXX_TRUE=
14854  am__fastdepCXX_FALSE='#'
14855else
14856  am__fastdepCXX_TRUE='#'
14857  am__fastdepCXX_FALSE=
14858fi
14859
14860
14861
14862ac_ext=cpp
14863ac_cpp='$CXXCPP $CPPFLAGS'
14864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14867if test -z "$CXX"; then
14868  if test -n "$CCC"; then
14869    CXX=$CCC
14870  else
14871    if test -n "$ac_tool_prefix"; then
14872  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14873  do
14874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877$as_echo_n "checking for $ac_word... " >&6; }
14878if test "${ac_cv_prog_CXX+set}" = set; then :
14879  $as_echo_n "(cached) " >&6
14880else
14881  if test -n "$CXX"; then
14882  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14883else
14884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885for as_dir in $PATH
14886do
14887  IFS=$as_save_IFS
14888  test -z "$as_dir" && as_dir=.
14889    for ac_exec_ext in '' $ac_executable_extensions; do
14890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14891    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14893    break 2
14894  fi
14895done
14896  done
14897IFS=$as_save_IFS
14898
14899fi
14900fi
14901CXX=$ac_cv_prog_CXX
14902if test -n "$CXX"; then
14903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14904$as_echo "$CXX" >&6; }
14905else
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907$as_echo "no" >&6; }
14908fi
14909
14910
14911    test -n "$CXX" && break
14912  done
14913fi
14914if test -z "$CXX"; then
14915  ac_ct_CXX=$CXX
14916  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14917do
14918  # Extract the first word of "$ac_prog", so it can be a program name with args.
14919set dummy $ac_prog; ac_word=$2
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921$as_echo_n "checking for $ac_word... " >&6; }
14922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14923  $as_echo_n "(cached) " >&6
14924else
14925  if test -n "$ac_ct_CXX"; then
14926  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14927else
14928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929for as_dir in $PATH
14930do
14931  IFS=$as_save_IFS
14932  test -z "$as_dir" && as_dir=.
14933    for ac_exec_ext in '' $ac_executable_extensions; do
14934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14935    ac_cv_prog_ac_ct_CXX="$ac_prog"
14936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937    break 2
14938  fi
14939done
14940  done
14941IFS=$as_save_IFS
14942
14943fi
14944fi
14945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14946if test -n "$ac_ct_CXX"; then
14947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14948$as_echo "$ac_ct_CXX" >&6; }
14949else
14950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951$as_echo "no" >&6; }
14952fi
14953
14954
14955  test -n "$ac_ct_CXX" && break
14956done
14957
14958  if test "x$ac_ct_CXX" = x; then
14959    CXX="g++"
14960  else
14961    case $cross_compiling:$ac_tool_warned in
14962yes:)
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14965ac_tool_warned=yes ;;
14966esac
14967    CXX=$ac_ct_CXX
14968  fi
14969fi
14970
14971  fi
14972fi
14973# Provide some information about the compiler.
14974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14975set X $ac_compile
14976ac_compiler=$2
14977for ac_option in --version -v -V -qversion; do
14978  { { ac_try="$ac_compiler $ac_option >&5"
14979case "(($ac_try" in
14980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981  *) ac_try_echo=$ac_try;;
14982esac
14983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14984$as_echo "$ac_try_echo"; } >&5
14985  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14986  ac_status=$?
14987  if test -s conftest.err; then
14988    sed '10a\
14989... rest of stderr output deleted ...
14990         10q' conftest.err >conftest.er1
14991    cat conftest.er1 >&5
14992  fi
14993  rm -f conftest.er1 conftest.err
14994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14995  test $ac_status = 0; }
14996done
14997
14998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14999$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15000if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
15001  $as_echo_n "(cached) " >&6
15002else
15003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005
15006int
15007main ()
15008{
15009#ifndef __GNUC__
15010       choke me
15011#endif
15012
15013  ;
15014  return 0;
15015}
15016_ACEOF
15017if ac_fn_cxx_try_compile "$LINENO"; then :
15018  ac_compiler_gnu=yes
15019else
15020  ac_compiler_gnu=no
15021fi
15022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15024
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15027$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15028if test $ac_compiler_gnu = yes; then
15029  GXX=yes
15030else
15031  GXX=
15032fi
15033ac_test_CXXFLAGS=${CXXFLAGS+set}
15034ac_save_CXXFLAGS=$CXXFLAGS
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15036$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15037if test "${ac_cv_prog_cxx_g+set}" = set; then :
15038  $as_echo_n "(cached) " >&6
15039else
15040  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15041   ac_cxx_werror_flag=yes
15042   ac_cv_prog_cxx_g=no
15043   CXXFLAGS="-g"
15044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h.  */
15046
15047int
15048main ()
15049{
15050
15051  ;
15052  return 0;
15053}
15054_ACEOF
15055if ac_fn_cxx_try_compile "$LINENO"; then :
15056  ac_cv_prog_cxx_g=yes
15057else
15058  CXXFLAGS=""
15059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061
15062int
15063main ()
15064{
15065
15066  ;
15067  return 0;
15068}
15069_ACEOF
15070if ac_fn_cxx_try_compile "$LINENO"; then :
15071
15072else
15073  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15074	 CXXFLAGS="-g"
15075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077
15078int
15079main ()
15080{
15081
15082  ;
15083  return 0;
15084}
15085_ACEOF
15086if ac_fn_cxx_try_compile "$LINENO"; then :
15087  ac_cv_prog_cxx_g=yes
15088fi
15089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090fi
15091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092fi
15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15097$as_echo "$ac_cv_prog_cxx_g" >&6; }
15098if test "$ac_test_CXXFLAGS" = set; then
15099  CXXFLAGS=$ac_save_CXXFLAGS
15100elif test $ac_cv_prog_cxx_g = yes; then
15101  if test "$GXX" = yes; then
15102    CXXFLAGS="-g -O2"
15103  else
15104    CXXFLAGS="-g"
15105  fi
15106else
15107  if test "$GXX" = yes; then
15108    CXXFLAGS="-O2"
15109  else
15110    CXXFLAGS=
15111  fi
15112fi
15113ac_ext=c
15114ac_cpp='$CPP $CPPFLAGS'
15115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15117ac_compiler_gnu=$ac_cv_c_compiler_gnu
15118
15119depcc="$CXX"  am_compiler_list=
15120
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15122$as_echo_n "checking dependency style of $depcc... " >&6; }
15123if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
15124  $as_echo_n "(cached) " >&6
15125else
15126  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15127  # We make a subdir and do the tests there.  Otherwise we can end up
15128  # making bogus files that we don't know about and never remove.  For
15129  # instance it was reported that on HP-UX the gcc test will end up
15130  # making a dummy file named `D' -- because `-MD' means `put the output
15131  # in D'.
15132  mkdir conftest.dir
15133  # Copy depcomp to subdir because otherwise we won't find it if we're
15134  # using a relative directory.
15135  cp "$am_depcomp" conftest.dir
15136  cd conftest.dir
15137  # We will build objects and dependencies in a subdirectory because
15138  # it helps to detect inapplicable dependency modes.  For instance
15139  # both Tru64's cc and ICC support -MD to output dependencies as a
15140  # side effect of compilation, but ICC will put the dependencies in
15141  # the current directory while Tru64 will put them in the object
15142  # directory.
15143  mkdir sub
15144
15145  am_cv_CXX_dependencies_compiler_type=none
15146  if test "$am_compiler_list" = ""; then
15147     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15148  fi
15149  am__universal=false
15150  case " $depcc " in #(
15151     *\ -arch\ *\ -arch\ *) am__universal=true ;;
15152     esac
15153
15154  for depmode in $am_compiler_list; do
15155    # Setup a source with many dependencies, because some compilers
15156    # like to wrap large dependency lists on column 80 (with \), and
15157    # we should not choose a depcomp mode which is confused by this.
15158    #
15159    # We need to recreate these files for each test, as the compiler may
15160    # overwrite some of them when testing with obscure command lines.
15161    # This happens at least with the AIX C compiler.
15162    : > sub/conftest.c
15163    for i in 1 2 3 4 5 6; do
15164      echo '#include "conftst'$i'.h"' >> sub/conftest.c
15165      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15166      # Solaris 8's {/usr,}/bin/sh.
15167      touch sub/conftst$i.h
15168    done
15169    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15170
15171    # We check with `-c' and `-o' for the sake of the "dashmstdout"
15172    # mode.  It turns out that the SunPro C++ compiler does not properly
15173    # handle `-M -o', and we need to detect this.  Also, some Intel
15174    # versions had trouble with output in subdirs
15175    am__obj=sub/conftest.${OBJEXT-o}
15176    am__minus_obj="-o $am__obj"
15177    case $depmode in
15178    gcc)
15179      # This depmode causes a compiler race in universal mode.
15180      test "$am__universal" = false || continue
15181      ;;
15182    nosideeffect)
15183      # after this tag, mechanisms are not by side-effect, so they'll
15184      # only be used when explicitly requested
15185      if test "x$enable_dependency_tracking" = xyes; then
15186	continue
15187      else
15188	break
15189      fi
15190      ;;
15191    msvisualcpp | msvcmsys)
15192      # This compiler won't grok `-c -o', but also, the minuso test has
15193      # not run yet.  These depmodes are late enough in the game, and
15194      # so weak that their functioning should not be impacted.
15195      am__obj=conftest.${OBJEXT-o}
15196      am__minus_obj=
15197      ;;
15198    none) break ;;
15199    esac
15200    if depmode=$depmode \
15201       source=sub/conftest.c object=$am__obj \
15202       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15203       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15204         >/dev/null 2>conftest.err &&
15205       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15206       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15207       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15208       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15209      # icc doesn't choke on unknown options, it will just issue warnings
15210      # or remarks (even with -Werror).  So we grep stderr for any message
15211      # that says an option was ignored or not supported.
15212      # When given -MP, icc 7.0 and 7.1 complain thusly:
15213      #   icc: Command line warning: ignoring option '-M'; no argument required
15214      # The diagnosis changed in icc 8.0:
15215      #   icc: Command line remark: option '-MP' not supported
15216      if (grep 'ignoring option' conftest.err ||
15217          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15218        am_cv_CXX_dependencies_compiler_type=$depmode
15219        break
15220      fi
15221    fi
15222  done
15223
15224  cd ..
15225  rm -rf conftest.dir
15226else
15227  am_cv_CXX_dependencies_compiler_type=none
15228fi
15229
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15232$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15233CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15234
15235 if
15236  test "x$enable_dependency_tracking" != xno \
15237  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15238  am__fastdepCXX_TRUE=
15239  am__fastdepCXX_FALSE='#'
15240else
15241  am__fastdepCXX_TRUE='#'
15242  am__fastdepCXX_FALSE=
15243fi
15244
15245
15246if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15247    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15248    (test "X$CXX" != "Xg++"))) ; then
15249  ac_ext=cpp
15250ac_cpp='$CXXCPP $CPPFLAGS'
15251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15255$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15256if test -z "$CXXCPP"; then
15257  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15258  $as_echo_n "(cached) " >&6
15259else
15260      # Double quotes because CXXCPP needs to be expanded
15261    for CXXCPP in "$CXX -E" "/lib/cpp"
15262    do
15263      ac_preproc_ok=false
15264for ac_cxx_preproc_warn_flag in '' yes
15265do
15266  # Use a header file that comes with gcc, so configuring glibc
15267  # with a fresh cross-compiler works.
15268  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15269  # <limits.h> exists even on freestanding compilers.
15270  # On the NeXT, cc -E runs the code through the compiler's parser,
15271  # not just through cpp. "Syntax error" is here to catch this case.
15272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273/* end confdefs.h.  */
15274#ifdef __STDC__
15275# include <limits.h>
15276#else
15277# include <assert.h>
15278#endif
15279		     Syntax error
15280_ACEOF
15281if ac_fn_cxx_try_cpp "$LINENO"; then :
15282
15283else
15284  # Broken: fails on valid input.
15285continue
15286fi
15287rm -f conftest.err conftest.$ac_ext
15288
15289  # OK, works on sane cases.  Now check whether nonexistent headers
15290  # can be detected and how.
15291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292/* end confdefs.h.  */
15293#include <ac_nonexistent.h>
15294_ACEOF
15295if ac_fn_cxx_try_cpp "$LINENO"; then :
15296  # Broken: success on invalid input.
15297continue
15298else
15299  # Passes both tests.
15300ac_preproc_ok=:
15301break
15302fi
15303rm -f conftest.err conftest.$ac_ext
15304
15305done
15306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15307rm -f conftest.err conftest.$ac_ext
15308if $ac_preproc_ok; then :
15309  break
15310fi
15311
15312    done
15313    ac_cv_prog_CXXCPP=$CXXCPP
15314
15315fi
15316  CXXCPP=$ac_cv_prog_CXXCPP
15317else
15318  ac_cv_prog_CXXCPP=$CXXCPP
15319fi
15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15321$as_echo "$CXXCPP" >&6; }
15322ac_preproc_ok=false
15323for ac_cxx_preproc_warn_flag in '' yes
15324do
15325  # Use a header file that comes with gcc, so configuring glibc
15326  # with a fresh cross-compiler works.
15327  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15328  # <limits.h> exists even on freestanding compilers.
15329  # On the NeXT, cc -E runs the code through the compiler's parser,
15330  # not just through cpp. "Syntax error" is here to catch this case.
15331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332/* end confdefs.h.  */
15333#ifdef __STDC__
15334# include <limits.h>
15335#else
15336# include <assert.h>
15337#endif
15338		     Syntax error
15339_ACEOF
15340if ac_fn_cxx_try_cpp "$LINENO"; then :
15341
15342else
15343  # Broken: fails on valid input.
15344continue
15345fi
15346rm -f conftest.err conftest.$ac_ext
15347
15348  # OK, works on sane cases.  Now check whether nonexistent headers
15349  # can be detected and how.
15350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351/* end confdefs.h.  */
15352#include <ac_nonexistent.h>
15353_ACEOF
15354if ac_fn_cxx_try_cpp "$LINENO"; then :
15355  # Broken: success on invalid input.
15356continue
15357else
15358  # Passes both tests.
15359ac_preproc_ok=:
15360break
15361fi
15362rm -f conftest.err conftest.$ac_ext
15363
15364done
15365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15366rm -f conftest.err conftest.$ac_ext
15367if $ac_preproc_ok; then :
15368
15369else
15370  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15372_lt_caught_CXX_error=yes; }
15373fi
15374
15375ac_ext=c
15376ac_cpp='$CPP $CPPFLAGS'
15377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380
15381else
15382  _lt_caught_CXX_error=yes
15383fi
15384
15385
15386
15387
15388ac_ext=cpp
15389ac_cpp='$CXXCPP $CPPFLAGS'
15390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15393
15394archive_cmds_need_lc_CXX=no
15395allow_undefined_flag_CXX=
15396always_export_symbols_CXX=no
15397archive_expsym_cmds_CXX=
15398compiler_needs_object_CXX=no
15399export_dynamic_flag_spec_CXX=
15400hardcode_direct_CXX=no
15401hardcode_direct_absolute_CXX=no
15402hardcode_libdir_flag_spec_CXX=
15403hardcode_libdir_flag_spec_ld_CXX=
15404hardcode_libdir_separator_CXX=
15405hardcode_minus_L_CXX=no
15406hardcode_shlibpath_var_CXX=unsupported
15407hardcode_automatic_CXX=no
15408inherit_rpath_CXX=no
15409module_cmds_CXX=
15410module_expsym_cmds_CXX=
15411link_all_deplibs_CXX=unknown
15412old_archive_cmds_CXX=$old_archive_cmds
15413no_undefined_flag_CXX=
15414whole_archive_flag_spec_CXX=
15415enable_shared_with_static_runtimes_CXX=no
15416
15417# Source file extension for C++ test sources.
15418ac_ext=cpp
15419
15420# Object file extension for compiled C++ test sources.
15421objext=o
15422objext_CXX=$objext
15423
15424# No sense in running all these tests if we already determined that
15425# the CXX compiler isn't working.  Some variables (like enable_shared)
15426# are currently assumed to apply to all compilers on this platform,
15427# and will be corrupted by setting them based on a non-working compiler.
15428if test "$_lt_caught_CXX_error" != yes; then
15429  # Code to be used in simple compile tests
15430  lt_simple_compile_test_code="int some_variable = 0;"
15431
15432  # Code to be used in simple link tests
15433  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15434
15435  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15436
15437
15438
15439
15440
15441
15442# If no C compiler was specified, use CC.
15443LTCC=${LTCC-"$CC"}
15444
15445# If no C compiler flags were specified, use CFLAGS.
15446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15447
15448# Allow CC to be a program name with arguments.
15449compiler=$CC
15450
15451
15452  # save warnings/boilerplate of simple test code
15453  ac_outfile=conftest.$ac_objext
15454echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456_lt_compiler_boilerplate=`cat conftest.err`
15457$RM conftest*
15458
15459  ac_outfile=conftest.$ac_objext
15460echo "$lt_simple_link_test_code" >conftest.$ac_ext
15461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462_lt_linker_boilerplate=`cat conftest.err`
15463$RM -r conftest*
15464
15465
15466  # Allow CC to be a program name with arguments.
15467  lt_save_CC=$CC
15468  lt_save_LD=$LD
15469  lt_save_GCC=$GCC
15470  GCC=$GXX
15471  lt_save_with_gnu_ld=$with_gnu_ld
15472  lt_save_path_LD=$lt_cv_path_LD
15473  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15474    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15475  else
15476    $as_unset lt_cv_prog_gnu_ld
15477  fi
15478  if test -n "${lt_cv_path_LDCXX+set}"; then
15479    lt_cv_path_LD=$lt_cv_path_LDCXX
15480  else
15481    $as_unset lt_cv_path_LD
15482  fi
15483  test -z "${LDCXX+set}" || LD=$LDCXX
15484  CC=${CXX-"c++"}
15485  compiler=$CC
15486  compiler_CXX=$CC
15487  for cc_temp in $compiler""; do
15488  case $cc_temp in
15489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15491    \-*) ;;
15492    *) break;;
15493  esac
15494done
15495cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15496
15497
15498  if test -n "$compiler"; then
15499    # We don't want -fno-exception when compiling C++ code, so set the
15500    # no_builtin_flag separately
15501    if test "$GXX" = yes; then
15502      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15503    else
15504      lt_prog_compiler_no_builtin_flag_CXX=
15505    fi
15506
15507    if test "$GXX" = yes; then
15508      # Set up default GNU C++ configuration
15509
15510
15511
15512# Check whether --with-gnu-ld was given.
15513if test "${with_gnu_ld+set}" = set; then :
15514  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15515else
15516  with_gnu_ld=no
15517fi
15518
15519ac_prog=ld
15520if test "$GCC" = yes; then
15521  # Check if gcc -print-prog-name=ld gives a path.
15522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15523$as_echo_n "checking for ld used by $CC... " >&6; }
15524  case $host in
15525  *-*-mingw*)
15526    # gcc leaves a trailing carriage return which upsets mingw
15527    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15528  *)
15529    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15530  esac
15531  case $ac_prog in
15532    # Accept absolute paths.
15533    [\\/]* | ?:[\\/]*)
15534      re_direlt='/[^/][^/]*/\.\./'
15535      # Canonicalize the pathname of ld
15536      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15537      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15538	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15539      done
15540      test -z "$LD" && LD="$ac_prog"
15541      ;;
15542  "")
15543    # If it fails, then pretend we aren't using GCC.
15544    ac_prog=ld
15545    ;;
15546  *)
15547    # If it is relative, then search for the first ld in PATH.
15548    with_gnu_ld=unknown
15549    ;;
15550  esac
15551elif test "$with_gnu_ld" = yes; then
15552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15553$as_echo_n "checking for GNU ld... " >&6; }
15554else
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15556$as_echo_n "checking for non-GNU ld... " >&6; }
15557fi
15558if test "${lt_cv_path_LD+set}" = set; then :
15559  $as_echo_n "(cached) " >&6
15560else
15561  if test -z "$LD"; then
15562  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15563  for ac_dir in $PATH; do
15564    IFS="$lt_save_ifs"
15565    test -z "$ac_dir" && ac_dir=.
15566    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15567      lt_cv_path_LD="$ac_dir/$ac_prog"
15568      # Check to see if the program is GNU ld.  I'd rather use --version,
15569      # but apparently some variants of GNU ld only accept -v.
15570      # Break only if it was the GNU/non-GNU ld that we prefer.
15571      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15572      *GNU* | *'with BFD'*)
15573	test "$with_gnu_ld" != no && break
15574	;;
15575      *)
15576	test "$with_gnu_ld" != yes && break
15577	;;
15578      esac
15579    fi
15580  done
15581  IFS="$lt_save_ifs"
15582else
15583  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15584fi
15585fi
15586
15587LD="$lt_cv_path_LD"
15588if test -n "$LD"; then
15589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15590$as_echo "$LD" >&6; }
15591else
15592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593$as_echo "no" >&6; }
15594fi
15595test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15597$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15598if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15599  $as_echo_n "(cached) " >&6
15600else
15601  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15602case `$LD -v 2>&1 </dev/null` in
15603*GNU* | *'with BFD'*)
15604  lt_cv_prog_gnu_ld=yes
15605  ;;
15606*)
15607  lt_cv_prog_gnu_ld=no
15608  ;;
15609esac
15610fi
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15612$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15613with_gnu_ld=$lt_cv_prog_gnu_ld
15614
15615
15616
15617
15618
15619
15620
15621      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15622      # archiving commands below assume that GNU ld is being used.
15623      if test "$with_gnu_ld" = yes; then
15624        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625        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'
15626
15627        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15628        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15629
15630        # If archive_cmds runs LD, not CC, wlarc should be empty
15631        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15632        #     investigate it a little bit more. (MM)
15633        wlarc='${wl}'
15634
15635        # ancient GNU ld didn't support --whole-archive et. al.
15636        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15637	  $GREP 'no-whole-archive' > /dev/null; then
15638          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15639        else
15640          whole_archive_flag_spec_CXX=
15641        fi
15642      else
15643        with_gnu_ld=no
15644        wlarc=
15645
15646        # A generic and very simple default shared library creation
15647        # command for GNU C++ for the case where it uses the native
15648        # linker, instead of GNU ld.  If possible, this setting should
15649        # overridden to take advantage of the native linker features on
15650        # the platform it is being used on.
15651        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15652      fi
15653
15654      # Commands to make compiler produce verbose output that lists
15655      # what "hidden" libraries, object files and flags are used when
15656      # linking a shared library.
15657      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15658
15659    else
15660      GXX=no
15661      with_gnu_ld=no
15662      wlarc=
15663    fi
15664
15665    # PORTME: fill in a description of your system's C++ link characteristics
15666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15667$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15668    ld_shlibs_CXX=yes
15669    case $host_os in
15670      aix3*)
15671        # FIXME: insert proper C++ library support
15672        ld_shlibs_CXX=no
15673        ;;
15674      aix[4-9]*)
15675        if test "$host_cpu" = ia64; then
15676          # On IA64, the linker does run time linking by default, so we don't
15677          # have to do anything special.
15678          aix_use_runtimelinking=no
15679          exp_sym_flag='-Bexport'
15680          no_entry_flag=""
15681        else
15682          aix_use_runtimelinking=no
15683
15684          # Test if we are trying to use run time linking or normal
15685          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15686          # need to do runtime linking.
15687          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15688	    for ld_flag in $LDFLAGS; do
15689	      case $ld_flag in
15690	      *-brtl*)
15691	        aix_use_runtimelinking=yes
15692	        break
15693	        ;;
15694	      esac
15695	    done
15696	    ;;
15697          esac
15698
15699          exp_sym_flag='-bexport'
15700          no_entry_flag='-bnoentry'
15701        fi
15702
15703        # When large executables or shared objects are built, AIX ld can
15704        # have problems creating the table of contents.  If linking a library
15705        # or program results in "error TOC overflow" add -mminimal-toc to
15706        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15707        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15708
15709        archive_cmds_CXX=''
15710        hardcode_direct_CXX=yes
15711        hardcode_direct_absolute_CXX=yes
15712        hardcode_libdir_separator_CXX=':'
15713        link_all_deplibs_CXX=yes
15714        file_list_spec_CXX='${wl}-f,'
15715
15716        if test "$GXX" = yes; then
15717          case $host_os in aix4.[012]|aix4.[012].*)
15718          # We only want to do this on AIX 4.2 and lower, the check
15719          # below for broken collect2 doesn't work under 4.3+
15720	  collect2name=`${CC} -print-prog-name=collect2`
15721	  if test -f "$collect2name" &&
15722	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15723	  then
15724	    # We have reworked collect2
15725	    :
15726	  else
15727	    # We have old collect2
15728	    hardcode_direct_CXX=unsupported
15729	    # It fails to find uninstalled libraries when the uninstalled
15730	    # path is not listed in the libpath.  Setting hardcode_minus_L
15731	    # to unsupported forces relinking
15732	    hardcode_minus_L_CXX=yes
15733	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15734	    hardcode_libdir_separator_CXX=
15735	  fi
15736          esac
15737          shared_flag='-shared'
15738	  if test "$aix_use_runtimelinking" = yes; then
15739	    shared_flag="$shared_flag "'${wl}-G'
15740	  fi
15741        else
15742          # not using gcc
15743          if test "$host_cpu" = ia64; then
15744	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15745	  # chokes on -Wl,-G. The following line is correct:
15746	  shared_flag='-G'
15747          else
15748	    if test "$aix_use_runtimelinking" = yes; then
15749	      shared_flag='${wl}-G'
15750	    else
15751	      shared_flag='${wl}-bM:SRE'
15752	    fi
15753          fi
15754        fi
15755
15756        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15757        # It seems that -bexpall does not export symbols beginning with
15758        # underscore (_), so it is better to generate a list of symbols to
15759	# export.
15760        always_export_symbols_CXX=yes
15761        if test "$aix_use_runtimelinking" = yes; then
15762          # Warning - without using the other runtime loading flags (-brtl),
15763          # -berok will link without error, but may produce a broken library.
15764          allow_undefined_flag_CXX='-berok'
15765          # Determine the default libpath from the value encoded in an empty
15766          # executable.
15767          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h.  */
15769
15770int
15771main ()
15772{
15773
15774  ;
15775  return 0;
15776}
15777_ACEOF
15778if ac_fn_cxx_try_link "$LINENO"; then :
15779
15780lt_aix_libpath_sed='
15781    /Import File Strings/,/^$/ {
15782	/^0/ {
15783	    s/^0  *\(.*\)$/\1/
15784	    p
15785	}
15786    }'
15787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15788# Check for a 64-bit object if we didn't find anything.
15789if test -z "$aix_libpath"; then
15790  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15791fi
15792fi
15793rm -f core conftest.err conftest.$ac_objext \
15794    conftest$ac_exeext conftest.$ac_ext
15795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15796
15797          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15798
15799          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"
15800        else
15801          if test "$host_cpu" = ia64; then
15802	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15803	    allow_undefined_flag_CXX="-z nodefs"
15804	    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"
15805          else
15806	    # Determine the default libpath from the value encoded in an
15807	    # empty executable.
15808	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h.  */
15810
15811int
15812main ()
15813{
15814
15815  ;
15816  return 0;
15817}
15818_ACEOF
15819if ac_fn_cxx_try_link "$LINENO"; then :
15820
15821lt_aix_libpath_sed='
15822    /Import File Strings/,/^$/ {
15823	/^0/ {
15824	    s/^0  *\(.*\)$/\1/
15825	    p
15826	}
15827    }'
15828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15829# Check for a 64-bit object if we didn't find anything.
15830if test -z "$aix_libpath"; then
15831  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15832fi
15833fi
15834rm -f core conftest.err conftest.$ac_objext \
15835    conftest$ac_exeext conftest.$ac_ext
15836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15837
15838	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15839	    # Warning - without using the other run time loading flags,
15840	    # -berok will link without error, but may produce a broken library.
15841	    no_undefined_flag_CXX=' ${wl}-bernotok'
15842	    allow_undefined_flag_CXX=' ${wl}-berok'
15843	    # Exported symbols can be pulled into shared objects from archives
15844	    whole_archive_flag_spec_CXX='$convenience'
15845	    archive_cmds_need_lc_CXX=yes
15846	    # This is similar to how AIX traditionally builds its shared
15847	    # libraries.
15848	    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'
15849          fi
15850        fi
15851        ;;
15852
15853      beos*)
15854	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15855	  allow_undefined_flag_CXX=unsupported
15856	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15857	  # support --undefined.  This deserves some investigation.  FIXME
15858	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15859	else
15860	  ld_shlibs_CXX=no
15861	fi
15862	;;
15863
15864      chorus*)
15865        case $cc_basename in
15866          *)
15867	  # FIXME: insert proper C++ library support
15868	  ld_shlibs_CXX=no
15869	  ;;
15870        esac
15871        ;;
15872
15873      cygwin* | mingw* | pw32* | cegcc*)
15874        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15875        # as there is no search path for DLLs.
15876        hardcode_libdir_flag_spec_CXX='-L$libdir'
15877        allow_undefined_flag_CXX=unsupported
15878        always_export_symbols_CXX=no
15879        enable_shared_with_static_runtimes_CXX=yes
15880
15881        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15882          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'
15883          # If the export-symbols file already is a .def file (1st line
15884          # is EXPORTS), use it as is; otherwise, prepend...
15885          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15886	    cp $export_symbols $output_objdir/$soname.def;
15887          else
15888	    echo EXPORTS > $output_objdir/$soname.def;
15889	    cat $export_symbols >> $output_objdir/$soname.def;
15890          fi~
15891          $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'
15892        else
15893          ld_shlibs_CXX=no
15894        fi
15895        ;;
15896      darwin* | rhapsody*)
15897
15898
15899  archive_cmds_need_lc_CXX=no
15900  hardcode_direct_CXX=no
15901  hardcode_automatic_CXX=yes
15902  hardcode_shlibpath_var_CXX=unsupported
15903  whole_archive_flag_spec_CXX=''
15904  link_all_deplibs_CXX=yes
15905  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15906  case $cc_basename in
15907     ifort*) _lt_dar_can_shared=yes ;;
15908     *) _lt_dar_can_shared=$GCC ;;
15909  esac
15910  if test "$_lt_dar_can_shared" = "yes"; then
15911    output_verbose_link_cmd=echo
15912    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}"
15913    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15914    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}"
15915    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}"
15916       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15917      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}"
15918      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}"
15919    fi
15920
15921  else
15922  ld_shlibs_CXX=no
15923  fi
15924
15925	;;
15926
15927      dgux*)
15928        case $cc_basename in
15929          ec++*)
15930	    # FIXME: insert proper C++ library support
15931	    ld_shlibs_CXX=no
15932	    ;;
15933          ghcx*)
15934	    # Green Hills C++ Compiler
15935	    # FIXME: insert proper C++ library support
15936	    ld_shlibs_CXX=no
15937	    ;;
15938          *)
15939	    # FIXME: insert proper C++ library support
15940	    ld_shlibs_CXX=no
15941	    ;;
15942        esac
15943        ;;
15944
15945      freebsd[12]*)
15946        # C++ shared libraries reported to be fairly broken before
15947	# switch to ELF
15948        ld_shlibs_CXX=no
15949        ;;
15950
15951      freebsd-elf*)
15952        archive_cmds_need_lc_CXX=no
15953        ;;
15954
15955      freebsd* | dragonfly*)
15956        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15957        # conventions
15958        ld_shlibs_CXX=yes
15959        ;;
15960
15961      gnu*)
15962        ;;
15963
15964      hpux9*)
15965        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15966        hardcode_libdir_separator_CXX=:
15967        export_dynamic_flag_spec_CXX='${wl}-E'
15968        hardcode_direct_CXX=yes
15969        hardcode_minus_L_CXX=yes # Not in the search PATH,
15970				             # but as the default
15971				             # location of the library.
15972
15973        case $cc_basename in
15974          CC*)
15975            # FIXME: insert proper C++ library support
15976            ld_shlibs_CXX=no
15977            ;;
15978          aCC*)
15979            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'
15980            # Commands to make compiler produce verbose output that lists
15981            # what "hidden" libraries, object files and flags are used when
15982            # linking a shared library.
15983            #
15984            # There doesn't appear to be a way to prevent this compiler from
15985            # explicitly linking system object files so we need to strip them
15986            # from the output so that they don't get included in the library
15987            # dependencies.
15988            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'
15989            ;;
15990          *)
15991            if test "$GXX" = yes; then
15992              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'
15993            else
15994              # FIXME: insert proper C++ library support
15995              ld_shlibs_CXX=no
15996            fi
15997            ;;
15998        esac
15999        ;;
16000
16001      hpux10*|hpux11*)
16002        if test $with_gnu_ld = no; then
16003	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16004	  hardcode_libdir_separator_CXX=:
16005
16006          case $host_cpu in
16007            hppa*64*|ia64*)
16008              ;;
16009            *)
16010	      export_dynamic_flag_spec_CXX='${wl}-E'
16011              ;;
16012          esac
16013        fi
16014        case $host_cpu in
16015          hppa*64*|ia64*)
16016            hardcode_direct_CXX=no
16017            hardcode_shlibpath_var_CXX=no
16018            ;;
16019          *)
16020            hardcode_direct_CXX=yes
16021            hardcode_direct_absolute_CXX=yes
16022            hardcode_minus_L_CXX=yes # Not in the search PATH,
16023					         # but as the default
16024					         # location of the library.
16025            ;;
16026        esac
16027
16028        case $cc_basename in
16029          CC*)
16030	    # FIXME: insert proper C++ library support
16031	    ld_shlibs_CXX=no
16032	    ;;
16033          aCC*)
16034	    case $host_cpu in
16035	      hppa*64*)
16036	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16037	        ;;
16038	      ia64*)
16039	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040	        ;;
16041	      *)
16042	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16043	        ;;
16044	    esac
16045	    # Commands to make compiler produce verbose output that lists
16046	    # what "hidden" libraries, object files and flags are used when
16047	    # linking a shared library.
16048	    #
16049	    # There doesn't appear to be a way to prevent this compiler from
16050	    # explicitly linking system object files so we need to strip them
16051	    # from the output so that they don't get included in the library
16052	    # dependencies.
16053	    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'
16054	    ;;
16055          *)
16056	    if test "$GXX" = yes; then
16057	      if test $with_gnu_ld = no; then
16058	        case $host_cpu in
16059	          hppa*64*)
16060	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16061	            ;;
16062	          ia64*)
16063	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16064	            ;;
16065	          *)
16066	            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'
16067	            ;;
16068	        esac
16069	      fi
16070	    else
16071	      # FIXME: insert proper C++ library support
16072	      ld_shlibs_CXX=no
16073	    fi
16074	    ;;
16075        esac
16076        ;;
16077
16078      interix[3-9]*)
16079	hardcode_direct_CXX=no
16080	hardcode_shlibpath_var_CXX=no
16081	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16082	export_dynamic_flag_spec_CXX='${wl}-E'
16083	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16084	# Instead, shared libraries are loaded at an image base (0x10000000 by
16085	# default) and relocated if they conflict, which is a slow very memory
16086	# consuming and fragmenting process.  To avoid this, we pick a random,
16087	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16088	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16089	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'
16090	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'
16091	;;
16092      irix5* | irix6*)
16093        case $cc_basename in
16094          CC*)
16095	    # SGI C++
16096	    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'
16097
16098	    # Archives containing C++ object files must be created using
16099	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16100	    # necessary to make sure instantiated templates are included
16101	    # in the archive.
16102	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16103	    ;;
16104          *)
16105	    if test "$GXX" = yes; then
16106	      if test "$with_gnu_ld" = no; then
16107	        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'
16108	      else
16109	        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'
16110	      fi
16111	    fi
16112	    link_all_deplibs_CXX=yes
16113	    ;;
16114        esac
16115        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16116        hardcode_libdir_separator_CXX=:
16117        inherit_rpath_CXX=yes
16118        ;;
16119
16120      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16121        case $cc_basename in
16122          KCC*)
16123	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16124
16125	    # KCC will only create a shared library if the output file
16126	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16127	    # to its proper name (with version) after linking.
16128	    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'
16129	    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'
16130	    # Commands to make compiler produce verbose output that lists
16131	    # what "hidden" libraries, object files and flags are used when
16132	    # linking a shared library.
16133	    #
16134	    # There doesn't appear to be a way to prevent this compiler from
16135	    # explicitly linking system object files so we need to strip them
16136	    # from the output so that they don't get included in the library
16137	    # dependencies.
16138	    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'
16139
16140	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16141	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16142
16143	    # Archives containing C++ object files must be created using
16144	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16145	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16146	    ;;
16147	  icpc* | ecpc* )
16148	    # Intel C++
16149	    with_gnu_ld=yes
16150	    # version 8.0 and above of icpc choke on multiply defined symbols
16151	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16152	    # earlier do not add the objects themselves.
16153	    case `$CC -V 2>&1` in
16154	      *"Version 7."*)
16155	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156		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'
16157		;;
16158	      *)  # Version 8.0 or newer
16159	        tmp_idyn=
16160	        case $host_cpu in
16161		  ia64*) tmp_idyn=' -i_dynamic';;
16162		esac
16163	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164		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'
16165		;;
16166	    esac
16167	    archive_cmds_need_lc_CXX=no
16168	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16169	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16170	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16171	    ;;
16172          pgCC* | pgcpp*)
16173            # Portland Group C++ compiler
16174	    case `$CC -V` in
16175	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16176	      prelink_cmds_CXX='tpldir=Template.dir~
16177		rm -rf $tpldir~
16178		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16179		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16180	      old_archive_cmds_CXX='tpldir=Template.dir~
16181		rm -rf $tpldir~
16182		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16183		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16184		$RANLIB $oldlib'
16185	      archive_cmds_CXX='tpldir=Template.dir~
16186		rm -rf $tpldir~
16187		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16188		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16189	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16190		rm -rf $tpldir~
16191		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16192		$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'
16193	      ;;
16194	    *) # Version 6 will use weak symbols
16195	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16196	      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'
16197	      ;;
16198	    esac
16199
16200	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16201	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16202	    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'
16203            ;;
16204	  cxx*)
16205	    # Compaq C++
16206	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207	    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'
16208
16209	    runpath_var=LD_RUN_PATH
16210	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16211	    hardcode_libdir_separator_CXX=:
16212
16213	    # Commands to make compiler produce verbose output that lists
16214	    # what "hidden" libraries, object files and flags are used when
16215	    # linking a shared library.
16216	    #
16217	    # There doesn't appear to be a way to prevent this compiler from
16218	    # explicitly linking system object files so we need to strip them
16219	    # from the output so that they don't get included in the library
16220	    # dependencies.
16221	    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'
16222	    ;;
16223	  xl*)
16224	    # IBM XL 8.0 on PPC, with GNU ld
16225	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16226	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16227	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228	    if test "x$supports_anon_versioning" = xyes; then
16229	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16230		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16231		echo "local: *; };" >> $output_objdir/$libname.ver~
16232		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16233	    fi
16234	    ;;
16235	  *)
16236	    case `$CC -V 2>&1 | sed 5q` in
16237	    *Sun\ C*)
16238	      # Sun C++ 5.9
16239	      no_undefined_flag_CXX=' -zdefs'
16240	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16241	      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'
16242	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16243	      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'
16244	      compiler_needs_object_CXX=yes
16245
16246	      # Not sure whether something based on
16247	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16248	      # would be better.
16249	      output_verbose_link_cmd='echo'
16250
16251	      # Archives containing C++ object files must be created using
16252	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16253	      # necessary to make sure instantiated templates are included
16254	      # in the archive.
16255	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16256	      ;;
16257	    esac
16258	    ;;
16259	esac
16260	;;
16261
16262      lynxos*)
16263        # FIXME: insert proper C++ library support
16264	ld_shlibs_CXX=no
16265	;;
16266
16267      m88k*)
16268        # FIXME: insert proper C++ library support
16269        ld_shlibs_CXX=no
16270	;;
16271
16272      mvs*)
16273        case $cc_basename in
16274          cxx*)
16275	    # FIXME: insert proper C++ library support
16276	    ld_shlibs_CXX=no
16277	    ;;
16278	  *)
16279	    # FIXME: insert proper C++ library support
16280	    ld_shlibs_CXX=no
16281	    ;;
16282	esac
16283	;;
16284
16285      netbsd*)
16286        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16287	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16288	  wlarc=
16289	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16290	  hardcode_direct_CXX=yes
16291	  hardcode_shlibpath_var_CXX=no
16292	fi
16293	# Workaround some broken pre-1.5 toolchains
16294	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16295	;;
16296
16297      *nto* | *qnx*)
16298        ld_shlibs_CXX=yes
16299	;;
16300
16301      openbsd2*)
16302        # C++ shared libraries are fairly broken
16303	ld_shlibs_CXX=no
16304	;;
16305
16306      openbsd*)
16307	if test -f /usr/libexec/ld.so; then
16308	  hardcode_direct_CXX=yes
16309	  hardcode_shlibpath_var_CXX=no
16310	  hardcode_direct_absolute_CXX=yes
16311	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16312	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16313	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16314	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16315	    export_dynamic_flag_spec_CXX='${wl}-E'
16316	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16317	  fi
16318	  output_verbose_link_cmd=echo
16319	else
16320	  ld_shlibs_CXX=no
16321	fi
16322	;;
16323
16324      osf3* | osf4* | osf5*)
16325        case $cc_basename in
16326          KCC*)
16327	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16328
16329	    # KCC will only create a shared library if the output file
16330	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16331	    # to its proper name (with version) after linking.
16332	    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'
16333
16334	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16335	    hardcode_libdir_separator_CXX=:
16336
16337	    # Archives containing C++ object files must be created using
16338	    # the KAI C++ compiler.
16339	    case $host in
16340	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16341	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16342	    esac
16343	    ;;
16344          RCC*)
16345	    # Rational C++ 2.4.1
16346	    # FIXME: insert proper C++ library support
16347	    ld_shlibs_CXX=no
16348	    ;;
16349          cxx*)
16350	    case $host in
16351	      osf3*)
16352	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16353	        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'
16354	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16355		;;
16356	      *)
16357	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16358	        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'
16359	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16360	          echo "-hidden">> $lib.exp~
16361	          $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~
16362	          $RM $lib.exp'
16363	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16364		;;
16365	    esac
16366
16367	    hardcode_libdir_separator_CXX=:
16368
16369	    # Commands to make compiler produce verbose output that lists
16370	    # what "hidden" libraries, object files and flags are used when
16371	    # linking a shared library.
16372	    #
16373	    # There doesn't appear to be a way to prevent this compiler from
16374	    # explicitly linking system object files so we need to strip them
16375	    # from the output so that they don't get included in the library
16376	    # dependencies.
16377	    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'
16378	    ;;
16379	  *)
16380	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16381	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16382	      case $host in
16383	        osf3*)
16384	          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'
16385		  ;;
16386	        *)
16387	          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'
16388		  ;;
16389	      esac
16390
16391	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16392	      hardcode_libdir_separator_CXX=:
16393
16394	      # Commands to make compiler produce verbose output that lists
16395	      # what "hidden" libraries, object files and flags are used when
16396	      # linking a shared library.
16397	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16398
16399	    else
16400	      # FIXME: insert proper C++ library support
16401	      ld_shlibs_CXX=no
16402	    fi
16403	    ;;
16404        esac
16405        ;;
16406
16407      psos*)
16408        # FIXME: insert proper C++ library support
16409        ld_shlibs_CXX=no
16410        ;;
16411
16412      sunos4*)
16413        case $cc_basename in
16414          CC*)
16415	    # Sun C++ 4.x
16416	    # FIXME: insert proper C++ library support
16417	    ld_shlibs_CXX=no
16418	    ;;
16419          lcc*)
16420	    # Lucid
16421	    # FIXME: insert proper C++ library support
16422	    ld_shlibs_CXX=no
16423	    ;;
16424          *)
16425	    # FIXME: insert proper C++ library support
16426	    ld_shlibs_CXX=no
16427	    ;;
16428        esac
16429        ;;
16430
16431      solaris*)
16432        case $cc_basename in
16433          CC*)
16434	    # Sun C++ 4.2, 5.x and Centerline C++
16435            archive_cmds_need_lc_CXX=yes
16436	    no_undefined_flag_CXX=' -zdefs'
16437	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16438	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16439	      $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'
16440
16441	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16442	    hardcode_shlibpath_var_CXX=no
16443	    case $host_os in
16444	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16445	      *)
16446		# The compiler driver will combine and reorder linker options,
16447		# but understands `-z linker_flag'.
16448	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16449		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16450	        ;;
16451	    esac
16452	    link_all_deplibs_CXX=yes
16453
16454	    output_verbose_link_cmd='echo'
16455
16456	    # Archives containing C++ object files must be created using
16457	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16458	    # necessary to make sure instantiated templates are included
16459	    # in the archive.
16460	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16461	    ;;
16462          gcx*)
16463	    # Green Hills C++ Compiler
16464	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16465
16466	    # The C++ compiler must be used to create the archive.
16467	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16468	    ;;
16469          *)
16470	    # GNU C++ compiler with Solaris linker
16471	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16472	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16473	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16474	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16475	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16476		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16477
16478	        # Commands to make compiler produce verbose output that lists
16479	        # what "hidden" libraries, object files and flags are used when
16480	        # linking a shared library.
16481	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16482	      else
16483	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16484	        # platform.
16485	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16486	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16487		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16488
16489	        # Commands to make compiler produce verbose output that lists
16490	        # what "hidden" libraries, object files and flags are used when
16491	        # linking a shared library.
16492	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16493	      fi
16494
16495	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16496	      case $host_os in
16497		solaris2.[0-5] | solaris2.[0-5].*) ;;
16498		*)
16499		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16500		  ;;
16501	      esac
16502	    fi
16503	    ;;
16504        esac
16505        ;;
16506
16507    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16508      no_undefined_flag_CXX='${wl}-z,text'
16509      archive_cmds_need_lc_CXX=no
16510      hardcode_shlibpath_var_CXX=no
16511      runpath_var='LD_RUN_PATH'
16512
16513      case $cc_basename in
16514        CC*)
16515	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517	  ;;
16518	*)
16519	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521	  ;;
16522      esac
16523      ;;
16524
16525      sysv5* | sco3.2v5* | sco5v6*)
16526	# Note: We can NOT use -z defs as we might desire, because we do not
16527	# link with -lc, and that would cause any symbols used from libc to
16528	# always be unresolved, which means just about no library would
16529	# ever link correctly.  If we're not using GNU ld we use -z text
16530	# though, which does catch some bad symbols but isn't as heavy-handed
16531	# as -z defs.
16532	no_undefined_flag_CXX='${wl}-z,text'
16533	allow_undefined_flag_CXX='${wl}-z,nodefs'
16534	archive_cmds_need_lc_CXX=no
16535	hardcode_shlibpath_var_CXX=no
16536	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16537	hardcode_libdir_separator_CXX=':'
16538	link_all_deplibs_CXX=yes
16539	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16540	runpath_var='LD_RUN_PATH'
16541
16542	case $cc_basename in
16543          CC*)
16544	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546	    ;;
16547	  *)
16548	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550	    ;;
16551	esac
16552      ;;
16553
16554      tandem*)
16555        case $cc_basename in
16556          NCC*)
16557	    # NonStop-UX NCC 3.20
16558	    # FIXME: insert proper C++ library support
16559	    ld_shlibs_CXX=no
16560	    ;;
16561          *)
16562	    # FIXME: insert proper C++ library support
16563	    ld_shlibs_CXX=no
16564	    ;;
16565        esac
16566        ;;
16567
16568      vxworks*)
16569        # FIXME: insert proper C++ library support
16570        ld_shlibs_CXX=no
16571        ;;
16572
16573      *)
16574        # FIXME: insert proper C++ library support
16575        ld_shlibs_CXX=no
16576        ;;
16577    esac
16578
16579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16580$as_echo "$ld_shlibs_CXX" >&6; }
16581    test "$ld_shlibs_CXX" = no && can_build_shared=no
16582
16583    GCC_CXX="$GXX"
16584    LD_CXX="$LD"
16585
16586    ## CAVEAT EMPTOR:
16587    ## There is no encapsulation within the following macros, do not change
16588    ## the running order or otherwise move them around unless you know exactly
16589    ## what you are doing...
16590    # Dependencies to place before and after the object being linked:
16591predep_objects_CXX=
16592postdep_objects_CXX=
16593predeps_CXX=
16594postdeps_CXX=
16595compiler_lib_search_path_CXX=
16596
16597cat > conftest.$ac_ext <<_LT_EOF
16598class Foo
16599{
16600public:
16601  Foo (void) { a = 0; }
16602private:
16603  int a;
16604};
16605_LT_EOF
16606
16607if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16608  (eval $ac_compile) 2>&5
16609  ac_status=$?
16610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16611  test $ac_status = 0; }; then
16612  # Parse the compiler output and extract the necessary
16613  # objects, libraries and library flags.
16614
16615  # Sentinel used to keep track of whether or not we are before
16616  # the conftest object file.
16617  pre_test_object_deps_done=no
16618
16619  for p in `eval "$output_verbose_link_cmd"`; do
16620    case $p in
16621
16622    -L* | -R* | -l*)
16623       # Some compilers place space between "-{L,R}" and the path.
16624       # Remove the space.
16625       if test $p = "-L" ||
16626          test $p = "-R"; then
16627	 prev=$p
16628	 continue
16629       else
16630	 prev=
16631       fi
16632
16633       if test "$pre_test_object_deps_done" = no; then
16634	 case $p in
16635	 -L* | -R*)
16636	   # Internal compiler library paths should come after those
16637	   # provided the user.  The postdeps already come after the
16638	   # user supplied libs so there is no need to process them.
16639	   if test -z "$compiler_lib_search_path_CXX"; then
16640	     compiler_lib_search_path_CXX="${prev}${p}"
16641	   else
16642	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16643	   fi
16644	   ;;
16645	 # The "-l" case would never come before the object being
16646	 # linked, so don't bother handling this case.
16647	 esac
16648       else
16649	 if test -z "$postdeps_CXX"; then
16650	   postdeps_CXX="${prev}${p}"
16651	 else
16652	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16653	 fi
16654       fi
16655       ;;
16656
16657    *.$objext)
16658       # This assumes that the test object file only shows up
16659       # once in the compiler output.
16660       if test "$p" = "conftest.$objext"; then
16661	 pre_test_object_deps_done=yes
16662	 continue
16663       fi
16664
16665       if test "$pre_test_object_deps_done" = no; then
16666	 if test -z "$predep_objects_CXX"; then
16667	   predep_objects_CXX="$p"
16668	 else
16669	   predep_objects_CXX="$predep_objects_CXX $p"
16670	 fi
16671       else
16672	 if test -z "$postdep_objects_CXX"; then
16673	   postdep_objects_CXX="$p"
16674	 else
16675	   postdep_objects_CXX="$postdep_objects_CXX $p"
16676	 fi
16677       fi
16678       ;;
16679
16680    *) ;; # Ignore the rest.
16681
16682    esac
16683  done
16684
16685  # Clean up.
16686  rm -f a.out a.exe
16687else
16688  echo "libtool.m4: error: problem compiling CXX test program"
16689fi
16690
16691$RM -f confest.$objext
16692
16693# PORTME: override above test on systems where it is broken
16694case $host_os in
16695interix[3-9]*)
16696  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16697  # hack all around it, let's just trust "g++" to DTRT.
16698  predep_objects_CXX=
16699  postdep_objects_CXX=
16700  postdeps_CXX=
16701  ;;
16702
16703linux*)
16704  case `$CC -V 2>&1 | sed 5q` in
16705  *Sun\ C*)
16706    # Sun C++ 5.9
16707
16708    # The more standards-conforming stlport4 library is
16709    # incompatible with the Cstd library. Avoid specifying
16710    # it if it's in CXXFLAGS. Ignore libCrun as
16711    # -library=stlport4 depends on it.
16712    case " $CXX $CXXFLAGS " in
16713    *" -library=stlport4 "*)
16714      solaris_use_stlport4=yes
16715      ;;
16716    esac
16717
16718    if test "$solaris_use_stlport4" != yes; then
16719      postdeps_CXX='-library=Cstd -library=Crun'
16720    fi
16721    ;;
16722  esac
16723  ;;
16724
16725solaris*)
16726  case $cc_basename in
16727  CC*)
16728    # The more standards-conforming stlport4 library is
16729    # incompatible with the Cstd library. Avoid specifying
16730    # it if it's in CXXFLAGS. Ignore libCrun as
16731    # -library=stlport4 depends on it.
16732    case " $CXX $CXXFLAGS " in
16733    *" -library=stlport4 "*)
16734      solaris_use_stlport4=yes
16735      ;;
16736    esac
16737
16738    # Adding this requires a known-good setup of shared libraries for
16739    # Sun compiler versions before 5.6, else PIC objects from an old
16740    # archive will be linked into the output, leading to subtle bugs.
16741    if test "$solaris_use_stlport4" != yes; then
16742      postdeps_CXX='-library=Cstd -library=Crun'
16743    fi
16744    ;;
16745  esac
16746  ;;
16747esac
16748
16749
16750case " $postdeps_CXX " in
16751*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16752esac
16753 compiler_lib_search_dirs_CXX=
16754if test -n "${compiler_lib_search_path_CXX}"; then
16755 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16756fi
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788    lt_prog_compiler_wl_CXX=
16789lt_prog_compiler_pic_CXX=
16790lt_prog_compiler_static_CXX=
16791
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16793$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16794
16795  # C++ specific cases for pic, static, wl, etc.
16796  if test "$GXX" = yes; then
16797    lt_prog_compiler_wl_CXX='-Wl,'
16798    lt_prog_compiler_static_CXX='-static'
16799
16800    case $host_os in
16801    aix*)
16802      # All AIX code is PIC.
16803      if test "$host_cpu" = ia64; then
16804	# AIX 5 now supports IA64 processor
16805	lt_prog_compiler_static_CXX='-Bstatic'
16806      fi
16807      ;;
16808
16809    amigaos*)
16810      case $host_cpu in
16811      powerpc)
16812            # see comment about AmigaOS4 .so support
16813            lt_prog_compiler_pic_CXX='-fPIC'
16814        ;;
16815      m68k)
16816            # FIXME: we need at least 68020 code to build shared libraries, but
16817            # adding the `-m68020' flag to GCC prevents building anything better,
16818            # like `-m68040'.
16819            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16820        ;;
16821      esac
16822      ;;
16823
16824    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16825      # PIC is the default for these OSes.
16826      ;;
16827    mingw* | cygwin* | os2* | pw32* | cegcc*)
16828      # This hack is so that the source file can tell whether it is being
16829      # built for inclusion in a dll (and should export symbols for example).
16830      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16831      # (--disable-auto-import) libraries
16832      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16833      ;;
16834    darwin* | rhapsody*)
16835      # PIC is the default on this platform
16836      # Common symbols not allowed in MH_DYLIB files
16837      lt_prog_compiler_pic_CXX='-fno-common'
16838      ;;
16839    *djgpp*)
16840      # DJGPP does not support shared libraries at all
16841      lt_prog_compiler_pic_CXX=
16842      ;;
16843    interix[3-9]*)
16844      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16845      # Instead, we relocate shared libraries at runtime.
16846      ;;
16847    sysv4*MP*)
16848      if test -d /usr/nec; then
16849	lt_prog_compiler_pic_CXX=-Kconform_pic
16850      fi
16851      ;;
16852    hpux*)
16853      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16854      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16855      # sets the default TLS model and affects inlining.
16856      case $host_cpu in
16857      hppa*64*)
16858	;;
16859      *)
16860	lt_prog_compiler_pic_CXX='-fPIC'
16861	;;
16862      esac
16863      ;;
16864    *qnx* | *nto*)
16865      # QNX uses GNU C++, but need to define -shared option too, otherwise
16866      # it will coredump.
16867      lt_prog_compiler_pic_CXX='-fPIC -shared'
16868      ;;
16869    *)
16870      lt_prog_compiler_pic_CXX='-fPIC'
16871      ;;
16872    esac
16873  else
16874    case $host_os in
16875      aix[4-9]*)
16876	# All AIX code is PIC.
16877	if test "$host_cpu" = ia64; then
16878	  # AIX 5 now supports IA64 processor
16879	  lt_prog_compiler_static_CXX='-Bstatic'
16880	else
16881	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16882	fi
16883	;;
16884      chorus*)
16885	case $cc_basename in
16886	cxch68*)
16887	  # Green Hills C++ Compiler
16888	  # _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"
16889	  ;;
16890	esac
16891	;;
16892      dgux*)
16893	case $cc_basename in
16894	  ec++*)
16895	    lt_prog_compiler_pic_CXX='-KPIC'
16896	    ;;
16897	  ghcx*)
16898	    # Green Hills C++ Compiler
16899	    lt_prog_compiler_pic_CXX='-pic'
16900	    ;;
16901	  *)
16902	    ;;
16903	esac
16904	;;
16905      freebsd* | dragonfly*)
16906	# FreeBSD uses GNU C++
16907	;;
16908      hpux9* | hpux10* | hpux11*)
16909	case $cc_basename in
16910	  CC*)
16911	    lt_prog_compiler_wl_CXX='-Wl,'
16912	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16913	    if test "$host_cpu" != ia64; then
16914	      lt_prog_compiler_pic_CXX='+Z'
16915	    fi
16916	    ;;
16917	  aCC*)
16918	    lt_prog_compiler_wl_CXX='-Wl,'
16919	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16920	    case $host_cpu in
16921	    hppa*64*|ia64*)
16922	      # +Z the default
16923	      ;;
16924	    *)
16925	      lt_prog_compiler_pic_CXX='+Z'
16926	      ;;
16927	    esac
16928	    ;;
16929	  *)
16930	    ;;
16931	esac
16932	;;
16933      interix*)
16934	# This is c89, which is MS Visual C++ (no shared libs)
16935	# Anyone wants to do a port?
16936	;;
16937      irix5* | irix6* | nonstopux*)
16938	case $cc_basename in
16939	  CC*)
16940	    lt_prog_compiler_wl_CXX='-Wl,'
16941	    lt_prog_compiler_static_CXX='-non_shared'
16942	    # CC pic flag -KPIC is the default.
16943	    ;;
16944	  *)
16945	    ;;
16946	esac
16947	;;
16948      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16949	case $cc_basename in
16950	  KCC*)
16951	    # KAI C++ Compiler
16952	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16953	    lt_prog_compiler_pic_CXX='-fPIC'
16954	    ;;
16955	  ecpc* )
16956	    # old Intel C++ for x86_64 which still supported -KPIC.
16957	    lt_prog_compiler_wl_CXX='-Wl,'
16958	    lt_prog_compiler_pic_CXX='-KPIC'
16959	    lt_prog_compiler_static_CXX='-static'
16960	    ;;
16961	  icpc* )
16962	    # Intel C++, used to be incompatible with GCC.
16963	    # ICC 10 doesn't accept -KPIC any more.
16964	    lt_prog_compiler_wl_CXX='-Wl,'
16965	    lt_prog_compiler_pic_CXX='-fPIC'
16966	    lt_prog_compiler_static_CXX='-static'
16967	    ;;
16968	  pgCC* | pgcpp*)
16969	    # Portland Group C++ compiler
16970	    lt_prog_compiler_wl_CXX='-Wl,'
16971	    lt_prog_compiler_pic_CXX='-fpic'
16972	    lt_prog_compiler_static_CXX='-Bstatic'
16973	    ;;
16974	  cxx*)
16975	    # Compaq C++
16976	    # Make sure the PIC flag is empty.  It appears that all Alpha
16977	    # Linux and Compaq Tru64 Unix objects are PIC.
16978	    lt_prog_compiler_pic_CXX=
16979	    lt_prog_compiler_static_CXX='-non_shared'
16980	    ;;
16981	  xlc* | xlC*)
16982	    # IBM XL 8.0 on PPC
16983	    lt_prog_compiler_wl_CXX='-Wl,'
16984	    lt_prog_compiler_pic_CXX='-qpic'
16985	    lt_prog_compiler_static_CXX='-qstaticlink'
16986	    ;;
16987	  *)
16988	    case `$CC -V 2>&1 | sed 5q` in
16989	    *Sun\ C*)
16990	      # Sun C++ 5.9
16991	      lt_prog_compiler_pic_CXX='-KPIC'
16992	      lt_prog_compiler_static_CXX='-Bstatic'
16993	      lt_prog_compiler_wl_CXX='-Qoption ld '
16994	      ;;
16995	    esac
16996	    ;;
16997	esac
16998	;;
16999      lynxos*)
17000	;;
17001      m88k*)
17002	;;
17003      mvs*)
17004	case $cc_basename in
17005	  cxx*)
17006	    lt_prog_compiler_pic_CXX='-W c,exportall'
17007	    ;;
17008	  *)
17009	    ;;
17010	esac
17011	;;
17012      netbsd* | netbsdelf*-gnu)
17013	;;
17014      *qnx* | *nto*)
17015        # QNX uses GNU C++, but need to define -shared option too, otherwise
17016        # it will coredump.
17017        lt_prog_compiler_pic_CXX='-fPIC -shared'
17018        ;;
17019      osf3* | osf4* | osf5*)
17020	case $cc_basename in
17021	  KCC*)
17022	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17023	    ;;
17024	  RCC*)
17025	    # Rational C++ 2.4.1
17026	    lt_prog_compiler_pic_CXX='-pic'
17027	    ;;
17028	  cxx*)
17029	    # Digital/Compaq C++
17030	    lt_prog_compiler_wl_CXX='-Wl,'
17031	    # Make sure the PIC flag is empty.  It appears that all Alpha
17032	    # Linux and Compaq Tru64 Unix objects are PIC.
17033	    lt_prog_compiler_pic_CXX=
17034	    lt_prog_compiler_static_CXX='-non_shared'
17035	    ;;
17036	  *)
17037	    ;;
17038	esac
17039	;;
17040      psos*)
17041	;;
17042      solaris*)
17043	case $cc_basename in
17044	  CC*)
17045	    # Sun C++ 4.2, 5.x and Centerline C++
17046	    lt_prog_compiler_pic_CXX='-KPIC'
17047	    lt_prog_compiler_static_CXX='-Bstatic'
17048	    lt_prog_compiler_wl_CXX='-Qoption ld '
17049	    ;;
17050	  gcx*)
17051	    # Green Hills C++ Compiler
17052	    lt_prog_compiler_pic_CXX='-PIC'
17053	    ;;
17054	  *)
17055	    ;;
17056	esac
17057	;;
17058      sunos4*)
17059	case $cc_basename in
17060	  CC*)
17061	    # Sun C++ 4.x
17062	    lt_prog_compiler_pic_CXX='-pic'
17063	    lt_prog_compiler_static_CXX='-Bstatic'
17064	    ;;
17065	  lcc*)
17066	    # Lucid
17067	    lt_prog_compiler_pic_CXX='-pic'
17068	    ;;
17069	  *)
17070	    ;;
17071	esac
17072	;;
17073      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17074	case $cc_basename in
17075	  CC*)
17076	    lt_prog_compiler_wl_CXX='-Wl,'
17077	    lt_prog_compiler_pic_CXX='-KPIC'
17078	    lt_prog_compiler_static_CXX='-Bstatic'
17079	    ;;
17080	esac
17081	;;
17082      tandem*)
17083	case $cc_basename in
17084	  NCC*)
17085	    # NonStop-UX NCC 3.20
17086	    lt_prog_compiler_pic_CXX='-KPIC'
17087	    ;;
17088	  *)
17089	    ;;
17090	esac
17091	;;
17092      vxworks*)
17093	;;
17094      *)
17095	lt_prog_compiler_can_build_shared_CXX=no
17096	;;
17097    esac
17098  fi
17099
17100case $host_os in
17101  # For platforms which do not support PIC, -DPIC is meaningless:
17102  *djgpp*)
17103    lt_prog_compiler_pic_CXX=
17104    ;;
17105  *)
17106    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17107    ;;
17108esac
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17110$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17111
17112
17113
17114#
17115# Check to make sure the PIC flag actually works.
17116#
17117if test -n "$lt_prog_compiler_pic_CXX"; then
17118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17119$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17120if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17121  $as_echo_n "(cached) " >&6
17122else
17123  lt_cv_prog_compiler_pic_works_CXX=no
17124   ac_outfile=conftest.$ac_objext
17125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17126   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17127   # Insert the option either (1) after the last *FLAGS variable, or
17128   # (2) before a word containing "conftest.", or (3) at the end.
17129   # Note that $ac_compile itself does not contain backslashes and begins
17130   # with a dollar sign (not a hyphen), so the echo should work correctly.
17131   # The option is referenced via a variable to avoid confusing sed.
17132   lt_compile=`echo "$ac_compile" | $SED \
17133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17135   -e 's:$: $lt_compiler_flag:'`
17136   (eval echo "\"\$as_me:17136: $lt_compile\"" >&5)
17137   (eval "$lt_compile" 2>conftest.err)
17138   ac_status=$?
17139   cat conftest.err >&5
17140   echo "$as_me:17140: \$? = $ac_status" >&5
17141   if (exit $ac_status) && test -s "$ac_outfile"; then
17142     # The compiler can only warn and ignore the option if not recognized
17143     # So say no if there are warnings other than the usual output.
17144     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17145     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17146     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17147       lt_cv_prog_compiler_pic_works_CXX=yes
17148     fi
17149   fi
17150   $RM conftest*
17151
17152fi
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17154$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17155
17156if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17157    case $lt_prog_compiler_pic_CXX in
17158     "" | " "*) ;;
17159     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17160     esac
17161else
17162    lt_prog_compiler_pic_CXX=
17163     lt_prog_compiler_can_build_shared_CXX=no
17164fi
17165
17166fi
17167
17168
17169
17170#
17171# Check to make sure the static flag actually works.
17172#
17173wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17175$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17176if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17177  $as_echo_n "(cached) " >&6
17178else
17179  lt_cv_prog_compiler_static_works_CXX=no
17180   save_LDFLAGS="$LDFLAGS"
17181   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17182   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17183   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17184     # The linker can only warn and ignore the option if not recognized
17185     # So say no if there are warnings
17186     if test -s conftest.err; then
17187       # Append any errors to the config.log.
17188       cat conftest.err 1>&5
17189       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17190       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191       if diff conftest.exp conftest.er2 >/dev/null; then
17192         lt_cv_prog_compiler_static_works_CXX=yes
17193       fi
17194     else
17195       lt_cv_prog_compiler_static_works_CXX=yes
17196     fi
17197   fi
17198   $RM -r conftest*
17199   LDFLAGS="$save_LDFLAGS"
17200
17201fi
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17203$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17204
17205if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17206    :
17207else
17208    lt_prog_compiler_static_CXX=
17209fi
17210
17211
17212
17213
17214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17215$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17216if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  lt_cv_prog_compiler_c_o_CXX=no
17220   $RM -r conftest 2>/dev/null
17221   mkdir conftest
17222   cd conftest
17223   mkdir out
17224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17225
17226   lt_compiler_flag="-o out/conftest2.$ac_objext"
17227   # Insert the option either (1) after the last *FLAGS variable, or
17228   # (2) before a word containing "conftest.", or (3) at the end.
17229   # Note that $ac_compile itself does not contain backslashes and begins
17230   # with a dollar sign (not a hyphen), so the echo should work correctly.
17231   lt_compile=`echo "$ac_compile" | $SED \
17232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17234   -e 's:$: $lt_compiler_flag:'`
17235   (eval echo "\"\$as_me:17235: $lt_compile\"" >&5)
17236   (eval "$lt_compile" 2>out/conftest.err)
17237   ac_status=$?
17238   cat out/conftest.err >&5
17239   echo "$as_me:17239: \$? = $ac_status" >&5
17240   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17241   then
17242     # The compiler can only warn and ignore the option if not recognized
17243     # So say no if there are warnings
17244     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17245     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17246     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17247       lt_cv_prog_compiler_c_o_CXX=yes
17248     fi
17249   fi
17250   chmod u+w . 2>&5
17251   $RM conftest*
17252   # SGI C++ compiler will create directory out/ii_files/ for
17253   # template instantiation
17254   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17255   $RM out/* && rmdir out
17256   cd ..
17257   $RM -r conftest
17258   $RM conftest*
17259
17260fi
17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17262$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17263
17264
17265
17266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17267$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17268if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17269  $as_echo_n "(cached) " >&6
17270else
17271  lt_cv_prog_compiler_c_o_CXX=no
17272   $RM -r conftest 2>/dev/null
17273   mkdir conftest
17274   cd conftest
17275   mkdir out
17276   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17277
17278   lt_compiler_flag="-o out/conftest2.$ac_objext"
17279   # Insert the option either (1) after the last *FLAGS variable, or
17280   # (2) before a word containing "conftest.", or (3) at the end.
17281   # Note that $ac_compile itself does not contain backslashes and begins
17282   # with a dollar sign (not a hyphen), so the echo should work correctly.
17283   lt_compile=`echo "$ac_compile" | $SED \
17284   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17285   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17286   -e 's:$: $lt_compiler_flag:'`
17287   (eval echo "\"\$as_me:17287: $lt_compile\"" >&5)
17288   (eval "$lt_compile" 2>out/conftest.err)
17289   ac_status=$?
17290   cat out/conftest.err >&5
17291   echo "$as_me:17291: \$? = $ac_status" >&5
17292   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17293   then
17294     # The compiler can only warn and ignore the option if not recognized
17295     # So say no if there are warnings
17296     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17297     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17298     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17299       lt_cv_prog_compiler_c_o_CXX=yes
17300     fi
17301   fi
17302   chmod u+w . 2>&5
17303   $RM conftest*
17304   # SGI C++ compiler will create directory out/ii_files/ for
17305   # template instantiation
17306   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17307   $RM out/* && rmdir out
17308   cd ..
17309   $RM -r conftest
17310   $RM conftest*
17311
17312fi
17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17314$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17315
17316
17317
17318
17319hard_links="nottested"
17320if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17321  # do not overwrite the value of need_locks provided by the user
17322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17323$as_echo_n "checking if we can lock with hard links... " >&6; }
17324  hard_links=yes
17325  $RM conftest*
17326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17327  touch conftest.a
17328  ln conftest.a conftest.b 2>&5 || hard_links=no
17329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17331$as_echo "$hard_links" >&6; }
17332  if test "$hard_links" = no; then
17333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17334$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17335    need_locks=warn
17336  fi
17337else
17338  need_locks=no
17339fi
17340
17341
17342
17343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17344$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17345
17346  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17347  case $host_os in
17348  aix[4-9]*)
17349    # If we're using GNU nm, then we don't want the "-C" option.
17350    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17351    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17352      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'
17353    else
17354      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'
17355    fi
17356    ;;
17357  pw32*)
17358    export_symbols_cmds_CXX="$ltdll_cmds"
17359  ;;
17360  cygwin* | mingw* | cegcc*)
17361    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'
17362  ;;
17363  linux* | k*bsd*-gnu)
17364    link_all_deplibs_CXX=no
17365  ;;
17366  *)
17367    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17368  ;;
17369  esac
17370  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17371
17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17373$as_echo "$ld_shlibs_CXX" >&6; }
17374test "$ld_shlibs_CXX" = no && can_build_shared=no
17375
17376with_gnu_ld_CXX=$with_gnu_ld
17377
17378
17379
17380
17381
17382
17383#
17384# Do we need to explicitly link libc?
17385#
17386case "x$archive_cmds_need_lc_CXX" in
17387x|xyes)
17388  # Assume -lc should be added
17389  archive_cmds_need_lc_CXX=yes
17390
17391  if test "$enable_shared" = yes && test "$GCC" = yes; then
17392    case $archive_cmds_CXX in
17393    *'~'*)
17394      # FIXME: we may have to deal with multi-command sequences.
17395      ;;
17396    '$CC '*)
17397      # Test whether the compiler implicitly links with -lc since on some
17398      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17399      # to ld, don't add -lc before -lgcc.
17400      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17401$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17402      $RM conftest*
17403      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17404
17405      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17406  (eval $ac_compile) 2>&5
17407  ac_status=$?
17408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17409  test $ac_status = 0; } 2>conftest.err; then
17410        soname=conftest
17411        lib=conftest
17412        libobjs=conftest.$ac_objext
17413        deplibs=
17414        wl=$lt_prog_compiler_wl_CXX
17415	pic_flag=$lt_prog_compiler_pic_CXX
17416        compiler_flags=-v
17417        linker_flags=-v
17418        verstring=
17419        output_objdir=.
17420        libname=conftest
17421        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17422        allow_undefined_flag_CXX=
17423        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17424  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17425  ac_status=$?
17426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427  test $ac_status = 0; }
17428        then
17429	  archive_cmds_need_lc_CXX=no
17430        else
17431	  archive_cmds_need_lc_CXX=yes
17432        fi
17433        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17434      else
17435        cat conftest.err 1>&5
17436      fi
17437      $RM conftest*
17438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17439$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17440      ;;
17441    esac
17442  fi
17443  ;;
17444esac
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17510$as_echo_n "checking dynamic linker characteristics... " >&6; }
17511
17512library_names_spec=
17513libname_spec='lib$name'
17514soname_spec=
17515shrext_cmds=".so"
17516postinstall_cmds=
17517postuninstall_cmds=
17518finish_cmds=
17519finish_eval=
17520shlibpath_var=
17521shlibpath_overrides_runpath=unknown
17522version_type=none
17523dynamic_linker="$host_os ld.so"
17524sys_lib_dlsearch_path_spec="/lib /usr/lib"
17525need_lib_prefix=unknown
17526hardcode_into_libs=no
17527
17528# when you set need_version to no, make sure it does not cause -set_version
17529# flags to be left without arguments
17530need_version=unknown
17531
17532case $host_os in
17533aix3*)
17534  version_type=linux
17535  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17536  shlibpath_var=LIBPATH
17537
17538  # AIX 3 has no versioning support, so we append a major version to the name.
17539  soname_spec='${libname}${release}${shared_ext}$major'
17540  ;;
17541
17542aix[4-9]*)
17543  version_type=linux
17544  need_lib_prefix=no
17545  need_version=no
17546  hardcode_into_libs=yes
17547  if test "$host_cpu" = ia64; then
17548    # AIX 5 supports IA64
17549    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17550    shlibpath_var=LD_LIBRARY_PATH
17551  else
17552    # With GCC up to 2.95.x, collect2 would create an import file
17553    # for dependence libraries.  The import file would start with
17554    # the line `#! .'.  This would cause the generated library to
17555    # depend on `.', always an invalid library.  This was fixed in
17556    # development snapshots of GCC prior to 3.0.
17557    case $host_os in
17558      aix4 | aix4.[01] | aix4.[01].*)
17559      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17560	   echo ' yes '
17561	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17562	:
17563      else
17564	can_build_shared=no
17565      fi
17566      ;;
17567    esac
17568    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17569    # soname into executable. Probably we can add versioning support to
17570    # collect2, so additional links can be useful in future.
17571    if test "$aix_use_runtimelinking" = yes; then
17572      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17573      # instead of lib<name>.a to let people know that these are not
17574      # typical AIX shared libraries.
17575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576    else
17577      # We preserve .a as extension for shared libraries through AIX4.2
17578      # and later when we are not doing run time linking.
17579      library_names_spec='${libname}${release}.a $libname.a'
17580      soname_spec='${libname}${release}${shared_ext}$major'
17581    fi
17582    shlibpath_var=LIBPATH
17583  fi
17584  ;;
17585
17586amigaos*)
17587  case $host_cpu in
17588  powerpc)
17589    # Since July 2007 AmigaOS4 officially supports .so libraries.
17590    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17591    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592    ;;
17593  m68k)
17594    library_names_spec='$libname.ixlibrary $libname.a'
17595    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17596    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'
17597    ;;
17598  esac
17599  ;;
17600
17601beos*)
17602  library_names_spec='${libname}${shared_ext}'
17603  dynamic_linker="$host_os ld.so"
17604  shlibpath_var=LIBRARY_PATH
17605  ;;
17606
17607bsdi[45]*)
17608  version_type=linux
17609  need_version=no
17610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611  soname_spec='${libname}${release}${shared_ext}$major'
17612  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17613  shlibpath_var=LD_LIBRARY_PATH
17614  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17615  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17616  # the default ld.so.conf also contains /usr/contrib/lib and
17617  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17618  # libtool to hard-code these into programs
17619  ;;
17620
17621cygwin* | mingw* | pw32* | cegcc*)
17622  version_type=windows
17623  shrext_cmds=".dll"
17624  need_version=no
17625  need_lib_prefix=no
17626
17627  case $GCC,$host_os in
17628  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17629    library_names_spec='$libname.dll.a'
17630    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17631    postinstall_cmds='base_file=`basename \${file}`~
17632      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17633      dldir=$destdir/`dirname \$dlpath`~
17634      test -d \$dldir || mkdir -p \$dldir~
17635      $install_prog $dir/$dlname \$dldir/$dlname~
17636      chmod a+x \$dldir/$dlname~
17637      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17638        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17639      fi'
17640    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17641      dlpath=$dir/\$dldll~
17642       $RM \$dlpath'
17643    shlibpath_overrides_runpath=yes
17644
17645    case $host_os in
17646    cygwin*)
17647      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17648      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17649      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17650      ;;
17651    mingw* | cegcc*)
17652      # MinGW DLLs use traditional 'lib' prefix
17653      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17654      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17655      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17656        # It is most probably a Windows format PATH printed by
17657        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17658        # path with ; separators, and with drive letters. We can handle the
17659        # drive letters (cygwin fileutils understands them), so leave them,
17660        # especially as we might pass files found there to a mingw objdump,
17661        # which wouldn't understand a cygwinified path. Ahh.
17662        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17663      else
17664        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17665      fi
17666      ;;
17667    pw32*)
17668      # pw32 DLLs use 'pw' prefix rather than 'lib'
17669      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17670      ;;
17671    esac
17672    ;;
17673
17674  *)
17675    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17676    ;;
17677  esac
17678  dynamic_linker='Win32 ld.exe'
17679  # FIXME: first we should search . and the directory the executable is in
17680  shlibpath_var=PATH
17681  ;;
17682
17683darwin* | rhapsody*)
17684  dynamic_linker="$host_os dyld"
17685  version_type=darwin
17686  need_lib_prefix=no
17687  need_version=no
17688  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17689  soname_spec='${libname}${release}${major}$shared_ext'
17690  shlibpath_overrides_runpath=yes
17691  shlibpath_var=DYLD_LIBRARY_PATH
17692  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17693
17694  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17695  ;;
17696
17697dgux*)
17698  version_type=linux
17699  need_lib_prefix=no
17700  need_version=no
17701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17702  soname_spec='${libname}${release}${shared_ext}$major'
17703  shlibpath_var=LD_LIBRARY_PATH
17704  ;;
17705
17706freebsd1*)
17707  dynamic_linker=no
17708  ;;
17709
17710freebsd* | dragonfly*)
17711  # DragonFly does not have aout.  When/if they implement a new
17712  # versioning mechanism, adjust this.
17713  if test -x /usr/bin/objformat; then
17714    objformat=`/usr/bin/objformat`
17715  else
17716    case $host_os in
17717    freebsd[123]*) objformat=aout ;;
17718    *) objformat=elf ;;
17719    esac
17720  fi
17721  version_type=freebsd-$objformat
17722  case $version_type in
17723    freebsd-elf*)
17724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17725      need_version=no
17726      need_lib_prefix=no
17727      ;;
17728    freebsd-*)
17729      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17730      need_version=yes
17731      ;;
17732  esac
17733  shlibpath_var=LD_LIBRARY_PATH
17734  case $host_os in
17735  freebsd2*)
17736    shlibpath_overrides_runpath=yes
17737    ;;
17738  freebsd3.[01]* | freebsdelf3.[01]*)
17739    shlibpath_overrides_runpath=yes
17740    hardcode_into_libs=yes
17741    ;;
17742  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17743  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17744    shlibpath_overrides_runpath=no
17745    hardcode_into_libs=yes
17746    ;;
17747  *) # from 4.6 on, and DragonFly
17748    shlibpath_overrides_runpath=yes
17749    hardcode_into_libs=yes
17750    ;;
17751  esac
17752  ;;
17753
17754gnu*)
17755  version_type=linux
17756  need_lib_prefix=no
17757  need_version=no
17758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17759  soname_spec='${libname}${release}${shared_ext}$major'
17760  shlibpath_var=LD_LIBRARY_PATH
17761  hardcode_into_libs=yes
17762  ;;
17763
17764hpux9* | hpux10* | hpux11*)
17765  # Give a soname corresponding to the major version so that dld.sl refuses to
17766  # link against other versions.
17767  version_type=sunos
17768  need_lib_prefix=no
17769  need_version=no
17770  case $host_cpu in
17771  ia64*)
17772    shrext_cmds='.so'
17773    hardcode_into_libs=yes
17774    dynamic_linker="$host_os dld.so"
17775    shlibpath_var=LD_LIBRARY_PATH
17776    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778    soname_spec='${libname}${release}${shared_ext}$major'
17779    if test "X$HPUX_IA64_MODE" = X32; then
17780      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17781    else
17782      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17783    fi
17784    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17785    ;;
17786  hppa*64*)
17787    shrext_cmds='.sl'
17788    hardcode_into_libs=yes
17789    dynamic_linker="$host_os dld.sl"
17790    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17791    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17792    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17793    soname_spec='${libname}${release}${shared_ext}$major'
17794    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17795    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17796    ;;
17797  *)
17798    shrext_cmds='.sl'
17799    dynamic_linker="$host_os dld.sl"
17800    shlibpath_var=SHLIB_PATH
17801    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803    soname_spec='${libname}${release}${shared_ext}$major'
17804    ;;
17805  esac
17806  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17807  postinstall_cmds='chmod 555 $lib'
17808  ;;
17809
17810interix[3-9]*)
17811  version_type=linux
17812  need_lib_prefix=no
17813  need_version=no
17814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17815  soname_spec='${libname}${release}${shared_ext}$major'
17816  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17817  shlibpath_var=LD_LIBRARY_PATH
17818  shlibpath_overrides_runpath=no
17819  hardcode_into_libs=yes
17820  ;;
17821
17822irix5* | irix6* | nonstopux*)
17823  case $host_os in
17824    nonstopux*) version_type=nonstopux ;;
17825    *)
17826	if test "$lt_cv_prog_gnu_ld" = yes; then
17827		version_type=linux
17828	else
17829		version_type=irix
17830	fi ;;
17831  esac
17832  need_lib_prefix=no
17833  need_version=no
17834  soname_spec='${libname}${release}${shared_ext}$major'
17835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17836  case $host_os in
17837  irix5* | nonstopux*)
17838    libsuff= shlibsuff=
17839    ;;
17840  *)
17841    case $LD in # libtool.m4 will add one of these switches to LD
17842    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17843      libsuff= shlibsuff= libmagic=32-bit;;
17844    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17845      libsuff=32 shlibsuff=N32 libmagic=N32;;
17846    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17847      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17848    *) libsuff= shlibsuff= libmagic=never-match;;
17849    esac
17850    ;;
17851  esac
17852  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17853  shlibpath_overrides_runpath=no
17854  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17855  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17856  hardcode_into_libs=yes
17857  ;;
17858
17859# No shared lib support for Linux oldld, aout, or coff.
17860linux*oldld* | linux*aout* | linux*coff*)
17861  dynamic_linker=no
17862  ;;
17863
17864# This must be Linux ELF.
17865linux* | k*bsd*-gnu | kopensolaris*-gnu)
17866  version_type=linux
17867  need_lib_prefix=no
17868  need_version=no
17869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870  soname_spec='${libname}${release}${shared_ext}$major'
17871  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17872  shlibpath_var=LD_LIBRARY_PATH
17873  shlibpath_overrides_runpath=no
17874  # Some binutils ld are patched to set DT_RUNPATH
17875  save_LDFLAGS=$LDFLAGS
17876  save_libdir=$libdir
17877  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17878       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881
17882int
17883main ()
17884{
17885
17886  ;
17887  return 0;
17888}
17889_ACEOF
17890if ac_fn_cxx_try_link "$LINENO"; then :
17891  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17892  shlibpath_overrides_runpath=yes
17893fi
17894fi
17895rm -f core conftest.err conftest.$ac_objext \
17896    conftest$ac_exeext conftest.$ac_ext
17897  LDFLAGS=$save_LDFLAGS
17898  libdir=$save_libdir
17899
17900  # This implies no fast_install, which is unacceptable.
17901  # Some rework will be needed to allow for fast_install
17902  # before this can be enabled.
17903  hardcode_into_libs=yes
17904
17905  # Append ld.so.conf contents to the search path
17906  if test -f /etc/ld.so.conf; then
17907    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' ' '`
17908    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17909  fi
17910
17911  # We used to test for /lib/ld.so.1 and disable shared libraries on
17912  # powerpc, because MkLinux only supported shared libraries with the
17913  # GNU dynamic linker.  Since this was broken with cross compilers,
17914  # most powerpc-linux boxes support dynamic linking these days and
17915  # people can always --disable-shared, the test was removed, and we
17916  # assume the GNU/Linux dynamic linker is in use.
17917  dynamic_linker='GNU/Linux ld.so'
17918  ;;
17919
17920netbsdelf*-gnu)
17921  version_type=linux
17922  need_lib_prefix=no
17923  need_version=no
17924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17925  soname_spec='${libname}${release}${shared_ext}$major'
17926  shlibpath_var=LD_LIBRARY_PATH
17927  shlibpath_overrides_runpath=no
17928  hardcode_into_libs=yes
17929  dynamic_linker='NetBSD ld.elf_so'
17930  ;;
17931
17932netbsd*)
17933  version_type=sunos
17934  need_lib_prefix=no
17935  need_version=no
17936  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17938    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17939    dynamic_linker='NetBSD (a.out) ld.so'
17940  else
17941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17942    soname_spec='${libname}${release}${shared_ext}$major'
17943    dynamic_linker='NetBSD ld.elf_so'
17944  fi
17945  shlibpath_var=LD_LIBRARY_PATH
17946  shlibpath_overrides_runpath=yes
17947  hardcode_into_libs=yes
17948  ;;
17949
17950newsos6)
17951  version_type=linux
17952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953  shlibpath_var=LD_LIBRARY_PATH
17954  shlibpath_overrides_runpath=yes
17955  ;;
17956
17957*nto* | *qnx*)
17958  version_type=qnx
17959  need_lib_prefix=no
17960  need_version=no
17961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962  soname_spec='${libname}${release}${shared_ext}$major'
17963  shlibpath_var=LD_LIBRARY_PATH
17964  shlibpath_overrides_runpath=no
17965  hardcode_into_libs=yes
17966  dynamic_linker='ldqnx.so'
17967  ;;
17968
17969openbsd*)
17970  version_type=sunos
17971  sys_lib_dlsearch_path_spec="/usr/lib"
17972  need_lib_prefix=no
17973  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17974  case $host_os in
17975    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17976    *)				need_version=no  ;;
17977  esac
17978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17979  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17980  shlibpath_var=LD_LIBRARY_PATH
17981  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17982    case $host_os in
17983      openbsd2.[89] | openbsd2.[89].*)
17984	shlibpath_overrides_runpath=no
17985	;;
17986      *)
17987	shlibpath_overrides_runpath=yes
17988	;;
17989      esac
17990  else
17991    shlibpath_overrides_runpath=yes
17992  fi
17993  ;;
17994
17995os2*)
17996  libname_spec='$name'
17997  shrext_cmds=".dll"
17998  need_lib_prefix=no
17999  library_names_spec='$libname${shared_ext} $libname.a'
18000  dynamic_linker='OS/2 ld.exe'
18001  shlibpath_var=LIBPATH
18002  ;;
18003
18004osf3* | osf4* | osf5*)
18005  version_type=osf
18006  need_lib_prefix=no
18007  need_version=no
18008  soname_spec='${libname}${release}${shared_ext}$major'
18009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010  shlibpath_var=LD_LIBRARY_PATH
18011  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18012  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18013  ;;
18014
18015rdos*)
18016  dynamic_linker=no
18017  ;;
18018
18019solaris*)
18020  version_type=linux
18021  need_lib_prefix=no
18022  need_version=no
18023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024  soname_spec='${libname}${release}${shared_ext}$major'
18025  shlibpath_var=LD_LIBRARY_PATH
18026  shlibpath_overrides_runpath=yes
18027  hardcode_into_libs=yes
18028  # ldd complains unless libraries are executable
18029  postinstall_cmds='chmod +x $lib'
18030  ;;
18031
18032sunos4*)
18033  version_type=sunos
18034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18035  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18036  shlibpath_var=LD_LIBRARY_PATH
18037  shlibpath_overrides_runpath=yes
18038  if test "$with_gnu_ld" = yes; then
18039    need_lib_prefix=no
18040  fi
18041  need_version=yes
18042  ;;
18043
18044sysv4 | sysv4.3*)
18045  version_type=linux
18046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18047  soname_spec='${libname}${release}${shared_ext}$major'
18048  shlibpath_var=LD_LIBRARY_PATH
18049  case $host_vendor in
18050    sni)
18051      shlibpath_overrides_runpath=no
18052      need_lib_prefix=no
18053      runpath_var=LD_RUN_PATH
18054      ;;
18055    siemens)
18056      need_lib_prefix=no
18057      ;;
18058    motorola)
18059      need_lib_prefix=no
18060      need_version=no
18061      shlibpath_overrides_runpath=no
18062      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18063      ;;
18064  esac
18065  ;;
18066
18067sysv4*MP*)
18068  if test -d /usr/nec ;then
18069    version_type=linux
18070    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18071    soname_spec='$libname${shared_ext}.$major'
18072    shlibpath_var=LD_LIBRARY_PATH
18073  fi
18074  ;;
18075
18076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18077  version_type=freebsd-elf
18078  need_lib_prefix=no
18079  need_version=no
18080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18081  soname_spec='${libname}${release}${shared_ext}$major'
18082  shlibpath_var=LD_LIBRARY_PATH
18083  shlibpath_overrides_runpath=yes
18084  hardcode_into_libs=yes
18085  if test "$with_gnu_ld" = yes; then
18086    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18087  else
18088    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18089    case $host_os in
18090      sco3.2v5*)
18091        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18092	;;
18093    esac
18094  fi
18095  sys_lib_dlsearch_path_spec='/usr/lib'
18096  ;;
18097
18098tpf*)
18099  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18100  version_type=linux
18101  need_lib_prefix=no
18102  need_version=no
18103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104  shlibpath_var=LD_LIBRARY_PATH
18105  shlibpath_overrides_runpath=no
18106  hardcode_into_libs=yes
18107  ;;
18108
18109uts4*)
18110  version_type=linux
18111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112  soname_spec='${libname}${release}${shared_ext}$major'
18113  shlibpath_var=LD_LIBRARY_PATH
18114  ;;
18115
18116*)
18117  dynamic_linker=no
18118  ;;
18119esac
18120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18121$as_echo "$dynamic_linker" >&6; }
18122test "$dynamic_linker" = no && can_build_shared=no
18123
18124variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18125if test "$GCC" = yes; then
18126  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18127fi
18128
18129if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18130  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18131fi
18132if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18133  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18134fi
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18172$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18173hardcode_action_CXX=
18174if test -n "$hardcode_libdir_flag_spec_CXX" ||
18175   test -n "$runpath_var_CXX" ||
18176   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18177
18178  # We can hardcode non-existent directories.
18179  if test "$hardcode_direct_CXX" != no &&
18180     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18181     # have to relink, otherwise we might link with an installed library
18182     # when we should be linking with a yet-to-be-installed one
18183     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18184     test "$hardcode_minus_L_CXX" != no; then
18185    # Linking always hardcodes the temporary library directory.
18186    hardcode_action_CXX=relink
18187  else
18188    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18189    hardcode_action_CXX=immediate
18190  fi
18191else
18192  # We cannot hardcode anything, or else we can only hardcode existing
18193  # directories.
18194  hardcode_action_CXX=unsupported
18195fi
18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18197$as_echo "$hardcode_action_CXX" >&6; }
18198
18199if test "$hardcode_action_CXX" = relink ||
18200   test "$inherit_rpath_CXX" = yes; then
18201  # Fast installation is not supported
18202  enable_fast_install=no
18203elif test "$shlibpath_overrides_runpath" = yes ||
18204     test "$enable_shared" = no; then
18205  # Fast installation is not necessary
18206  enable_fast_install=needless
18207fi
18208
18209
18210
18211
18212
18213
18214
18215  fi # test -n "$compiler"
18216
18217  CC=$lt_save_CC
18218  LDCXX=$LD
18219  LD=$lt_save_LD
18220  GCC=$lt_save_GCC
18221  with_gnu_ld=$lt_save_with_gnu_ld
18222  lt_cv_path_LDCXX=$lt_cv_path_LD
18223  lt_cv_path_LD=$lt_save_path_LD
18224  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18225  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18226fi # test "$_lt_caught_CXX_error" != yes
18227
18228ac_ext=c
18229ac_cpp='$CPP $CPPFLAGS'
18230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232ac_compiler_gnu=$ac_cv_c_compiler_gnu
18233
18234
18235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18236$as_echo_n "checking whether ln -s works... " >&6; }
18237LN_S=$as_ln_s
18238if test "$LN_S" = "ln -s"; then
18239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18240$as_echo "yes" >&6; }
18241else
18242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18243$as_echo "no, using $LN_S" >&6; }
18244fi
18245
18246
18247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18248$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18249set x ${MAKE-make}
18250ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18251if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18252  $as_echo_n "(cached) " >&6
18253else
18254  cat >conftest.make <<\_ACEOF
18255SHELL = /bin/sh
18256all:
18257	@echo '@@@%%%=$(MAKE)=@@@%%%'
18258_ACEOF
18259# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18260case `${MAKE-make} -f conftest.make 2>/dev/null` in
18261  *@@@%%%=?*=@@@%%%*)
18262    eval ac_cv_prog_make_${ac_make}_set=yes;;
18263  *)
18264    eval ac_cv_prog_make_${ac_make}_set=no;;
18265esac
18266rm -f conftest.make
18267fi
18268if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18270$as_echo "yes" >&6; }
18271  SET_MAKE=
18272else
18273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274$as_echo "no" >&6; }
18275  SET_MAKE="MAKE=${MAKE-make}"
18276fi
18277
18278
18279
18280# Checks for typedefs, structures, and compiler characteristics.
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18282$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18283if test "${ac_cv_c_const+set}" = set; then :
18284  $as_echo_n "(cached) " >&6
18285else
18286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287/* end confdefs.h.  */
18288
18289int
18290main ()
18291{
18292/* FIXME: Include the comments suggested by Paul. */
18293#ifndef __cplusplus
18294  /* Ultrix mips cc rejects this.  */
18295  typedef int charset[2];
18296  const charset cs;
18297  /* SunOS 4.1.1 cc rejects this.  */
18298  char const *const *pcpcc;
18299  char **ppc;
18300  /* NEC SVR4.0.2 mips cc rejects this.  */
18301  struct point {int x, y;};
18302  static struct point const zero = {0,0};
18303  /* AIX XL C 1.02.0.0 rejects this.
18304     It does not let you subtract one const X* pointer from another in
18305     an arm of an if-expression whose if-part is not a constant
18306     expression */
18307  const char *g = "string";
18308  pcpcc = &g + (g ? g-g : 0);
18309  /* HPUX 7.0 cc rejects these. */
18310  ++pcpcc;
18311  ppc = (char**) pcpcc;
18312  pcpcc = (char const *const *) ppc;
18313  { /* SCO 3.2v4 cc rejects this.  */
18314    char *t;
18315    char const *s = 0 ? (char *) 0 : (char const *) 0;
18316
18317    *t++ = 0;
18318    if (s) return 0;
18319  }
18320  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18321    int x[] = {25, 17};
18322    const int *foo = &x[0];
18323    ++foo;
18324  }
18325  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18326    typedef const int *iptr;
18327    iptr p = 0;
18328    ++p;
18329  }
18330  { /* AIX XL C 1.02.0.0 rejects this saying
18331       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18332    struct s { int j; const int *ap[3]; };
18333    struct s *b; b->j = 5;
18334  }
18335  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18336    const int foo = 10;
18337    if (!foo) return 0;
18338  }
18339  return !cs[0] && !zero.x;
18340#endif
18341
18342  ;
18343  return 0;
18344}
18345_ACEOF
18346if ac_fn_c_try_compile "$LINENO"; then :
18347  ac_cv_c_const=yes
18348else
18349  ac_cv_c_const=no
18350fi
18351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352fi
18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18354$as_echo "$ac_cv_c_const" >&6; }
18355if test $ac_cv_c_const = no; then
18356
18357$as_echo "#define const /**/" >>confdefs.h
18358
18359fi
18360
18361ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18362if test "x$ac_cv_type_size_t" = x""yes; then :
18363
18364else
18365
18366cat >>confdefs.h <<_ACEOF
18367#define size_t unsigned int
18368_ACEOF
18369
18370fi
18371
18372ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18373if test "x$ac_cv_type_ssize_t" = x""yes; then :
18374
18375else
18376
18377cat >>confdefs.h <<_ACEOF
18378#define ssize_t int
18379_ACEOF
18380
18381fi
18382
18383ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18384case $ac_cv_c_int64_t in #(
18385  no|yes) ;; #(
18386  *)
18387
18388cat >>confdefs.h <<_ACEOF
18389#define int64_t $ac_cv_c_int64_t
18390_ACEOF
18391;;
18392esac
18393
18394ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18395case $ac_cv_c_uint64_t in #(
18396  no|yes) ;; #(
18397  *)
18398
18399$as_echo "#define _UINT64_T 1" >>confdefs.h
18400
18401
18402cat >>confdefs.h <<_ACEOF
18403#define uint64_t $ac_cv_c_uint64_t
18404_ACEOF
18405;;
18406  esac
18407
18408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18409$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18410if test "${ac_cv_struct_tm+set}" = set; then :
18411  $as_echo_n "(cached) " >&6
18412else
18413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415#include <sys/types.h>
18416#include <time.h>
18417
18418int
18419main ()
18420{
18421struct tm tm;
18422				     int *p = &tm.tm_sec;
18423				     return !p;
18424  ;
18425  return 0;
18426}
18427_ACEOF
18428if ac_fn_c_try_compile "$LINENO"; then :
18429  ac_cv_struct_tm=time.h
18430else
18431  ac_cv_struct_tm=sys/time.h
18432fi
18433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434fi
18435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18436$as_echo "$ac_cv_struct_tm" >&6; }
18437if test $ac_cv_struct_tm = sys/time.h; then
18438
18439$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18440
18441fi
18442
18443
18444
18445# Checks for header files.
18446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18447$as_echo_n "checking for ANSI C header files... " >&6; }
18448if test "${ac_cv_header_stdc+set}" = set; then :
18449  $as_echo_n "(cached) " >&6
18450else
18451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452/* end confdefs.h.  */
18453#include <stdlib.h>
18454#include <stdarg.h>
18455#include <string.h>
18456#include <float.h>
18457
18458int
18459main ()
18460{
18461
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466if ac_fn_c_try_compile "$LINENO"; then :
18467  ac_cv_header_stdc=yes
18468else
18469  ac_cv_header_stdc=no
18470fi
18471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472
18473if test $ac_cv_header_stdc = yes; then
18474  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476/* end confdefs.h.  */
18477#include <string.h>
18478
18479_ACEOF
18480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18481  $EGREP "memchr" >/dev/null 2>&1; then :
18482
18483else
18484  ac_cv_header_stdc=no
18485fi
18486rm -f conftest*
18487
18488fi
18489
18490if test $ac_cv_header_stdc = yes; then
18491  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493/* end confdefs.h.  */
18494#include <stdlib.h>
18495
18496_ACEOF
18497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18498  $EGREP "free" >/dev/null 2>&1; then :
18499
18500else
18501  ac_cv_header_stdc=no
18502fi
18503rm -f conftest*
18504
18505fi
18506
18507if test $ac_cv_header_stdc = yes; then
18508  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18509  if test "$cross_compiling" = yes; then :
18510  :
18511else
18512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513/* end confdefs.h.  */
18514#include <ctype.h>
18515#include <stdlib.h>
18516#if ((' ' & 0x0FF) == 0x020)
18517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18519#else
18520# define ISLOWER(c) \
18521		   (('a' <= (c) && (c) <= 'i') \
18522		     || ('j' <= (c) && (c) <= 'r') \
18523		     || ('s' <= (c) && (c) <= 'z'))
18524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18525#endif
18526
18527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18528int
18529main ()
18530{
18531  int i;
18532  for (i = 0; i < 256; i++)
18533    if (XOR (islower (i), ISLOWER (i))
18534	|| toupper (i) != TOUPPER (i))
18535      return 2;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_run "$LINENO"; then :
18540
18541else
18542  ac_cv_header_stdc=no
18543fi
18544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18545  conftest.$ac_objext conftest.beam conftest.$ac_ext
18546fi
18547
18548fi
18549fi
18550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18551$as_echo "$ac_cv_header_stdc" >&6; }
18552if test $ac_cv_header_stdc = yes; then
18553
18554$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18555
18556fi
18557
18558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18559$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18560if test "${ac_cv_header_time+set}" = set; then :
18561  $as_echo_n "(cached) " >&6
18562else
18563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564/* end confdefs.h.  */
18565#include <sys/types.h>
18566#include <sys/time.h>
18567#include <time.h>
18568
18569int
18570main ()
18571{
18572if ((struct tm *) 0)
18573return 0;
18574  ;
18575  return 0;
18576}
18577_ACEOF
18578if ac_fn_c_try_compile "$LINENO"; then :
18579  ac_cv_header_time=yes
18580else
18581  ac_cv_header_time=no
18582fi
18583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584fi
18585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18586$as_echo "$ac_cv_header_time" >&6; }
18587if test $ac_cv_header_time = yes; then
18588
18589$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18590
18591fi
18592
18593for ac_header in dlfcn.h getopt.h inttypes.h libintl.h stdlib.h string.h sys/time.h unistd.h windows.h windef.h winsock2.h
18594do :
18595  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18597eval as_val=\$$as_ac_Header
18598   if test "x$as_val" = x""yes; then :
18599  cat >>confdefs.h <<_ACEOF
18600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18601_ACEOF
18602
18603fi
18604
18605done
18606
18607
18608
18609# Checks for library functions.
18610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18611$as_echo_n "checking for error_at_line... " >&6; }
18612if test "${ac_cv_lib_error_at_line+set}" = set; then :
18613  $as_echo_n "(cached) " >&6
18614else
18615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616/* end confdefs.h.  */
18617#include <error.h>
18618int
18619main ()
18620{
18621error_at_line (0, 0, "", 0, "an error occurred");
18622  ;
18623  return 0;
18624}
18625_ACEOF
18626if ac_fn_c_try_link "$LINENO"; then :
18627  ac_cv_lib_error_at_line=yes
18628else
18629  ac_cv_lib_error_at_line=no
18630fi
18631rm -f core conftest.err conftest.$ac_objext \
18632    conftest$ac_exeext conftest.$ac_ext
18633fi
18634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18635$as_echo "$ac_cv_lib_error_at_line" >&6; }
18636if test $ac_cv_lib_error_at_line = no; then
18637  case " $LIBOBJS " in
18638  *" error.$ac_objext "* ) ;;
18639  *) LIBOBJS="$LIBOBJS error.$ac_objext"
18640 ;;
18641esac
18642
18643fi
18644
18645for ac_header in stdlib.h
18646do :
18647  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18648if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18649  cat >>confdefs.h <<_ACEOF
18650#define HAVE_STDLIB_H 1
18651_ACEOF
18652
18653fi
18654
18655done
18656
18657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18658$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18659if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
18660  $as_echo_n "(cached) " >&6
18661else
18662  if test "$cross_compiling" = yes; then :
18663  ac_cv_func_malloc_0_nonnull=no
18664else
18665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666/* end confdefs.h.  */
18667#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18668# include <stdlib.h>
18669#else
18670char *malloc ();
18671#endif
18672
18673int
18674main ()
18675{
18676return ! malloc (0);
18677  ;
18678  return 0;
18679}
18680_ACEOF
18681if ac_fn_c_try_run "$LINENO"; then :
18682  ac_cv_func_malloc_0_nonnull=yes
18683else
18684  ac_cv_func_malloc_0_nonnull=no
18685fi
18686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18687  conftest.$ac_objext conftest.beam conftest.$ac_ext
18688fi
18689
18690fi
18691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18692$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18693if test $ac_cv_func_malloc_0_nonnull = yes; then :
18694
18695$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
18696
18697else
18698  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
18699
18700   case " $LIBOBJS " in
18701  *" malloc.$ac_objext "* ) ;;
18702  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18703 ;;
18704esac
18705
18706
18707$as_echo "#define malloc rpl_malloc" >>confdefs.h
18708
18709fi
18710
18711
18712for ac_header in stdlib.h
18713do :
18714  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18715if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18716  cat >>confdefs.h <<_ACEOF
18717#define HAVE_STDLIB_H 1
18718_ACEOF
18719
18720fi
18721
18722done
18723
18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18725$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
18726if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
18727  $as_echo_n "(cached) " >&6
18728else
18729  if test "$cross_compiling" = yes; then :
18730  ac_cv_func_realloc_0_nonnull=no
18731else
18732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733/* end confdefs.h.  */
18734#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18735# include <stdlib.h>
18736#else
18737char *realloc ();
18738#endif
18739
18740int
18741main ()
18742{
18743return ! realloc (0, 0);
18744  ;
18745  return 0;
18746}
18747_ACEOF
18748if ac_fn_c_try_run "$LINENO"; then :
18749  ac_cv_func_realloc_0_nonnull=yes
18750else
18751  ac_cv_func_realloc_0_nonnull=no
18752fi
18753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754  conftest.$ac_objext conftest.beam conftest.$ac_ext
18755fi
18756
18757fi
18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18759$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
18760if test $ac_cv_func_realloc_0_nonnull = yes; then :
18761
18762$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
18763
18764else
18765  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
18766
18767   case " $LIBOBJS " in
18768  *" realloc.$ac_objext "* ) ;;
18769  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
18770 ;;
18771esac
18772
18773
18774$as_echo "#define realloc rpl_realloc" >>confdefs.h
18775
18776fi
18777
18778
18779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
18780$as_echo_n "checking for working strtod... " >&6; }
18781if test "${ac_cv_func_strtod+set}" = set; then :
18782  $as_echo_n "(cached) " >&6
18783else
18784  if test "$cross_compiling" = yes; then :
18785  ac_cv_func_strtod=no
18786else
18787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788/* end confdefs.h.  */
18789
18790$ac_includes_default
18791#ifndef strtod
18792double strtod ();
18793#endif
18794int
18795main()
18796{
18797  {
18798    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
18799    char *string = " +69";
18800    char *term;
18801    double value;
18802    value = strtod (string, &term);
18803    if (value != 69 || term != (string + 4))
18804      return 1;
18805  }
18806
18807  {
18808    /* Under Solaris 2.4, strtod returns the wrong value for the
18809       terminating character under some conditions.  */
18810    char *string = "NaN";
18811    char *term;
18812    strtod (string, &term);
18813    if (term != string && *(term - 1) == 0)
18814      return 1;
18815  }
18816  return 0;
18817}
18818
18819_ACEOF
18820if ac_fn_c_try_run "$LINENO"; then :
18821  ac_cv_func_strtod=yes
18822else
18823  ac_cv_func_strtod=no
18824fi
18825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18826  conftest.$ac_objext conftest.beam conftest.$ac_ext
18827fi
18828
18829fi
18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
18831$as_echo "$ac_cv_func_strtod" >&6; }
18832if test $ac_cv_func_strtod = no; then
18833  case " $LIBOBJS " in
18834  *" strtod.$ac_objext "* ) ;;
18835  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
18836 ;;
18837esac
18838
18839ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
18840if test "x$ac_cv_func_pow" = x""yes; then :
18841
18842fi
18843
18844if test $ac_cv_func_pow = no; then
18845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18846$as_echo_n "checking for pow in -lm... " >&6; }
18847if test "${ac_cv_lib_m_pow+set}" = set; then :
18848  $as_echo_n "(cached) " >&6
18849else
18850  ac_check_lib_save_LIBS=$LIBS
18851LIBS="-lm  $LIBS"
18852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854
18855/* Override any GCC internal prototype to avoid an error.
18856   Use char because int might match the return type of a GCC
18857   builtin and then its argument prototype would still apply.  */
18858#ifdef __cplusplus
18859extern "C"
18860#endif
18861char pow ();
18862int
18863main ()
18864{
18865return pow ();
18866  ;
18867  return 0;
18868}
18869_ACEOF
18870if ac_fn_c_try_link "$LINENO"; then :
18871  ac_cv_lib_m_pow=yes
18872else
18873  ac_cv_lib_m_pow=no
18874fi
18875rm -f core conftest.err conftest.$ac_objext \
18876    conftest$ac_exeext conftest.$ac_ext
18877LIBS=$ac_check_lib_save_LIBS
18878fi
18879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
18880$as_echo "$ac_cv_lib_m_pow" >&6; }
18881if test "x$ac_cv_lib_m_pow" = x""yes; then :
18882  POW_LIB=-lm
18883else
18884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
18885$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
18886fi
18887
18888fi
18889
18890fi
18891
18892for ac_func in strftime
18893do :
18894  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18895if test "x$ac_cv_func_strftime" = x""yes; then :
18896  cat >>confdefs.h <<_ACEOF
18897#define HAVE_STRFTIME 1
18898_ACEOF
18899
18900else
18901  # strftime is in -lintl on SCO UNIX.
18902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
18903$as_echo_n "checking for strftime in -lintl... " >&6; }
18904if test "${ac_cv_lib_intl_strftime+set}" = set; then :
18905  $as_echo_n "(cached) " >&6
18906else
18907  ac_check_lib_save_LIBS=$LIBS
18908LIBS="-lintl  $LIBS"
18909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910/* end confdefs.h.  */
18911
18912/* Override any GCC internal prototype to avoid an error.
18913   Use char because int might match the return type of a GCC
18914   builtin and then its argument prototype would still apply.  */
18915#ifdef __cplusplus
18916extern "C"
18917#endif
18918char strftime ();
18919int
18920main ()
18921{
18922return strftime ();
18923  ;
18924  return 0;
18925}
18926_ACEOF
18927if ac_fn_c_try_link "$LINENO"; then :
18928  ac_cv_lib_intl_strftime=yes
18929else
18930  ac_cv_lib_intl_strftime=no
18931fi
18932rm -f core conftest.err conftest.$ac_objext \
18933    conftest$ac_exeext conftest.$ac_ext
18934LIBS=$ac_check_lib_save_LIBS
18935fi
18936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
18937$as_echo "$ac_cv_lib_intl_strftime" >&6; }
18938if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
18939  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
18940
18941LIBS="-lintl $LIBS"
18942fi
18943
18944fi
18945done
18946
18947for ac_func in getopt memmove memset select setenv snprintf strdup strncasecmp strstr strtol strtoul strtoull
18948do :
18949  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18951eval as_val=\$$as_ac_var
18952   if test "x$as_val" = x""yes; then :
18953  cat >>confdefs.h <<_ACEOF
18954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18955_ACEOF
18956
18957fi
18958done
18959
18960
18961
18962# Checks for additional libraries
18963
18964ORIGLIBS=${LIBS}; LIBS=""
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18966$as_echo_n "checking for library containing dlopen... " >&6; }
18967if test "${ac_cv_search_dlopen+set}" = set; then :
18968  $as_echo_n "(cached) " >&6
18969else
18970  ac_func_search_save_LIBS=$LIBS
18971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972/* end confdefs.h.  */
18973
18974/* Override any GCC internal prototype to avoid an error.
18975   Use char because int might match the return type of a GCC
18976   builtin and then its argument prototype would still apply.  */
18977#ifdef __cplusplus
18978extern "C"
18979#endif
18980char dlopen ();
18981int
18982main ()
18983{
18984return dlopen ();
18985  ;
18986  return 0;
18987}
18988_ACEOF
18989for ac_lib in '' dl; do
18990  if test -z "$ac_lib"; then
18991    ac_res="none required"
18992  else
18993    ac_res=-l$ac_lib
18994    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18995  fi
18996  if ac_fn_c_try_link "$LINENO"; then :
18997  ac_cv_search_dlopen=$ac_res
18998fi
18999rm -f core conftest.err conftest.$ac_objext \
19000    conftest$ac_exeext
19001  if test "${ac_cv_search_dlopen+set}" = set; then :
19002  break
19003fi
19004done
19005if test "${ac_cv_search_dlopen+set}" = set; then :
19006
19007else
19008  ac_cv_search_dlopen=no
19009fi
19010rm conftest.$ac_ext
19011LIBS=$ac_func_search_save_LIBS
19012fi
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19014$as_echo "$ac_cv_search_dlopen" >&6; }
19015ac_res=$ac_cv_search_dlopen
19016if test "$ac_res" != no; then :
19017  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19018
19019$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19020
19021fi
19022
19023MAINLIBS=${LIBS}; LIBS=${ORIGLIBS}
19024
19025
19026# Checks for additional programs
19027# Extract the first word of "db2x_manxml", so it can be a program name with args.
19028set dummy db2x_manxml; ac_word=$2
19029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19030$as_echo_n "checking for $ac_word... " >&6; }
19031if test "${ac_cv_prog_db2man+set}" = set; then :
19032  $as_echo_n "(cached) " >&6
19033else
19034  if test -n "$db2man"; then
19035  ac_cv_prog_db2man="$db2man" # Let the user override the test.
19036else
19037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19038for as_dir in $PATH
19039do
19040  IFS=$as_save_IFS
19041  test -z "$as_dir" && as_dir=.
19042    for ac_exec_ext in '' $ac_executable_extensions; do
19043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19044    ac_cv_prog_db2man="yes"
19045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19046    break 2
19047  fi
19048done
19049  done
19050IFS=$as_save_IFS
19051
19052  test -z "$ac_cv_prog_db2man" && ac_cv_prog_db2man="no"
19053fi
19054fi
19055db2man=$ac_cv_prog_db2man
19056if test -n "$db2man"; then
19057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2man" >&5
19058$as_echo "$db2man" >&6; }
19059else
19060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19061$as_echo "no" >&6; }
19062fi
19063
19064
19065# Extract the first word of "doxygen", so it can be a program name with args.
19066set dummy doxygen; ac_word=$2
19067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068$as_echo_n "checking for $ac_word... " >&6; }
19069if test "${ac_cv_prog_doxygen+set}" = set; then :
19070  $as_echo_n "(cached) " >&6
19071else
19072  if test -n "$doxygen"; then
19073  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
19074else
19075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076for as_dir in $PATH
19077do
19078  IFS=$as_save_IFS
19079  test -z "$as_dir" && as_dir=.
19080    for ac_exec_ext in '' $ac_executable_extensions; do
19081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19082    ac_cv_prog_doxygen="yes"
19083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19084    break 2
19085  fi
19086done
19087  done
19088IFS=$as_save_IFS
19089
19090  test -z "$ac_cv_prog_doxygen" && ac_cv_prog_doxygen="no"
19091fi
19092fi
19093doxygen=$ac_cv_prog_doxygen
19094if test -n "$doxygen"; then
19095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
19096$as_echo "$doxygen" >&6; }
19097else
19098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19099$as_echo "no" >&6; }
19100fi
19101
19102
19103
19104if test "x${db2man}" != xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: docbook man page converter not found - skip generating man pages" >&5
19105$as_echo "Warning: docbook man page converter not found - skip generating man pages" >&6; }; fi
19106if test "x${doxygen}" != xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: doxygen not found - skip generating man pages" >&5
19107$as_echo "Warning: doxygen not found - skip generating man pages" >&6; }; fi
19108
19109 if test "x${db2man}" = xyes -a "x${doxygen}" = xyes; then
19110  ENABLEMAN_TRUE=
19111  ENABLEMAN_FALSE='#'
19112else
19113  ENABLEMAN_TRUE='#'
19114  ENABLEMAN_FALSE=
19115fi
19116
19117
19118
19119# Build options
19120# Check whether --enable-singlelib was given.
19121if test "${enable_singlelib+set}" = set; then :
19122  enableval=$enable_singlelib; singlelib="${enableval}"
19123else
19124  singlelib=no
19125fi
19126
19127 if test "x${singlelib}" = xyes; then
19128  SINGLELIB_TRUE=
19129  SINGLELIB_FALSE='#'
19130else
19131  SINGLELIB_TRUE='#'
19132  SINGLELIB_FALSE=
19133fi
19134
19135
19136# Check whether --enable-test was given.
19137if test "${enable_test+set}" = set; then :
19138  enableval=$enable_test; test="${enableval}"
19139else
19140  test=yes
19141fi
19142
19143 if test "x${test}" = xyes; then
19144  ENABLETEST_TRUE=
19145  ENABLETEST_FALSE='#'
19146else
19147  ENABLETEST_TRUE='#'
19148  ENABLETEST_FALSE=
19149fi
19150
19151
19152# Check whether --enable-utils was given.
19153if test "${enable_utils+set}" = set; then :
19154  enableval=$enable_utils; utils="${enableval}"
19155else
19156  utils=yes
19157fi
19158
19159 if test "x${utils}" = xyes; then
19160  ENABLEUTILS_TRUE=
19161  ENABLEUTILS_FALSE='#'
19162else
19163  ENABLEUTILS_TRUE='#'
19164  ENABLEUTILS_FALSE=
19165fi
19166
19167
19168if test "x${utils}" = xyes; then
19169	for ac_header in readline/readline.h
19170do :
19171  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19172if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
19173  cat >>confdefs.h <<_ACEOF
19174#define HAVE_READLINE_READLINE_H 1
19175_ACEOF
19176
19177else
19178  as_fn_error "libreadline header (readline.h) not found" "$LINENO" 5
19179fi
19180
19181done
19182
19183	for ac_header in readline/history.h
19184do :
19185  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19186if test "x$ac_cv_header_readline_history_h" = x""yes; then :
19187  cat >>confdefs.h <<_ACEOF
19188#define HAVE_READLINE_HISTORY_H 1
19189_ACEOF
19190
19191else
19192  as_fn_error "libreadline header (history.h) not found" "$LINENO" 5
19193fi
19194
19195done
19196
19197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
19198$as_echo_n "checking for initscr in -lncurses... " >&6; }
19199if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
19200  $as_echo_n "(cached) " >&6
19201else
19202  ac_check_lib_save_LIBS=$LIBS
19203LIBS="-lncurses  $LIBS"
19204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19205/* end confdefs.h.  */
19206
19207/* Override any GCC internal prototype to avoid an error.
19208   Use char because int might match the return type of a GCC
19209   builtin and then its argument prototype would still apply.  */
19210#ifdef __cplusplus
19211extern "C"
19212#endif
19213char initscr ();
19214int
19215main ()
19216{
19217return initscr ();
19218  ;
19219  return 0;
19220}
19221_ACEOF
19222if ac_fn_c_try_link "$LINENO"; then :
19223  ac_cv_lib_ncurses_initscr=yes
19224else
19225  ac_cv_lib_ncurses_initscr=no
19226fi
19227rm -f core conftest.err conftest.$ac_objext \
19228    conftest$ac_exeext conftest.$ac_ext
19229LIBS=$ac_check_lib_save_LIBS
19230fi
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
19232$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
19233if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
19234
19235$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19236
19237else
19238  as_fn_error "ncurses library (libncurses) not found" "$LINENO" 5
19239fi
19240
19241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline -lncurses" >&5
19242$as_echo_n "checking for readline in -lreadline -lncurses... " >&6; }
19243if test "${ac_cv_lib_readline__lncurses_readline+set}" = set; then :
19244  $as_echo_n "(cached) " >&6
19245else
19246  ac_check_lib_save_LIBS=$LIBS
19247LIBS="-lreadline -lncurses  $LIBS"
19248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249/* end confdefs.h.  */
19250
19251/* Override any GCC internal prototype to avoid an error.
19252   Use char because int might match the return type of a GCC
19253   builtin and then its argument prototype would still apply.  */
19254#ifdef __cplusplus
19255extern "C"
19256#endif
19257char readline ();
19258int
19259main ()
19260{
19261return readline ();
19262  ;
19263  return 0;
19264}
19265_ACEOF
19266if ac_fn_c_try_link "$LINENO"; then :
19267  ac_cv_lib_readline__lncurses_readline=yes
19268else
19269  ac_cv_lib_readline__lncurses_readline=no
19270fi
19271rm -f core conftest.err conftest.$ac_objext \
19272    conftest$ac_exeext conftest.$ac_ext
19273LIBS=$ac_check_lib_save_LIBS
19274fi
19275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline__lncurses_readline" >&5
19276$as_echo "$ac_cv_lib_readline__lncurses_readline" >&6; }
19277if test "x$ac_cv_lib_readline__lncurses_readline" = x""yes; then :
19278
19279$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19280
19281else
19282  as_fn_error "readline library (libreadline) not found" "$LINENO" 5
19283fi
19284
19285fi
19286
19287
19288# Conditional builds
19289
19290
19291
19292# Check whether --with-backends was given.
19293if test "${with_backends+set}" = set; then :
19294  withval=$with_backends; backends="${withval}"
19295fi
19296
19297
19298# Conditional checks and libs
19299for backend in $backends
19300do
19301	backendlibs="${backendlibs} ../backends/${backend}/lib${backend}backend.la"
19302
19303	case $backend in
19304		firebird)
19305			for ac_header in ibase.h
19306do :
19307  ac_fn_c_check_header_mongrel "$LINENO" "ibase.h" "ac_cv_header_ibase_h" "$ac_includes_default"
19308if test "x$ac_cv_header_ibase_h" = x""yes; then :
19309  cat >>confdefs.h <<_ACEOF
19310#define HAVE_IBASE_H 1
19311_ACEOF
19312
19313else
19314  as_fn_error "firebird header (ibase.h) not found" "$LINENO" 5
19315fi
19316
19317done
19318
19319
19320			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_attach_database in -lfbclient" >&5
19321$as_echo_n "checking for isc_attach_database in -lfbclient... " >&6; }
19322if test "${ac_cv_lib_fbclient_isc_attach_database+set}" = set; then :
19323  $as_echo_n "(cached) " >&6
19324else
19325  ac_check_lib_save_LIBS=$LIBS
19326LIBS="-lfbclient  $LIBS"
19327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328/* end confdefs.h.  */
19329
19330/* Override any GCC internal prototype to avoid an error.
19331   Use char because int might match the return type of a GCC
19332   builtin and then its argument prototype would still apply.  */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336char isc_attach_database ();
19337int
19338main ()
19339{
19340return isc_attach_database ();
19341  ;
19342  return 0;
19343}
19344_ACEOF
19345if ac_fn_c_try_link "$LINENO"; then :
19346  ac_cv_lib_fbclient_isc_attach_database=yes
19347else
19348  ac_cv_lib_fbclient_isc_attach_database=no
19349fi
19350rm -f core conftest.err conftest.$ac_objext \
19351    conftest$ac_exeext conftest.$ac_ext
19352LIBS=$ac_check_lib_save_LIBS
19353fi
19354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_attach_database" >&5
19355$as_echo "$ac_cv_lib_fbclient_isc_attach_database" >&6; }
19356if test "x$ac_cv_lib_fbclient_isc_attach_database" = x""yes; then :
19357
19358$as_echo "#define HAVE_LIBFBCLIENT 1" >>confdefs.h
19359 LIBFIREBIRD="fbclient"
19360else
19361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_attach_database in -lgds32" >&5
19362$as_echo_n "checking for isc_attach_database in -lgds32... " >&6; }
19363if test "${ac_cv_lib_gds32_isc_attach_database+set}" = set; then :
19364  $as_echo_n "(cached) " >&6
19365else
19366  ac_check_lib_save_LIBS=$LIBS
19367LIBS="-lgds32  $LIBS"
19368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369/* end confdefs.h.  */
19370
19371/* Override any GCC internal prototype to avoid an error.
19372   Use char because int might match the return type of a GCC
19373   builtin and then its argument prototype would still apply.  */
19374#ifdef __cplusplus
19375extern "C"
19376#endif
19377char isc_attach_database ();
19378int
19379main ()
19380{
19381return isc_attach_database ();
19382  ;
19383  return 0;
19384}
19385_ACEOF
19386if ac_fn_c_try_link "$LINENO"; then :
19387  ac_cv_lib_gds32_isc_attach_database=yes
19388else
19389  ac_cv_lib_gds32_isc_attach_database=no
19390fi
19391rm -f core conftest.err conftest.$ac_objext \
19392    conftest$ac_exeext conftest.$ac_ext
19393LIBS=$ac_check_lib_save_LIBS
19394fi
19395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds32_isc_attach_database" >&5
19396$as_echo "$ac_cv_lib_gds32_isc_attach_database" >&6; }
19397if test "x$ac_cv_lib_gds32_isc_attach_database" = x""yes; then :
19398
19399$as_echo "#define HAVE_LIBGDS32 1" >>confdefs.h
19400 LIBFIREBIRD="gds32"
19401else
19402  odbx_saved_libs=${LIBS}; LIBS="-lfbclient_ms"
19403					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404/* end confdefs.h.  */
19405
19406#include <stddef.h>
19407#include <ibase.h>
19408int main() { isc_attach_database( NULL, 0, "", NULL, 0, NULL ); return 0; }
19409
19410_ACEOF
19411if ac_fn_c_try_link "$LINENO"; then :
19412
19413							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for isc_attach_database in -lfbclient_ms... yes" >&5
19414$as_echo "checking for isc_attach_database in -lfbclient_ms... yes" >&6; }
19415
19416$as_echo "#define HAVE_LIBFBCLIENT 1" >>confdefs.h
19417
19418							LIBFIREBIRD="fbclient_ms"
19419
19420else
19421
19422							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for isc_attach_database in -lfbclient_ms... no" >&5
19423$as_echo "checking for isc_attach_database in -lfbclient_ms... no" >&6; }
19424							as_fn_error "firebird/interbase library (libfbclient, libfbclient_ms or gds32) not found" "$LINENO" 5
19425
19426
19427fi
19428rm -f core conftest.err conftest.$ac_objext \
19429    conftest$ac_exeext conftest.$ac_ext
19430					LIBS=${odbx_saved_libs}
19431
19432
19433fi
19434
19435
19436fi
19437
19438		;;
19439		mssql)
19440			for ac_header in sybfront.h
19441do :
19442  ac_fn_c_check_header_mongrel "$LINENO" "sybfront.h" "ac_cv_header_sybfront_h" "$ac_includes_default"
19443if test "x$ac_cv_header_sybfront_h" = x""yes; then :
19444  cat >>confdefs.h <<_ACEOF
19445#define HAVE_SYBFRONT_H 1
19446_ACEOF
19447
19448else
19449  as_fn_error "mssql header (sybfront.h) not found" "$LINENO" 5
19450fi
19451
19452done
19453
19454
19455			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbresults in -lsybdb" >&5
19456$as_echo_n "checking for dbresults in -lsybdb... " >&6; }
19457if test "${ac_cv_lib_sybdb_dbresults+set}" = set; then :
19458  $as_echo_n "(cached) " >&6
19459else
19460  ac_check_lib_save_LIBS=$LIBS
19461LIBS="-lsybdb  $LIBS"
19462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463/* end confdefs.h.  */
19464
19465/* Override any GCC internal prototype to avoid an error.
19466   Use char because int might match the return type of a GCC
19467   builtin and then its argument prototype would still apply.  */
19468#ifdef __cplusplus
19469extern "C"
19470#endif
19471char dbresults ();
19472int
19473main ()
19474{
19475return dbresults ();
19476  ;
19477  return 0;
19478}
19479_ACEOF
19480if ac_fn_c_try_link "$LINENO"; then :
19481  ac_cv_lib_sybdb_dbresults=yes
19482else
19483  ac_cv_lib_sybdb_dbresults=no
19484fi
19485rm -f core conftest.err conftest.$ac_objext \
19486    conftest$ac_exeext conftest.$ac_ext
19487LIBS=$ac_check_lib_save_LIBS
19488fi
19489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_dbresults" >&5
19490$as_echo "$ac_cv_lib_sybdb_dbresults" >&6; }
19491if test "x$ac_cv_lib_sybdb_dbresults" = x""yes; then :
19492
19493$as_echo "#define HAVE_LIBSYBDB 1" >>confdefs.h
19494 LIBMSSQL="sybdb"
19495else
19496  as_fn_error "mssql library (libsybdb) not found" "$LINENO" 5
19497
19498fi
19499
19500			ac_fn_c_check_member "$LINENO" "struct dbdaterec" "year" "ac_cv_member_struct_dbdaterec_year" "#include <sybdb.h>
19501"
19502if test "x$ac_cv_member_struct_dbdaterec_year" = x""yes; then :
19503
19504$as_echo "#define HAVE_LIBSYBDB_MSLIB 1" >>confdefs.h
19505
19506fi
19507
19508			odbx_saved_libs=${LIBS}; LIBS=""
19509			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5
19510$as_echo_n "checking for library containing dgettext... " >&6; }
19511if test "${ac_cv_search_dgettext+set}" = set; then :
19512  $as_echo_n "(cached) " >&6
19513else
19514  ac_func_search_save_LIBS=$LIBS
19515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516/* end confdefs.h.  */
19517
19518/* Override any GCC internal prototype to avoid an error.
19519   Use char because int might match the return type of a GCC
19520   builtin and then its argument prototype would still apply.  */
19521#ifdef __cplusplus
19522extern "C"
19523#endif
19524char dgettext ();
19525int
19526main ()
19527{
19528return dgettext ();
19529  ;
19530  return 0;
19531}
19532_ACEOF
19533for ac_lib in '' intl; do
19534  if test -z "$ac_lib"; then
19535    ac_res="none required"
19536  else
19537    ac_res=-l$ac_lib
19538    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19539  fi
19540  if ac_fn_c_try_link "$LINENO"; then :
19541  ac_cv_search_dgettext=$ac_res
19542fi
19543rm -f core conftest.err conftest.$ac_objext \
19544    conftest$ac_exeext
19545  if test "${ac_cv_search_dgettext+set}" = set; then :
19546  break
19547fi
19548done
19549if test "${ac_cv_search_dgettext+set}" = set; then :
19550
19551else
19552  ac_cv_search_dgettext=no
19553fi
19554rm conftest.$ac_ext
19555LIBS=$ac_func_search_save_LIBS
19556fi
19557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5
19558$as_echo "$ac_cv_search_dgettext" >&6; }
19559ac_res=$ac_cv_search_dgettext
19560if test "$ac_res" != no; then :
19561  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19562  LIBMSSQL="$LIBMSSQL $LIBS"
19563fi
19564
19565			LIBS=${odbx_saved_libs}
19566		;;
19567		mysql)
19568			for ac_header in mysql.h
19569do :
19570  ac_fn_c_check_header_compile "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "
19571#ifdef HAVE_WINDOWS_H
19572#include <windows.h>
19573#endif
19574
19575"
19576if test "x$ac_cv_header_mysql_h" = x""yes; then :
19577  cat >>confdefs.h <<_ACEOF
19578#define HAVE_MYSQL_H 1
19579_ACEOF
19580
19581else
19582  as_fn_error "mysql header (mysql.h) not found" "$LINENO" 5
19583fi
19584
19585done
19586
19587
19588			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
19589$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
19590if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then :
19591  $as_echo_n "(cached) " >&6
19592else
19593  ac_check_lib_save_LIBS=$LIBS
19594LIBS="-lmysqlclient_r  $LIBS"
19595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596/* end confdefs.h.  */
19597
19598/* Override any GCC internal prototype to avoid an error.
19599   Use char because int might match the return type of a GCC
19600   builtin and then its argument prototype would still apply.  */
19601#ifdef __cplusplus
19602extern "C"
19603#endif
19604char mysql_init ();
19605int
19606main ()
19607{
19608return mysql_init ();
19609  ;
19610  return 0;
19611}
19612_ACEOF
19613if ac_fn_c_try_link "$LINENO"; then :
19614  ac_cv_lib_mysqlclient_r_mysql_init=yes
19615else
19616  ac_cv_lib_mysqlclient_r_mysql_init=no
19617fi
19618rm -f core conftest.err conftest.$ac_objext \
19619    conftest$ac_exeext conftest.$ac_ext
19620LIBS=$ac_check_lib_save_LIBS
19621fi
19622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
19623$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
19624if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = x""yes; then :
19625
19626$as_echo "#define HAVE_LIBMYSQLCLIENT_R 1" >>confdefs.h
19627 LIBMYSQL="mysqlclient_r"
19628else
19629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
19630$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
19631if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then :
19632  $as_echo_n "(cached) " >&6
19633else
19634  ac_check_lib_save_LIBS=$LIBS
19635LIBS="-lmysqlclient  $LIBS"
19636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637/* end confdefs.h.  */
19638
19639/* Override any GCC internal prototype to avoid an error.
19640   Use char because int might match the return type of a GCC
19641   builtin and then its argument prototype would still apply.  */
19642#ifdef __cplusplus
19643extern "C"
19644#endif
19645char mysql_init ();
19646int
19647main ()
19648{
19649return mysql_init ();
19650  ;
19651  return 0;
19652}
19653_ACEOF
19654if ac_fn_c_try_link "$LINENO"; then :
19655  ac_cv_lib_mysqlclient_mysql_init=yes
19656else
19657  ac_cv_lib_mysqlclient_mysql_init=no
19658fi
19659rm -f core conftest.err conftest.$ac_objext \
19660    conftest$ac_exeext conftest.$ac_ext
19661LIBS=$ac_check_lib_save_LIBS
19662fi
19663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
19664$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
19665if test "x$ac_cv_lib_mysqlclient_mysql_init" = x""yes; then :
19666
19667$as_echo "#define HAVE_LIBMYSQLCLIENT 1" >>confdefs.h
19668 LIBMYSQL="mysqlclient"
19669else
19670  odbx_saved_libs=${LIBS}; LIBS="-lmysql"
19671					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h.  */
19673
19674#include <windows.h>
19675#include <mysql.h>
19676int main() { mysql_init( NULL ); return 0; }
19677
19678_ACEOF
19679if ac_fn_c_try_link "$LINENO"; then :
19680
19681							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for mysql_init in -lmysql... yes" >&5
19682$as_echo "checking for mysql_init in -lmysql... yes" >&6; }
19683
19684$as_echo "#define HAVE_LIBMYSQL 1" >>confdefs.h
19685
19686							LIBMYSQL="mysql"
19687
19688else
19689
19690							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for mysql_init in -lmysql... no" >&5
19691$as_echo "checking for mysql_init in -lmysql... no" >&6; }
19692							as_fn_error "mysql client library (libmysqlclient_r, libmysqlclient or libmysql) not found" "$LINENO" 5
19693
19694
19695fi
19696rm -f core conftest.err conftest.$ac_objext \
19697    conftest$ac_exeext conftest.$ac_ext
19698					LIBS=${odbx_saved_libs}
19699
19700
19701fi
19702
19703
19704fi
19705
19706			odbx_saved_libs=${LIBS}; LIBS="-l$LIBMYSQL"
19707			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708/* end confdefs.h.  */
19709
19710#ifdef HAVE_WINDOWS_H
19711#include <windows.h>
19712#endif
19713#include <stddef.h>
19714#include <mysql.h>
19715int main() { mysql_next_result( NULL ); return 0; }
19716
19717_ACEOF
19718if ac_fn_c_try_link "$LINENO"; then :
19719
19720					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for mysql_next_result in -l$LIBMYSQL... yes" >&5
19721$as_echo "checking for mysql_next_result in -l$LIBMYSQL... yes" >&6; }
19722
19723$as_echo "#define HAVE_MYSQL_NEXT_RESULT 1" >>confdefs.h
19724
19725
19726else
19727
19728					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for mysql_next_result in -l$LIBMYSQL... no" >&5
19729$as_echo "checking for mysql_next_result in -l$LIBMYSQL... no" >&6; }
19730
19731
19732fi
19733rm -f core conftest.err conftest.$ac_objext \
19734    conftest$ac_exeext conftest.$ac_ext
19735			LIBS=${odbx_saved_libs}
19736			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19737$as_echo_n "checking for compress in -lz... " >&6; }
19738if test "${ac_cv_lib_z_compress+set}" = set; then :
19739  $as_echo_n "(cached) " >&6
19740else
19741  ac_check_lib_save_LIBS=$LIBS
19742LIBS="-lz  $LIBS"
19743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744/* end confdefs.h.  */
19745
19746/* Override any GCC internal prototype to avoid an error.
19747   Use char because int might match the return type of a GCC
19748   builtin and then its argument prototype would still apply.  */
19749#ifdef __cplusplus
19750extern "C"
19751#endif
19752char compress ();
19753int
19754main ()
19755{
19756return compress ();
19757  ;
19758  return 0;
19759}
19760_ACEOF
19761if ac_fn_c_try_link "$LINENO"; then :
19762  ac_cv_lib_z_compress=yes
19763else
19764  ac_cv_lib_z_compress=no
19765fi
19766rm -f core conftest.err conftest.$ac_objext \
19767    conftest$ac_exeext conftest.$ac_ext
19768LIBS=$ac_check_lib_save_LIBS
19769fi
19770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19771$as_echo "$ac_cv_lib_z_compress" >&6; }
19772if test "x$ac_cv_lib_z_compress" = x""yes; then :
19773  LIBMYSQL="${LIBMYSQL} -lz"
19774fi
19775
19776		;;
19777		odbc)
19778			for ac_header in sql.h
19779do :
19780  ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "
19781#ifdef HAVE_WINDEF_H
19782#include <windef.h>
19783#endif
19784
19785"
19786if test "x$ac_cv_header_sql_h" = x""yes; then :
19787  cat >>confdefs.h <<_ACEOF
19788#define HAVE_SQL_H 1
19789_ACEOF
19790
19791else
19792  as_fn_error "odbc header (sql.h) not found" "$LINENO" 5
19793fi
19794
19795done
19796
19797
19798			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
19799$as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
19800if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then :
19801  $as_echo_n "(cached) " >&6
19802else
19803  ac_check_lib_save_LIBS=$LIBS
19804LIBS="-lodbc  $LIBS"
19805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19806/* end confdefs.h.  */
19807
19808/* Override any GCC internal prototype to avoid an error.
19809   Use char because int might match the return type of a GCC
19810   builtin and then its argument prototype would still apply.  */
19811#ifdef __cplusplus
19812extern "C"
19813#endif
19814char SQLConnect ();
19815int
19816main ()
19817{
19818return SQLConnect ();
19819  ;
19820  return 0;
19821}
19822_ACEOF
19823if ac_fn_c_try_link "$LINENO"; then :
19824  ac_cv_lib_odbc_SQLConnect=yes
19825else
19826  ac_cv_lib_odbc_SQLConnect=no
19827fi
19828rm -f core conftest.err conftest.$ac_objext \
19829    conftest$ac_exeext conftest.$ac_ext
19830LIBS=$ac_check_lib_save_LIBS
19831fi
19832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
19833$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
19834if test "x$ac_cv_lib_odbc_SQLConnect" = x""yes; then :
19835
19836$as_echo "#define HAVE_LIBODBC 1" >>confdefs.h
19837 LIBODBC="odbc"
19838else
19839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
19840$as_echo_n "checking for SQLConnect in -liodbc... " >&6; }
19841if test "${ac_cv_lib_iodbc_SQLConnect+set}" = set; then :
19842  $as_echo_n "(cached) " >&6
19843else
19844  ac_check_lib_save_LIBS=$LIBS
19845LIBS="-liodbc  $LIBS"
19846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847/* end confdefs.h.  */
19848
19849/* Override any GCC internal prototype to avoid an error.
19850   Use char because int might match the return type of a GCC
19851   builtin and then its argument prototype would still apply.  */
19852#ifdef __cplusplus
19853extern "C"
19854#endif
19855char SQLConnect ();
19856int
19857main ()
19858{
19859return SQLConnect ();
19860  ;
19861  return 0;
19862}
19863_ACEOF
19864if ac_fn_c_try_link "$LINENO"; then :
19865  ac_cv_lib_iodbc_SQLConnect=yes
19866else
19867  ac_cv_lib_iodbc_SQLConnect=no
19868fi
19869rm -f core conftest.err conftest.$ac_objext \
19870    conftest$ac_exeext conftest.$ac_ext
19871LIBS=$ac_check_lib_save_LIBS
19872fi
19873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
19874$as_echo "$ac_cv_lib_iodbc_SQLConnect" >&6; }
19875if test "x$ac_cv_lib_iodbc_SQLConnect" = x""yes; then :
19876
19877$as_echo "#define HAVE_LIBODBC 1" >>confdefs.h
19878 LIBODBC="iodbc"
19879else
19880  odbx_saved_libs=${LIBS}; LIBS="-lodbc32"
19881					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882/* end confdefs.h.  */
19883
19884#include <windef.h>
19885#include <sql.h>
19886#include <stddef.h>
19887int main() { SQLConnect( NULL, NULL, 0, NULL, 0, NULL, 0 ); return 0; }
19888
19889_ACEOF
19890if ac_fn_c_try_link "$LINENO"; then :
19891
19892							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SQLConnect in -lodbc32... yes" >&5
19893$as_echo "checking for SQLConnect in -lodbc32... yes" >&6; }
19894
19895$as_echo "#define HAVE_LIBODBC 1" >>confdefs.h
19896
19897							LIBODBC="odbc32"
19898
19899else
19900
19901							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SQLConnect in -lodbc32... no" >&5
19902$as_echo "checking for SQLConnect in -lodbc32... no" >&6; }
19903							as_fn_error "odbc library (libodbc, libiodbc or libodbc32) not found" "$LINENO" 5
19904
19905
19906fi
19907rm -f core conftest.err conftest.$ac_objext \
19908    conftest$ac_exeext conftest.$ac_ext
19909					LIBS=${odbx_saved_libs}
19910
19911
19912fi
19913
19914
19915fi
19916
19917		;;
19918		oracle)
19919			for ac_header in oci.h
19920do :
19921  ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
19922if test "x$ac_cv_header_oci_h" = x""yes; then :
19923  cat >>confdefs.h <<_ACEOF
19924#define HAVE_OCI_H 1
19925_ACEOF
19926
19927else
19928  as_fn_error "oracle header (oci.h) not found" "$LINENO" 5
19929fi
19930
19931done
19932
19933
19934			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIInitialize in -lclntsh" >&5
19935$as_echo_n "checking for OCIInitialize in -lclntsh... " >&6; }
19936if test "${ac_cv_lib_clntsh_OCIInitialize+set}" = set; then :
19937  $as_echo_n "(cached) " >&6
19938else
19939  ac_check_lib_save_LIBS=$LIBS
19940LIBS="-lclntsh  $LIBS"
19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942/* end confdefs.h.  */
19943
19944/* Override any GCC internal prototype to avoid an error.
19945   Use char because int might match the return type of a GCC
19946   builtin and then its argument prototype would still apply.  */
19947#ifdef __cplusplus
19948extern "C"
19949#endif
19950char OCIInitialize ();
19951int
19952main ()
19953{
19954return OCIInitialize ();
19955  ;
19956  return 0;
19957}
19958_ACEOF
19959if ac_fn_c_try_link "$LINENO"; then :
19960  ac_cv_lib_clntsh_OCIInitialize=yes
19961else
19962  ac_cv_lib_clntsh_OCIInitialize=no
19963fi
19964rm -f core conftest.err conftest.$ac_objext \
19965    conftest$ac_exeext conftest.$ac_ext
19966LIBS=$ac_check_lib_save_LIBS
19967fi
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIInitialize" >&5
19969$as_echo "$ac_cv_lib_clntsh_OCIInitialize" >&6; }
19970if test "x$ac_cv_lib_clntsh_OCIInitialize" = x""yes; then :
19971
19972$as_echo "#define HAVE_LIBCLNTSH 1" >>confdefs.h
19973 LIBORACLE="clntsh"
19974else
19975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIInitialize in -loci" >&5
19976$as_echo_n "checking for OCIInitialize in -loci... " >&6; }
19977if test "${ac_cv_lib_oci_OCIInitialize+set}" = set; then :
19978  $as_echo_n "(cached) " >&6
19979else
19980  ac_check_lib_save_LIBS=$LIBS
19981LIBS="-loci  $LIBS"
19982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983/* end confdefs.h.  */
19984
19985/* Override any GCC internal prototype to avoid an error.
19986   Use char because int might match the return type of a GCC
19987   builtin and then its argument prototype would still apply.  */
19988#ifdef __cplusplus
19989extern "C"
19990#endif
19991char OCIInitialize ();
19992int
19993main ()
19994{
19995return OCIInitialize ();
19996  ;
19997  return 0;
19998}
19999_ACEOF
20000if ac_fn_c_try_link "$LINENO"; then :
20001  ac_cv_lib_oci_OCIInitialize=yes
20002else
20003  ac_cv_lib_oci_OCIInitialize=no
20004fi
20005rm -f core conftest.err conftest.$ac_objext \
20006    conftest$ac_exeext conftest.$ac_ext
20007LIBS=$ac_check_lib_save_LIBS
20008fi
20009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oci_OCIInitialize" >&5
20010$as_echo "$ac_cv_lib_oci_OCIInitialize" >&6; }
20011if test "x$ac_cv_lib_oci_OCIInitialize" = x""yes; then :
20012
20013$as_echo "#define HAVE_LIBOCI 1" >>confdefs.h
20014 LIBORACLE="oci"
20015else
20016  as_fn_error "oracle library (clntsh or oci) not found" "$LINENO" 5
20017
20018fi
20019
20020
20021fi
20022
20023			as_ac_Lib=`$as_echo "ac_cv_lib_$LIBORACLE''_OCILobWrite2" | $as_tr_sh`
20024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobWrite2 in -l$LIBORACLE" >&5
20025$as_echo_n "checking for OCILobWrite2 in -l$LIBORACLE... " >&6; }
20026if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
20027  $as_echo_n "(cached) " >&6
20028else
20029  ac_check_lib_save_LIBS=$LIBS
20030LIBS="-l$LIBORACLE  $LIBS"
20031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032/* end confdefs.h.  */
20033
20034/* Override any GCC internal prototype to avoid an error.
20035   Use char because int might match the return type of a GCC
20036   builtin and then its argument prototype would still apply.  */
20037#ifdef __cplusplus
20038extern "C"
20039#endif
20040char OCILobWrite2 ();
20041int
20042main ()
20043{
20044return OCILobWrite2 ();
20045  ;
20046  return 0;
20047}
20048_ACEOF
20049if ac_fn_c_try_link "$LINENO"; then :
20050  eval "$as_ac_Lib=yes"
20051else
20052  eval "$as_ac_Lib=no"
20053fi
20054rm -f core conftest.err conftest.$ac_objext \
20055    conftest$ac_exeext conftest.$ac_ext
20056LIBS=$ac_check_lib_save_LIBS
20057fi
20058eval ac_res=\$$as_ac_Lib
20059	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20060$as_echo "$ac_res" >&6; }
20061eval as_val=\$$as_ac_Lib
20062   if test "x$as_val" = x""yes; then :
20063
20064$as_echo "#define HAVE_OCILOBWRITE2 1" >>confdefs.h
20065
20066
20067fi
20068
20069			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
20070$as_echo_n "checking for main in -lkernel32... " >&6; }
20071if test "${ac_cv_lib_kernel32_main+set}" = set; then :
20072  $as_echo_n "(cached) " >&6
20073else
20074  ac_check_lib_save_LIBS=$LIBS
20075LIBS="-lkernel32  $LIBS"
20076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20077/* end confdefs.h.  */
20078
20079
20080int
20081main ()
20082{
20083return main ();
20084  ;
20085  return 0;
20086}
20087_ACEOF
20088if ac_fn_c_try_link "$LINENO"; then :
20089  ac_cv_lib_kernel32_main=yes
20090else
20091  ac_cv_lib_kernel32_main=no
20092fi
20093rm -f core conftest.err conftest.$ac_objext \
20094    conftest$ac_exeext conftest.$ac_ext
20095LIBS=$ac_check_lib_save_LIBS
20096fi
20097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
20098$as_echo "$ac_cv_lib_kernel32_main" >&6; }
20099if test "x$ac_cv_lib_kernel32_main" = x""yes; then :
20100
20101$as_echo "#define HAVE_SETENVIRONMENTVARIABLE 1" >>confdefs.h
20102 LIBORACLE="$LIBORACLE -lkernel32"
20103
20104fi
20105
20106		;;
20107		pgsql)
20108			for ac_header in libpq-fe.h
20109do :
20110  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
20111if test "x$ac_cv_header_libpq_fe_h" = x""yes; then :
20112  cat >>confdefs.h <<_ACEOF
20113#define HAVE_LIBPQ_FE_H 1
20114_ACEOF
20115
20116else
20117  as_fn_error "postgresql header (libpq-fe.h) not found" "$LINENO" 5
20118fi
20119
20120done
20121
20122			for ac_header in limits.h
20123do :
20124  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
20125if test "x$ac_cv_header_limits_h" = x""yes; then :
20126  cat >>confdefs.h <<_ACEOF
20127#define HAVE_LIMITS_H 1
20128_ACEOF
20129
20130else
20131  as_fn_error "system limits not found" "$LINENO" 5
20132fi
20133
20134done
20135
20136
20137			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
20138$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
20139if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then :
20140  $as_echo_n "(cached) " >&6
20141else
20142  ac_check_lib_save_LIBS=$LIBS
20143LIBS="-lpq  $LIBS"
20144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145/* end confdefs.h.  */
20146
20147/* Override any GCC internal prototype to avoid an error.
20148   Use char because int might match the return type of a GCC
20149   builtin and then its argument prototype would still apply.  */
20150#ifdef __cplusplus
20151extern "C"
20152#endif
20153char PQconnectdb ();
20154int
20155main ()
20156{
20157return PQconnectdb ();
20158  ;
20159  return 0;
20160}
20161_ACEOF
20162if ac_fn_c_try_link "$LINENO"; then :
20163  ac_cv_lib_pq_PQconnectdb=yes
20164else
20165  ac_cv_lib_pq_PQconnectdb=no
20166fi
20167rm -f core conftest.err conftest.$ac_objext \
20168    conftest$ac_exeext conftest.$ac_ext
20169LIBS=$ac_check_lib_save_LIBS
20170fi
20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
20172$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
20173if test "x$ac_cv_lib_pq_PQconnectdb" = x""yes; then :
20174
20175$as_echo "#define HAVE_LIBPQ 1" >>confdefs.h
20176 LIBPGSQL="pq"
20177else
20178  as_fn_error "postgresql library (libpq) not found" "$LINENO" 5
20179
20180fi
20181
20182			as_ac_Lib=`$as_echo "ac_cv_lib_$LIBPGSQL''_PQescapeStringConn" | $as_tr_sh`
20183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -l$LIBPGSQL" >&5
20184$as_echo_n "checking for PQescapeStringConn in -l$LIBPGSQL... " >&6; }
20185if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
20186  $as_echo_n "(cached) " >&6
20187else
20188  ac_check_lib_save_LIBS=$LIBS
20189LIBS="-l$LIBPGSQL  $LIBS"
20190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191/* end confdefs.h.  */
20192
20193/* Override any GCC internal prototype to avoid an error.
20194   Use char because int might match the return type of a GCC
20195   builtin and then its argument prototype would still apply.  */
20196#ifdef __cplusplus
20197extern "C"
20198#endif
20199char PQescapeStringConn ();
20200int
20201main ()
20202{
20203return PQescapeStringConn ();
20204  ;
20205  return 0;
20206}
20207_ACEOF
20208if ac_fn_c_try_link "$LINENO"; then :
20209  eval "$as_ac_Lib=yes"
20210else
20211  eval "$as_ac_Lib=no"
20212fi
20213rm -f core conftest.err conftest.$ac_objext \
20214    conftest$ac_exeext conftest.$ac_ext
20215LIBS=$ac_check_lib_save_LIBS
20216fi
20217eval ac_res=\$$as_ac_Lib
20218	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20219$as_echo "$ac_res" >&6; }
20220eval as_val=\$$as_ac_Lib
20221   if test "x$as_val" = x""yes; then :
20222
20223$as_echo "#define HAVE_PQ_ESCAPE_STRING_CONN 1" >>confdefs.h
20224
20225
20226fi
20227
20228			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20229$as_echo_n "checking for main in -lws2_32... " >&6; }
20230if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
20231  $as_echo_n "(cached) " >&6
20232else
20233  ac_check_lib_save_LIBS=$LIBS
20234LIBS="-lws2_32  $LIBS"
20235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236/* end confdefs.h.  */
20237
20238
20239int
20240main ()
20241{
20242return main ();
20243  ;
20244  return 0;
20245}
20246_ACEOF
20247if ac_fn_c_try_link "$LINENO"; then :
20248  ac_cv_lib_ws2_32_main=yes
20249else
20250  ac_cv_lib_ws2_32_main=no
20251fi
20252rm -f core conftest.err conftest.$ac_objext \
20253    conftest$ac_exeext conftest.$ac_ext
20254LIBS=$ac_check_lib_save_LIBS
20255fi
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20257$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20258if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
20259
20260$as_echo "#define HAVE_SELECT 1" >>confdefs.h
20261 LIBPGSQL="$LIBPGSQL -lws2_32"
20262
20263fi
20264
20265		;;
20266		sqlite)
20267			for ac_header in sqlite.h
20268do :
20269  ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
20270if test "x$ac_cv_header_sqlite_h" = x""yes; then :
20271  cat >>confdefs.h <<_ACEOF
20272#define HAVE_SQLITE_H 1
20273_ACEOF
20274
20275else
20276  as_fn_error "sqlite header (sqlite.h) not found" "$LINENO" 5
20277fi
20278
20279done
20280
20281
20282			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_get_table in -lsqlite" >&5
20283$as_echo_n "checking for sqlite_get_table in -lsqlite... " >&6; }
20284if test "${ac_cv_lib_sqlite_sqlite_get_table+set}" = set; then :
20285  $as_echo_n "(cached) " >&6
20286else
20287  ac_check_lib_save_LIBS=$LIBS
20288LIBS="-lsqlite  $LIBS"
20289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290/* end confdefs.h.  */
20291
20292/* Override any GCC internal prototype to avoid an error.
20293   Use char because int might match the return type of a GCC
20294   builtin and then its argument prototype would still apply.  */
20295#ifdef __cplusplus
20296extern "C"
20297#endif
20298char sqlite_get_table ();
20299int
20300main ()
20301{
20302return sqlite_get_table ();
20303  ;
20304  return 0;
20305}
20306_ACEOF
20307if ac_fn_c_try_link "$LINENO"; then :
20308  ac_cv_lib_sqlite_sqlite_get_table=yes
20309else
20310  ac_cv_lib_sqlite_sqlite_get_table=no
20311fi
20312rm -f core conftest.err conftest.$ac_objext \
20313    conftest$ac_exeext conftest.$ac_ext
20314LIBS=$ac_check_lib_save_LIBS
20315fi
20316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_get_table" >&5
20317$as_echo "$ac_cv_lib_sqlite_sqlite_get_table" >&6; }
20318if test "x$ac_cv_lib_sqlite_sqlite_get_table" = x""yes; then :
20319
20320$as_echo "#define HAVE_LIBSQLITE 1" >>confdefs.h
20321 LIBSQLITE="sqlite"
20322else
20323  as_fn_error "sqlite library (libsqlite) not found" "$LINENO" 5
20324
20325fi
20326
20327		;;
20328		sqlite3)
20329			for ac_header in sqlite3.h
20330do :
20331  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
20332if test "x$ac_cv_header_sqlite3_h" = x""yes; then :
20333  cat >>confdefs.h <<_ACEOF
20334#define HAVE_SQLITE3_H 1
20335_ACEOF
20336
20337else
20338  as_fn_error "sqlite3 header (sqlite3.h) not found" "$LINENO" 5
20339fi
20340
20341done
20342
20343
20344			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_step in -lsqlite3" >&5
20345$as_echo_n "checking for sqlite3_step in -lsqlite3... " >&6; }
20346if test "${ac_cv_lib_sqlite3_sqlite3_step+set}" = set; then :
20347  $as_echo_n "(cached) " >&6
20348else
20349  ac_check_lib_save_LIBS=$LIBS
20350LIBS="-lsqlite3  $LIBS"
20351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352/* end confdefs.h.  */
20353
20354/* Override any GCC internal prototype to avoid an error.
20355   Use char because int might match the return type of a GCC
20356   builtin and then its argument prototype would still apply.  */
20357#ifdef __cplusplus
20358extern "C"
20359#endif
20360char sqlite3_step ();
20361int
20362main ()
20363{
20364return sqlite3_step ();
20365  ;
20366  return 0;
20367}
20368_ACEOF
20369if ac_fn_c_try_link "$LINENO"; then :
20370  ac_cv_lib_sqlite3_sqlite3_step=yes
20371else
20372  ac_cv_lib_sqlite3_sqlite3_step=no
20373fi
20374rm -f core conftest.err conftest.$ac_objext \
20375    conftest$ac_exeext conftest.$ac_ext
20376LIBS=$ac_check_lib_save_LIBS
20377fi
20378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_step" >&5
20379$as_echo "$ac_cv_lib_sqlite3_sqlite3_step" >&6; }
20380if test "x$ac_cv_lib_sqlite3_sqlite3_step" = x""yes; then :
20381
20382$as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
20383 LIBSQLITE3="sqlite3"
20384else
20385  as_fn_error "sqlite3 library (libsqlite3) not found" "$LINENO" 5
20386
20387fi
20388
20389			as_ac_Lib=`$as_echo "ac_cv_lib_$LIBSQLITE3''_sqlite3_prepare_v2" | $as_tr_sh`
20390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -l$LIBSQLITE3" >&5
20391$as_echo_n "checking for sqlite3_prepare_v2 in -l$LIBSQLITE3... " >&6; }
20392if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
20393  $as_echo_n "(cached) " >&6
20394else
20395  ac_check_lib_save_LIBS=$LIBS
20396LIBS="-l$LIBSQLITE3  $LIBS"
20397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398/* end confdefs.h.  */
20399
20400/* Override any GCC internal prototype to avoid an error.
20401   Use char because int might match the return type of a GCC
20402   builtin and then its argument prototype would still apply.  */
20403#ifdef __cplusplus
20404extern "C"
20405#endif
20406char sqlite3_prepare_v2 ();
20407int
20408main ()
20409{
20410return sqlite3_prepare_v2 ();
20411  ;
20412  return 0;
20413}
20414_ACEOF
20415if ac_fn_c_try_link "$LINENO"; then :
20416  eval "$as_ac_Lib=yes"
20417else
20418  eval "$as_ac_Lib=no"
20419fi
20420rm -f core conftest.err conftest.$ac_objext \
20421    conftest$ac_exeext conftest.$ac_ext
20422LIBS=$ac_check_lib_save_LIBS
20423fi
20424eval ac_res=\$$as_ac_Lib
20425	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20426$as_echo "$ac_res" >&6; }
20427eval as_val=\$$as_ac_Lib
20428   if test "x$as_val" = x""yes; then :
20429
20430$as_echo "#define HAVE_SQLITE3_PREPARE_V2 1" >>confdefs.h
20431
20432
20433fi
20434
20435			as_ac_Lib=`$as_echo "ac_cv_lib_$LIBSQLITE3''_sqlite3_table_column_metadata" | $as_tr_sh`
20436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_table_column_metadata in -l$LIBSQLITE3" >&5
20437$as_echo_n "checking for sqlite3_table_column_metadata in -l$LIBSQLITE3... " >&6; }
20438if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
20439  $as_echo_n "(cached) " >&6
20440else
20441  ac_check_lib_save_LIBS=$LIBS
20442LIBS="-l$LIBSQLITE3  $LIBS"
20443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444/* end confdefs.h.  */
20445
20446/* Override any GCC internal prototype to avoid an error.
20447   Use char because int might match the return type of a GCC
20448   builtin and then its argument prototype would still apply.  */
20449#ifdef __cplusplus
20450extern "C"
20451#endif
20452char sqlite3_table_column_metadata ();
20453int
20454main ()
20455{
20456return sqlite3_table_column_metadata ();
20457  ;
20458  return 0;
20459}
20460_ACEOF
20461if ac_fn_c_try_link "$LINENO"; then :
20462  eval "$as_ac_Lib=yes"
20463else
20464  eval "$as_ac_Lib=no"
20465fi
20466rm -f core conftest.err conftest.$ac_objext \
20467    conftest$ac_exeext conftest.$ac_ext
20468LIBS=$ac_check_lib_save_LIBS
20469fi
20470eval ac_res=\$$as_ac_Lib
20471	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20472$as_echo "$ac_res" >&6; }
20473eval as_val=\$$as_ac_Lib
20474   if test "x$as_val" = x""yes; then :
20475
20476$as_echo "#define HAVE_SQLITE3_TABLE_COLUMN_METADATA 1" >>confdefs.h
20477
20478
20479fi
20480
20481			odbx_saved_libs=${LIBS}; LIBS=""
20482			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5
20483$as_echo_n "checking for library containing dgettext... " >&6; }
20484if test "${ac_cv_search_dgettext+set}" = set; then :
20485  $as_echo_n "(cached) " >&6
20486else
20487  ac_func_search_save_LIBS=$LIBS
20488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489/* end confdefs.h.  */
20490
20491/* Override any GCC internal prototype to avoid an error.
20492   Use char because int might match the return type of a GCC
20493   builtin and then its argument prototype would still apply.  */
20494#ifdef __cplusplus
20495extern "C"
20496#endif
20497char dgettext ();
20498int
20499main ()
20500{
20501return dgettext ();
20502  ;
20503  return 0;
20504}
20505_ACEOF
20506for ac_lib in '' intl; do
20507  if test -z "$ac_lib"; then
20508    ac_res="none required"
20509  else
20510    ac_res=-l$ac_lib
20511    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20512  fi
20513  if ac_fn_c_try_link "$LINENO"; then :
20514  ac_cv_search_dgettext=$ac_res
20515fi
20516rm -f core conftest.err conftest.$ac_objext \
20517    conftest$ac_exeext
20518  if test "${ac_cv_search_dgettext+set}" = set; then :
20519  break
20520fi
20521done
20522if test "${ac_cv_search_dgettext+set}" = set; then :
20523
20524else
20525  ac_cv_search_dgettext=no
20526fi
20527rm conftest.$ac_ext
20528LIBS=$ac_func_search_save_LIBS
20529fi
20530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5
20531$as_echo "$ac_cv_search_dgettext" >&6; }
20532ac_res=$ac_cv_search_dgettext
20533if test "$ac_res" != no; then :
20534  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20535  LIBSQLITE3="$LIBSQLITE3 $LIBS"
20536fi
20537
20538			LIBS=${odbx_saved_libs}
20539		;;
20540		sybase)
20541			for ac_header in ctpublic.h
20542do :
20543  ac_fn_c_check_header_mongrel "$LINENO" "ctpublic.h" "ac_cv_header_ctpublic_h" "$ac_includes_default"
20544if test "x$ac_cv_header_ctpublic_h" = x""yes; then :
20545  cat >>confdefs.h <<_ACEOF
20546#define HAVE_CTPUBLIC_H 1
20547_ACEOF
20548
20549else
20550  as_fn_error "sybase header (ctpublic.h) not found" "$LINENO" 5
20551fi
20552
20553done
20554
20555
20556			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_init in -lct" >&5
20557$as_echo_n "checking for ct_init in -lct... " >&6; }
20558if test "${ac_cv_lib_ct_ct_init+set}" = set; then :
20559  $as_echo_n "(cached) " >&6
20560else
20561  ac_check_lib_save_LIBS=$LIBS
20562LIBS="-lct  $LIBS"
20563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564/* end confdefs.h.  */
20565
20566/* Override any GCC internal prototype to avoid an error.
20567   Use char because int might match the return type of a GCC
20568   builtin and then its argument prototype would still apply.  */
20569#ifdef __cplusplus
20570extern "C"
20571#endif
20572char ct_init ();
20573int
20574main ()
20575{
20576return ct_init ();
20577  ;
20578  return 0;
20579}
20580_ACEOF
20581if ac_fn_c_try_link "$LINENO"; then :
20582  ac_cv_lib_ct_ct_init=yes
20583else
20584  ac_cv_lib_ct_ct_init=no
20585fi
20586rm -f core conftest.err conftest.$ac_objext \
20587    conftest$ac_exeext conftest.$ac_ext
20588LIBS=$ac_check_lib_save_LIBS
20589fi
20590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ct_ct_init" >&5
20591$as_echo "$ac_cv_lib_ct_ct_init" >&6; }
20592if test "x$ac_cv_lib_ct_ct_init" = x""yes; then :
20593
20594$as_echo "#define HAVE_LIBCT 1" >>confdefs.h
20595 LIBSYBASE="ct"
20596else
20597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_init in -lsybct_r" >&5
20598$as_echo_n "checking for ct_init in -lsybct_r... " >&6; }
20599if test "${ac_cv_lib_sybct_r_ct_init+set}" = set; then :
20600  $as_echo_n "(cached) " >&6
20601else
20602  ac_check_lib_save_LIBS=$LIBS
20603LIBS="-lsybct_r  $LIBS"
20604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606
20607/* Override any GCC internal prototype to avoid an error.
20608   Use char because int might match the return type of a GCC
20609   builtin and then its argument prototype would still apply.  */
20610#ifdef __cplusplus
20611extern "C"
20612#endif
20613char ct_init ();
20614int
20615main ()
20616{
20617return ct_init ();
20618  ;
20619  return 0;
20620}
20621_ACEOF
20622if ac_fn_c_try_link "$LINENO"; then :
20623  ac_cv_lib_sybct_r_ct_init=yes
20624else
20625  ac_cv_lib_sybct_r_ct_init=no
20626fi
20627rm -f core conftest.err conftest.$ac_objext \
20628    conftest$ac_exeext conftest.$ac_ext
20629LIBS=$ac_check_lib_save_LIBS
20630fi
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybct_r_ct_init" >&5
20632$as_echo "$ac_cv_lib_sybct_r_ct_init" >&6; }
20633if test "x$ac_cv_lib_sybct_r_ct_init" = x""yes; then :
20634
20635$as_echo "#define HAVE_LIBSYBCT_R 1" >>confdefs.h
20636 LIBSYBASE="sybct_r"
20637else
20638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_init in -lsybct" >&5
20639$as_echo_n "checking for ct_init in -lsybct... " >&6; }
20640if test "${ac_cv_lib_sybct_ct_init+set}" = set; then :
20641  $as_echo_n "(cached) " >&6
20642else
20643  ac_check_lib_save_LIBS=$LIBS
20644LIBS="-lsybct  $LIBS"
20645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646/* end confdefs.h.  */
20647
20648/* Override any GCC internal prototype to avoid an error.
20649   Use char because int might match the return type of a GCC
20650   builtin and then its argument prototype would still apply.  */
20651#ifdef __cplusplus
20652extern "C"
20653#endif
20654char ct_init ();
20655int
20656main ()
20657{
20658return ct_init ();
20659  ;
20660  return 0;
20661}
20662_ACEOF
20663if ac_fn_c_try_link "$LINENO"; then :
20664  ac_cv_lib_sybct_ct_init=yes
20665else
20666  ac_cv_lib_sybct_ct_init=no
20667fi
20668rm -f core conftest.err conftest.$ac_objext \
20669    conftest$ac_exeext conftest.$ac_ext
20670LIBS=$ac_check_lib_save_LIBS
20671fi
20672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybct_ct_init" >&5
20673$as_echo "$ac_cv_lib_sybct_ct_init" >&6; }
20674if test "x$ac_cv_lib_sybct_ct_init" = x""yes; then :
20675
20676$as_echo "#define HAVE_LIBSYBCT 1" >>confdefs.h
20677 LIBSYBASE="sybct"
20678else
20679  as_fn_error "sybase library (libct, libsybct_r or libsyb) not found" "$LINENO" 5
20680
20681fi
20682
20683
20684fi
20685
20686
20687fi
20688
20689			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cs_config in -lsybcs" >&5
20690$as_echo_n "checking for cs_config in -lsybcs... " >&6; }
20691if test "${ac_cv_lib_sybcs_cs_config+set}" = set; then :
20692  $as_echo_n "(cached) " >&6
20693else
20694  ac_check_lib_save_LIBS=$LIBS
20695LIBS="-lsybcs  $LIBS"
20696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697/* end confdefs.h.  */
20698
20699/* Override any GCC internal prototype to avoid an error.
20700   Use char because int might match the return type of a GCC
20701   builtin and then its argument prototype would still apply.  */
20702#ifdef __cplusplus
20703extern "C"
20704#endif
20705char cs_config ();
20706int
20707main ()
20708{
20709return cs_config ();
20710  ;
20711  return 0;
20712}
20713_ACEOF
20714if ac_fn_c_try_link "$LINENO"; then :
20715  ac_cv_lib_sybcs_cs_config=yes
20716else
20717  ac_cv_lib_sybcs_cs_config=no
20718fi
20719rm -f core conftest.err conftest.$ac_objext \
20720    conftest$ac_exeext conftest.$ac_ext
20721LIBS=$ac_check_lib_save_LIBS
20722fi
20723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybcs_cs_config" >&5
20724$as_echo "$ac_cv_lib_sybcs_cs_config" >&6; }
20725if test "x$ac_cv_lib_sybcs_cs_config" = x""yes; then :
20726
20727$as_echo "#define HAVE_LIBSYBCS 1" >>confdefs.h
20728 LIBSYBASE="${LIBSYBASE} -lsybcs"
20729
20730fi
20731
20732		;;
20733	esac
20734done
20735
20736
20737# Generate Makefiles
20738ac_config_files="$ac_config_files Makefile backends/Makefile backends/firebird/Makefile backends/mssql/Makefile backends/mysql/Makefile backends/odbc/Makefile backends/oracle/Makefile backends/pgsql/Makefile backends/sqlite/Makefile backends/sqlite3/Makefile backends/sybase/Makefile doc/Makefile doc/Doxyfile lib/Makefile po/Makefile.in test/Makefile utils/Makefile utils/doc/Makefile utils/po/Makefile.in opendbx.spec opendbx.pc opendbxplus.pc"
20739
20740cat >confcache <<\_ACEOF
20741# This file is a shell script that caches the results of configure
20742# tests run on this system so they can be shared between configure
20743# scripts and configure runs, see configure's option --config-cache.
20744# It is not useful on other systems.  If it contains results you don't
20745# want to keep, you may remove or edit it.
20746#
20747# config.status only pays attention to the cache file if you give it
20748# the --recheck option to rerun configure.
20749#
20750# `ac_cv_env_foo' variables (set or unset) will be overridden when
20751# loading this file, other *unset* `ac_cv_foo' will be assigned the
20752# following values.
20753
20754_ACEOF
20755
20756# The following way of writing the cache mishandles newlines in values,
20757# but we know of no workaround that is simple, portable, and efficient.
20758# So, we kill variables containing newlines.
20759# Ultrix sh set writes to stderr and can't be redirected directly,
20760# and sets the high bit in the cache file unless we assign to the vars.
20761(
20762  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20763    eval ac_val=\$$ac_var
20764    case $ac_val in #(
20765    *${as_nl}*)
20766      case $ac_var in #(
20767      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20768$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20769      esac
20770      case $ac_var in #(
20771      _ | IFS | as_nl) ;; #(
20772      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20773      *) { eval $ac_var=; unset $ac_var;} ;;
20774      esac ;;
20775    esac
20776  done
20777
20778  (set) 2>&1 |
20779    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20780    *${as_nl}ac_space=\ *)
20781      # `set' does not quote correctly, so add quotes: double-quote
20782      # substitution turns \\\\ into \\, and sed turns \\ into \.
20783      sed -n \
20784	"s/'/'\\\\''/g;
20785	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20786      ;; #(
20787    *)
20788      # `set' quotes correctly as required by POSIX, so do not add quotes.
20789      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20790      ;;
20791    esac |
20792    sort
20793) |
20794  sed '
20795     /^ac_cv_env_/b end
20796     t clear
20797     :clear
20798     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20799     t end
20800     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20801     :end' >>confcache
20802if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20803  if test -w "$cache_file"; then
20804    test "x$cache_file" != "x/dev/null" &&
20805      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20806$as_echo "$as_me: updating cache $cache_file" >&6;}
20807    cat confcache >$cache_file
20808  else
20809    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20810$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20811  fi
20812fi
20813rm -f confcache
20814
20815test "x$prefix" = xNONE && prefix=$ac_default_prefix
20816# Let make expand exec_prefix.
20817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20818
20819DEFS=-DHAVE_CONFIG_H
20820
20821ac_libobjs=
20822ac_ltlibobjs=
20823for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20824  # 1. Remove the extension, and $U if already installed.
20825  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20826  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20827  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20828  #    will be set to the directory where LIBOBJS objects are built.
20829  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20830  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20831done
20832LIBOBJS=$ac_libobjs
20833
20834LTLIBOBJS=$ac_ltlibobjs
20835
20836
20837 if test -n "$EXEEXT"; then
20838  am__EXEEXT_TRUE=
20839  am__EXEEXT_FALSE='#'
20840else
20841  am__EXEEXT_TRUE='#'
20842  am__EXEEXT_FALSE=
20843fi
20844
20845if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20846  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20847Usually this means the macro was only invoked conditionally." "$LINENO" 5
20848fi
20849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20850  as_fn_error "conditional \"AMDEP\" was never defined.
20851Usually this means the macro was only invoked conditionally." "$LINENO" 5
20852fi
20853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20854  as_fn_error "conditional \"am__fastdepCC\" was never defined.
20855Usually this means the macro was only invoked conditionally." "$LINENO" 5
20856fi
20857if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20858  as_fn_error "conditional \"am__fastdepCC\" was never defined.
20859Usually this means the macro was only invoked conditionally." "$LINENO" 5
20860fi
20861if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20862  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20863Usually this means the macro was only invoked conditionally." "$LINENO" 5
20864fi
20865if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20866  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20867Usually this means the macro was only invoked conditionally." "$LINENO" 5
20868fi
20869if test -z "${ENABLEMAN_TRUE}" && test -z "${ENABLEMAN_FALSE}"; then
20870  as_fn_error "conditional \"ENABLEMAN\" was never defined.
20871Usually this means the macro was only invoked conditionally." "$LINENO" 5
20872fi
20873if test -z "${SINGLELIB_TRUE}" && test -z "${SINGLELIB_FALSE}"; then
20874  as_fn_error "conditional \"SINGLELIB\" was never defined.
20875Usually this means the macro was only invoked conditionally." "$LINENO" 5
20876fi
20877if test -z "${ENABLETEST_TRUE}" && test -z "${ENABLETEST_FALSE}"; then
20878  as_fn_error "conditional \"ENABLETEST\" was never defined.
20879Usually this means the macro was only invoked conditionally." "$LINENO" 5
20880fi
20881if test -z "${ENABLEUTILS_TRUE}" && test -z "${ENABLEUTILS_FALSE}"; then
20882  as_fn_error "conditional \"ENABLEUTILS\" was never defined.
20883Usually this means the macro was only invoked conditionally." "$LINENO" 5
20884fi
20885
20886: ${CONFIG_STATUS=./config.status}
20887ac_write_fail=0
20888ac_clean_files_save=$ac_clean_files
20889ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20890{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20891$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20892as_write_fail=0
20893cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20894#! $SHELL
20895# Generated by $as_me.
20896# Run this file to recreate the current configuration.
20897# Compiler output produced by configure, useful for debugging
20898# configure, is in config.log if it exists.
20899
20900debug=false
20901ac_cs_recheck=false
20902ac_cs_silent=false
20903
20904SHELL=\${CONFIG_SHELL-$SHELL}
20905export SHELL
20906_ASEOF
20907cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20908## -------------------- ##
20909## M4sh Initialization. ##
20910## -------------------- ##
20911
20912# Be more Bourne compatible
20913DUALCASE=1; export DUALCASE # for MKS sh
20914if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20915  emulate sh
20916  NULLCMD=:
20917  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20918  # is contrary to our usage.  Disable this feature.
20919  alias -g '${1+"$@"}'='"$@"'
20920  setopt NO_GLOB_SUBST
20921else
20922  case `(set -o) 2>/dev/null` in #(
20923  *posix*) :
20924    set -o posix ;; #(
20925  *) :
20926     ;;
20927esac
20928fi
20929
20930
20931as_nl='
20932'
20933export as_nl
20934# Printing a long string crashes Solaris 7 /usr/bin/printf.
20935as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20938# Prefer a ksh shell builtin over an external printf program on Solaris,
20939# but without wasting forks for bash or zsh.
20940if test -z "$BASH_VERSION$ZSH_VERSION" \
20941    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20942  as_echo='print -r --'
20943  as_echo_n='print -rn --'
20944elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20945  as_echo='printf %s\n'
20946  as_echo_n='printf %s'
20947else
20948  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20949    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20950    as_echo_n='/usr/ucb/echo -n'
20951  else
20952    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20953    as_echo_n_body='eval
20954      arg=$1;
20955      case $arg in #(
20956      *"$as_nl"*)
20957	expr "X$arg" : "X\\(.*\\)$as_nl";
20958	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20959      esac;
20960      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20961    '
20962    export as_echo_n_body
20963    as_echo_n='sh -c $as_echo_n_body as_echo'
20964  fi
20965  export as_echo_body
20966  as_echo='sh -c $as_echo_body as_echo'
20967fi
20968
20969# The user is always right.
20970if test "${PATH_SEPARATOR+set}" != set; then
20971  PATH_SEPARATOR=:
20972  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20973    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20974      PATH_SEPARATOR=';'
20975  }
20976fi
20977
20978
20979# IFS
20980# We need space, tab and new line, in precisely that order.  Quoting is
20981# there to prevent editors from complaining about space-tab.
20982# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20983# splitting by setting IFS to empty value.)
20984IFS=" ""	$as_nl"
20985
20986# Find who we are.  Look in the path if we contain no directory separator.
20987case $0 in #((
20988  *[\\/]* ) as_myself=$0 ;;
20989  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990for as_dir in $PATH
20991do
20992  IFS=$as_save_IFS
20993  test -z "$as_dir" && as_dir=.
20994    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20995  done
20996IFS=$as_save_IFS
20997
20998     ;;
20999esac
21000# We did not find ourselves, most probably we were run as `sh COMMAND'
21001# in which case we are not to be found in the path.
21002if test "x$as_myself" = x; then
21003  as_myself=$0
21004fi
21005if test ! -f "$as_myself"; then
21006  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21007  exit 1
21008fi
21009
21010# Unset variables that we do not need and which cause bugs (e.g. in
21011# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21012# suppresses any "Segmentation fault" message there.  '((' could
21013# trigger a bug in pdksh 5.2.14.
21014for as_var in BASH_ENV ENV MAIL MAILPATH
21015do eval test x\${$as_var+set} = xset \
21016  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21017done
21018PS1='$ '
21019PS2='> '
21020PS4='+ '
21021
21022# NLS nuisances.
21023LC_ALL=C
21024export LC_ALL
21025LANGUAGE=C
21026export LANGUAGE
21027
21028# CDPATH.
21029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21030
21031
21032# as_fn_error ERROR [LINENO LOG_FD]
21033# ---------------------------------
21034# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21035# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21036# script with status $?, using 1 if that was 0.
21037as_fn_error ()
21038{
21039  as_status=$?; test $as_status -eq 0 && as_status=1
21040  if test "$3"; then
21041    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21042    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21043  fi
21044  $as_echo "$as_me: error: $1" >&2
21045  as_fn_exit $as_status
21046} # as_fn_error
21047
21048
21049# as_fn_set_status STATUS
21050# -----------------------
21051# Set $? to STATUS, without forking.
21052as_fn_set_status ()
21053{
21054  return $1
21055} # as_fn_set_status
21056
21057# as_fn_exit STATUS
21058# -----------------
21059# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21060as_fn_exit ()
21061{
21062  set +e
21063  as_fn_set_status $1
21064  exit $1
21065} # as_fn_exit
21066
21067# as_fn_unset VAR
21068# ---------------
21069# Portably unset VAR.
21070as_fn_unset ()
21071{
21072  { eval $1=; unset $1;}
21073}
21074as_unset=as_fn_unset
21075# as_fn_append VAR VALUE
21076# ----------------------
21077# Append the text in VALUE to the end of the definition contained in VAR. Take
21078# advantage of any shell optimizations that allow amortized linear growth over
21079# repeated appends, instead of the typical quadratic growth present in naive
21080# implementations.
21081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21082  eval 'as_fn_append ()
21083  {
21084    eval $1+=\$2
21085  }'
21086else
21087  as_fn_append ()
21088  {
21089    eval $1=\$$1\$2
21090  }
21091fi # as_fn_append
21092
21093# as_fn_arith ARG...
21094# ------------------
21095# Perform arithmetic evaluation on the ARGs, and store the result in the
21096# global $as_val. Take advantage of shells that can avoid forks. The arguments
21097# must be portable across $(()) and expr.
21098if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21099  eval 'as_fn_arith ()
21100  {
21101    as_val=$(( $* ))
21102  }'
21103else
21104  as_fn_arith ()
21105  {
21106    as_val=`expr "$@" || test $? -eq 1`
21107  }
21108fi # as_fn_arith
21109
21110
21111if expr a : '\(a\)' >/dev/null 2>&1 &&
21112   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21113  as_expr=expr
21114else
21115  as_expr=false
21116fi
21117
21118if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21119  as_basename=basename
21120else
21121  as_basename=false
21122fi
21123
21124if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21125  as_dirname=dirname
21126else
21127  as_dirname=false
21128fi
21129
21130as_me=`$as_basename -- "$0" ||
21131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21132	 X"$0" : 'X\(//\)$' \| \
21133	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21134$as_echo X/"$0" |
21135    sed '/^.*\/\([^/][^/]*\)\/*$/{
21136	    s//\1/
21137	    q
21138	  }
21139	  /^X\/\(\/\/\)$/{
21140	    s//\1/
21141	    q
21142	  }
21143	  /^X\/\(\/\).*/{
21144	    s//\1/
21145	    q
21146	  }
21147	  s/.*/./; q'`
21148
21149# Avoid depending upon Character Ranges.
21150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21153as_cr_digits='0123456789'
21154as_cr_alnum=$as_cr_Letters$as_cr_digits
21155
21156ECHO_C= ECHO_N= ECHO_T=
21157case `echo -n x` in #(((((
21158-n*)
21159  case `echo 'xy\c'` in
21160  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21161  xy)  ECHO_C='\c';;
21162  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21163       ECHO_T='	';;
21164  esac;;
21165*)
21166  ECHO_N='-n';;
21167esac
21168
21169rm -f conf$$ conf$$.exe conf$$.file
21170if test -d conf$$.dir; then
21171  rm -f conf$$.dir/conf$$.file
21172else
21173  rm -f conf$$.dir
21174  mkdir conf$$.dir 2>/dev/null
21175fi
21176if (echo >conf$$.file) 2>/dev/null; then
21177  if ln -s conf$$.file conf$$ 2>/dev/null; then
21178    as_ln_s='ln -s'
21179    # ... but there are two gotchas:
21180    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21181    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21182    # In both cases, we have to default to `cp -p'.
21183    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21184      as_ln_s='cp -p'
21185  elif ln conf$$.file conf$$ 2>/dev/null; then
21186    as_ln_s=ln
21187  else
21188    as_ln_s='cp -p'
21189  fi
21190else
21191  as_ln_s='cp -p'
21192fi
21193rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21194rmdir conf$$.dir 2>/dev/null
21195
21196
21197# as_fn_mkdir_p
21198# -------------
21199# Create "$as_dir" as a directory, including parents if necessary.
21200as_fn_mkdir_p ()
21201{
21202
21203  case $as_dir in #(
21204  -*) as_dir=./$as_dir;;
21205  esac
21206  test -d "$as_dir" || eval $as_mkdir_p || {
21207    as_dirs=
21208    while :; do
21209      case $as_dir in #(
21210      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21211      *) as_qdir=$as_dir;;
21212      esac
21213      as_dirs="'$as_qdir' $as_dirs"
21214      as_dir=`$as_dirname -- "$as_dir" ||
21215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216	 X"$as_dir" : 'X\(//\)[^/]' \| \
21217	 X"$as_dir" : 'X\(//\)$' \| \
21218	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21219$as_echo X"$as_dir" |
21220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21221	    s//\1/
21222	    q
21223	  }
21224	  /^X\(\/\/\)[^/].*/{
21225	    s//\1/
21226	    q
21227	  }
21228	  /^X\(\/\/\)$/{
21229	    s//\1/
21230	    q
21231	  }
21232	  /^X\(\/\).*/{
21233	    s//\1/
21234	    q
21235	  }
21236	  s/.*/./; q'`
21237      test -d "$as_dir" && break
21238    done
21239    test -z "$as_dirs" || eval "mkdir $as_dirs"
21240  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21241
21242
21243} # as_fn_mkdir_p
21244if mkdir -p . 2>/dev/null; then
21245  as_mkdir_p='mkdir -p "$as_dir"'
21246else
21247  test -d ./-p && rmdir ./-p
21248  as_mkdir_p=false
21249fi
21250
21251if test -x / >/dev/null 2>&1; then
21252  as_test_x='test -x'
21253else
21254  if ls -dL / >/dev/null 2>&1; then
21255    as_ls_L_option=L
21256  else
21257    as_ls_L_option=
21258  fi
21259  as_test_x='
21260    eval sh -c '\''
21261      if test -d "$1"; then
21262	test -d "$1/.";
21263      else
21264	case $1 in #(
21265	-*)set "./$1";;
21266	esac;
21267	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21268	???[sx]*):;;*)false;;esac;fi
21269    '\'' sh
21270  '
21271fi
21272as_executable_p=$as_test_x
21273
21274# Sed expression to map a string onto a valid CPP name.
21275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21276
21277# Sed expression to map a string onto a valid variable name.
21278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21279
21280
21281exec 6>&1
21282## ----------------------------------- ##
21283## Main body of $CONFIG_STATUS script. ##
21284## ----------------------------------- ##
21285_ASEOF
21286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21287
21288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21289# Save the log message, to keep $0 and so on meaningful, and to
21290# report actual input values of CONFIG_FILES etc. instead of their
21291# values after options handling.
21292ac_log="
21293This file was extended by opendbx $as_me 1.4.6, which was
21294generated by GNU Autoconf 2.65.  Invocation command line was
21295
21296  CONFIG_FILES    = $CONFIG_FILES
21297  CONFIG_HEADERS  = $CONFIG_HEADERS
21298  CONFIG_LINKS    = $CONFIG_LINKS
21299  CONFIG_COMMANDS = $CONFIG_COMMANDS
21300  $ $0 $@
21301
21302on `(hostname || uname -n) 2>/dev/null | sed 1q`
21303"
21304
21305_ACEOF
21306
21307case $ac_config_files in *"
21308"*) set x $ac_config_files; shift; ac_config_files=$*;;
21309esac
21310
21311case $ac_config_headers in *"
21312"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21313esac
21314
21315
21316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21317# Files that config.status was made for.
21318config_files="$ac_config_files"
21319config_headers="$ac_config_headers"
21320config_commands="$ac_config_commands"
21321
21322_ACEOF
21323
21324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21325ac_cs_usage="\
21326\`$as_me' instantiates files and other configuration actions
21327from templates according to the current configuration.  Unless the files
21328and actions are specified as TAGs, all are instantiated by default.
21329
21330Usage: $0 [OPTION]... [TAG]...
21331
21332  -h, --help       print this help, then exit
21333  -V, --version    print version number and configuration settings, then exit
21334      --config     print configuration, then exit
21335  -q, --quiet, --silent
21336                   do not print progress messages
21337  -d, --debug      don't remove temporary files
21338      --recheck    update $as_me by reconfiguring in the same conditions
21339      --file=FILE[:TEMPLATE]
21340                   instantiate the configuration file FILE
21341      --header=FILE[:TEMPLATE]
21342                   instantiate the configuration header FILE
21343
21344Configuration files:
21345$config_files
21346
21347Configuration headers:
21348$config_headers
21349
21350Configuration commands:
21351$config_commands
21352
21353Report bugs to <http://bugs.linuxnetworks.de/>."
21354
21355_ACEOF
21356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21358ac_cs_version="\\
21359opendbx config.status 1.4.6
21360configured by $0, generated by GNU Autoconf 2.65,
21361  with options \\"\$ac_cs_config\\"
21362
21363Copyright (C) 2009 Free Software Foundation, Inc.
21364This config.status script is free software; the Free Software Foundation
21365gives unlimited permission to copy, distribute and modify it."
21366
21367ac_pwd='$ac_pwd'
21368srcdir='$srcdir'
21369INSTALL='$INSTALL'
21370MKDIR_P='$MKDIR_P'
21371AWK='$AWK'
21372test -n "\$AWK" || AWK=awk
21373_ACEOF
21374
21375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376# The default lists apply if the user does not specify any file.
21377ac_need_defaults=:
21378while test $# != 0
21379do
21380  case $1 in
21381  --*=*)
21382    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21383    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21384    ac_shift=:
21385    ;;
21386  *)
21387    ac_option=$1
21388    ac_optarg=$2
21389    ac_shift=shift
21390    ;;
21391  esac
21392
21393  case $ac_option in
21394  # Handling of the options.
21395  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21396    ac_cs_recheck=: ;;
21397  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21398    $as_echo "$ac_cs_version"; exit ;;
21399  --config | --confi | --conf | --con | --co | --c )
21400    $as_echo "$ac_cs_config"; exit ;;
21401  --debug | --debu | --deb | --de | --d | -d )
21402    debug=: ;;
21403  --file | --fil | --fi | --f )
21404    $ac_shift
21405    case $ac_optarg in
21406    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21407    esac
21408    as_fn_append CONFIG_FILES " '$ac_optarg'"
21409    ac_need_defaults=false;;
21410  --header | --heade | --head | --hea )
21411    $ac_shift
21412    case $ac_optarg in
21413    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21414    esac
21415    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21416    ac_need_defaults=false;;
21417  --he | --h)
21418    # Conflict between --help and --header
21419    as_fn_error "ambiguous option: \`$1'
21420Try \`$0 --help' for more information.";;
21421  --help | --hel | -h )
21422    $as_echo "$ac_cs_usage"; exit ;;
21423  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21424  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21425    ac_cs_silent=: ;;
21426
21427  # This is an error.
21428  -*) as_fn_error "unrecognized option: \`$1'
21429Try \`$0 --help' for more information." ;;
21430
21431  *) as_fn_append ac_config_targets " $1"
21432     ac_need_defaults=false ;;
21433
21434  esac
21435  shift
21436done
21437
21438ac_configure_extra_args=
21439
21440if $ac_cs_silent; then
21441  exec 6>/dev/null
21442  ac_configure_extra_args="$ac_configure_extra_args --silent"
21443fi
21444
21445_ACEOF
21446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21447if \$ac_cs_recheck; then
21448  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21449  shift
21450  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21451  CONFIG_SHELL='$SHELL'
21452  export CONFIG_SHELL
21453  exec "\$@"
21454fi
21455
21456_ACEOF
21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458exec 5>>config.log
21459{
21460  echo
21461  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21462## Running $as_me. ##
21463_ASBOX
21464  $as_echo "$ac_log"
21465} >&5
21466
21467_ACEOF
21468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21469#
21470# INIT-COMMANDS
21471#
21472# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21473    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21474    # from automake < 1.5.
21475    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21476    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21477    LINGUAS="${LINGUAS-%UNSET%}"
21478
21479AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21480
21481
21482# The HP-UX ksh and POSIX shell print the target directory to stdout
21483# if CDPATH is set.
21484(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21485
21486sed_quote_subst='$sed_quote_subst'
21487double_quote_subst='$double_quote_subst'
21488delay_variable_subst='$delay_variable_subst'
21489macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21490macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21491AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21492DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21493OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21494enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21495enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21496pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21497enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21498host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21499host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21500host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21501build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21502build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21503build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21504SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21505Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21506GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21507EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21508FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21509LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21510NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21511LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21512max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21513ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21514exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21515lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21516lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21517lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21518reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21519reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21520deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21521file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21522AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21523AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21524STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21525RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21526old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21527old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21528old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21529CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21530CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21531compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21532GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21533lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21534lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21535lt_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"`'
21536lt_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"`'
21537objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21538SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21539ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21540MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21541lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21542lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21543lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21544lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21545lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21546need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21547DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21548NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21549LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21550OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21551OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21552libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21553shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21554extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21555archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21556enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21557export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21558whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21559compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21560old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21562archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21563archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21564module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21565module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21566with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21567allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21568no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21569hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21570hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21571hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21572hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21573hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21574hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21575hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21576hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21577inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21578link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21579fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21580always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21581export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21582exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21583include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21584prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21585file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21586variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21587need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21588need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21589version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21590runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21591shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21592shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21593libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21594library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21595soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21596postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21598finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21599finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21600hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21601sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21602sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21603hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21604enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21605enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21606enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21607old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21608striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21609compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21610predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21611postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21612predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21613postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21614compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21615LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21616old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21617compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21618GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21619lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21620lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21621lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21622lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21623lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21624archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21625enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21626export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21627whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21628compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21629old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21630old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21631archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21632archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21633module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21634module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21635with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21636allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21637no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21638hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21639hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21640hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21641hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21642hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21643hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21644hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21645hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21646inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21647link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21648fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21649always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21650export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21651exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21652include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21653prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21654file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21655hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21656compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21657predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21658postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21659predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21660postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21661compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21662
21663LTCC='$LTCC'
21664LTCFLAGS='$LTCFLAGS'
21665compiler='$compiler_DEFAULT'
21666
21667# Quote evaled strings.
21668for var in SED \
21669GREP \
21670EGREP \
21671FGREP \
21672LD \
21673NM \
21674LN_S \
21675lt_SP2NL \
21676lt_NL2SP \
21677reload_flag \
21678deplibs_check_method \
21679file_magic_cmd \
21680AR \
21681AR_FLAGS \
21682STRIP \
21683RANLIB \
21684CC \
21685CFLAGS \
21686compiler \
21687lt_cv_sys_global_symbol_pipe \
21688lt_cv_sys_global_symbol_to_cdecl \
21689lt_cv_sys_global_symbol_to_c_name_address \
21690lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21691SHELL \
21692ECHO \
21693lt_prog_compiler_no_builtin_flag \
21694lt_prog_compiler_wl \
21695lt_prog_compiler_pic \
21696lt_prog_compiler_static \
21697lt_cv_prog_compiler_c_o \
21698need_locks \
21699DSYMUTIL \
21700NMEDIT \
21701LIPO \
21702OTOOL \
21703OTOOL64 \
21704shrext_cmds \
21705export_dynamic_flag_spec \
21706whole_archive_flag_spec \
21707compiler_needs_object \
21708with_gnu_ld \
21709allow_undefined_flag \
21710no_undefined_flag \
21711hardcode_libdir_flag_spec \
21712hardcode_libdir_flag_spec_ld \
21713hardcode_libdir_separator \
21714fix_srcfile_path \
21715exclude_expsyms \
21716include_expsyms \
21717file_list_spec \
21718variables_saved_for_relink \
21719libname_spec \
21720library_names_spec \
21721soname_spec \
21722finish_eval \
21723old_striplib \
21724striplib \
21725compiler_lib_search_dirs \
21726predep_objects \
21727postdep_objects \
21728predeps \
21729postdeps \
21730compiler_lib_search_path \
21731LD_CXX \
21732compiler_CXX \
21733lt_prog_compiler_no_builtin_flag_CXX \
21734lt_prog_compiler_wl_CXX \
21735lt_prog_compiler_pic_CXX \
21736lt_prog_compiler_static_CXX \
21737lt_cv_prog_compiler_c_o_CXX \
21738export_dynamic_flag_spec_CXX \
21739whole_archive_flag_spec_CXX \
21740compiler_needs_object_CXX \
21741with_gnu_ld_CXX \
21742allow_undefined_flag_CXX \
21743no_undefined_flag_CXX \
21744hardcode_libdir_flag_spec_CXX \
21745hardcode_libdir_flag_spec_ld_CXX \
21746hardcode_libdir_separator_CXX \
21747fix_srcfile_path_CXX \
21748exclude_expsyms_CXX \
21749include_expsyms_CXX \
21750file_list_spec_CXX \
21751compiler_lib_search_dirs_CXX \
21752predep_objects_CXX \
21753postdep_objects_CXX \
21754predeps_CXX \
21755postdeps_CXX \
21756compiler_lib_search_path_CXX; do
21757    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21758    *[\\\\\\\`\\"\\\$]*)
21759      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21760      ;;
21761    *)
21762      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21763      ;;
21764    esac
21765done
21766
21767# Double-quote double-evaled strings.
21768for var in reload_cmds \
21769old_postinstall_cmds \
21770old_postuninstall_cmds \
21771old_archive_cmds \
21772extract_expsyms_cmds \
21773old_archive_from_new_cmds \
21774old_archive_from_expsyms_cmds \
21775archive_cmds \
21776archive_expsym_cmds \
21777module_cmds \
21778module_expsym_cmds \
21779export_symbols_cmds \
21780prelink_cmds \
21781postinstall_cmds \
21782postuninstall_cmds \
21783finish_cmds \
21784sys_lib_search_path_spec \
21785sys_lib_dlsearch_path_spec \
21786old_archive_cmds_CXX \
21787old_archive_from_new_cmds_CXX \
21788old_archive_from_expsyms_cmds_CXX \
21789archive_cmds_CXX \
21790archive_expsym_cmds_CXX \
21791module_cmds_CXX \
21792module_expsym_cmds_CXX \
21793export_symbols_cmds_CXX \
21794prelink_cmds_CXX; do
21795    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21796    *[\\\\\\\`\\"\\\$]*)
21797      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21798      ;;
21799    *)
21800      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21801      ;;
21802    esac
21803done
21804
21805# Fix-up fallback echo if it was mangled by the above quoting rules.
21806case \$lt_ECHO in
21807*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21808  ;;
21809esac
21810
21811ac_aux_dir='$ac_aux_dir'
21812xsi_shell='$xsi_shell'
21813lt_shell_append='$lt_shell_append'
21814
21815# See if we are running on zsh, and set the options which allow our
21816# commands through without removal of \ escapes INIT.
21817if test -n "\${ZSH_VERSION+set}" ; then
21818   setopt NO_GLOB_SUBST
21819fi
21820
21821
21822    PACKAGE='$PACKAGE'
21823    VERSION='$VERSION'
21824    TIMESTAMP='$TIMESTAMP'
21825    RM='$RM'
21826    ofile='$ofile'
21827
21828
21829
21830
21831
21832
21833_ACEOF
21834
21835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21836
21837# Handling of arguments.
21838for ac_config_target in $ac_config_targets
21839do
21840  case $ac_config_target in
21841    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21842    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21843    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21844    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21845    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21846    "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
21847    "backends/firebird/Makefile") CONFIG_FILES="$CONFIG_FILES backends/firebird/Makefile" ;;
21848    "backends/mssql/Makefile") CONFIG_FILES="$CONFIG_FILES backends/mssql/Makefile" ;;
21849    "backends/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES backends/mysql/Makefile" ;;
21850    "backends/odbc/Makefile") CONFIG_FILES="$CONFIG_FILES backends/odbc/Makefile" ;;
21851    "backends/oracle/Makefile") CONFIG_FILES="$CONFIG_FILES backends/oracle/Makefile" ;;
21852    "backends/pgsql/Makefile") CONFIG_FILES="$CONFIG_FILES backends/pgsql/Makefile" ;;
21853    "backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES backends/sqlite/Makefile" ;;
21854    "backends/sqlite3/Makefile") CONFIG_FILES="$CONFIG_FILES backends/sqlite3/Makefile" ;;
21855    "backends/sybase/Makefile") CONFIG_FILES="$CONFIG_FILES backends/sybase/Makefile" ;;
21856    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21857    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
21858    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21859    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21860    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21861    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21862    "utils/doc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/doc/Makefile" ;;
21863    "utils/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES utils/po/Makefile.in" ;;
21864    "opendbx.spec") CONFIG_FILES="$CONFIG_FILES opendbx.spec" ;;
21865    "opendbx.pc") CONFIG_FILES="$CONFIG_FILES opendbx.pc" ;;
21866    "opendbxplus.pc") CONFIG_FILES="$CONFIG_FILES opendbxplus.pc" ;;
21867
21868  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21869  esac
21870done
21871
21872
21873# If the user did not use the arguments to specify the items to instantiate,
21874# then the envvar interface is used.  Set only those that are not.
21875# We use the long form for the default assignment because of an extremely
21876# bizarre bug on SunOS 4.1.3.
21877if $ac_need_defaults; then
21878  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21879  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21880  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21881fi
21882
21883# Have a temporary directory for convenience.  Make it in the build tree
21884# simply because there is no reason against having it here, and in addition,
21885# creating and moving files from /tmp can sometimes cause problems.
21886# Hook for its removal unless debugging.
21887# Note that there is a small window in which the directory will not be cleaned:
21888# after its creation but before its name has been assigned to `$tmp'.
21889$debug ||
21890{
21891  tmp=
21892  trap 'exit_status=$?
21893  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21894' 0
21895  trap 'as_fn_exit 1' 1 2 13 15
21896}
21897# Create a (secure) tmp directory for tmp files.
21898
21899{
21900  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21901  test -n "$tmp" && test -d "$tmp"
21902}  ||
21903{
21904  tmp=./conf$$-$RANDOM
21905  (umask 077 && mkdir "$tmp")
21906} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21907
21908# Set up the scripts for CONFIG_FILES section.
21909# No need to generate them if there are no CONFIG_FILES.
21910# This happens for instance with `./config.status config.h'.
21911if test -n "$CONFIG_FILES"; then
21912
21913
21914ac_cr=`echo X | tr X '\015'`
21915# On cygwin, bash can eat \r inside `` if the user requested igncr.
21916# But we know of no other shell where ac_cr would be empty at this
21917# point, so we can use a bashism as a fallback.
21918if test "x$ac_cr" = x; then
21919  eval ac_cr=\$\'\\r\'
21920fi
21921ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21922if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21923  ac_cs_awk_cr='\r'
21924else
21925  ac_cs_awk_cr=$ac_cr
21926fi
21927
21928echo 'BEGIN {' >"$tmp/subs1.awk" &&
21929_ACEOF
21930
21931
21932{
21933  echo "cat >conf$$subs.awk <<_ACEOF" &&
21934  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21935  echo "_ACEOF"
21936} >conf$$subs.sh ||
21937  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21938ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21939ac_delim='%!_!# '
21940for ac_last_try in false false false false false :; do
21941  . ./conf$$subs.sh ||
21942    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21943
21944  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21945  if test $ac_delim_n = $ac_delim_num; then
21946    break
21947  elif $ac_last_try; then
21948    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21949  else
21950    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21951  fi
21952done
21953rm -f conf$$subs.sh
21954
21955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21956cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21957_ACEOF
21958sed -n '
21959h
21960s/^/S["/; s/!.*/"]=/
21961p
21962g
21963s/^[^!]*!//
21964:repl
21965t repl
21966s/'"$ac_delim"'$//
21967t delim
21968:nl
21969h
21970s/\(.\{148\}\)..*/\1/
21971t more1
21972s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21973p
21974n
21975b repl
21976:more1
21977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21978p
21979g
21980s/.\{148\}//
21981t nl
21982:delim
21983h
21984s/\(.\{148\}\)..*/\1/
21985t more2
21986s/["\\]/\\&/g; s/^/"/; s/$/"/
21987p
21988b
21989:more2
21990s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21991p
21992g
21993s/.\{148\}//
21994t delim
21995' <conf$$subs.awk | sed '
21996/^[^""]/{
21997  N
21998  s/\n//
21999}
22000' >>$CONFIG_STATUS || ac_write_fail=1
22001rm -f conf$$subs.awk
22002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22003_ACAWK
22004cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22005  for (key in S) S_is_set[key] = 1
22006  FS = ""
22007
22008}
22009{
22010  line = $ 0
22011  nfields = split(line, field, "@")
22012  substed = 0
22013  len = length(field[1])
22014  for (i = 2; i < nfields; i++) {
22015    key = field[i]
22016    keylen = length(key)
22017    if (S_is_set[key]) {
22018      value = S[key]
22019      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22020      len += length(value) + length(field[++i])
22021      substed = 1
22022    } else
22023      len += 1 + keylen
22024  }
22025
22026  print line
22027}
22028
22029_ACAWK
22030_ACEOF
22031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22032if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22033  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22034else
22035  cat
22036fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22037  || as_fn_error "could not setup config files machinery" "$LINENO" 5
22038_ACEOF
22039
22040# VPATH may cause trouble with some makes, so we remove $(srcdir),
22041# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042# trailing colons and then remove the whole line if VPATH becomes empty
22043# (actually we leave an empty line to preserve line numbers).
22044if test "x$srcdir" = x.; then
22045  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22046s/:*\$(srcdir):*/:/
22047s/:*\${srcdir}:*/:/
22048s/:*@srcdir@:*/:/
22049s/^\([^=]*=[	 ]*\):*/\1/
22050s/:*$//
22051s/^[^=]*=[	 ]*$//
22052}'
22053fi
22054
22055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22056fi # test -n "$CONFIG_FILES"
22057
22058# Set up the scripts for CONFIG_HEADERS section.
22059# No need to generate them if there are no CONFIG_HEADERS.
22060# This happens for instance with `./config.status Makefile'.
22061if test -n "$CONFIG_HEADERS"; then
22062cat >"$tmp/defines.awk" <<\_ACAWK ||
22063BEGIN {
22064_ACEOF
22065
22066# Transform confdefs.h into an awk script `defines.awk', embedded as
22067# here-document in config.status, that substitutes the proper values into
22068# config.h.in to produce config.h.
22069
22070# Create a delimiter string that does not exist in confdefs.h, to ease
22071# handling of long lines.
22072ac_delim='%!_!# '
22073for ac_last_try in false false :; do
22074  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22075  if test -z "$ac_t"; then
22076    break
22077  elif $ac_last_try; then
22078    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22079  else
22080    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22081  fi
22082done
22083
22084# For the awk script, D is an array of macro values keyed by name,
22085# likewise P contains macro parameters if any.  Preserve backslash
22086# newline sequences.
22087
22088ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22089sed -n '
22090s/.\{148\}/&'"$ac_delim"'/g
22091t rset
22092:rset
22093s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22094t def
22095d
22096:def
22097s/\\$//
22098t bsnl
22099s/["\\]/\\&/g
22100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22101D["\1"]=" \3"/p
22102s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22103d
22104:bsnl
22105s/["\\]/\\&/g
22106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22107D["\1"]=" \3\\\\\\n"\\/p
22108t cont
22109s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22110t cont
22111d
22112:cont
22113n
22114s/.\{148\}/&'"$ac_delim"'/g
22115t clear
22116:clear
22117s/\\$//
22118t bsnlc
22119s/["\\]/\\&/g; s/^/"/; s/$/"/p
22120d
22121:bsnlc
22122s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22123b cont
22124' <confdefs.h | sed '
22125s/'"$ac_delim"'/"\\\
22126"/g' >>$CONFIG_STATUS || ac_write_fail=1
22127
22128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22129  for (key in D) D_is_set[key] = 1
22130  FS = ""
22131}
22132/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22133  line = \$ 0
22134  split(line, arg, " ")
22135  if (arg[1] == "#") {
22136    defundef = arg[2]
22137    mac1 = arg[3]
22138  } else {
22139    defundef = substr(arg[1], 2)
22140    mac1 = arg[2]
22141  }
22142  split(mac1, mac2, "(") #)
22143  macro = mac2[1]
22144  prefix = substr(line, 1, index(line, defundef) - 1)
22145  if (D_is_set[macro]) {
22146    # Preserve the white space surrounding the "#".
22147    print prefix "define", macro P[macro] D[macro]
22148    next
22149  } else {
22150    # Replace #undef with comments.  This is necessary, for example,
22151    # in the case of _POSIX_SOURCE, which is predefined and required
22152    # on some systems where configure will not decide to define it.
22153    if (defundef == "undef") {
22154      print "/*", prefix defundef, macro, "*/"
22155      next
22156    }
22157  }
22158}
22159{ print }
22160_ACAWK
22161_ACEOF
22162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22163  as_fn_error "could not setup config headers machinery" "$LINENO" 5
22164fi # test -n "$CONFIG_HEADERS"
22165
22166
22167eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22168shift
22169for ac_tag
22170do
22171  case $ac_tag in
22172  :[FHLC]) ac_mode=$ac_tag; continue;;
22173  esac
22174  case $ac_mode$ac_tag in
22175  :[FHL]*:*);;
22176  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22177  :[FH]-) ac_tag=-:-;;
22178  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22179  esac
22180  ac_save_IFS=$IFS
22181  IFS=:
22182  set x $ac_tag
22183  IFS=$ac_save_IFS
22184  shift
22185  ac_file=$1
22186  shift
22187
22188  case $ac_mode in
22189  :L) ac_source=$1;;
22190  :[FH])
22191    ac_file_inputs=
22192    for ac_f
22193    do
22194      case $ac_f in
22195      -) ac_f="$tmp/stdin";;
22196      *) # Look for the file first in the build tree, then in the source tree
22197	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22198	 # because $ac_f cannot contain `:'.
22199	 test -f "$ac_f" ||
22200	   case $ac_f in
22201	   [\\/$]*) false;;
22202	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22203	   esac ||
22204	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22205      esac
22206      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22207      as_fn_append ac_file_inputs " '$ac_f'"
22208    done
22209
22210    # Let's still pretend it is `configure' which instantiates (i.e., don't
22211    # use $as_me), people would be surprised to read:
22212    #    /* config.h.  Generated by config.status.  */
22213    configure_input='Generated from '`
22214	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22215	`' by configure.'
22216    if test x"$ac_file" != x-; then
22217      configure_input="$ac_file.  $configure_input"
22218      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22219$as_echo "$as_me: creating $ac_file" >&6;}
22220    fi
22221    # Neutralize special characters interpreted by sed in replacement strings.
22222    case $configure_input in #(
22223    *\&* | *\|* | *\\* )
22224       ac_sed_conf_input=`$as_echo "$configure_input" |
22225       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22226    *) ac_sed_conf_input=$configure_input;;
22227    esac
22228
22229    case $ac_tag in
22230    *:-:* | *:-) cat >"$tmp/stdin" \
22231      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22232    esac
22233    ;;
22234  esac
22235
22236  ac_dir=`$as_dirname -- "$ac_file" ||
22237$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22238	 X"$ac_file" : 'X\(//\)[^/]' \| \
22239	 X"$ac_file" : 'X\(//\)$' \| \
22240	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22241$as_echo X"$ac_file" |
22242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22243	    s//\1/
22244	    q
22245	  }
22246	  /^X\(\/\/\)[^/].*/{
22247	    s//\1/
22248	    q
22249	  }
22250	  /^X\(\/\/\)$/{
22251	    s//\1/
22252	    q
22253	  }
22254	  /^X\(\/\).*/{
22255	    s//\1/
22256	    q
22257	  }
22258	  s/.*/./; q'`
22259  as_dir="$ac_dir"; as_fn_mkdir_p
22260  ac_builddir=.
22261
22262case "$ac_dir" in
22263.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22264*)
22265  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22266  # A ".." for each directory in $ac_dir_suffix.
22267  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22268  case $ac_top_builddir_sub in
22269  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22270  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22271  esac ;;
22272esac
22273ac_abs_top_builddir=$ac_pwd
22274ac_abs_builddir=$ac_pwd$ac_dir_suffix
22275# for backward compatibility:
22276ac_top_builddir=$ac_top_build_prefix
22277
22278case $srcdir in
22279  .)  # We are building in place.
22280    ac_srcdir=.
22281    ac_top_srcdir=$ac_top_builddir_sub
22282    ac_abs_top_srcdir=$ac_pwd ;;
22283  [\\/]* | ?:[\\/]* )  # Absolute name.
22284    ac_srcdir=$srcdir$ac_dir_suffix;
22285    ac_top_srcdir=$srcdir
22286    ac_abs_top_srcdir=$srcdir ;;
22287  *) # Relative name.
22288    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22289    ac_top_srcdir=$ac_top_build_prefix$srcdir
22290    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22291esac
22292ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22293
22294
22295  case $ac_mode in
22296  :F)
22297  #
22298  # CONFIG_FILE
22299  #
22300
22301  case $INSTALL in
22302  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22303  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22304  esac
22305  ac_MKDIR_P=$MKDIR_P
22306  case $MKDIR_P in
22307  [\\/$]* | ?:[\\/]* ) ;;
22308  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22309  esac
22310_ACEOF
22311
22312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22313# If the template does not know about datarootdir, expand it.
22314# FIXME: This hack should be removed a few years after 2.60.
22315ac_datarootdir_hack=; ac_datarootdir_seen=
22316ac_sed_dataroot='
22317/datarootdir/ {
22318  p
22319  q
22320}
22321/@datadir@/p
22322/@docdir@/p
22323/@infodir@/p
22324/@localedir@/p
22325/@mandir@/p'
22326case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22327*datarootdir*) ac_datarootdir_seen=yes;;
22328*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22329  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22330$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22331_ACEOF
22332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22333  ac_datarootdir_hack='
22334  s&@datadir@&$datadir&g
22335  s&@docdir@&$docdir&g
22336  s&@infodir@&$infodir&g
22337  s&@localedir@&$localedir&g
22338  s&@mandir@&$mandir&g
22339  s&\\\${datarootdir}&$datarootdir&g' ;;
22340esac
22341_ACEOF
22342
22343# Neutralize VPATH when `$srcdir' = `.'.
22344# Shell code in configure.ac might set extrasub.
22345# FIXME: do we really want to maintain this feature?
22346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22347ac_sed_extra="$ac_vpsub
22348$extrasub
22349_ACEOF
22350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22351:t
22352/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22353s|@configure_input@|$ac_sed_conf_input|;t t
22354s&@top_builddir@&$ac_top_builddir_sub&;t t
22355s&@top_build_prefix@&$ac_top_build_prefix&;t t
22356s&@srcdir@&$ac_srcdir&;t t
22357s&@abs_srcdir@&$ac_abs_srcdir&;t t
22358s&@top_srcdir@&$ac_top_srcdir&;t t
22359s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22360s&@builddir@&$ac_builddir&;t t
22361s&@abs_builddir@&$ac_abs_builddir&;t t
22362s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22363s&@INSTALL@&$ac_INSTALL&;t t
22364s&@MKDIR_P@&$ac_MKDIR_P&;t t
22365$ac_datarootdir_hack
22366"
22367eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22368  || as_fn_error "could not create $ac_file" "$LINENO" 5
22369
22370test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22371  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22372  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22374which seems to be undefined.  Please make sure it is defined." >&5
22375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22376which seems to be undefined.  Please make sure it is defined." >&2;}
22377
22378  rm -f "$tmp/stdin"
22379  case $ac_file in
22380  -) cat "$tmp/out" && rm -f "$tmp/out";;
22381  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22382  esac \
22383  || as_fn_error "could not create $ac_file" "$LINENO" 5
22384 ;;
22385  :H)
22386  #
22387  # CONFIG_HEADER
22388  #
22389  if test x"$ac_file" != x-; then
22390    {
22391      $as_echo "/* $configure_input  */" \
22392      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22393    } >"$tmp/config.h" \
22394      || as_fn_error "could not create $ac_file" "$LINENO" 5
22395    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22396      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22397$as_echo "$as_me: $ac_file is unchanged" >&6;}
22398    else
22399      rm -f "$ac_file"
22400      mv "$tmp/config.h" "$ac_file" \
22401	|| as_fn_error "could not create $ac_file" "$LINENO" 5
22402    fi
22403  else
22404    $as_echo "/* $configure_input  */" \
22405      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22406      || as_fn_error "could not create -" "$LINENO" 5
22407  fi
22408# Compute "$ac_file"'s index in $config_headers.
22409_am_arg="$ac_file"
22410_am_stamp_count=1
22411for _am_header in $config_headers :; do
22412  case $_am_header in
22413    $_am_arg | $_am_arg:* )
22414      break ;;
22415    * )
22416      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22417  esac
22418done
22419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22421	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22422	 X"$_am_arg" : 'X\(//\)$' \| \
22423	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22424$as_echo X"$_am_arg" |
22425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22426	    s//\1/
22427	    q
22428	  }
22429	  /^X\(\/\/\)[^/].*/{
22430	    s//\1/
22431	    q
22432	  }
22433	  /^X\(\/\/\)$/{
22434	    s//\1/
22435	    q
22436	  }
22437	  /^X\(\/\).*/{
22438	    s//\1/
22439	    q
22440	  }
22441	  s/.*/./; q'`/stamp-h$_am_stamp_count
22442 ;;
22443
22444  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22445$as_echo "$as_me: executing $ac_file commands" >&6;}
22446 ;;
22447  esac
22448
22449
22450  case $ac_file$ac_mode in
22451    "po-directories":C)
22452    for ac_file in $CONFIG_FILES; do
22453      # Support "outfile[:infile[:infile...]]"
22454      case "$ac_file" in
22455        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22456      esac
22457      # PO directories have a Makefile.in generated from Makefile.in.in.
22458      case "$ac_file" in */Makefile.in)
22459        # Adjust a relative srcdir.
22460        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22461        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22462        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22463        # In autoconf-2.13 it is called $ac_given_srcdir.
22464        # In autoconf-2.50 it is called $srcdir.
22465        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22466        case "$ac_given_srcdir" in
22467          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22468          /*) top_srcdir="$ac_given_srcdir" ;;
22469          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22470        esac
22471        # Treat a directory as a PO directory if and only if it has a
22472        # POTFILES.in file. This allows packages to have multiple PO
22473        # directories under different names or in different locations.
22474        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22475          rm -f "$ac_dir/POTFILES"
22476          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22477          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22478          POMAKEFILEDEPS="POTFILES.in"
22479          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22480          # on $ac_dir but don't depend on user-specified configuration
22481          # parameters.
22482          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22483            # The LINGUAS file contains the set of available languages.
22484            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22485              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22486            fi
22487            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22488            # Hide the ALL_LINGUAS assigment from automake < 1.5.
22489            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22490            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22491          else
22492            # The set of available languages was given in configure.in.
22493            # Hide the ALL_LINGUAS assigment from automake < 1.5.
22494            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22495          fi
22496          # Compute POFILES
22497          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22498          # Compute UPDATEPOFILES
22499          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22500          # Compute DUMMYPOFILES
22501          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22502          # Compute GMOFILES
22503          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22504          case "$ac_given_srcdir" in
22505            .) srcdirpre= ;;
22506            *) srcdirpre='$(srcdir)/' ;;
22507          esac
22508          POFILES=
22509          UPDATEPOFILES=
22510          DUMMYPOFILES=
22511          GMOFILES=
22512          for lang in $ALL_LINGUAS; do
22513            POFILES="$POFILES $srcdirpre$lang.po"
22514            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22515            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22516            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22517          done
22518          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22519          # environment variable.
22520          INST_LINGUAS=
22521          if test -n "$ALL_LINGUAS"; then
22522            for presentlang in $ALL_LINGUAS; do
22523              useit=no
22524              if test "%UNSET%" != "$LINGUAS"; then
22525                desiredlanguages="$LINGUAS"
22526              else
22527                desiredlanguages="$ALL_LINGUAS"
22528              fi
22529              for desiredlang in $desiredlanguages; do
22530                # Use the presentlang catalog if desiredlang is
22531                #   a. equal to presentlang, or
22532                #   b. a variant of presentlang (because in this case,
22533                #      presentlang can be used as a fallback for messages
22534                #      which are not translated in the desiredlang catalog).
22535                case "$desiredlang" in
22536                  "$presentlang"*) useit=yes;;
22537                esac
22538              done
22539              if test $useit = yes; then
22540                INST_LINGUAS="$INST_LINGUAS $presentlang"
22541              fi
22542            done
22543          fi
22544          CATALOGS=
22545          if test -n "$INST_LINGUAS"; then
22546            for lang in $INST_LINGUAS; do
22547              CATALOGS="$CATALOGS $lang.gmo"
22548            done
22549          fi
22550          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22551          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22552          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22553            if test -f "$f"; then
22554              case "$f" in
22555                *.orig | *.bak | *~) ;;
22556                *) cat "$f" >> "$ac_dir/Makefile" ;;
22557              esac
22558            fi
22559          done
22560        fi
22561        ;;
22562      esac
22563    done ;;
22564    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22565  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22566  # are listed without --file.  Let's play safe and only enable the eval
22567  # if we detect the quoting.
22568  case $CONFIG_FILES in
22569  *\'*) eval set x "$CONFIG_FILES" ;;
22570  *)   set x $CONFIG_FILES ;;
22571  esac
22572  shift
22573  for mf
22574  do
22575    # Strip MF so we end up with the name of the file.
22576    mf=`echo "$mf" | sed -e 's/:.*$//'`
22577    # Check whether this is an Automake generated Makefile or not.
22578    # We used to match only the files named `Makefile.in', but
22579    # some people rename them; so instead we look at the file content.
22580    # Grep'ing the first line is not enough: some people post-process
22581    # each Makefile.in and add a new line on top of each file to say so.
22582    # Grep'ing the whole file is not good either: AIX grep has a line
22583    # limit of 2048, but all sed's we know have understand at least 4000.
22584    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22585      dirpart=`$as_dirname -- "$mf" ||
22586$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587	 X"$mf" : 'X\(//\)[^/]' \| \
22588	 X"$mf" : 'X\(//\)$' \| \
22589	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22590$as_echo X"$mf" |
22591    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22592	    s//\1/
22593	    q
22594	  }
22595	  /^X\(\/\/\)[^/].*/{
22596	    s//\1/
22597	    q
22598	  }
22599	  /^X\(\/\/\)$/{
22600	    s//\1/
22601	    q
22602	  }
22603	  /^X\(\/\).*/{
22604	    s//\1/
22605	    q
22606	  }
22607	  s/.*/./; q'`
22608    else
22609      continue
22610    fi
22611    # Extract the definition of DEPDIR, am__include, and am__quote
22612    # from the Makefile without running `make'.
22613    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22614    test -z "$DEPDIR" && continue
22615    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22616    test -z "am__include" && continue
22617    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22618    # When using ansi2knr, U may be empty or an underscore; expand it
22619    U=`sed -n 's/^U = //p' < "$mf"`
22620    # Find all dependency output files, they are included files with
22621    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22622    # simplest approach to changing $(DEPDIR) to its actual value in the
22623    # expansion.
22624    for file in `sed -n "
22625      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22626	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22627      # Make sure the directory exists.
22628      test -f "$dirpart/$file" && continue
22629      fdir=`$as_dirname -- "$file" ||
22630$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22631	 X"$file" : 'X\(//\)[^/]' \| \
22632	 X"$file" : 'X\(//\)$' \| \
22633	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22634$as_echo X"$file" |
22635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22636	    s//\1/
22637	    q
22638	  }
22639	  /^X\(\/\/\)[^/].*/{
22640	    s//\1/
22641	    q
22642	  }
22643	  /^X\(\/\/\)$/{
22644	    s//\1/
22645	    q
22646	  }
22647	  /^X\(\/\).*/{
22648	    s//\1/
22649	    q
22650	  }
22651	  s/.*/./; q'`
22652      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22653      # echo "creating $dirpart/$file"
22654      echo '# dummy' > "$dirpart/$file"
22655    done
22656  done
22657}
22658 ;;
22659    "libtool":C)
22660
22661    # See if we are running on zsh, and set the options which allow our
22662    # commands through without removal of \ escapes.
22663    if test -n "${ZSH_VERSION+set}" ; then
22664      setopt NO_GLOB_SUBST
22665    fi
22666
22667    cfgfile="${ofile}T"
22668    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22669    $RM "$cfgfile"
22670
22671    cat <<_LT_EOF >> "$cfgfile"
22672#! $SHELL
22673
22674# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22675# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22677# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22678#
22679#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22680#                 2006, 2007, 2008 Free Software Foundation, Inc.
22681#   Written by Gordon Matzigkeit, 1996
22682#
22683#   This file is part of GNU Libtool.
22684#
22685# GNU Libtool is free software; you can redistribute it and/or
22686# modify it under the terms of the GNU General Public License as
22687# published by the Free Software Foundation; either version 2 of
22688# the License, or (at your option) any later version.
22689#
22690# As a special exception to the GNU General Public License,
22691# if you distribute this file as part of a program or library that
22692# is built using GNU Libtool, you may include this file under the
22693# same distribution terms that you use for the rest of that program.
22694#
22695# GNU Libtool is distributed in the hope that it will be useful,
22696# but WITHOUT ANY WARRANTY; without even the implied warranty of
22697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22698# GNU General Public License for more details.
22699#
22700# You should have received a copy of the GNU General Public License
22701# along with GNU Libtool; see the file COPYING.  If not, a copy
22702# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22703# obtained by writing to the Free Software Foundation, Inc.,
22704# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22705
22706
22707# The names of the tagged configurations supported by this script.
22708available_tags="CXX "
22709
22710# ### BEGIN LIBTOOL CONFIG
22711
22712# Which release of libtool.m4 was used?
22713macro_version=$macro_version
22714macro_revision=$macro_revision
22715
22716# Assembler program.
22717AS=$AS
22718
22719# DLL creation program.
22720DLLTOOL=$DLLTOOL
22721
22722# Object dumper program.
22723OBJDUMP=$OBJDUMP
22724
22725# Whether or not to build shared libraries.
22726build_libtool_libs=$enable_shared
22727
22728# Whether or not to build static libraries.
22729build_old_libs=$enable_static
22730
22731# What type of objects to build.
22732pic_mode=$pic_mode
22733
22734# Whether or not to optimize for fast installation.
22735fast_install=$enable_fast_install
22736
22737# The host system.
22738host_alias=$host_alias
22739host=$host
22740host_os=$host_os
22741
22742# The build system.
22743build_alias=$build_alias
22744build=$build
22745build_os=$build_os
22746
22747# A sed program that does not truncate output.
22748SED=$lt_SED
22749
22750# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22751Xsed="\$SED -e 1s/^X//"
22752
22753# A grep program that handles long lines.
22754GREP=$lt_GREP
22755
22756# An ERE matcher.
22757EGREP=$lt_EGREP
22758
22759# A literal string matcher.
22760FGREP=$lt_FGREP
22761
22762# A BSD- or MS-compatible name lister.
22763NM=$lt_NM
22764
22765# Whether we need soft or hard links.
22766LN_S=$lt_LN_S
22767
22768# What is the maximum length of a command?
22769max_cmd_len=$max_cmd_len
22770
22771# Object file suffix (normally "o").
22772objext=$ac_objext
22773
22774# Executable file suffix (normally "").
22775exeext=$exeext
22776
22777# whether the shell understands "unset".
22778lt_unset=$lt_unset
22779
22780# turn spaces into newlines.
22781SP2NL=$lt_lt_SP2NL
22782
22783# turn newlines into spaces.
22784NL2SP=$lt_lt_NL2SP
22785
22786# How to create reloadable object files.
22787reload_flag=$lt_reload_flag
22788reload_cmds=$lt_reload_cmds
22789
22790# Method to check whether dependent libraries are shared objects.
22791deplibs_check_method=$lt_deplibs_check_method
22792
22793# Command to use when deplibs_check_method == "file_magic".
22794file_magic_cmd=$lt_file_magic_cmd
22795
22796# The archiver.
22797AR=$lt_AR
22798AR_FLAGS=$lt_AR_FLAGS
22799
22800# A symbol stripping program.
22801STRIP=$lt_STRIP
22802
22803# Commands used to install an old-style archive.
22804RANLIB=$lt_RANLIB
22805old_postinstall_cmds=$lt_old_postinstall_cmds
22806old_postuninstall_cmds=$lt_old_postuninstall_cmds
22807
22808# A C compiler.
22809LTCC=$lt_CC
22810
22811# LTCC compiler flags.
22812LTCFLAGS=$lt_CFLAGS
22813
22814# Take the output of nm and produce a listing of raw symbols and C names.
22815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22816
22817# Transform the output of nm in a proper C declaration.
22818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22819
22820# Transform the output of nm in a C name address pair.
22821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22822
22823# Transform the output of nm in a C name address pair when lib prefix is needed.
22824global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22825
22826# The name of the directory that contains temporary libtool files.
22827objdir=$objdir
22828
22829# Shell to use when invoking shell scripts.
22830SHELL=$lt_SHELL
22831
22832# An echo program that does not interpret backslashes.
22833ECHO=$lt_ECHO
22834
22835# Used to examine libraries when file_magic_cmd begins with "file".
22836MAGIC_CMD=$MAGIC_CMD
22837
22838# Must we lock files when doing compilation?
22839need_locks=$lt_need_locks
22840
22841# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22842DSYMUTIL=$lt_DSYMUTIL
22843
22844# Tool to change global to local symbols on Mac OS X.
22845NMEDIT=$lt_NMEDIT
22846
22847# Tool to manipulate fat objects and archives on Mac OS X.
22848LIPO=$lt_LIPO
22849
22850# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22851OTOOL=$lt_OTOOL
22852
22853# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22854OTOOL64=$lt_OTOOL64
22855
22856# Old archive suffix (normally "a").
22857libext=$libext
22858
22859# Shared library suffix (normally ".so").
22860shrext_cmds=$lt_shrext_cmds
22861
22862# The commands to extract the exported symbol list from a shared archive.
22863extract_expsyms_cmds=$lt_extract_expsyms_cmds
22864
22865# Variables whose values should be saved in libtool wrapper scripts and
22866# restored at link time.
22867variables_saved_for_relink=$lt_variables_saved_for_relink
22868
22869# Do we need the "lib" prefix for modules?
22870need_lib_prefix=$need_lib_prefix
22871
22872# Do we need a version for libraries?
22873need_version=$need_version
22874
22875# Library versioning type.
22876version_type=$version_type
22877
22878# Shared library runtime path variable.
22879runpath_var=$runpath_var
22880
22881# Shared library path variable.
22882shlibpath_var=$shlibpath_var
22883
22884# Is shlibpath searched before the hard-coded library search path?
22885shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22886
22887# Format of library name prefix.
22888libname_spec=$lt_libname_spec
22889
22890# List of archive names.  First name is the real one, the rest are links.
22891# The last name is the one that the linker finds with -lNAME
22892library_names_spec=$lt_library_names_spec
22893
22894# The coded name of the library, if different from the real name.
22895soname_spec=$lt_soname_spec
22896
22897# Command to use after installation of a shared archive.
22898postinstall_cmds=$lt_postinstall_cmds
22899
22900# Command to use after uninstallation of a shared archive.
22901postuninstall_cmds=$lt_postuninstall_cmds
22902
22903# Commands used to finish a libtool library installation in a directory.
22904finish_cmds=$lt_finish_cmds
22905
22906# As "finish_cmds", except a single script fragment to be evaled but
22907# not shown.
22908finish_eval=$lt_finish_eval
22909
22910# Whether we should hardcode library paths into libraries.
22911hardcode_into_libs=$hardcode_into_libs
22912
22913# Compile-time system search path for libraries.
22914sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22915
22916# Run-time system search path for libraries.
22917sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22918
22919# Whether dlopen is supported.
22920dlopen_support=$enable_dlopen
22921
22922# Whether dlopen of programs is supported.
22923dlopen_self=$enable_dlopen_self
22924
22925# Whether dlopen of statically linked programs is supported.
22926dlopen_self_static=$enable_dlopen_self_static
22927
22928# Commands to strip libraries.
22929old_striplib=$lt_old_striplib
22930striplib=$lt_striplib
22931
22932
22933# The linker used to build libraries.
22934LD=$lt_LD
22935
22936# Commands used to build an old-style archive.
22937old_archive_cmds=$lt_old_archive_cmds
22938
22939# A language specific compiler.
22940CC=$lt_compiler
22941
22942# Is the compiler the GNU compiler?
22943with_gcc=$GCC
22944
22945# Compiler flag to turn off builtin functions.
22946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22947
22948# How to pass a linker flag through the compiler.
22949wl=$lt_lt_prog_compiler_wl
22950
22951# Additional compiler flags for building library objects.
22952pic_flag=$lt_lt_prog_compiler_pic
22953
22954# Compiler flag to prevent dynamic linking.
22955link_static_flag=$lt_lt_prog_compiler_static
22956
22957# Does compiler simultaneously support -c and -o options?
22958compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22959
22960# Whether or not to add -lc for building shared libraries.
22961build_libtool_need_lc=$archive_cmds_need_lc
22962
22963# Whether or not to disallow shared libs when runtime libs are static.
22964allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22965
22966# Compiler flag to allow reflexive dlopens.
22967export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22968
22969# Compiler flag to generate shared objects directly from archives.
22970whole_archive_flag_spec=$lt_whole_archive_flag_spec
22971
22972# Whether the compiler copes with passing no objects directly.
22973compiler_needs_object=$lt_compiler_needs_object
22974
22975# Create an old-style archive from a shared archive.
22976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22977
22978# Create a temporary old-style archive to link instead of a shared archive.
22979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22980
22981# Commands used to build a shared archive.
22982archive_cmds=$lt_archive_cmds
22983archive_expsym_cmds=$lt_archive_expsym_cmds
22984
22985# Commands used to build a loadable module if different from building
22986# a shared archive.
22987module_cmds=$lt_module_cmds
22988module_expsym_cmds=$lt_module_expsym_cmds
22989
22990# Whether we are building with GNU ld or not.
22991with_gnu_ld=$lt_with_gnu_ld
22992
22993# Flag that allows shared libraries with undefined symbols to be built.
22994allow_undefined_flag=$lt_allow_undefined_flag
22995
22996# Flag that enforces no undefined symbols.
22997no_undefined_flag=$lt_no_undefined_flag
22998
22999# Flag to hardcode \$libdir into a binary during linking.
23000# This must work even if \$libdir does not exist
23001hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23002
23003# If ld is used when linking, flag to hardcode \$libdir into a binary
23004# during linking.  This must work even if \$libdir does not exist.
23005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23006
23007# Whether we need a single "-rpath" flag with a separated argument.
23008hardcode_libdir_separator=$lt_hardcode_libdir_separator
23009
23010# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23011# DIR into the resulting binary.
23012hardcode_direct=$hardcode_direct
23013
23014# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23015# DIR into the resulting binary and the resulting library dependency is
23016# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23017# library is relocated.
23018hardcode_direct_absolute=$hardcode_direct_absolute
23019
23020# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23021# into the resulting binary.
23022hardcode_minus_L=$hardcode_minus_L
23023
23024# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23025# into the resulting binary.
23026hardcode_shlibpath_var=$hardcode_shlibpath_var
23027
23028# Set to "yes" if building a shared library automatically hardcodes DIR
23029# into the library and all subsequent libraries and executables linked
23030# against it.
23031hardcode_automatic=$hardcode_automatic
23032
23033# Set to yes if linker adds runtime paths of dependent libraries
23034# to runtime path list.
23035inherit_rpath=$inherit_rpath
23036
23037# Whether libtool must link a program against all its dependency libraries.
23038link_all_deplibs=$link_all_deplibs
23039
23040# Fix the shell variable \$srcfile for the compiler.
23041fix_srcfile_path=$lt_fix_srcfile_path
23042
23043# Set to "yes" if exported symbols are required.
23044always_export_symbols=$always_export_symbols
23045
23046# The commands to list exported symbols.
23047export_symbols_cmds=$lt_export_symbols_cmds
23048
23049# Symbols that should not be listed in the preloaded symbols.
23050exclude_expsyms=$lt_exclude_expsyms
23051
23052# Symbols that must always be exported.
23053include_expsyms=$lt_include_expsyms
23054
23055# Commands necessary for linking programs (against libraries) with templates.
23056prelink_cmds=$lt_prelink_cmds
23057
23058# Specify filename containing input files.
23059file_list_spec=$lt_file_list_spec
23060
23061# How to hardcode a shared library path into an executable.
23062hardcode_action=$hardcode_action
23063
23064# The directories searched by this compiler when creating a shared library.
23065compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23066
23067# Dependencies to place before and after the objects being linked to
23068# create a shared library.
23069predep_objects=$lt_predep_objects
23070postdep_objects=$lt_postdep_objects
23071predeps=$lt_predeps
23072postdeps=$lt_postdeps
23073
23074# The library search path used internally by the compiler when linking
23075# a shared library.
23076compiler_lib_search_path=$lt_compiler_lib_search_path
23077
23078# ### END LIBTOOL CONFIG
23079
23080_LT_EOF
23081
23082  case $host_os in
23083  aix3*)
23084    cat <<\_LT_EOF >> "$cfgfile"
23085# AIX sometimes has problems with the GCC collect2 program.  For some
23086# reason, if we set the COLLECT_NAMES environment variable, the problems
23087# vanish in a puff of smoke.
23088if test "X${COLLECT_NAMES+set}" != Xset; then
23089  COLLECT_NAMES=
23090  export COLLECT_NAMES
23091fi
23092_LT_EOF
23093    ;;
23094  esac
23095
23096
23097ltmain="$ac_aux_dir/ltmain.sh"
23098
23099
23100  # We use sed instead of cat because bash on DJGPP gets confused if
23101  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23102  # text mode, it properly converts lines to CR/LF.  This bash problem
23103  # is reportedly fixed, but why not run on old versions too?
23104  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23105    || (rm -f "$cfgfile"; exit 1)
23106
23107  case $xsi_shell in
23108  yes)
23109    cat << \_LT_EOF >> "$cfgfile"
23110
23111# func_dirname file append nondir_replacement
23112# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23113# otherwise set result to NONDIR_REPLACEMENT.
23114func_dirname ()
23115{
23116  case ${1} in
23117    */*) func_dirname_result="${1%/*}${2}" ;;
23118    *  ) func_dirname_result="${3}" ;;
23119  esac
23120}
23121
23122# func_basename file
23123func_basename ()
23124{
23125  func_basename_result="${1##*/}"
23126}
23127
23128# func_dirname_and_basename file append nondir_replacement
23129# perform func_basename and func_dirname in a single function
23130# call:
23131#   dirname:  Compute the dirname of FILE.  If nonempty,
23132#             add APPEND to the result, otherwise set result
23133#             to NONDIR_REPLACEMENT.
23134#             value returned in "$func_dirname_result"
23135#   basename: Compute filename of FILE.
23136#             value retuned in "$func_basename_result"
23137# Implementation must be kept synchronized with func_dirname
23138# and func_basename. For efficiency, we do not delegate to
23139# those functions but instead duplicate the functionality here.
23140func_dirname_and_basename ()
23141{
23142  case ${1} in
23143    */*) func_dirname_result="${1%/*}${2}" ;;
23144    *  ) func_dirname_result="${3}" ;;
23145  esac
23146  func_basename_result="${1##*/}"
23147}
23148
23149# func_stripname prefix suffix name
23150# strip PREFIX and SUFFIX off of NAME.
23151# PREFIX and SUFFIX must not contain globbing or regex special
23152# characters, hashes, percent signs, but SUFFIX may contain a leading
23153# dot (in which case that matches only a dot).
23154func_stripname ()
23155{
23156  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23157  # positional parameters, so assign one to ordinary parameter first.
23158  func_stripname_result=${3}
23159  func_stripname_result=${func_stripname_result#"${1}"}
23160  func_stripname_result=${func_stripname_result%"${2}"}
23161}
23162
23163# func_opt_split
23164func_opt_split ()
23165{
23166  func_opt_split_opt=${1%%=*}
23167  func_opt_split_arg=${1#*=}
23168}
23169
23170# func_lo2o object
23171func_lo2o ()
23172{
23173  case ${1} in
23174    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23175    *)    func_lo2o_result=${1} ;;
23176  esac
23177}
23178
23179# func_xform libobj-or-source
23180func_xform ()
23181{
23182  func_xform_result=${1%.*}.lo
23183}
23184
23185# func_arith arithmetic-term...
23186func_arith ()
23187{
23188  func_arith_result=$(( $* ))
23189}
23190
23191# func_len string
23192# STRING may not start with a hyphen.
23193func_len ()
23194{
23195  func_len_result=${#1}
23196}
23197
23198_LT_EOF
23199    ;;
23200  *) # Bourne compatible functions.
23201    cat << \_LT_EOF >> "$cfgfile"
23202
23203# func_dirname file append nondir_replacement
23204# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23205# otherwise set result to NONDIR_REPLACEMENT.
23206func_dirname ()
23207{
23208  # Extract subdirectory from the argument.
23209  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23210  if test "X$func_dirname_result" = "X${1}"; then
23211    func_dirname_result="${3}"
23212  else
23213    func_dirname_result="$func_dirname_result${2}"
23214  fi
23215}
23216
23217# func_basename file
23218func_basename ()
23219{
23220  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23221}
23222
23223
23224# func_stripname prefix suffix name
23225# strip PREFIX and SUFFIX off of NAME.
23226# PREFIX and SUFFIX must not contain globbing or regex special
23227# characters, hashes, percent signs, but SUFFIX may contain a leading
23228# dot (in which case that matches only a dot).
23229# func_strip_suffix prefix name
23230func_stripname ()
23231{
23232  case ${2} in
23233    .*) func_stripname_result=`$ECHO "X${3}" \
23234           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23235    *)  func_stripname_result=`$ECHO "X${3}" \
23236           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23237  esac
23238}
23239
23240# sed scripts:
23241my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23242my_sed_long_arg='1s/^-[^=]*=//'
23243
23244# func_opt_split
23245func_opt_split ()
23246{
23247  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23248  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23249}
23250
23251# func_lo2o object
23252func_lo2o ()
23253{
23254  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23255}
23256
23257# func_xform libobj-or-source
23258func_xform ()
23259{
23260  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23261}
23262
23263# func_arith arithmetic-term...
23264func_arith ()
23265{
23266  func_arith_result=`expr "$@"`
23267}
23268
23269# func_len string
23270# STRING may not start with a hyphen.
23271func_len ()
23272{
23273  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23274}
23275
23276_LT_EOF
23277esac
23278
23279case $lt_shell_append in
23280  yes)
23281    cat << \_LT_EOF >> "$cfgfile"
23282
23283# func_append var value
23284# Append VALUE to the end of shell variable VAR.
23285func_append ()
23286{
23287  eval "$1+=\$2"
23288}
23289_LT_EOF
23290    ;;
23291  *)
23292    cat << \_LT_EOF >> "$cfgfile"
23293
23294# func_append var value
23295# Append VALUE to the end of shell variable VAR.
23296func_append ()
23297{
23298  eval "$1=\$$1\$2"
23299}
23300
23301_LT_EOF
23302    ;;
23303  esac
23304
23305
23306  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23307    || (rm -f "$cfgfile"; exit 1)
23308
23309  mv -f "$cfgfile" "$ofile" ||
23310    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23311  chmod +x "$ofile"
23312
23313
23314    cat <<_LT_EOF >> "$ofile"
23315
23316# ### BEGIN LIBTOOL TAG CONFIG: CXX
23317
23318# The linker used to build libraries.
23319LD=$lt_LD_CXX
23320
23321# Commands used to build an old-style archive.
23322old_archive_cmds=$lt_old_archive_cmds_CXX
23323
23324# A language specific compiler.
23325CC=$lt_compiler_CXX
23326
23327# Is the compiler the GNU compiler?
23328with_gcc=$GCC_CXX
23329
23330# Compiler flag to turn off builtin functions.
23331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23332
23333# How to pass a linker flag through the compiler.
23334wl=$lt_lt_prog_compiler_wl_CXX
23335
23336# Additional compiler flags for building library objects.
23337pic_flag=$lt_lt_prog_compiler_pic_CXX
23338
23339# Compiler flag to prevent dynamic linking.
23340link_static_flag=$lt_lt_prog_compiler_static_CXX
23341
23342# Does compiler simultaneously support -c and -o options?
23343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23344
23345# Whether or not to add -lc for building shared libraries.
23346build_libtool_need_lc=$archive_cmds_need_lc_CXX
23347
23348# Whether or not to disallow shared libs when runtime libs are static.
23349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23350
23351# Compiler flag to allow reflexive dlopens.
23352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23353
23354# Compiler flag to generate shared objects directly from archives.
23355whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23356
23357# Whether the compiler copes with passing no objects directly.
23358compiler_needs_object=$lt_compiler_needs_object_CXX
23359
23360# Create an old-style archive from a shared archive.
23361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23362
23363# Create a temporary old-style archive to link instead of a shared archive.
23364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23365
23366# Commands used to build a shared archive.
23367archive_cmds=$lt_archive_cmds_CXX
23368archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23369
23370# Commands used to build a loadable module if different from building
23371# a shared archive.
23372module_cmds=$lt_module_cmds_CXX
23373module_expsym_cmds=$lt_module_expsym_cmds_CXX
23374
23375# Whether we are building with GNU ld or not.
23376with_gnu_ld=$lt_with_gnu_ld_CXX
23377
23378# Flag that allows shared libraries with undefined symbols to be built.
23379allow_undefined_flag=$lt_allow_undefined_flag_CXX
23380
23381# Flag that enforces no undefined symbols.
23382no_undefined_flag=$lt_no_undefined_flag_CXX
23383
23384# Flag to hardcode \$libdir into a binary during linking.
23385# This must work even if \$libdir does not exist
23386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23387
23388# If ld is used when linking, flag to hardcode \$libdir into a binary
23389# during linking.  This must work even if \$libdir does not exist.
23390hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23391
23392# Whether we need a single "-rpath" flag with a separated argument.
23393hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23394
23395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23396# DIR into the resulting binary.
23397hardcode_direct=$hardcode_direct_CXX
23398
23399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23400# DIR into the resulting binary and the resulting library dependency is
23401# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23402# library is relocated.
23403hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23404
23405# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23406# into the resulting binary.
23407hardcode_minus_L=$hardcode_minus_L_CXX
23408
23409# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23410# into the resulting binary.
23411hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23412
23413# Set to "yes" if building a shared library automatically hardcodes DIR
23414# into the library and all subsequent libraries and executables linked
23415# against it.
23416hardcode_automatic=$hardcode_automatic_CXX
23417
23418# Set to yes if linker adds runtime paths of dependent libraries
23419# to runtime path list.
23420inherit_rpath=$inherit_rpath_CXX
23421
23422# Whether libtool must link a program against all its dependency libraries.
23423link_all_deplibs=$link_all_deplibs_CXX
23424
23425# Fix the shell variable \$srcfile for the compiler.
23426fix_srcfile_path=$lt_fix_srcfile_path_CXX
23427
23428# Set to "yes" if exported symbols are required.
23429always_export_symbols=$always_export_symbols_CXX
23430
23431# The commands to list exported symbols.
23432export_symbols_cmds=$lt_export_symbols_cmds_CXX
23433
23434# Symbols that should not be listed in the preloaded symbols.
23435exclude_expsyms=$lt_exclude_expsyms_CXX
23436
23437# Symbols that must always be exported.
23438include_expsyms=$lt_include_expsyms_CXX
23439
23440# Commands necessary for linking programs (against libraries) with templates.
23441prelink_cmds=$lt_prelink_cmds_CXX
23442
23443# Specify filename containing input files.
23444file_list_spec=$lt_file_list_spec_CXX
23445
23446# How to hardcode a shared library path into an executable.
23447hardcode_action=$hardcode_action_CXX
23448
23449# The directories searched by this compiler when creating a shared library.
23450compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23451
23452# Dependencies to place before and after the objects being linked to
23453# create a shared library.
23454predep_objects=$lt_predep_objects_CXX
23455postdep_objects=$lt_postdep_objects_CXX
23456predeps=$lt_predeps_CXX
23457postdeps=$lt_postdeps_CXX
23458
23459# The library search path used internally by the compiler when linking
23460# a shared library.
23461compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23462
23463# ### END LIBTOOL TAG CONFIG: CXX
23464_LT_EOF
23465
23466 ;;
23467
23468  esac
23469done # for ac_tag
23470
23471
23472as_fn_exit 0
23473_ACEOF
23474ac_clean_files=$ac_clean_files_save
23475
23476test $ac_write_fail = 0 ||
23477  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23478
23479
23480# configure is writing to config.log, and then calls config.status.
23481# config.status does its own redirection, appending to config.log.
23482# Unfortunately, on DOS this fails, as config.log is still kept open
23483# by configure, so config.status won't be able to write to it; its
23484# output is simply discarded.  So we exec the FD to /dev/null,
23485# effectively closing config.log, so it can be properly (re)opened and
23486# appended to by config.status.  When coming back to configure, we
23487# need to make the FD available again.
23488if test "$no_create" != yes; then
23489  ac_cs_success=:
23490  ac_config_status_args=
23491  test "$silent" = yes &&
23492    ac_config_status_args="$ac_config_status_args --quiet"
23493  exec 5>/dev/null
23494  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23495  exec 5>>config.log
23496  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23497  # would make configure fail if this is the last instruction.
23498  $ac_cs_success || as_fn_exit $?
23499fi
23500if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23501  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23502$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23503fi
23504
23505